diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-31 17:34:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-31 17:34:56 +0000 |
commit | bc8362e4ef1c185f7c1d9aec69d91f269c97d4e2 (patch) | |
tree | 9194d1773b772347d76766611948ee38e1002058 /sys/compat/bsdos | |
parent | 7a1b6dcd69cb5defd76dca41d6f8252a3140fb91 (diff) |
New struct statfs with mount options. NOTE: this replaces statfs(2),
fstatfs(2), and getfsstat(2) so you will need to build a new kernel
before doing a "make build" or you will get "unimplemented syscall" errors.
The new struct statfs has the following featuires:
o Has a u_int32_t flags field--now softdep can have a real flag.
o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man
page used to lie about setting invalid/unused fields to -1. SunOS does
that but our code never has.
o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9
and having it there but always 0 is confusing. It is conceivable
that this may cause some old code to not compile but that is better
than silently breaking.
o Adds a mount_info union that contains the FSTYPE_args struct. This
means that "mount" can now tell you all the options a filesystem was
mounted with. This is especially nice for NFS.
Other changes:
o The linux statfs emulation didn't convert between BSD fs names
and linux f_type numbers. Now it does, since the BSD f_type
number is useless to linux apps (and has been removed anyway)
o FreeBSD's struct statfs is different from our (both old and new)
and thus needs conversion. Previously, the OpenBSD syscalls
were used without any real translation.
o mount(8) will now show extra info when invoked with no arguments.
However, to see *everything* you need to use the -v (verbose) flag.
Diffstat (limited to 'sys/compat/bsdos')
-rw-r--r-- | sys/compat/bsdos/syscalls.master | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/bsdos/syscalls.master b/sys/compat/bsdos/syscalls.master index 09d51e08eed..fe90384f933 100644 --- a/sys/compat/bsdos/syscalls.master +++ b/sys/compat/bsdos/syscalls.master @@ -1,4 +1,4 @@ - $OpenBSD: syscalls.master,v 1.3 1997/11/13 18:35:21 deraadt Exp $ + $OpenBSD: syscalls.master,v 1.4 1999/05/31 17:34:44 millert Exp $ ; OpenBSD COMPAT_BSDOS system call name/number "master" file. ; (See syscalls.conf to see what it is processed into.) @@ -63,8 +63,8 @@ 15 NOARGS { int sys_chmod(char *path, int mode); } 16 NOARGS { int sys_chown(char *path, int uid, int gid); } 17 NOARGS { int sys_obreak(char *nsize); } break -18 NOARGS { int sys_getfsstat(struct statfs *buf, long bufsize, \ - int flags); } +18 NOARGS { int sys_ogetfsstat(struct ostatfs *buf, \ + long bufsize, int flags); } 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \ int whence); } olseek 20 NOARGS { pid_t sys_getpid(void); } @@ -276,8 +276,8 @@ #endif 156 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \ u_int count, long *basep); } ogetdirentries -157 NOARGS { int sys_statfs(char *path, struct statfs *buf); } -158 NOARGS { int sys_fstatfs(int fd, struct statfs *buf); } +157 NOARGS { int sys_ostatfs(char *path, struct ostatfs *buf); } +158 NOARGS { int sys_ofstatfs(int fd, struct ostatfs *buf); } 159 UNIMPL 160 UNIMPL #ifdef NFSCLIENT |