purge remaining gpl code from clib, and make clib build again
[tangerine.git] / compiler / clib / sigismember.c
blobcee7e6a30f054ecf31ea17c85b40df103d23cca4
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function sigismember().
6 */
8 /*****************************************************************************
10 NAME */
12 #include "__arosc_privdata.h"
14 #include <signal.h>
16 int sigismember (
18 /* SYNOPSIS */
19 const sigset_t *set,
20 int signum)
22 /* FUNCTION
24 INPUTS
26 RESULT
28 NOTES
30 EXAMPLE
32 BUGS
34 SEE ALSO
36 INTERNALS
38 ******************************************************************************/
40 if (NULL != set) {
41 ULONG i = (signum >> 5);
42 if (0 != (set->__val[i] & (signum & 0x1f)))
43 return 1;
44 return 0;
47 return -1;
48 } /* sigismember */