1 #ifndef __LUNAIX_SIGNAL_H
2 #define __LUNAIX_SIGNAL_H
4 #include <lunaix/syscall.h>
8 #define _SIG_PENDING(bitmap, sig) ((bitmap) & (1 << (sig)))
13 #define _SIGCLD _SIGCHLD
19 #define __SIGNAL(num) (1 << (num))
20 #define __SET_SIGNAL(bitmap, num) (bitmap = bitmap | __SIGNAL(num))
22 #define _SIGNAL_UNMASKABLE (__SIGNAL(_SIGKILL) | __SIGNAL(_SIGSTOP))
25 #define _SIG_UNBLOCK 2
26 #define _SIG_SETMASK 3
28 typedef unsigned int sigset_t;
29 typedef void (*sighandler_t)(int);
31 __LXSYSCALL2(int, signal, int, signum, sighandler_t, handler);
33 #endif /* __LUNAIX_SIGNAL_H */