1
#include <ansi_compat.h>
5
#define SIGHUP 1 /* hangup */
6
#define SIGINT 2 /* interrupt */
7
#define SIGQUIT 3 /* quit */
8
#define SIGILL 4 /* illegal instruction (not reset when caught) */
9
#define SIGTRAP 5 /* trace trap (not reset when caught) */
10
#define SIGIOT 6 /* IOT instruction */
11
#define SIGEMT 7 /* EMT instruction */
12
#define SIGFPE 8 /* floating point exception */
13
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
14
#define SIGBUS 10 /* bus error */
15
#define SIGSEGV 11 /* segmentation violation */
16
#define SIGSYS 12 /* bad argument to system call */
17
#define SIGPIPE 13 /* write on a pipe with no one to read it */
18
#define SIGALRM 14 /* alarm clock */
19
#define SIGTERM 15 /* software termination signal from kill */
20
#define SIGURG 16 /* urgent condition on IO channel */
21
#define SIGSTOP 17 /* sendable stop signal not from tty */
22
#define SIGTSTP 18 /* stop signal from tty */
23
#define SIGCONT 19 /* continue a stopped process */
24
#define SIGCHLD 20 /* to parent on child stop or exit */
25
#define SIGTTIN 21 /* to readers pgrp upon background tty read */
26
#define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */
27
#define SIGIO 23 /* input/output possible signal */
28
#define SIGXCPU 24 /* exceeded CPU time limit */
29
#define SIGXFSZ 25 /* exceeded file size limit */
30
#define SIGVTALRM 26 /* virtual time alarm */
31
#define SIGPROF 27 /* profiling time alarm */
32
#define SIGWINCH 28 /* window size changes */
33
#define SIGLOST 29 /* Sys-V rec lock: notify user upon server crash */
34
#define SIGUSR1 30 /* User signal 1 (from SysV) */
35
#define SIGUSR2 31 /* User signal 2 (from SysV) */
37
/* Add System V signal definitions (DLB001) */
38
#define SIGCLD SIGCHLD /* System V name for SIGCHLD */
39
#define SIGABRT SIGIOT
41
typedef long sig_atomic_t;
42
typedef unsigned int sigset_t;
45
void (*sa_handler)(); /* signal handler */
46
sigset_t sa_mask; /* signal mask to apply */
47
int sa_flags; /* see signal options below */
50
/* Defines for sigprocmask() call. POSIX.
52
#define SIG_BLOCK 1 /* Add these signals to block mask */
53
#define SIG_UNBLOCK 2 /* Remove these signals from block mask */
54
#define SIG_SETMASK 3 /* Set block mask to this mask */
56
#define SIG_ERR ((void (*)())(-1))
57
#define SIG_DFL ((void (*)())( 0))
58
#define SIG_IGN ((void (*)())( 1))
61
#define __SIGFILLSET 0xffffffff
62
#define __SIGEMPTYSET 0
63
#define __SIGADDSET(s,n) ((*s) |= (1 << ((n) - 1)))
64
#define __SIGDELSET(s,n) ((*s) &= ~(1 << ((n) - 1)))
65
#define __SIGISMEMBER(s,n) ((*s) & (1 << ((n) - 1)))