diff options
Diffstat (limited to 'src/sys/include/compat')
-rw-r--r-- | src/sys/include/compat/unix/syscall.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h index 2bb699a..daca2dc 100644 --- a/src/sys/include/compat/unix/syscall.h +++ b/src/sys/include/compat/unix/syscall.h @@ -35,14 +35,27 @@ #include <sys/syscall.h> /* + * Syscall numbers + */ +#define SYS_none 0x00 +#define SYS_exit 0x01 +#define SYS_write 0x02 + +/* * Exit the current process - exit(2) syscall */ scret_t sys_exit(struct syscall_args *scargs); +/* + * Write to a file descriptor - write(2) syscall + */ +scret_t sys_write(struct syscall_args *scargs); + #ifdef _NEED_UNIX_SCTAB scret_t(*g_unix_sctab[])(struct syscall_args *) = { [SYS_none] = NULL, - [SYS_exit] = sys_exit + [SYS_exit] = sys_exit, + [SYS_write] = sys_write }; #endif /* !_NEED_UNIX_SCTAB */ |