Lines Matching refs:sig
15 static void check_signum(int sig) in check_signum() argument
17 if (sig < 1 || sig >= SIGCHAIN_MAX_SIGNALS) in check_signum()
18 die("BUG: signal out of range: %d", sig); in check_signum()
21 static int sigchain_push(int sig, sigchain_fun f) in sigchain_push() argument
23 struct sigchain_signal *s = signals + sig; in sigchain_push()
24 check_signum(sig); in sigchain_push()
27 s->old[s->n] = signal(sig, f); in sigchain_push()
34 int sigchain_pop(int sig) in sigchain_pop() argument
36 struct sigchain_signal *s = signals + sig; in sigchain_pop()
37 check_signum(sig); in sigchain_pop()
41 if (signal(sig, s->old[s->n - 1]) == SIG_ERR) in sigchain_pop()