summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/unistd/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/unistd/pause.c')
-rw-r--r--libc-top-half/musl/src/unistd/pause.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/unistd/pause.c b/libc-top-half/musl/src/unistd/pause.c
new file mode 100644
index 0000000..90bbf4c
--- /dev/null
+++ b/libc-top-half/musl/src/unistd/pause.c
@@ -0,0 +1,11 @@
+#include <unistd.h>
+#include "syscall.h"
+
+int pause(void)
+{
+#ifdef SYS_pause
+ return syscall_cp(SYS_pause);
+#else
+ return syscall_cp(SYS_ppoll, 0, 0, 0, 0);
+#endif
+}