mount.h: Declare getvfs* functions from libc.

vfs_init.c: Fix fs_sysctl() so that getvfs* functions actually work.
This commit is contained in:
Garrett Wollman 1994-09-22 01:05:09 +00:00
parent 4b1e44f14a
commit dff55bb5c2
2 changed files with 11 additions and 2 deletions

View File

@ -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:

View File

@ -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 */