aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-19 09:55:31 +0100
committerRon Yorston <rmy@pobox.com>2016-05-19 09:55:31 +0100
commitf4c43d4a23c0581f13da63db89d571476269a31f (patch)
treed68a0f3683d35198607ed7a3fbac01062b8df6c3 /include/libbb.h
parentee8fdaa48da144585aacdf2a34a82f4cbc5dab02 (diff)
downloadbusybox-w32-f4c43d4a23c0581f13da63db89d571476269a31f.tar.gz
busybox-w32-f4c43d4a23c0581f13da63db89d571476269a31f.tar.bz2
busybox-w32-f4c43d4a23c0581f13da63db89d571476269a31f.zip
less: hide unsupported signal handling in include file
Diffstat (limited to 'include/libbb.h')
-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! */