aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/pause.c')
-rw-r--r--src/unistd/pause.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/unistd/pause.c b/src/unistd/pause.c
new file mode 100644
index 0000000..1472065
--- /dev/null
+++ b/src/unistd/pause.c
@@ -0,0 +1,12 @@
+#include <unistd.h>
+#include "syscall.h"
+#include "libc.h"
+
+int pause(void)
+{
+ int r;
+ CANCELPT_BEGIN;
+ r = syscall0(__NR_pause);
+ CANCELPT_END;
+ return r;
+}