diff options
author | jb <jb@FreeBSD.org> | 1998-03-09 04:36:07 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-03-09 04:36:07 +0000 |
commit | 716f9dc3698c75bde793be05b8b43c86761efbfc (patch) | |
tree | be640436330ea90939147e6c045b72f7525fd396 /lib/libc/gen/getvfsbyname.c | |
parent | 632617caf9df11e6e2e70f90aa148d425abec850 (diff) | |
download | FreeBSD-src-716f9dc3698c75bde793be05b8b43c86761efbfc.zip FreeBSD-src-716f9dc3698c75bde793be05b8b43c86761efbfc.tar.gz |
getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiled
into a library with __NETBSD_SYSCALLS defined.
Diffstat (limited to 'lib/libc/gen/getvfsbyname.c')
-rw-r--r-- | lib/libc/gen/getvfsbyname.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/getvfsbyname.c b/lib/libc/gen/getvfsbyname.c index ae63bfe..57d1db4 100644 --- a/lib/libc/gen/getvfsbyname.c +++ b/lib/libc/gen/getvfsbyname.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)kvm_getvfsbyname.c 8.1 (Berkeley) 4/3/95"; #endif static const char rcsid[] = - "$Id$"; + "$Id: getvfsbyname.c,v 1.2 1997/03/03 13:08:33 bde Exp $"; #endif /* not lint */ #define _NEW_VFSCONF @@ -54,6 +54,9 @@ getvfsbyname(fsname, vfcp) const char *fsname; struct vfsconf *vfcp; { +#ifdef __NETBSD_SYSCALLS + errno = ENOSYS; +#else int name[4], maxtypenum, cnt; size_t buflen; @@ -76,5 +79,6 @@ getvfsbyname(fsname, vfcp) return (0); } errno = ENOENT; +#endif return (-1); } |