123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef _ASM_SIGNAL_H
- #define _ASM_SIGNAL_H
- #include <linux/types.h>
- #define _NSIG 128
- #define _NSIG_BPW (sizeof(unsigned long) * 8)
- #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
- typedef struct {
- unsigned long sig[_NSIG_WORDS];
- } sigset_t;
- typedef unsigned long old_sigset_t;
- #define SIGHUP 1
- #define SIGINT 2
- #define SIGQUIT 3
- #define SIGILL 4
- #define SIGTRAP 5
- #define SIGIOT 6
- #define SIGABRT SIGIOT
- #define SIGEMT 7
- #define SIGFPE 8
- #define SIGKILL 9
- #define SIGBUS 10
- #define SIGSEGV 11
- #define SIGSYS 12
- #define SIGPIPE 13
- #define SIGALRM 14
- #define SIGTERM 15
- #define SIGUSR1 16
- #define SIGUSR2 17
- #define SIGCHLD 18
- #define SIGCLD SIGCHLD
- #define SIGPWR 19
- #define SIGWINCH 20
- #define SIGURG 21
- #define SIGIO 22
- #define SIGPOLL SIGIO
- #define SIGSTOP 23
- #define SIGTSTP 24
- #define SIGCONT 25
- #define SIGTTIN 26
- #define SIGTTOU 27
- #define SIGVTALRM 28
- #define SIGPROF 29
- #define SIGXCPU 30
- #define SIGXFSZ 31
- #define SIGRTMIN 32
- #define SIGRTMAX _NSIG
- #define SA_ONSTACK 0x08000000
- #define SA_RESETHAND 0x80000000
- #define SA_RESTART 0x10000000
- #define SA_SIGINFO 0x00000008
- #define SA_NODEFER 0x40000000
- #define SA_NOCLDWAIT 0x00010000
- #define SA_NOCLDSTOP 0x00000001
- #define SA_NOMASK SA_NODEFER
- #define SA_ONESHOT SA_RESETHAND
- #define MINSIGSTKSZ 2048
- #define SIGSTKSZ 8192
- #define SIG_BLOCK 1
- #define SIG_UNBLOCK 2
- #define SIG_SETMASK 3
- #include <asm-generic/signal-defs.h>
- struct sigaction {
- unsigned int sa_flags;
- __sighandler_t sa_handler;
- sigset_t sa_mask;
- };
- typedef struct sigaltstack {
- void *ss_sp;
- size_t ss_size;
- int ss_flags;
- } stack_t;
- #endif
|