|
|
1.1 ! root 1: .TH PSIGNAL 3 "25 February 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: psignal, sys_siglist \- system signal messages ! 5: .SH SYNOPSIS ! 6: .nf ! 7: .B psignal(sig, s) ! 8: .B unsigned sig; ! 9: .B char *s; ! 10: .PP ! 11: .B char *sys_siglist[]; ! 12: .fi ! 13: .SH DESCRIPTION ! 14: .I Psignal ! 15: produces a short message ! 16: on the standard error file ! 17: describing the indicated signal. ! 18: First the argument string ! 19: .I s ! 20: is printed, then a colon, then the name of the signal ! 21: and a new-line. ! 22: Most usefully, the argument string is the name ! 23: of the program which incurred the signal. ! 24: The signal number should be from among those found ! 25: in ! 26: .IR <signal.h> . ! 27: .PP ! 28: To simplify variant formatting ! 29: of signal names, the vector of message strings ! 30: .I sys_siglist ! 31: is provided; ! 32: the signal number ! 33: can be used as an index in this table to get the ! 34: signal name without the newline. ! 35: The define NSIG defined in ! 36: .RI < signal.h > ! 37: is the number of messages provided for in the table; ! 38: it should be checked because new ! 39: signals may be added to the system before ! 40: they are added to the table. ! 41: .SH "SEE ALSO" ! 42: sigvec(2), ! 43: perror(3)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.