summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-11-14 20:33:25 +0000
committerEric Andersen <andersen@codepoet.org>2005-11-14 20:33:25 +0000
commit1a9ad98b8a05ec074dc0f48427d7853d1938540d (patch)
tree957c8f6a91850c29a46fb4cf6efa0c110a181c4e
parent2a42a28b987fdfdc6d16089530316c41eca0c494 (diff)
Let the #define do all the work
-rw-r--r--include/signal.h6
-rw-r--r--libc/signal/sigpause.c6
2 files changed, 1 insertions, 11 deletions
diff --git a/include/signal.h b/include/signal.h
index 986a9f79f..e4e5a10a8 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -159,12 +159,8 @@ extern int sigpause (int __mask) __THROW __attribute_deprecated__;
# define sigpause(mask) __sigpause ((mask), 0)
#else
# ifdef __USE_XOPEN
-# ifdef __GNUC__
-extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
-# else
/* Remove a signal from the signal mask and suspend the process. */
-# define sigpause(sig) __sigpause ((sig), 1)
-# endif
+# define sigpause(sig) __sigpause ((sig), 1)
# endif
#endif
diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c
index 20a6ecd45..433b92b0c 100644
--- a/libc/signal/sigpause.c
+++ b/libc/signal/sigpause.c
@@ -63,9 +63,3 @@ int sigpause (int mask)
{
return __sigpause (mask, 0);
}
-
-int __xpg_sigpause (int sig)
-{
- return __sigpause (sig, 1);
-}
-