aboutsummaryrefslogtreecommitdiff
path: root/signal
diff options
context:
space:
mode:
Diffstat (limited to 'signal')
-rw-r--r--signal/sigempty.c2
-rw-r--r--signal/sigfillset.c1
-rw-r--r--signal/signal.h3
3 files changed, 4 insertions, 2 deletions
diff --git a/signal/sigempty.c b/signal/sigempty.c
index 9dde24d..b6e0486 100644
--- a/signal/sigempty.c
+++ b/signal/sigempty.c
@@ -31,7 +31,7 @@ sigemptyset (set)
return -1;
}
- memset (set, 0xff, sizeof (sigset_t));
+ memset (set, 0, sizeof (sigset_t));
return 0;
}
diff --git a/signal/sigfillset.c b/signal/sigfillset.c
index 04c80a5..2b42ed0 100644
--- a/signal/sigfillset.c
+++ b/signal/sigfillset.c
@@ -18,6 +18,7 @@
#include <errno.h>
#include <signal.h>
+#include <string.h>
/* Set all signals in SET. */
int
diff --git a/signal/signal.h b/signal/signal.h
index cd833e8..b1953e5 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -52,12 +52,13 @@ typedef void (*__sighandler_t) __P ((int));
By default `signal' has the BSD semantic. */
extern __sighandler_t signal __P ((int __sig, __sighandler_t __handler));
-#if defined __USE_XOPEN && !defined __USE_GNU
/* The X/Open definition of `signal' specifies the SVID semantic. Use
the additional function `sysv_signal' when X/Open compatibility is
requested. */
extern __sighandler_t __sysv_signal __P ((int __sig,
__sighandler_t __handler));
+
+#if defined __USE_XOPEN && !defined __USE_GNU
extern __sighandler_t sysv_signal __P ((int __sig, __sighandler_t __handler));
/* Make sure the used `signal' implementation is the SVID version. */