3 * - By John Hodge (thePowersGang)
6 * - POSIX Signal Emulation/Interface
11 #include "signal_list.h"
13 typedef void (*sighandler_t)(int);
15 //! Atomic integer type
16 typedef volatile int sig_atomic_t;
18 #define SIG_IGN ((void*)1)
19 #define SIG_DFL ((void*)0)
20 #define SIG_ERR ((void*)-1)
22 extern sighandler_t signal(int signum, sighandler_t handler);
24 extern int raise(int sig);
26 #include <sys/types.h> // libposix
28 typedef long long unsigned int sigset_t;
29 extern int sigemptyset(sigset_t *set);
30 extern int sigfillset(sigset_t *set);
32 typedef struct siginfo_s siginfo_t;
43 // TODO: There's others
48 sighandler_t sa_handler;
49 //void (*sa_sigaction)(int, siginfo_t *, void *);
54 #define SA_NOCLDSTOP 0x001
56 extern int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);