Fixed compatibility of output.
[AROS.git] / compiler / posixc / sigfillset.c
blob4e4605f037e9234d0784715da1a76a8c22557979
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 function sigfillset().
6 */
8 #include <string.h>
9 #include <errno.h>
11 /*****************************************************************************
13 NAME */
14 #include <signal.h>
16 int sigfillset (
18 /* SYNOPSIS */
19 sigset_t *set)
21 /* FUNCTION
22 Initialise the signal set
24 INPUTS
25 Set to initialise
27 RESULT
28 "0" for success, "-1" for failure (errno contains error)
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
38 INTERNALS
39 POSIX.1-2001.
41 ******************************************************************************/
43 if (NULL != set) {
44 memset(&set->__val, 0xff, sizeof(set->__val));
45 return 0;
48 errno = EFAULT;
50 return -1; /* return failure */
51 } /* sigfillset */