diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:38:04 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:38:04 -0700 |
commit | 6517fe26a2a0c89c3112f4a383c601572c71d64a (patch) | |
tree | d37eea7ae6f3e15eee94afb5c9c749a4cd800577 /pk/syscall.h | |
parent | a4ae7da6ef0c09c2616a0b82f7f569e4e134f75c (diff) | |
download | pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.zip pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.tar.gz pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.tar.bz2 |
Update to new privileged spec
Diffstat (limited to 'pk/syscall.h')
-rw-r--r-- | pk/syscall.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pk/syscall.h b/pk/syscall.h index 6632bc9..98441f0 100644 --- a/pk/syscall.h +++ b/pk/syscall.h @@ -9,24 +9,17 @@ #define SYS_kill 129 #define SYS_read 63 #define SYS_write 64 -#define SYS_open 1024 #define SYS_openat 56 #define SYS_close 57 #define SYS_lseek 62 #define SYS_brk 214 -#define SYS_link 1025 -#define SYS_unlink 1026 -#define SYS_mkdir 1030 #define SYS_linkat 37 #define SYS_unlinkat 35 #define SYS_mkdirat 34 #define SYS_chdir 49 #define SYS_getcwd 17 -#define SYS_stat 1038 #define SYS_fstat 80 -#define SYS_lstat 1039 #define SYS_fstatat 79 -#define SYS_access 1033 #define SYS_faccessat 48 #define SYS_pread 67 #define SYS_pwrite 68 @@ -39,7 +32,6 @@ #define SYS_munmap 215 #define SYS_mremap 216 #define SYS_mprotect 226 -#define SYS_time 1062 #define SYS_getmainvars 2011 #define SYS_rt_sigaction 134 #define SYS_writev 66 @@ -52,6 +44,16 @@ #define SYS_rt_sigprocmask 135 #define SYS_ioctl 29 +#define OLD_SYSCALL_THRESHOLD 1024 +#define SYS_open 1024 +#define SYS_link 1025 +#define SYS_unlink 1026 +#define SYS_mkdir 1030 +#define SYS_access 1033 +#define SYS_stat 1038 +#define SYS_lstat 1039 +#define SYS_time 1062 + #define IS_ERR_VALUE(x) ((unsigned long)(x) >= (unsigned long)-4096) #define ERR_PTR(x) ((void*)(long)(x)) #define PTR_ERR(x) ((long)(x)) @@ -59,6 +61,6 @@ #define AT_FDCWD -100 void sys_exit(int code) __attribute__((noreturn)); -long do_syscall(long a0, long a1, long a2, long a3, long a4, long a5, long n); +long do_syscall(long a0, long a1, long a2, long a3, long a4, long a5, unsigned long n); #endif |