Lines Matching refs:sa
160 struct sigaction sa = {{0}}; in zend_signal_handler() local
165 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_handler()
166 sa.sa_handler = SIG_DFL; in zend_signal_handler()
167 sigemptyset(&sa.sa_mask); in zend_signal_handler()
172 if (sigaction(signo, &sa, NULL) == 0) { in zend_signal_handler()
197 struct sigaction sa = {{0}}; in zend_sigaction() local
213 sa.sa_flags = SA_SIGINFO | (act->sa_flags & SA_FLAGS_MASK); in zend_sigaction()
214 sa.sa_sigaction = zend_signal_handler_defer; in zend_sigaction()
215 sa.sa_mask = global_sigmask; in zend_sigaction()
217 if (sigaction(signo, &sa, NULL) < 0) { in zend_sigaction()
235 struct sigaction sa = {{0}}; in zend_signal() local
237 sa.sa_flags = 0; in zend_signal()
238 sa.sa_handler = handler; in zend_signal()
239 sa.sa_mask = global_sigmask; in zend_signal()
241 return zend_sigaction(signo, &sa, NULL TSRMLS_CC); in zend_signal()
251 struct sigaction sa = {{0}}; in zend_signal_register() local
253 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_register()
254 if ((sa.sa_flags & SA_SIGINFO) && sa.sa_sigaction == handler) { in zend_signal_register()
258 SIGG(handlers)[signo-1].flags = sa.sa_flags; in zend_signal_register()
259 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_register()
260 SIGG(handlers)[signo-1].handler = (void *)sa.sa_sigaction; in zend_signal_register()
262 SIGG(handlers)[signo-1].handler = (void *)sa.sa_handler; in zend_signal_register()
265 sa.sa_flags = SA_SIGINFO; /* we'll use a siginfo handler */ in zend_signal_register()
266 sa.sa_sigaction = handler; in zend_signal_register()
267 sa.sa_mask = global_sigmask; in zend_signal_register()
269 if (sigaction(signo, &sa, NULL) < 0) { in zend_signal_register()
299 struct sigaction sa = {{0}}; in zend_signal_deactivate() local
307 sigaction(zend_sigs[x], NULL, &sa); in zend_signal_deactivate()
308 if (sa.sa_sigaction != zend_signal_handler_defer) { in zend_signal_deactivate()
348 struct sigaction sa = {{0}}; in zend_signal_startup() local
381 if (sigaction(signo, NULL, &sa) == 0) { in zend_signal_startup()
382 global_orig_handlers[signo-1].flags = sa.sa_flags; in zend_signal_startup()
383 if (sa.sa_flags & SA_SIGINFO) { in zend_signal_startup()
384 global_orig_handlers[signo-1].handler = (void *) sa.sa_sigaction; in zend_signal_startup()
386 global_orig_handlers[signo-1].handler = (void *) sa.sa_handler; in zend_signal_startup()