diff options
Diffstat (limited to 'mit-pthreads/machdep/ultrix-4.2/__signal.h')
-rwxr-xr-x | mit-pthreads/machdep/ultrix-4.2/__signal.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/mit-pthreads/machdep/ultrix-4.2/__signal.h b/mit-pthreads/machdep/ultrix-4.2/__signal.h new file mode 100755 index 00000000000..68364772a6a --- /dev/null +++ b/mit-pthreads/machdep/ultrix-4.2/__signal.h @@ -0,0 +1,66 @@ +#include <ansi_compat.h> + +#define NSIG 32 + +#define SIGHUP 1 /* hangup */ +#define SIGINT 2 /* interrupt */ +#define SIGQUIT 3 /* quit */ +#define SIGILL 4 /* illegal instruction (not reset when caught) */ +#define SIGTRAP 5 /* trace trap (not reset when caught) */ +#define SIGIOT 6 /* IOT instruction */ +#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 SIGURG 16 /* urgent condition on IO channel */ +#define SIGSTOP 17 /* sendable stop signal not from tty */ +#define SIGTSTP 18 /* stop signal from tty */ +#define SIGCONT 19 /* continue a stopped process */ +#define SIGCHLD 20 /* to parent on child stop or exit */ +#define SIGTTIN 21 /* to readers pgrp upon background tty read */ +#define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ +#define SIGIO 23 /* input/output possible signal */ +#define SIGXCPU 24 /* exceeded CPU time limit */ +#define SIGXFSZ 25 /* exceeded file size limit */ +#define SIGVTALRM 26 /* virtual time alarm */ +#define SIGPROF 27 /* profiling time alarm */ +#define SIGWINCH 28 /* window size changes */ +#define SIGLOST 29 /* Sys-V rec lock: notify user upon server crash */ +#define SIGUSR1 30 /* User signal 1 (from SysV) */ +#define SIGUSR2 31 /* User signal 2 (from SysV) */ + +/* Add System V signal definitions (DLB001) */ +#define SIGCLD SIGCHLD /* System V name for SIGCHLD */ +#define SIGABRT SIGIOT + +typedef long sig_atomic_t; +typedef unsigned int sigset_t; + +struct sigaction { + void (*sa_handler)(); /* signal handler */ + sigset_t sa_mask; /* signal mask to apply */ + int sa_flags; /* see signal options below */ +}; + +/* Defines for sigprocmask() call. POSIX. + */ +#define SIG_BLOCK 1 /* Add these signals to block mask */ +#define SIG_UNBLOCK 2 /* Remove these signals from block mask */ +#define SIG_SETMASK 3 /* Set block mask to this mask */ + +#define SIG_ERR ((void (*)())(-1)) +#define SIG_DFL ((void (*)())( 0)) +#define SIG_IGN ((void (*)())( 1)) + + +#define __SIGFILLSET 0xffffffff +#define __SIGEMPTYSET 0 +#define __SIGADDSET(s,n) ((*s) |= (1 << ((n) - 1))) +#define __SIGDELSET(s,n) ((*s) &= ~(1 << ((n) - 1))) +#define __SIGISMEMBER(s,n) ((*s) & (1 << ((n) - 1))) + |