The struct vfsconf element vfc_index is now vfs_typenum.

This commit is contained in:
Mike Pritchard 1997-02-28 06:22:29 +00:00
parent 28f86af297
commit cd1b6738ab
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $Id$
.\" $Id: getvfsent.3,v 1.7 1997/02/22 14:58:10 peter Exp $
.\" Written by Garrett A. Wollman, September 1994.
.\" This manual page is in the public domain.
.\"
@ -53,7 +53,7 @@ are as follows:
.Bl -tag -compact -width vfc_refcount
.It vfc_name
the name of the filesystem
.It vfc_index
.It vfc_typenum
the filesystem type number assigned by the kernel and used in calls to
.Xr mount 2
.It vfc_refcount

View File

@ -38,6 +38,7 @@ static char sccsid[] = "@(#)sigsetops.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <signal.h>
#include <errno.h>
#undef sigemptyset
#undef sigfillset
@ -45,6 +46,8 @@ static char sccsid[] = "@(#)sigsetops.c 8.1 (Berkeley) 6/4/93";
#undef sigdelset
#undef sigismember
#define SIGBAD(signo) ((signo) <= 0 || (signo) >= NSIG)
int
sigemptyset(set)
sigset_t *set;
@ -66,6 +69,10 @@ sigaddset(set, signo)
sigset_t *set;
int signo;
{
if (SIGBAD(signo)) {
errno = EINVAL;
return -1;
}
*set |= sigmask(signo);
return (0);
}
@ -75,6 +82,10 @@ sigdelset(set, signo)
sigset_t *set;
int signo;
{
if (SIGBAD(signo)) {
errno = EINVAL;
return -1;
}
*set &= ~sigmask(signo);
return (0);
}
@ -84,5 +95,9 @@ sigismember(set, signo)
const sigset_t *set;
int signo;
{
if (SIGBAD(signo)) {
errno = EINVAL;
return -1;
}
return ((*set & ~sigmask(signo)) != 0);
}