diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-11-14 20:33:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-11-14 20:33:25 +0000 |
commit | 1a9ad98b8a05ec074dc0f48427d7853d1938540d (patch) | |
tree | 957c8f6a91850c29a46fb4cf6efa0c110a181c4e | |
parent | 2a42a28b987fdfdc6d16089530316c41eca0c494 (diff) |
Let the #define do all the work
-rw-r--r-- | include/signal.h | 6 | ||||
-rw-r--r-- | libc/signal/sigpause.c | 6 |
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); -} - |