Lines Matching refs:signo
3662 ignoresig(int signo) in ignoresig() argument
3665 if (sigmode[signo - 1] != S_IGN && sigmode[signo - 1] != S_HARD_IGN) { in ignoresig()
3667 signal(signo, SIG_IGN); in ignoresig()
3669 sigmode[signo - 1] = S_HARD_IGN; in ignoresig()
3676 signal_handler(int signo) in signal_handler() argument
3678 if (signo == SIGCHLD) { in signal_handler()
3684 gotsig[signo - 1] = 1; in signal_handler()
3685 pending_sig = signo; in signal_handler()
3687 if (signo == SIGINT && !trap[SIGINT]) { in signal_handler()
3701 setsignal(int signo) in setsignal() argument
3707 t = trap[signo]; in setsignal()
3716 switch (signo) { in setsignal()
3753 if (signo == SIGCHLD) in setsignal()
3756 t = &sigmode[signo - 1]; in setsignal()
3760 if (sigaction(signo, NULL, &act)) { in setsignal()
3770 && (signo == SIGTSTP || signo == SIGTTIN || signo == SIGTTOU) in setsignal()
3802 sigaction_set(signo, &act); in setsignal()
13893 int signo, exitcode; in trapcmd() local
13898 for (signo = 0; signo <= NTRAP_LAST; signo++) { in trapcmd()
13899 char *tr = trap_ptr[signo]; in trapcmd()
13907 (signo == NTRAP_ERR) ? "ERR" : get_signame(signo)); in trapcmd()
13933 signo = strcmp(*ap, "ERR") == 0 ? NTRAP_ERR : get_signum(*ap); in trapcmd()
13934 if (signo < 0) { in trapcmd()
13950 free(trap[signo]); in trapcmd()
13951 trap[signo] = action; in trapcmd()
13952 if (signo != 0 && signo < NSIG) in trapcmd()
13953 setsignal(signo); in trapcmd()