diff options
-rw-r--r-- | lib/libc/gen/sigsetops.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/libc/gen/sigsetops.c b/lib/libc/gen/sigsetops.c index 7e823a8..c3bd870 100644 --- a/lib/libc/gen/sigsetops.c +++ b/lib/libc/gen/sigsetops.c @@ -38,7 +38,6 @@ 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 @@ -46,8 +45,6 @@ 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; @@ -69,10 +66,6 @@ sigaddset(set, signo) sigset_t *set; int signo; { - if (SIGBAD(signo)) { - errno = EINVAL; - return -1; - } *set |= sigmask(signo); return (0); } @@ -82,10 +75,6 @@ sigdelset(set, signo) sigset_t *set; int signo; { - if (SIGBAD(signo)) { - errno = EINVAL; - return -1; - } *set &= ~sigmask(signo); return (0); } @@ -95,9 +84,5 @@ sigismember(set, signo) const sigset_t *set; int signo; { - if (SIGBAD(signo)) { - errno = EINVAL; - return -1; - } return ((*set & ~sigmask(signo)) != 0); } |