Enabled the Lite2 getvfsbyname(). It's actually named new_getvfsbyname()
for now so that we don't lose library compatibility. Applications should define _NEW_VFSCONF and use getvfsbyname() instead of new_getvfsbyname() if they want the new vfsconf interface. Parts of the old interface (enough to load vfs modules, I hope) are still available.
This commit is contained in:
parent
3a76a5949b
commit
cdd42308ce
@ -1,5 +1,5 @@
|
||||
# From: @(#)Makefile.inc 8.3 (Berkeley) 4/16/94
|
||||
# $Id$
|
||||
# $Id: Makefile.inc,v 1.26 1997/02/22 14:57:58 peter Exp $
|
||||
|
||||
# machine-independent gen sources
|
||||
.PATH: ${.CURDIR}/${MACHINE}/gen ${.CURDIR}/gen
|
||||
@ -10,7 +10,8 @@ SRCS+= alarm.c assert.c clock.c closedir.c config.c confstr.c crypt.c \
|
||||
getcap.c getcwd.c getdomainname.c getgrent.c getgrouplist.c \
|
||||
gethostname.c getloadavg.c getlogin.c getmntinfo.c getnetgrent.c \
|
||||
getosreldate.c getpagesize.c getpass.c getpwent.c getttyent.c \
|
||||
getusershell.c getvfsent.c glob.c initgroups.c isatty.c msgctl.c \
|
||||
getusershell.c getvfsbyname.c getvfsent.c glob.c \
|
||||
initgroups.c isatty.c msgctl.c \
|
||||
msgget.c msgrcv.c msgsnd.c nice.c nlist.c ntp_gettime.c opendir.c \
|
||||
pause.c popen.c psignal.c pwcache.c raise.c readdir.c rewinddir.c \
|
||||
scandir.c seekdir.c semconfig.c semctl.c semget.c semop.c \
|
||||
|
@ -32,17 +32,20 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)kvm_getvfsbyname.c 8.1 (Berkeley) 4/3/95";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#define _NEW_VFSCONF
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <errno.h>
|
||||
#include <kvm.h>
|
||||
|
||||
int getvfsbyname __P((const char *, struct vfsconf *));
|
||||
|
||||
/*
|
||||
* Given a filesystem name, determine if it is resident in the kernel,
|
||||
* and if it is resident, return its vfsconf structure.
|
||||
|
Loading…
x
Reference in New Issue
Block a user