mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
getvfsbyname() doesn't existing NetBSD, so return ENOSYS if compiled
into a library with __NETBSD_SYSCALLS defined.
This commit is contained in:
parent
59fe2e5fd0
commit
ee51c92b78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34359
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user