From 6a886cb2a4af303fae01b61a2e6590ca22bb4a3e Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 13 Sep 2018 02:14:46 +0200 Subject: reentrenacy for newilb --- kernel/syscalls.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kernel/syscalls.h') diff --git a/kernel/syscalls.h b/kernel/syscalls.h index 9018852..8b88e6a 100644 --- a/kernel/syscalls.h +++ b/kernel/syscalls.h @@ -1,12 +1,14 @@ #define SYSCALL_EXIT 60 -#define SYSCALL_CLOSE 66 #define SYSCALL_EXECVE 64 #define SYSCALL_FORK 72 + +#define SYSCALL_CLOSE 66 +#define SYSCALL_OPEN 65 + #define SYSCALL_GETPID 78 #define SYSCALL_ISATTY 68 #define SYSCALL_LINK 82 #define SYSCALL_LSEEK 69 -#define SYSCALL_OPEN 65 #define SYSCALL_READ 62 #define SYSCALL_SBRK 70 #define SYSCALL_STAT 74 @@ -28,7 +30,6 @@ int chk_syscall_read(int file, char *buf, int len); int syscall_open(char *name, int flags, int mode); int syscall_write(int file, char *buf, int len); - // new planned syscalls for graphx // TODO: split ncurses and our syscalls?? -- cgit v1.2.3