(*
    Title: 	UnixSignals
    LastEdit:	"Fri Nov 11 12:15:33 1983"
    Author: 	Mick Jordan
		Cambridge University Computer Laboratory

    standard version 7 signals 
*)


DEFINITION MODULE UnixSignals;
FROM SYSTEM IMPORT WORD;

EXPORT QUALIFIED 
    SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGIOT,
    SIGEMT, SIGFPE, SIGKILL, SIGBUS, SIGSEGV, SIGSYS,
    SIGPIPE, SIGALARM, SIGTERM, 
    SIGIGN, SIGDFL, Signal;
    
CONST
    SIGHUP=1; SIGINT=2; SIGQUIT=3; SIGILL=4; SIGTRAP=5; SIGIOT=6;
    SIGEMT=7; SIGFPE=8; SIGKILL=9; SIGBUS=10; SIGSEGV=11; SIGSYS=12;
    SIGPIPE=13; SIGALARM=14; SIGTERM=15;
    SIGMIN = 1; SIGMAX = 15;
    SIGIGN = 1; SIGDFL = 0;

PROCEDURE Signal(signo: CARDINAL; handler: WORD): WORD;
(*  just like the C interface; handler can either be SIGDFL, SIGIGN
    or a PROC; ditto for the return.
*)

END UnixSignals.
