summaryrefslogtreecommitdiff
path: root/libc/signal/sigpause.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 19:45:02 +0000
commit6f7dc709ed7e403af224b0fbb91e9619629eb2ec (patch)
tree349296ed6e3d73f390409bf96fa4269d1ac20ec7 /libc/signal/sigpause.c
parent2d997660372123ab6ac1ee519b22fe015eaa787b (diff)
make DODEBUG=y happy, update sysdeps/common/* copyright
Diffstat (limited to 'libc/signal/sigpause.c')
-rw-r--r--libc/signal/sigpause.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c
index e5dfc8e01..9f7fb0e76 100644
--- a/libc/signal/sigpause.c
+++ b/libc/signal/sigpause.c
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define _BSD_SOURCE
#include <errno.h>
#include <signal.h>
#include <stddef.h> /* For NULL. */
@@ -29,6 +30,7 @@ libc_hidden_proto(sigsuspend)
/* Set the mask of blocked signals to MASK,
wait for a signal to arrive, and then restore the mask. */
+libc_hidden_proto(__sigpause)
int __sigpause (int sig_or_mask, int is_sig)
{
sigset_t set;
@@ -46,7 +48,6 @@ int __sigpause (int sig_or_mask, int is_sig)
return sigsuspend (&set);
}
-libc_hidden_proto(__sigpause)
libc_hidden_def(__sigpause)
#undef sigpause
@@ -54,9 +55,9 @@ libc_hidden_def(__sigpause)
/* We have to provide a default version of this function since the
standards demand it. The version which is a bit more reasonable is
the BSD version. So make this the default. */
+libc_hidden_proto(sigpause)
int sigpause (int mask)
{
return __sigpause (mask, 0);
}
-libc_hidden_proto(sigpause)
libc_hidden_def(sigpause)