r6831@lvps87-230-33-50: verhaegs | 2008-02-03 14:08:57 +0100
[tangerine.git] / compiler / clib / sigaddset.c
blobf3b8b442f55d1afc42f7ce26cccf389da09c5dae
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 ANSI C function sigaddset().
6 */
8 /*****************************************************************************
10 NAME */
12 #include "__arosc_privdata.h"
14 #include <signal.h>
16 int sigaddset (
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 } /* sigaddset */