summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
authordzwdz2023-06-11 19:17:39 +0200
committerdzwdz2023-06-11 19:17:39 +0200
commit84fa0102c6906252999967925f32098ab6d5a259 (patch)
tree00bd8c98a68e4882e2f42510c9c55932ef855ba3 /src/user/lib/include
parentff154205e1671e11ed8566740c1cefaad79c2512 (diff)
kernel: replace await with wait2, roughly compatible with POSIX
dash works now :^)))
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/__errno.h1
-rw-r--r--src/user/lib/include/sys/wait.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/user/lib/include/__errno.h b/src/user/lib/include/__errno.h
index f72fcf6..0808ac6 100644
--- a/src/user/lib/include/__errno.h
+++ b/src/user/lib/include/__errno.h
@@ -13,6 +13,7 @@ E( 10, "EACCES")
E( 11, "EMFILE all file descriptors taken")
E( 12, "ECONNRESET")
E( 13, "EPIPE")
+E( 14, "ECHILD")
E(200, "EISDIR")
E(201, "ENAMETOOLONG")
E(202, "ENOTDIR")
diff --git a/src/user/lib/include/sys/wait.h b/src/user/lib/include/sys/wait.h
index c71418c..cff407e 100644
--- a/src/user/lib/include/sys/wait.h
+++ b/src/user/lib/include/sys/wait.h
@@ -2,8 +2,8 @@
#include <sys/types.h>
#define WIFSTOPPED(x) 0
-#define WEXITSTATUS(x) 0
-#define WIFEXITED(x) 0
+#define WEXITSTATUS(x) ((x)&0xFF)
+#define WIFEXITED(x) 1
#define WSTOPSIG(x) 0
#define WTERMSIG(x) 0