scsh-0.5/scsh/hpux/signals.scm

49 lines
1.8 KiB
Scheme

;;; Signal constant definitions for NextStep
;;; Copyright (c) 1994 by Olin Shivers.
;;; Copyright (c) 1994 by Brian D. Carlstrom.
(define-syntax define-signals
(syntax-rules ()
((define-signals form ...)
(begin (define-enum-constant "signal" . form) ...))))
(define-signals
(hup 1) ; floating point exception
(int 2) ; Interrupt
(quit 3) ; quit
(ill 4) ; Illegal instruction (not reset when caught)
(trap 5) ; trace trap (not reset when caught)
(abrt 6) ; Process abort signal
(iot signal/abrt) ; IOT instruction
(emt 7) ; EMT instruction
(fpe 8) ; Floating point exception
(kill 9) ; kill (cannot be caught of ignored)
(bus 10) ; bus error
(segv 11) ; Segmentation violation
(sys 12) ; bad argument to system call
(pipe 13) ; write on a pipe with no one to read it
(alrm 14) ; alarm clock
(term 15) ; Software termination signal from kill
(usr1 16) ; user defined signal 1
(usr2 17) ; user defined signal 2
(chld 18) ; Child process terminated or stopped
(cld signal/chld) ; death of a child
(pwr 19) ; power state indication
(vtalrm 20) ; virtual timer alarm
(prof 21) ; profiling timer alarm
(io 22) ; asynchronous I/O
(poll signal/io) ; for HP-UX hpstreams signal
(winch 23) ; window size change signal
(window signal/winch) ; added for compatibility reasons
(stop 24) ; Stop signal (cannot be caught or ignored)
(tstp 25) ; Interactive stop signal
(cont 26) ; Continue if stopped
(ttin 27) ; Read from control terminal attempted by a
; member of a background process group
(ttou 28) ; Write to control terminal attempted by a
; member of a background process group
(urg 29) ; urgent condition on IO channel
(lost 30) ; remote lock lost (NFS)
(reserve 31) ; Save for future use
(dil 32)) ; DIL signal