Lines Matching full:sig
34 #include "sig.h"
50 signal_recorder(int sig) in signal_recorder() argument
52 caused[sig - 1]++; in signal_recorder()
58 * Set up signal_recorder to handle the given sig and record ``fn'' as
64 sig_signal(int sig, sig_type fn) in sig_signal() argument
68 if (sig <= 0 || sig > NSIG) { in sig_signal()
72 return signal(sig, fn); in sig_signal()
74 Result = handler[sig - 1]; in sig_signal()
76 signal(sig, fn); in sig_signal()
77 handler[sig - 1] = (sig_type) 0; in sig_signal()
79 handler[sig - 1] = fn; in sig_signal()
80 signal(sig, signal_recorder); in sig_signal()
82 caused[sig - 1] = 0; in sig_signal()
97 int sig; in sig_Handle() local
108 for (sig = 0; sig < NSIG; sig++) in sig_Handle()
109 if (caused[sig]) { in sig_Handle()
110 caused[sig]--; in sig_Handle()
113 (*handler[sig])(sig + 1); in sig_Handle()