summaryrefslogtreecommitdiffstats
path: root/libc/signal/sigintr.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 04:33:43 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-26 04:33:43 +0000
commit5e01789a9427a97032a19b93b126ca033da7aac8 (patch)
tree995848d439a70fd8af21b8e7f78ec008cc7dc8b1 /libc/signal/sigintr.c
parent9921832fa13cef31006cfa69bc5574636c36ac0f (diff)
downloaduClibc-alpine-5e01789a9427a97032a19b93b126ca033da7aac8.tar.bz2
uClibc-alpine-5e01789a9427a97032a19b93b126ca033da7aac8.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/signal/sigintr.c')
-rw-r--r--libc/signal/sigintr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/signal/sigintr.c b/libc/signal/sigintr.c
index 797c52843..a977e22de 100644
--- a/libc/signal/sigintr.c
+++ b/libc/signal/sigintr.c
@@ -16,22 +16,25 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#define sigaction __sigaction
-
#include <stddef.h>
#include <signal.h>
#include <errno.h>
+libc_hidden_proto(sigaction)
+
/* If INTERRUPT is nonzero, make signal SIG interrupt system calls
(causing them to fail with EINTR); if INTERRUPT is zero, make system
calls be restarted after signal SIG. */
+#ifdef SA_RESTART
+extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */
+#endif
+
int
siginterrupt (sig, interrupt)
int sig;
int interrupt;
{
#ifdef SA_RESTART
- extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */
struct sigaction action;
if (sigaction (sig, (struct sigaction *) NULL, &action) < 0)