tools/toollib: remove from main Makefile.in
[AROS.git] / compiler / posixc / sigdelset.c
blob884040311660d7fd79135cf0c6a4d79da7a05f72
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function sigdelset().
6 */
8 #include <stddef.h>
10 /*****************************************************************************
12 NAME */
13 #include <signal.h>
15 int sigdelset (
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 } /* sigdelset */