summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/pause.c')
-rw-r--r--libc/sysdeps/linux/common/pause.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/common/pause.c b/libc/sysdeps/linux/common/pause.c
index 5c75211a7..7f2ca57a5 100644
--- a/libc/sysdeps/linux/common/pause.c
+++ b/libc/sysdeps/linux/common/pause.c
@@ -11,18 +11,16 @@
#include <sys/syscall.h>
#include <unistd.h>
-extern __typeof(pause) __libc_pause;
#ifdef __NR_pause
-#define __NR___libc_pause __NR_pause
-_syscall0(int, __libc_pause)
+
+_syscall0(int, pause)
+
#else
-#include <signal.h>
-/* libc_hidden_proto(__sigpause) */
-/* libc_hidden_proto(sigblock) */
-int __libc_pause(void)
+#include <signal.h>
+int pause(void)
{
return (__sigpause(sigblock(0), 0));
}
+
#endif
-weak_alias(__libc_pause,pause)