X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/847763577fbcc79179722874c81b44ee36108edb..5be90ccccd441b1a38dbbf4fc99c7375cede8d8d:/lunaix-os/includes/lunaix/syscall.h diff --git a/lunaix-os/includes/lunaix/syscall.h b/lunaix-os/includes/lunaix/syscall.h index bccfb3b..30941f6 100644 --- a/lunaix-os/includes/lunaix/syscall.h +++ b/lunaix-os/includes/lunaix/syscall.h @@ -13,6 +13,7 @@ #define __SYSCALL__exit 8 #define __SYSCALL_wait 9 #define __SYSCALL_waitpid 10 + #define __SYSCALL_sigreturn 11 #define __SYSCALL_sigprocmask 12 #define __SYSCALL_signal 13 @@ -21,9 +22,9 @@ #define __SYSCALL_alarm 16 #define __SYSCALL_sigpending 17 #define __SYSCALL_sigsuspend 18 - #define __SYSCALL_open 19 #define __SYSCALL_close 20 + #define __SYSCALL_read 21 #define __SYSCALL_write 22 #define __SYSCALL_readdir 23 @@ -33,14 +34,19 @@ #define __SYSCALL_readlink 27 #define __SYSCALL_readlinkat 28 #define __SYSCALL_rmdir 29 + #define __SYSCALL_unlink 30 #define __SYSCALL_unlinkat 31 +#define __SYSCALL_link 32 +#define __SYSCALL_fsync 33 +#define __SYSCALL_dup 34 +#define __SYSCALL_dup2 35 #define __SYSCALL_MAX 0x100 #ifndef __ASM__ -#define SYSCALL_ESTATUS(errno) -(errno != 0) +#define SYSCALL_ESTATUS(errno) -((errno) != 0) void syscall_install();