The structure Posix.Signal defines the symbolic names of all the POSIX
signals (see Section 3.3 of the POSIX standard 1003.1,1996), and
provides conversion functions between them and their underlying
representations.
signature POSIX_SIGNAL =
sigeqtype signal
valtoWord : signal -> SysWord.word
valfromWord : SysWord.word -> signal
valabrt : signal
valalrm : signal
valbus : signal
valfpe : signal
valhup : signal
valill : signal
valint : signal
valkill : signal
valpipe : signal
valquit : signal
valsegv : signal
valterm : signal
valusr1 : signal
valusr2 : signal
valchld : signal
valcont : signal
valstop : signal
valtstp : signal
valttin : signal
valttou : signal
end
[eqtype signal]
The type of a POSIX signal, an asynchronous
notification of an event.
These funtions convert between a signal identifier and its underlying
integer representation. Note that fromWord does not check that the
result corresponds to a valid POSIX signal.
The name of the corresponding POSIX signal can be derived by
capitalizing all letters and adding the string ``SIG'' as a
prefix. For example, the POSIX signal associated with usr2 is SIGUSR2.