Lines Matching refs:signo

890 	zend_long signo;  in PHP_FUNCTION()  local
895 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "lz|b!", &signo, &handle, &restart_syscalls, &restart_s… in PHP_FUNCTION()
899 if (signo < 1) { in PHP_FUNCTION()
904 if (signo >= NSIG) { in PHP_FUNCTION()
925 if (restart_syscalls_is_null && signo == SIGALRM) { in PHP_FUNCTION()
935 if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), (int) restart_syscalls) == (void *)SIG_ERR) { in PHP_FUNCTION()
940 zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle); in PHP_FUNCTION()
956 handle = zend_hash_index_update(&PCNTL_G(php_signal_table), signo, handle); in PHP_FUNCTION()
959 if (php_signal4(signo, pcntl_signal_handler, (int) restart_syscalls, 1) == (void *)SIG_ERR) { in PHP_FUNCTION()
972 zend_long signo; in PHP_FUNCTION() local
974 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &signo) == FAILURE) { in PHP_FUNCTION()
978 if (signo < 1 || signo > 32) { in PHP_FUNCTION()
983 if ((prev_handle = zend_hash_index_find(&PCNTL_G(php_signal_table), signo)) != NULL) { in PHP_FUNCTION()
1006 zend_long how, signo; in PHP_FUNCTION() local
1021 signo = zval_get_long(user_signo); in PHP_FUNCTION()
1022 if (sigaddset(&set, signo) != 0) { in PHP_FUNCTION()
1041 for (signo = 1; signo < NSIG; ++signo) { in PHP_FUNCTION()
1042 if (sigismember(&oldset, signo) != 1) { in PHP_FUNCTION()
1045 add_next_index_long(user_oldset, signo); in PHP_FUNCTION()
1061 int signo; in pcntl_sigwaitinfo() local
1082 signo = zval_get_long(user_signo); in pcntl_sigwaitinfo()
1083 if (sigaddset(&set, signo) != 0) { in pcntl_sigwaitinfo()
1093 signo = sigtimedwait(&set, &siginfo, &timeout); in pcntl_sigwaitinfo()
1095 signo = sigwaitinfo(&set, &siginfo); in pcntl_sigwaitinfo()
1097 if (signo == -1 && errno != EAGAIN) { in pcntl_sigwaitinfo()
1106 if (!signo && siginfo.si_signo) { in pcntl_sigwaitinfo()
1107 signo = siginfo.si_signo; in pcntl_sigwaitinfo()
1109 pcntl_siginfo_to_zval(signo, &siginfo, user_siginfo); in pcntl_sigwaitinfo()
1110 RETURN_LONG(signo); in pcntl_sigwaitinfo()
1129 static void pcntl_siginfo_to_zval(int signo, siginfo_t *siginfo, zval *user_siginfo) /* {{{ */ in pcntl_siginfo_to_zval() argument
1131 if (signo > 0 && user_siginfo) { in pcntl_siginfo_to_zval()
1140 switch(signo) { in pcntl_siginfo_to_zval()
1175 if (SIGRTMIN <= signo && signo <= SIGRTMAX) { in pcntl_siginfo_to_zval()
1290 static void pcntl_signal_handler(int signo, siginfo_t *siginfo, void *context) in pcntl_signal_handler() argument
1292 static void pcntl_signal_handler(int signo) in pcntl_signal_handler()
1304 psig->signo = signo; in pcntl_signal_handler()
1354 if ((handle = zend_hash_index_find(&PCNTL_G(php_signal_table), queue->signo)) != NULL) { in pcntl_signal_dispatch()
1357 ZVAL_LONG(&params[0], queue->signo); in pcntl_signal_dispatch()
1360 pcntl_siginfo_to_zval(queue->signo, &queue->siginfo, &params[1]); in pcntl_signal_dispatch()