31 lines
1.3 KiB
C
31 lines
1.3 KiB
C
#ifndef _ACK_SIGNAL_H
|
|
#define _ACK_SIGNAL_H
|
|
|
|
typedef int sig_atomic_t;
|
|
struct sigaction;
|
|
typedef unsigned short sigset_t;
|
|
|
|
#define SIG_ERR ((sighandler_t) -1) /* Error return. */
|
|
#define SIG_DFL ((sighandler_t) 0) /* Default action. */
|
|
#define SIG_IGN ((sighandler_t) 1) /* Ignore signal. */
|
|
|
|
#define _NSIG 16 /* number of signals used */
|
|
|
|
#define SIGHUP 1 /* hangup */
|
|
#define SIGINT 2 /* interrupt (DEL) */
|
|
#define SIGQUIT 3 /* quit (ASCII FS) */
|
|
#define SIGILL 4 /* illegal instruction */
|
|
#define SIGTRAP 5 /* trace trap (not reset when caught) */
|
|
#define SIGABRT 6 /* IOT instruction */
|
|
#define SIGIOT 6 /* SIGABRT for people who speak PDP-11 */
|
|
#define SIGEMT 7 /* EMT instruction */
|
|
#define SIGFPE 8 /* floating point exception */
|
|
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
|
|
#define SIGBUS 10 /* bus error */
|
|
#define SIGSEGV 11 /* segmentation violation */
|
|
#define SIGSYS 12 /* bad argument to system call */
|
|
#define SIGPIPE 13 /* write on a pipe with no one to read it */
|
|
#define SIGALRM 14 /* alarm clock */
|
|
#define SIGTERM 15 /* software termination signal from kill */
|
|
|
|
#endif
|