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