Fixed primary path for mpc sources (and removed some extra whitespace)
[AROS.git] / compiler / posixc / sigismember.c
blobeca5b04752a843484e2f1a1d6f4ad3f8e638f059
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function sigismember().
6 */
8 #include <stddef.h>
10 /*****************************************************************************
12 NAME */
13 #include <signal.h>
15 int sigismember (
17 /* SYNOPSIS */
18 const 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 if (0 != (set->__val[i] & (signum & 0x1f)))
42 return 1;
43 return 0;
46 return -1;
47 } /* sigismember */