purge remaining gpl code from clib, and make clib build again
[tangerine.git] / compiler / clib / sigdelset.c
blob27ae0007ae0e252d649cafbc495a4727350f496a
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function sigdelset().
6 */
8 /*****************************************************************************
10 NAME */
12 #include "__arosc_privdata.h"
14 #include <signal.h>
16 int sigdelset (
18 /* SYNOPSIS */
19 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 set->__val[i] &= ~(1 << (signum & 0x1f));
43 return 0;
46 return -1;
47 } /* sigdelset */