diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:29:08 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:29:08 +0000 |
| commit | 3f165fa5b3b38fa4b321be94a97f06927f636fb1 (patch) | |
| tree | d5e2d1045e714823c2e9a3ef912dcafeffcc9ebd /include | |
| parent | 8e2cfec1cdf34068f2378aae9fe8f5ec0f821e21 (diff) | |
| download | busybox-w32-3f165fa5b3b38fa4b321be94a97f06927f636fb1.tar.gz busybox-w32-3f165fa5b3b38fa4b321be94a97f06927f636fb1.tar.bz2 busybox-w32-3f165fa5b3b38fa4b321be94a97f06927f636fb1.zip | |
libbb: introduce and use sigprocmask_allsigs and sigaction_set.
libbb: rename sig_pause to wait_for_any_sig.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h index 505396b86..73638a145 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -311,13 +311,14 @@ void bb_signals_recursive(int sigs, void (*f)(int)); | |||
| 311 | void signal_no_SA_RESTART_empty_mask(int sig, void (*handler)(int)); | 311 | void signal_no_SA_RESTART_empty_mask(int sig, void (*handler)(int)); |
| 312 | /* syscalls like read() won't be interrupted (though select/poll will be): */ | 312 | /* syscalls like read() won't be interrupted (though select/poll will be): */ |
| 313 | void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)); | 313 | void signal_SA_RESTART_empty_mask(int sig, void (*handler)(int)); |
| 314 | /* Will do sigaction(signum, act, NULL): */ | 314 | void wait_for_any_sig(void); |
| 315 | int sigaction_set(int signum, const struct sigaction *act); | ||
| 316 | void sig_block(int); | ||
| 317 | void sig_unblock(int); | ||
| 318 | /* UNUSED: void sig_blocknone(void); */ | ||
| 319 | void sig_pause(void); | ||
| 320 | void kill_myself_with_sig(int sig) ATTRIBUTE_NORETURN; | 315 | void kill_myself_with_sig(int sig) ATTRIBUTE_NORETURN; |
| 316 | void sig_block(int sig); | ||
| 317 | void sig_unblock(int sig); | ||
| 318 | /* Will do sigaction(signum, act, NULL): */ | ||
| 319 | int sigaction_set(int sig, const struct sigaction *act); | ||
| 320 | /* SIG_BLOCK/SIG_UNBLOCK all signals: */ | ||
| 321 | int sigprocmask_allsigs(int how); | ||
| 321 | 322 | ||
| 322 | 323 | ||
| 323 | void xsetgid(gid_t gid); | 324 | void xsetgid(gid_t gid); |
