Home | History | Annotate | Download | only in lib

Lines Matching refs:sig

84 sigaction_handler (int sig)
90 if (sig < 0 || NSIG <= sig || !action_array[sig].sa_handler)
93 if (sig == SIGABRT)
106 handler = action_array[sig].sa_handler;
107 if ((action_array[sig].sa_flags & SA_RESETHAND) == 0)
108 signal (sig, sigaction_handler);
110 action_array[sig].sa_handler = NULL;
113 mask = action_array[sig].sa_mask;
114 if ((action_array[sig].sa_flags & SA_NODEFER) == 0)
115 sigaddset (&mask, sig);
120 handler (sig);
127 signal SIG. If not NULL, ACT describes the new behavior. If not
131 sigaction (int sig, const struct sigaction *restrict act,
138 if (sig < 0 || NSIG <= sig || sig == SIGKILL || sig == SIGSTOP
146 if (sig == SIGABRT_COMPAT)
147 sig = SIGABRT;
164 if (action_array[sig].sa_handler)
165 *oact = action_array[sig];
170 oact->sa_handler = signal (sig, SIG_DFL);
173 signal (sig, oact->sa_handler);
185 if (signal (sig, act->sa_handler) == SIG_ERR)
187 action_array[sig].sa_handler = NULL;
191 if (signal (sig, sigaction_handler) == SIG_ERR)
193 action_array[sig] = *act;