aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 3c53e5e68..505396b86 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -275,6 +275,7 @@ char *xrealloc_getcwd_or_warn(char *cwd);
275 275
276char *xmalloc_follow_symlinks(const char *path); 276char *xmalloc_follow_symlinks(const char *path);
277 277
278
278enum { 279enum {
279 /* bb_signals(BB_SIGS_FATAL, handler) catches all signals which 280 /* bb_signals(BB_SIGS_FATAL, handler) catches all signals which
280 * otherwise would kill us, except for those resulting from bugs: 281 * otherwise would kill us, except for those resulting from bugs:
@@ -306,6 +307,12 @@ void bb_signals(int sigs, void (*f)(int));
306 * and in a way that while signal handler is run, no other signals 307 * and in a way that while signal handler is run, no other signals
307 * will be blocked: */ 308 * will be blocked: */
308void bb_signals_recursive(int sigs, void (*f)(int)); 309void bb_signals_recursive(int sigs, void (*f)(int));
310/* syscalls like read() will be interrupted with EINTR: */
311void signal_no_SA_RESTART_empty_mask(int sig, void (*handler)(int));
312/* syscalls like read() won't be interrupted (though select/poll will be): */
313void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int));
314/* Will do sigaction(signum, act, NULL): */
315int sigaction_set(int signum, const struct sigaction *act);
309void sig_block(int); 316void sig_block(int);
310void sig_unblock(int); 317void sig_unblock(int);
311/* UNUSED: void sig_blocknone(void); */ 318/* UNUSED: void sig_blocknone(void); */