summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-22 21:54:19 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-22 21:54:19 -0400
commit9f370fa99e2c25a717a672ee0a766d56e9d68a9a (patch)
tree54536089b6d500ef08c3f0270d212489e352ce13 /include
parent419ae6d5c95629d3ebaff6f1880d52cb027ba924 (diff)
downloadmusl-9f370fa99e2c25a717a672ee0a766d56e9d68a9a.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/signal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/signal.h b/include/signal.h
index 616801b9..d4856a89 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -205,16 +205,13 @@ void (*sigset(int, void (*)(int)))(int);
#define SIGSTKSZ 8192
#endif
-#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-void (*bsd_signal(int, void (*)(int)))(int);
-#endif
-
#ifdef _BSD_SOURCE
typedef void (*sig_t)(int);
#endif
#ifdef _GNU_SOURCE
typedef void (*sighandler_t)(int);
+void (*bsd_signal(int, void (*)(int)))(int);
int sigisemptyset(const sigset_t *);
#define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND