diff options
author | bde <bde@FreeBSD.org> | 1997-03-03 13:08:33 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-03-03 13:08:33 +0000 |
commit | 1d929b9ddb6d46110e43b5c5688e3809d4b5dbc3 (patch) | |
tree | cc42b882c75a3b02804f99b919975336b4d8dd11 /lib/libc | |
parent | 5fc94677bda468bbe12b8bcaf035aa45dd51e261 (diff) | |
download | FreeBSD-src-1d929b9ddb6d46110e43b5c5688e3809d4b5dbc3.zip FreeBSD-src-1d929b9ddb6d46110e43b5c5688e3809d4b5dbc3.tar.gz |
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.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/Makefile.inc | 5 | ||||
-rw-r--r-- | lib/libc/gen/getvfsbyname.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 4956d06..f360726 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -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 \ diff --git a/lib/libc/gen/getvfsbyname.c b/lib/libc/gen/getvfsbyname.c index 9818bae..ae63bfe 100644 --- a/lib/libc/gen/getvfsbyname.c +++ b/lib/libc/gen/getvfsbyname.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. |