Lines Matching refs:sa
180 struct sigaction sa; in zend_signal_handler() local
192 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_handler()
193 sa.sa_handler = SIG_DFL; in zend_signal_handler()
194 sigemptyset(&sa.sa_mask); in zend_signal_handler()
199 if (sigaction(signo, &sa, NULL) == 0) { in zend_signal_handler()
232 struct sigaction sa; in zend_sigaction() local
248 memset(&sa, 0, sizeof(sa)); in zend_sigaction()
250 sa.sa_sigaction = (void *) SIG_IGN; in zend_sigaction()
252 sa.sa_flags = SA_SIGINFO | (act->sa_flags & SA_FLAGS_MASK); in zend_sigaction()
253 sa.sa_sigaction = zend_signal_handler_defer; in zend_sigaction()
254 sa.sa_mask = global_sigmask; in zend_sigaction()
257 if (sigaction(signo, &sa, NULL) < 0) { in zend_sigaction()
275 struct sigaction sa; in zend_signal() local
277 memset(&sa, 0, sizeof(sa)); in zend_signal()
278 sa.sa_flags = 0; in zend_signal()
279 sa.sa_handler = handler; in zend_signal()
280 sa.sa_mask = global_sigmask; in zend_signal()
282 return zend_sigaction(signo, &sa, NULL); in zend_signal()
292 struct sigaction sa; in zend_signal_register() local
294 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_register()
295 if ((sa.sa_flags & SA_SIGINFO) && sa.sa_sigaction == handler) { in zend_signal_register()
299 SIGG(handlers)[signo-1].flags = sa.sa_flags; in zend_signal_register()
300 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_register()
301 SIGG(handlers)[signo-1].handler = (void *)sa.sa_sigaction; in zend_signal_register()
303 SIGG(handlers)[signo-1].handler = (void *)sa.sa_handler; in zend_signal_register()
306 sa.sa_flags = SA_SIGINFO; /* we'll use a siginfo handler */ in zend_signal_register()
307 sa.sa_sigaction = handler; in zend_signal_register()
308 sa.sa_mask = global_sigmask; in zend_signal_register()
310 if (sigaction(signo, &sa, NULL) < 0) { in zend_signal_register()
342 struct sigaction sa; in zend_signal_deactivate() local
349 sigaction(zend_sigs[x], NULL, &sa); in zend_signal_deactivate()
350 if (sa.sa_sigaction != zend_signal_handler_defer) { in zend_signal_deactivate()
383 struct sigaction sa; in zend_signal_init() local
388 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_init()
389 global_orig_handlers[signo-1].flags = sa.sa_flags; in zend_signal_init()
390 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_init()
391 global_orig_handlers[signo-1].handler = (void *) sa.sa_sigaction; in zend_signal_init()
393 global_orig_handlers[signo-1].handler = (void *) sa.sa_handler; in zend_signal_init()