summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/compat/unix/syscall.h5
-rw-r--r--src/sys/include/sys/syscall.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h
index ab464c4..1b51d26 100644
--- a/src/sys/include/compat/unix/syscall.h
+++ b/src/sys/include/compat/unix/syscall.h
@@ -54,6 +54,11 @@ scret_t sys_cross(struct syscall_args *scargs);
*/
scret_t sys_query(struct syscall_args *scargs);
+/*
+ * Open a file
+ */
+scret_t sys_open(struct syscall_args *scargs);
+
#ifdef _NEED_UNIX_SCTAB
scret_t(*g_unix_sctab[])(struct syscall_args *) = {
[SYS_none] = NULL,
diff --git a/src/sys/include/sys/syscall.h b/src/sys/include/sys/syscall.h
index c1c06bb..7dcd266 100644
--- a/src/sys/include/sys/syscall.h
+++ b/src/sys/include/sys/syscall.h
@@ -49,6 +49,7 @@
#define SYS_sigaction 0x04
#define SYS_query 0x05 /* query a border (mandatory) */
#define SYS_spawn 0x06 /* spawn a process */
+#define SYS_open 0x07 /* open a file */
typedef __ssize_t scret_t;
typedef __ssize_t scarg_t;