1 /* sigaddset.c: A replacement for the sigaddset function
4 This software is Copyright 1996 by Craig Metz, All Rights Reserved.
5 The Inner Net License Version 2 applies to this software.
6 You should have received a copy of the license with this software. If
7 you didn't get a copy, you may request one from <license@inner.net>.
11 Created by cmetz for OPIE 2.2.
26 int sigaddset FUNCTION((set, signum), sigset_t *set AND int signum)
28 #if sizeof(sigset_t) != sizeof(int)
29 Sorry, we don't currently support your system.
30 #else /* sizeof(sigset_t) != sizeof(int) */
31 if (set && (signum > 0) && (signum < _NSIG))
32 *set |= 1 << (signum - 1);
33 #endif /* sizeof(sigset_t) != sizeof(int) */