Lines Matching defs:handler
592 static void signal_SA_RESTART(int sig, void (*handler)(int))
595 sa.sa_handler = handler;
602 static void set_fatal_sighandler(void (*handler)(int))
604 signal(SIGILL , handler);
605 signal(SIGTRAP, handler);
606 signal(SIGABRT, handler);
607 signal(SIGFPE , handler);
608 signal(SIGBUS , handler);
609 signal(SIGSEGV, handler);
611 signal(SIGHUP , handler);
612 signal(SIGPIPE, handler);
613 signal(SIGALRM, handler);
615 static void set_jobctrl_sighandler(void (*handler)(int))
617 signal(SIGTSTP, handler);
618 signal(SIGTTIN, handler);
619 signal(SIGTTOU, handler);
621 static void set_misc_sighandler(void (*handler)(int))
623 signal(SIGINT , handler);
624 signal(SIGQUIT, handler);
625 signal(SIGTERM, handler);
629 static void set_every_sighandler(void (*handler)(int))
631 set_fatal_sighandler(handler);
632 set_jobctrl_sighandler(handler);
633 set_misc_sighandler(handler);
634 signal(SIGCHLD, handler);
675 * May be called as signal handler for fatal signal
713 #define set_fatal_sighandler(handler) ((void)0)
714 #define set_jobctrl_sighandler(handler) ((void)0)
715 #define set_misc_sighandler(handler) ((void)0)
731 /* built-in 'eval' handler */
746 /* built-in 'cd <path>' handler */
762 /* built-in 'exec' handler */
771 /* built-in 'exit' handler */
787 /* built-in 'export VAR=value' handler */
825 /* built-in 'fg' and 'bg' handler */
888 /* built-in 'help' handler */
905 /* built-in 'jobs' handler */
923 /* built-in 'pwd' handler */
930 /* built-in 'read VAR' handler */
940 /* built-in 'set [VAR=value]' handler */
956 /* Built-in 'shift' handler */
972 /* Built-in '.' handler (read-in and execute commands from file) */
1013 /* built-in 'unset VAR' handler */
1983 /* ctrl-Z handler will store pid etc in pi */