Lines Matching refs:sig
27 * if sig>=0 then return signal text for signal sig
28 * otherwise return signal name for signal -sig
32 #include <sig.h>
35 fmtsignal(register int sig)
40 if (sig >= 0)
42 if (sig <= sig_info.sigmax)
43 buf = sig_info.text[sig];
47 sfsprintf(buf, z, "Signal %d", sig);
52 sig = -sig;
53 if (sig <= sig_info.sigmax)
54 buf = sig_info.name[sig];
58 sfsprintf(buf, z, "%d", sig);