mirror of
https://github.com/fluencelabs/musl
synced 2025-04-26 15:52:13 +00:00
bsd_signal is a legacy (removed) XSI function, not needed in _BSD_SOURCE
its only purpose was for use on non-BSD systems that implement sysv semantics for signal() by default.
This commit is contained in:
parent
419ae6d5c9
commit
9f370fa99e
@ -205,16 +205,13 @@ void (*sigset(int, void (*)(int)))(int);
|
|||||||
#define SIGSTKSZ 8192
|
#define SIGSTKSZ 8192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
|
||||||
void (*bsd_signal(int, void (*)(int)))(int);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _BSD_SOURCE
|
#ifdef _BSD_SOURCE
|
||||||
typedef void (*sig_t)(int);
|
typedef void (*sig_t)(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
typedef void (*sighandler_t)(int);
|
typedef void (*sighandler_t)(int);
|
||||||
|
void (*bsd_signal(int, void (*)(int)))(int);
|
||||||
int sigisemptyset(const sigset_t *);
|
int sigisemptyset(const sigset_t *);
|
||||||
#define SA_NOMASK SA_NODEFER
|
#define SA_NOMASK SA_NODEFER
|
||||||
#define SA_ONESHOT SA_RESETHAND
|
#define SA_ONESHOT SA_RESETHAND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user