X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..fc5ea90f5f3a4ef92896662ac2f4e35302a64fe3:/gen/sigsetops.c diff --git a/gen/sigsetops.c b/gen/sigsetops.c index cdfb895..842dc79 100644 --- a/gen/sigsetops.c +++ b/gen/sigsetops.c @@ -3,8 +3,6 @@ * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -90,6 +88,8 @@ sigaddset(set, signo) errno = EINVAL; return(-1); } + if (signo == 0) + return(0); *set |= sigmask(signo); return (0); } @@ -103,6 +103,8 @@ sigdelset(set, signo) errno = EINVAL; return(-1); } + if (signo == 0) + return(0); *set &= ~sigmask(signo); return (0); } @@ -116,5 +118,7 @@ sigismember(set, signo) errno = EINVAL; return(-1); } + if (signo == 0) + return(0); return ((*set & sigmask(signo)) != 0); }