Remove EVENT_JUSTHANDLEIT (XCC)
[akaros.git] / kern / include / ros / syscall.h
index 0f6f52f..1e6d8f7 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef ROS_INC_SYSCALL_H
 #define ROS_INC_SYSCALL_H
 
-#include <arch/arch.h>
 #include <ros/bits/syscall.h>
 #include <ros/arch/syscall.h>
 #include <ros/event.h>
@@ -32,6 +31,25 @@ struct syscall {
        char                                            errstr[MAX_ERRSTR_LEN];
 };
 
+struct childfdmap {
+       unsigned int                            parentfd;
+       unsigned int                            childfd;
+       int                                                     ok;
+};
+
+struct argenv {
+       size_t argc;
+       size_t envc;
+       char buf[];
+       /* The buf array is laid out as follows:
+        * buf {
+        *   char *argv[argc]; // Offset of arg relative to &argbuf[0]
+        *   char *envp[envc]; // Offset of envvar relative to &argbuf[0]
+        *   char argbuf[sum(map(strlen + 1, argv + envp))];
+        * }
+        */
+};
+
 #ifndef ROS_KERNEL
 
 /* Temp hack, til the rest of glibc/userspace uses sys/syscall.h */