diff options
author | wollman <wollman@FreeBSD.org> | 1994-09-22 01:05:09 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-09-22 01:05:09 +0000 |
commit | 57d5fc27aeeacccb0bf162a0c76960fcee592e70 (patch) | |
tree | 8c52550f6170a630dd7df77e929cd887cf57c8a8 | |
parent | 664e99fa6ed276926f0c1d86f833274643654d19 (diff) | |
download | FreeBSD-src-57d5fc27aeeacccb0bf162a0c76960fcee592e70.zip FreeBSD-src-57d5fc27aeeacccb0bf162a0c76960fcee592e70.tar.gz |
mount.h: Declare getvfs* functions from libc.
vfs_init.c: Fix fs_sysctl() so that getvfs* functions actually work.
-rw-r--r-- | sys/kern/vfs_init.c | 4 | ||||
-rw-r--r-- | sys/sys/mount.h | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 656ae4e..b829b48 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94 - * $Id: vfs_init.c,v 1.4 1994/08/18 22:35:08 wollman Exp $ + * $Id: vfs_init.c,v 1.5 1994/09/21 03:46:48 wollman Exp $ */ @@ -291,7 +291,7 @@ fs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) int i; int error; int buflen = *oldlenp; - caddr_t where = newp, start = newp; + caddr_t where = oldp, start = oldp; switch (name[0]) { case FS_VFSCONF: diff --git a/sys/sys/mount.h b/sys/sys/mount.h index 3f20f16..fe9f4cb 100644 --- a/sys/sys/mount.h +++ b/sys/sys/mount.h @@ -481,6 +481,15 @@ int getmntinfo __P((struct statfs **, int)); int mount __P((int, const char *, int, void *)); int statfs __P((const char *, struct statfs *)); int unmount __P((const char *, int)); + +/* C library stuff */ +struct vfsconf *getvfsbyname __P((const char *)); +struct vfsconf *getvfsbytype __P((int)); +struct vfsconf *getvfsent __P((void)); +void setvfsent __P((int)); +void endvfsent __P((void)); +int vfsisloadable __P((const char *)); +int vfsload __P((const char *)); __END_DECLS #endif /* KERNEL */ |