home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#) signal.h 2.4 88/08/09
- *
- * Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
- * Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
- * This Module contains Proprietary Information of
- * The Santa Cruz Operation, Microsoft Corporation
- * and AT&T, and should be treated as Confidential.
- */
-
- /*** signal.h
- */
-
- /*
- * No more than 32 signals (1-32) because they are
- * stored in bits in a long.
- */
-
- #define SIGHUP 1 /* hangup */
- #define SIGINT 2 /* interrupt (rubout) */
- #define SIGQUIT 3 /* quit (ASCII FS) */
- #define SIGILL 4 /* illegal instruction (not reset when caught) */
- #define SIGTRAP 5 /* trace trap (not reset when caught) */
- #define SIGIOT 6 /* IOT instruction */
- #define SIGABRT SIGIOT
- #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 */
- #define SIGUSR1 16 /* user defined signal 1 */
- #define SIGUSR2 17 /* user defined signal 2 */
- #define SIGCLD 18 /* death of a child */
- #define SIGPWR 19 /* power-fail restart */
-
- #ifndef M_I386
- #define NSIG 20
- #else
- #define SIGPOLL 20 /* A polled event ocurred */
- #define NSIG 21
- #endif
-
- #define MAXSIG 32 /* size of u_signal[], NSIG-1 <= MAXSIG*/
- /* MAXSIG is larger than we need now. */
- /* In the future, we can add more signal */
- /* number without changing user.h */
-
- #ifdef lint
- #define SIG_ERR (void(*)())0
- #else
- #define SIG_ERR (void(*)())-1
- #endif
-
- #define SIG_DFL (int (*)())0
-
- #ifdef lint
- #define SIG_IGN (int (*)())0
- #else
- #define SIG_IGN (int (*)())1
- #endif
- #if lint
- #define SIG_HOLD (void(*)())0
- #else
- #define SIG_HOLD (void(*)())2
- #endif
-
- /* The following definitions are only used by kernel */
- #ifdef M_KERNEL
- #define SIGNO_MASK 0xff
- #define SIGDEFER 0x100
- #define SIGHOLD 0x200
- #define SIGRELSE 0x400
- #define SIGIGNORE 0x800
- #define SIGPAUSE 0x1000
- #endif
-