Lines Matching refs:signo
145 zend_long signo; in PHP_RSHUTDOWN_FUNCTION() local
149 ZEND_HASH_FOREACH_NUM_KEY_VAL(&PCNTL_G(php_signal_table), signo, handle) { in PHP_RSHUTDOWN_FUNCTION()
151 php_signal(signo, (Sigfunc *)(zend_long)SIG_DFL, 0); in PHP_RSHUTDOWN_FUNCTION()
600 zend_long signo; in PHP_FUNCTION() local
606 Z_PARAM_LONG(signo) in PHP_FUNCTION()
612 if (signo < 1) { in PHP_FUNCTION()
617 if (signo >= PCNTL_G(num_signals)) { in PHP_FUNCTION()
638 if (restart_syscalls_is_null && signo == SIGALRM) { in PHP_FUNCTION()
648 if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), (int) restart_syscalls) == (void *)SIG_ERR) { in PHP_FUNCTION()
653 zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle); in PHP_FUNCTION()
669 handle = zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle); in PHP_FUNCTION()
672 if (php_signal4(signo, pcntl_signal_handler, (int) restart_syscalls, 1) == (void *)SIG_ERR) { in PHP_FUNCTION()
685 zend_long signo; in PHP_FUNCTION() local
688 Z_PARAM_LONG(signo) in PHP_FUNCTION()
691 if (signo < 1 || signo > 32) { in PHP_FUNCTION()
696 if ((prev_handle = zend_hash_index_find(&PCNTL_G(php_signal_table), signo)) != NULL) { in PHP_FUNCTION()
717 zend_long how, signo; in PHP_FUNCTION() local
735 signo = zval_get_long(user_signo); in PHP_FUNCTION()
736 if (sigaddset(&set, signo) != 0) { in PHP_FUNCTION()
755 for (signo = 1; signo < PCNTL_G(num_signals); ++signo) { in PHP_FUNCTION()
756 if (sigismember(&oldset, signo) != 1) { in PHP_FUNCTION()
759 add_next_index_long(user_oldset, signo); in PHP_FUNCTION()
775 int signo; in pcntl_sigwaitinfo() local
802 signo = zval_get_long(user_signo); in pcntl_sigwaitinfo()
803 if (sigaddset(&set, signo) != 0) { in pcntl_sigwaitinfo()
813 signo = sigtimedwait(&set, &siginfo, &timeout); in pcntl_sigwaitinfo()
815 signo = sigwaitinfo(&set, &siginfo); in pcntl_sigwaitinfo()
817 if (signo == -1 && errno != EAGAIN) { in pcntl_sigwaitinfo()
826 if (!signo && siginfo.si_signo) { in pcntl_sigwaitinfo()
827 signo = siginfo.si_signo; in pcntl_sigwaitinfo()
829 pcntl_siginfo_to_zval(signo, &siginfo, user_siginfo); in pcntl_sigwaitinfo()
830 RETURN_LONG(signo); in pcntl_sigwaitinfo()
849 static void pcntl_siginfo_to_zval(int signo, siginfo_t *siginfo, zval *user_siginfo) /* {{{ */ in pcntl_siginfo_to_zval() argument
851 if (signo > 0 && user_siginfo) { in pcntl_siginfo_to_zval()
860 switch(signo) { in pcntl_siginfo_to_zval()
895 if (SIGRTMIN <= signo && signo <= SIGRTMAX) { in pcntl_siginfo_to_zval()
1046 static void pcntl_signal_handler(int signo, siginfo_t *siginfo, void *context) in pcntl_signal_handler() argument
1048 static void pcntl_signal_handler(int signo) in pcntl_signal_handler()
1058 psig->signo = signo; in pcntl_signal_handler()
1111 if ((handle = zend_hash_index_find(&PCNTL_G(php_signal_table), queue->signo)) != NULL) { in pcntl_signal_dispatch()
1114 ZVAL_LONG(¶ms[0], queue->signo); in pcntl_signal_dispatch()
1117 pcntl_siginfo_to_zval(queue->signo, &queue->siginfo, ¶ms[1]); in pcntl_signal_dispatch()