Lines Matching refs:signal
66 * @(#)signal.h 8.2 (Berkeley) 1/21/94
81 #include <machine/signal.h> /* sigcontext; codes for SIGILL, SIGFPE */
102 #define SIGTERM 15 /* software termination signal from kill */
104 #define SIGSTOP 17 /* sendable stop signal not from tty */
105 #define SIGTSTP 18 /* stop signal from tty */
111 #define SIGIO 23 /* input/output possible signal */
121 #define SIGUSR1 30 /* user defined signal 1 */
122 #define SIGUSR2 31 /* user defined signal 2 */
220 int si_signo; /* signal number */
222 int si_code; /* signal code */
227 union sigval si_value; /* signal value */
235 int si_signo; /* signal number */
237 int si_code; /* signal code */
242 union user_sigval si_value; /* signal value */
250 * When the signal is SIGILL or SIGFPE, si_addr contains the address of
252 * When the signal is SIGSEGV or SIGBUS, si_addr contains the address of
255 * If the signal is SIGCHLD, the si_pid field will contain the child process ID,
256 * si_status contains the exit value or signal and
257 * si_uid contains the real user ID of the process that sent the signal.
326 /* union for signal handlers */
335 union __sigaction_u __sigaction_u; /* signal handler */
337 sigset_t sa_mask; /* signal mask to apply */
338 int sa_flags; /* see signal options below */
345 union __sigaction_u __sigaction_u; /* signal handler */
346 sigset_t sa_mask; /* signal mask to apply */
347 int sa_flags; /* see signal options below */
359 union __user_sigaction_u __sigaction_u; /* signal handler */
360 sigset_t sa_mask; /* signal mask to apply */
361 int sa_flags; /* see signal options below */
365 union __user_sigaction_u __sigaction_u; /* signal handler */
366 user_addr_t sa_tramp; /* signal mask to apply */
367 sigset_t sa_mask; /* signal mask to apply */
368 int sa_flags; /* see signal options below */
385 #define SA_ONSTACK 0x0001 /* take signal on signal stack */
386 #define SA_RESTART 0x0002 /* restart system on signal return */
390 #define SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */
392 #define SA_NODEFER 0x0010 /* don't mask the signal we're delivering */
394 #define SA_SIGINFO 0x0040 /* signal handler with SA_SIGINFO args */
398 #define SA_64REGSET 0x0200 /* signal handler with SA_SIGINFO args with 64bit regs information */
409 #define SIG_BLOCK 1 /* block specified signal set */
410 #define SIG_UNBLOCK 2 /* unblock specified signal set */
411 #define SIG_SETMASK 3 /* set specified signal set */
414 #define SI_USER 0x10001 /* [CX] signal from kill() */
415 #define SI_QUEUE 0x10002 /* [CX] signal from sigqueue() */
421 typedef void (*sig_t)(int); /* type of signal function */
430 user_addr_t ss_sp; /* signal stack base */
431 user_size_t ss_size; /* signal stack length */
437 #define SS_ONSTACK 0x0001 /* take signal on signal stack */
448 void (*sv_handler)(int); /* signal handler */
449 int sv_mask; /* signal mask to apply */
450 int sv_flags; /* see signal options below */
467 char *ss_sp; /* signal stack pointer */
473 * Macro for converting signal number to a mask suitable for
495 * For historical reasons; programs expect signal's return value to be
496 * defined by <sys/signal.h>.
499 void (*signal(int, void (*)(int)))(int);