summaryrefslogtreecommitdiff
path: root/src/shared/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/include')
-rw-r--r--src/shared/include/camellia/errno.h1
-rw-r--r--src/shared/include/camellia/syscalls.h4
-rw-r--r--src/shared/include/camellia/types.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/include/camellia/errno.h b/src/shared/include/camellia/errno.h
index b56ba91..e29f3d7 100644
--- a/src/shared/include/camellia/errno.h
+++ b/src/shared/include/camellia/errno.h
@@ -15,6 +15,7 @@
#define EMFILE 11 /* all file descriptors taken */
#define ECONNRESET 12
#define EPIPE 13
+#define ECHILD 14
#define EISDIR 200
#define ENAMETOOLONG 201
diff --git a/src/shared/include/camellia/syscalls.h b/src/shared/include/camellia/syscalls.h
index 809cad7..9a8fa94 100644
--- a/src/shared/include/camellia/syscalls.h
+++ b/src/shared/include/camellia/syscalls.h
@@ -21,6 +21,7 @@
#define _SYS_INTR_SET 18
#define _SYS_GETPID 19
#define _SYS_GETPPID 20
+#define _SYS_WAIT2 21
#define _SYS_EXECBUF 100
#define _SYS_DEBUG_KLOG 101
@@ -84,6 +85,9 @@ void _sys_intr_set(void __user *ip);
uint32_t _sys_getpid(void);
uint32_t _sys_getppid(void);
+// TODO deprecate await
+int _sys_wait2(int pid, int flags, struct sys_wait2 __user *out);
+
/* see shared/execbuf.h */
long _sys_execbuf(void __user *buf, size_t len);
diff --git a/src/shared/include/camellia/types.h b/src/shared/include/camellia/types.h
index 3b9cfb4..65200d7 100644
--- a/src/shared/include/camellia/types.h
+++ b/src/shared/include/camellia/types.h
@@ -35,3 +35,7 @@ struct intr_data {
void __user *ip;
void __user *sp; /* last for pop %rsp */
};
+
+struct sys_wait2 {
+ long status;
+};