Branch
Hash :
1a08f436
Author :
Date :
2010-08-25T09:23:17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
\ signal.fth 2.3 98/10/21
\ Copyright 1985-1990 Bradley Forthware
decimal
only forth also definitions
vocabulary signals
signals also definitions
32 constant NSIG
1 constant SIGHUP \ hangup
2 constant SIGINT \ interrupt
3 constant SIGQUIT \ quit
4 constant SIGILL \ illegal instruction not reset when caught
5 constant SIGTRAP \ trace trap not reset when caught
6 constant SIGIOT \ IOT instruction
7 constant SIGEMT \ EMT instruction
8 constant SIGFPE \ floating point exception
9 constant SIGKILL \ kill cannot be caught or ignored
10 constant SIGBUS \ bus error
11 constant SIGSEGV \ segmentation violation
12 constant SIGSYS \ bad argument to system call
13 constant SIGPIPE \ write on a pipe with no one to read it
14 constant SIGALRM \ alarm clock
15 constant SIGTERM \ software termination signal from kill
16 constant SIGURG \ urgent condition on IO channel
17 constant SIGSTOP \ sendable stop signal not from tty
18 constant SIGTSTP \ stop signal from tty
19 constant SIGCONT \ continue a stopped process
20 constant SIGCHLD \ to parent on child stop or exit
21 constant SIGTTIN \ to readers pgrp upon background tty read
22 constant SIGTTOU \ like TTIN for output if tp->t_local<OSTOP
23 constant SIGIO \ input/output possible signal
24 constant SIGXCPU \ exceeded CPU time limit
25 constant SIGXFSZ \ exceeded file size limit
26 constant SIGVTALRM \ virtual time alarm
27 constant SIGPROF \ profiling time alarm
28 constant SIGWINCH \ window changed
-1 constant BADSIG
0 constant SIG_DFL
1 constant SIG_IGN
: signal ( handler signal# -- oldhandler )
td 23 syscall lretval l>r 2drop lr>
;
only forth also definitions