header cleanup, conformance fixes - signals

This commit is contained in:
Rich Felker 2011-02-14 20:33:54 -05:00
commit 1322cb82a3
4 changed files with 36 additions and 25 deletions

View file

@ -1,3 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
struct __siginfo
{
int si_signo;
@ -57,12 +60,17 @@ struct __siginfo
#define SIG_UNBLOCK 1
#define SIG_SETMASK 2
#define SIG_HOLD ((void (*)(int)) 2)
#endif
#ifdef _GNU_SOURCE
#define NSIG 64
#endif
#define SIG_ERR ((void (*)(int))-1)
#define SIG_DFL ((void (*)(int)) 0)
#define SIG_IGN ((void (*)(int)) 1)
#define SIG_HOLD ((void (*)(int)) 2)
#define NSIG 64
#define SIGHUP 1
#define SIGINT 2