summaryrefslogtreecommitdiff
path: root/include/sys/wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/wait.h')
-rw-r--r--include/sys/wait.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h
index bbe8a8fe..2a7438d7 100644
--- a/include/sys/wait.h
+++ b/include/sys/wait.h
@@ -1,20 +1,13 @@
#ifndef __WAIT_H
#define __WAIT_H
-#define WCONTINUED 0x00000008
-#define WNOHANG 0x00000001
-#define WUNTRACED 0x00000002
-#define WCOREDUMP(__s) ((__s) & 0x80)
-#define WIFCONTINUED(__s) ((__s) == 0xffff)
-#define WIFEXITED(__s) (!WTERMSIG(__s))
-#define WIFSIGNALED(__s) (((s) & 0xffff) - 1U < 0xffu)
-#define WIFSTOPPED(__s) ((short)((((__s) & 0xffff) * 0x10001U) >> 8) > 0x7f00)
-#define WSTOPSIG(__s) WEXITSTATUS(__s)
-#define WTERMSIG(__s) ((__s) & 0x7f)
-
-#define WEXITED
-#define WNOWAIT
-#define WSTOPPED
+#define __BITS_WAIT_H_
+#include <bits/wait.h>
+
+#define WCONTINUED 0x00000008
+#define WEXITED 0x00000004
+#define WNOWAIT 0x01000000
+#define WSTOPPED WUNTRACED
typedef __UINT32_TYPE__ id_t;
typedef __INT64_TYPE__ pid_t;