bump version
[AROS.git] / compiler / posixc / sigaddset.c
blob817ae9a87ee787e62e04d4d5d634c811fd3a711d
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function sigaddset().
6 */
8 #include <stddef.h>
10 /*****************************************************************************
12 NAME */
13 #include <signal.h>
15 int sigaddset (
17 /* SYNOPSIS */
18 sigset_t *set,
19 int signum)
21 /* FUNCTION
23 INPUTS
25 RESULT
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 if (NULL != set) {
40 unsigned int i = (signum >> 5);
41 set->__val[i] |= (1 << (signum & 0x1f));
42 return 0;
45 return -1;
46 } /* sigaddset */