Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 37) sorted by relevance

12

/busybox-1.35.0/libbb/
Dsignals.c80 void FAST_FUNC sig_block(int sig) in sig_block() argument
84 sigaddset(&ss, sig); in sig_block()
88 void FAST_FUNC sig_unblock(int sig) in sig_unblock() argument
92 sigaddset(&ss, sig); in sig_unblock()
104 void FAST_FUNC kill_myself_with_sig(int sig) in kill_myself_with_sig() argument
106 signal(sig, SIG_DFL); in kill_myself_with_sig()
107 sig_unblock(sig); in kill_myself_with_sig()
108 raise(sig); in kill_myself_with_sig()
109 _exit(sig | 128); /* Should not reach it */ in kill_myself_with_sig()
112 void FAST_FUNC signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)) in signal_SA_RESTART_empty_mask() argument
[all …]
/busybox-1.35.0/networking/udhcp/
Dsignalpipe.c26 static void signal_handler(int sig) in signal_handler() argument
29 unsigned char ch = sig; /* use char, avoid dealing with partial writes */ in signal_handler()
87 unsigned char sig; in udhcp_sp_read() local
90 if (safe_read(READ_FD, &sig, 1) != 1) in udhcp_sp_read()
93 return sig; in udhcp_sp_read()
/busybox-1.35.0/util-linux/volume_id/
Dunused_lsi_raid.c30 uint8_t sig[6]; member
51 if (memcmp(lsi->sig, LSI_SIGNATURE, sizeof(LSI_SIGNATURE)-1) != 0) in volume_id_probe_lsi_mega_raid()
Dunused_isw_raid.c30 uint8_t sig[32]; member
56 if (memcmp(isw->sig, ISW_SIGNATURE, sizeof(ISW_SIGNATURE)-1) != 0) in volume_id_probe_intel_software_raid()
Dunused_promise_raid.c30 uint8_t sig[24]; member
59 if (memcmp(pdc->sig, PDC_SIGNATURE, sizeof(PDC_SIGNATURE)-1) == 0) in volume_id_probe_promise_fasttrack_raid()
/busybox-1.35.0/init/
Dinit.c810 static void halt_reboot_pwoff(int sig) NORETURN;
811 static void halt_reboot_pwoff(int sig) in halt_reboot_pwoff() argument
828 if (sig == SIGTERM) { in halt_reboot_pwoff()
831 } else if (sig == SIGUSR2) { in halt_reboot_pwoff()
888 static void stop_handler(int sig UNUSED_PARAM) in stop_handler()
978 int sig = sigtimedwait(&G.delayed_sigset, /* siginfo_t */ NULL, ts); in check_delayed_sigs() local
979 if (sig <= 0) in check_delayed_sigs()
985 if (sig == SIGHUP) in check_delayed_sigs()
988 if (sig == SIGINT) in check_delayed_sigs()
990 if (sig == SIGQUIT) { in check_delayed_sigs()
[all …]
/busybox-1.35.0/runit/
Drunsvdir.c312 unsigned sig; in runsvdir_main() local
392 sig = bb_got_signal; in runsvdir_main()
393 if (!sig) in runsvdir_main()
404 opt_s_argv[1] = utoa(sig); in runsvdir_main()
414 if (sig == SIGHUP) { in runsvdir_main()
422 return (SIGHUP == sig) ? 111 : EXIT_SUCCESS; in runsvdir_main()
Drunsv.c410 int sig; in ctrl() local
459 sig = SIGALRM; in ctrl()
462 sig = SIGHUP; in ctrl()
465 sig = SIGINT; in ctrl()
468 sig = SIGQUIT; in ctrl()
471 sig = SIGUSR1; in ctrl()
474 sig = SIGUSR2; in ctrl()
480 kill(s->pid, sig); in ctrl()
/busybox-1.35.0/procps/
Dfuser.c281 int sig; in fuser_main() local
290 sig = get_signum(&arg[1]); in fuser_main()
291 if (sig < 0) in fuser_main()
294 G.killsig = sig; in fuser_main()
/busybox-1.35.0/sysklogd/
Dlogread.c103 static void interrupted(int sig) in interrupted() argument
106 kill_myself_with_sig(sig); in interrupted()
/busybox-1.35.0/shell/
Dhush.c1944 static void record_pending_signo(int sig) in record_pending_signo() argument
1946 sigaddset(&G.pending_set, sig); in record_pending_signo()
1948 if (sig == SIGCHLD) { in record_pending_signo()
1955 static sighandler_t install_sighandler(int sig, sighandler_t handler) in install_sighandler() argument
1969 sigaction(sig, &G.sa, &old_sa); in install_sighandler()
2017 static void sigexit(int sig) NORETURN;
2018 static void sigexit(int sig) in sigexit() argument
2031 if (sig <= 0) in sigexit()
2032 _exit(- sig); in sigexit()
2034 kill_myself_with_sig(sig); /* does not return */ in sigexit()
[all …]
/busybox-1.35.0/util-linux/
Drdate.c34 static void socket_timeout(int sig UNUSED_PARAM) in socket_timeout()
Dmore.c62 static void gotsig(int sig UNUSED_PARAM) in gotsig()
/busybox-1.35.0/console-tools/
Dresize.c45 onintr(int sig UNUSED_PARAM) in onintr()
/busybox-1.35.0/miscutils/
Dwatchdog.c75 static void shutdown_on_signal(int sig UNUSED_PARAM) in shutdown_on_signal()
Dhexedit.c63 static void sig_catcher(int sig) in sig_catcher() argument
67 bb_got_signal = sig; in sig_catcher()
71 kill_myself_with_sig(sig); in sig_catcher()
Dless.c1794 static void sig_catcher(int sig) in sig_catcher() argument
1796 less_exit(- sig); in sig_catcher()
1800 static void sigwinch_handler(int sig UNUSED_PARAM) in sigwinch_handler()
/busybox-1.35.0/networking/
Dtcpudp.c174 static void sig_term_handler(int sig) in sig_term_handler() argument
177 bb_error_msg("got signal %u, exit", sig); in sig_term_handler()
178 kill_myself_with_sig(sig); in sig_term_handler()
233 static void sig_child_handler(int sig UNUSED_PARAM) in sig_child_handler()
Dnc_bloaty.c208 static void catch(int sig) in catch() argument
213 kill_myself_with_sig(sig); in catch()
224 static void tmtravel(int sig UNUSED_PARAM) in tmtravel()
Dinetd.c967 static void reread_config_file(int sig UNUSED_PARAM) in reread_config_file()
1140 static void reap_child(int sig UNUSED_PARAM) in reap_child()
1169 static void retry_network_setup(int sig UNUSED_PARAM) in retry_network_setup()
1187 static void clean_up_and_exit(int sig UNUSED_PARAM) in clean_up_and_exit()
/busybox-1.35.0/e2fsprogs/
Dfsck.c453 unsigned sig; in wait_one() local
454 sig = WTERMSIG(status); in wait_one()
456 if (sig != SIGINT) { in wait_one()
459 inst->prog, inst->device, sig); in wait_one()
/busybox-1.35.0/include/
Dplatform.h620 # define strsignal(sig) get_signame(sig) argument
Dlibbb.h626 void signal_no_SA_RESTART_empty_mask(int sig, void (*handler)(int)) FAST_FUNC;
628 void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)) FAST_FUNC;
630 void kill_myself_with_sig(int sig) NORETURN FAST_FUNC;
631 void sig_block(int sig) FAST_FUNC;
632 void sig_unblock(int sig) FAST_FUNC;
634 int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC;
/busybox-1.35.0/loginutils/
Dgetty.c538 static void alarm_handler(int sig UNUSED_PARAM) in alarm_handler()
Dlogin.c298 static void alarm_handler(int sig UNUSED_PARAM) in alarm_handler()

12