aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9a7590edd..9402bb04b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -484,6 +484,7 @@ enum {
484 + (1LL << SIGUSR2) 484 + (1LL << SIGUSR2)
485 + 0), 485 + 0),
486}; 486};
487#if !ENABLE_PLATFORM_MINGW32
487void bb_signals(int sigs, void (*f)(int)) FAST_FUNC; 488void bb_signals(int sigs, void (*f)(int)) FAST_FUNC;
488/* Unlike signal() and bb_signals, sets handler with sigaction() 489/* Unlike signal() and bb_signals, sets handler with sigaction()
489 * and in a way that while signal handler is run, no other signals 490 * and in a way that while signal handler is run, no other signals
@@ -501,6 +502,10 @@ void sig_unblock(int sig) FAST_FUNC;
501int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC; 502int sigaction_set(int sig, const struct sigaction *act) FAST_FUNC;
502/* SIG_BLOCK/SIG_UNBLOCK all signals: */ 503/* SIG_BLOCK/SIG_UNBLOCK all signals: */
503int sigprocmask_allsigs(int how) FAST_FUNC; 504int sigprocmask_allsigs(int how) FAST_FUNC;
505#else
506#define bb_signals(s, f)
507#define kill_myself_with_sig(s)
508#endif
504/* Standard handler which just records signo */ 509/* Standard handler which just records signo */
505extern smallint bb_got_signal; 510extern smallint bb_got_signal;
506void record_signo(int signo); /* not FAST_FUNC! */ 511void record_signo(int signo); /* not FAST_FUNC! */