diff options
author | mpp <mpp@FreeBSD.org> | 1997-02-28 06:22:29 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-02-28 06:22:29 +0000 |
commit | d6d4380e84f41b1ec3d979438d54f3d0609b7d9b (patch) | |
tree | ccd28cfa27c90c1405917acf77b812e9fe22ceac | |
parent | 0462a72737b50283565158dfef4b231018b5f6a8 (diff) | |
download | FreeBSD-src-d6d4380e84f41b1ec3d979438d54f3d0609b7d9b.zip FreeBSD-src-d6d4380e84f41b1ec3d979438d54f3d0609b7d9b.tar.gz |
The struct vfsconf element vfc_index is now vfs_typenum.
-rw-r--r-- | lib/libc/gen/getvfsent.3 | 4 | ||||
-rw-r--r-- | lib/libc/gen/sigsetops.c | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lib/libc/gen/getvfsent.3 b/lib/libc/gen/getvfsent.3 index afecf43..efb064a 100644 --- a/lib/libc/gen/getvfsent.3 +++ b/lib/libc/gen/getvfsent.3 @@ -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 diff --git a/lib/libc/gen/sigsetops.c b/lib/libc/gen/sigsetops.c index c3bd870..7e823a8 100644 --- a/lib/libc/gen/sigsetops.c +++ b/lib/libc/gen/sigsetops.c @@ -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); } |