Lines Matching refs:sa

177 	struct sigaction sa;  in zend_signal_handler()  local
189 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_handler()
190 sa.sa_handler = SIG_DFL; in zend_signal_handler()
191 sigemptyset(&sa.sa_mask); in zend_signal_handler()
196 if (sigaction(signo, &sa, NULL) == 0) { in zend_signal_handler()
229 struct sigaction sa; in zend_sigaction() local
245 memset(&sa, 0, sizeof(sa)); in zend_sigaction()
247 sa.sa_sigaction = (void *) SIG_IGN; in zend_sigaction()
249 sa.sa_flags = SA_SIGINFO | (act->sa_flags & SA_FLAGS_MASK); in zend_sigaction()
250 sa.sa_sigaction = zend_signal_handler_defer; in zend_sigaction()
251 sa.sa_mask = global_sigmask; in zend_sigaction()
254 if (sigaction(signo, &sa, NULL) < 0) { in zend_sigaction()
272 struct sigaction sa; in zend_signal() local
274 memset(&sa, 0, sizeof(sa)); in zend_signal()
275 sa.sa_flags = 0; in zend_signal()
276 sa.sa_handler = handler; in zend_signal()
277 sa.sa_mask = global_sigmask; in zend_signal()
279 return zend_sigaction(signo, &sa, NULL); in zend_signal()
289 struct sigaction sa; in zend_signal_register() local
291 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_register()
292 if ((sa.sa_flags & SA_SIGINFO) && sa.sa_sigaction == handler) { in zend_signal_register()
296 SIGG(handlers)[signo-1].flags = sa.sa_flags; in zend_signal_register()
297 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_register()
298 SIGG(handlers)[signo-1].handler = (void *)sa.sa_sigaction; in zend_signal_register()
300 SIGG(handlers)[signo-1].handler = (void *)sa.sa_handler; in zend_signal_register()
303 sa.sa_flags = SA_SIGINFO; /* we'll use a siginfo handler */ in zend_signal_register()
304 sa.sa_sigaction = handler; in zend_signal_register()
305 sa.sa_mask = global_sigmask; in zend_signal_register()
307 if (sigaction(signo, &sa, NULL) < 0) { in zend_signal_register()
340 struct sigaction sa; in zend_signal_deactivate() local
348 sigaction(zend_sigs[x], NULL, &sa); in zend_signal_deactivate()
349 if (sa.sa_sigaction != zend_signal_handler_defer && in zend_signal_deactivate()
350 sa.sa_sigaction != (void *) SIG_IGN) { in zend_signal_deactivate()
393 struct sigaction sa; in zend_signal_init() local
398 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_init()
399 global_orig_handlers[signo-1].flags = sa.sa_flags; in zend_signal_init()
400 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_init()
401 global_orig_handlers[signo-1].handler = (void *) sa.sa_sigaction; in zend_signal_init()
403 global_orig_handlers[signo-1].handler = (void *) sa.sa_handler; in zend_signal_init()