|
|
1.1 ! root 1: #ifndef NSIG ! 2: #define NSIG 32 ! 3: ! 4: #define SIGHUP 1 /* hangup */ ! 5: #define SIGINT 2 /* interrupt */ ! 6: #define SIGQUIT 3 /* quit */ ! 7: #define SIGILL 4 /* illegal instruction (not reset when caught) */ ! 8: #define SIGTRAP 5 /* trace trap (not reset when caught) */ ! 9: #define SIGIOT 6 /* IOT instruction */ ! 10: #define SIGEMT 7 /* EMT instruction */ ! 11: #define SIGFPE 8 /* floating point exception */ ! 12: #define K_INTOVF 1 /* integer overflow */ ! 13: #define K_INTDIV 2 /* integer divide by zero */ ! 14: #define K_FLTOVF 3 /* floating overflow */ ! 15: #define K_FLTDIV 4 /* floating/decimal divide by zero */ ! 16: #define K_FLTUND 5 /* floating underflow */ ! 17: #define K_DECOVF 6 /* decimal overflow */ ! 18: #define K_SUBRNG 7 /* subscript out of range */ ! 19: #define SIGKILL 9 /* kill (cannot be caught or ignored) */ ! 20: #define SIGKIL 9 ! 21: #define SIGBUS 10 /* bus error */ ! 22: #define SIGSEGV 11 /* segmentation violation */ ! 23: #define SIGSYS 12 /* bad argument to system call */ ! 24: #define SIGPIPE 13 /* write on a pipe with no one to read it */ ! 25: #define SIGALRM 14 /* alarm clock */ ! 26: #define SIGTERM 15 /* software termination signal from kill */ ! 27: ! 28: #define SIGSTOP 17 /* sendable stop signal not from tty */ ! 29: #define SIGTSTP 18 /* stop signal from tty */ ! 30: #define SIGCONT 19 /* continue a stopped process */ ! 31: #define SIGCHLD 20 /* to parent on child stop or exit */ ! 32: #define SIGTTIN 21 /* to readers pgrp upon background tty read */ ! 33: #define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ ! 34: #define SIGTINT 23 /* to pgrp on every input character if LINTRUP */ ! 35: #define SIGXCPU 24 /* exceeded CPU time limit */ ! 36: #define SIGXFSZ 25 /* exceeded file size limit */ ! 37: ! 38: #ifndef KERNEL ! 39: typedef int (*SIG_TYP)(); ! 40: SIG_TYP signal(); ! 41: #endif ! 42: ! 43: #define BADSIG (int (*)())-1 ! 44: #define SIG_DFL (int (*)())0 ! 45: #define SIG_IGN (int (*)())1 ! 46: #ifdef KERNEL ! 47: #define SIG_CATCH (int (*)())2 ! 48: #endif ! 49: #define SIG_HOLD (int (*)())3 ! 50: ! 51: #define SIGISDEFER(x) (((int)(x) & 1) != 0) ! 52: #define SIGUNDEFER(x) (int (*)())((int)(x) &~ 1) ! 53: #define DEFERSIG(x) (int (*)())((int)(x) | 1) ! 54: ! 55: #define SIGNUMMASK 0377 /* to extract pure signal number */ ! 56: #define SIGDOPAUSE 0400 /* do pause after setting action */ ! 57: #define SIGDORTI 01000 /* do ret+rti after setting action */ ! 58: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.