diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-01-20 16:40:30 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-01-20 17:20:40 -0800 |
commit | 0a81fd3a93ad9eaebae17b207c0048bf5fda1aa2 (patch) | |
tree | 164da867da347307b3d116575a8699f5b393c967 /pk/syscall.h | |
parent | b222ef6bcb12197276affa231a4a3b36c068ea75 (diff) | |
download | riscv-pk-0a81fd3a93ad9eaebae17b207c0048bf5fda1aa2.zip riscv-pk-0a81fd3a93ad9eaebae17b207c0048bf5fda1aa2.tar.gz riscv-pk-0a81fd3a93ad9eaebae17b207c0048bf5fda1aa2.tar.bz2 |
Support linkat, unlinkat, mkdirat syscalls
Also, old-style syscalls e.g. open are now implemented with e.g. openat.
Diffstat (limited to 'pk/syscall.h')
-rw-r--r-- | pk/syscall.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pk/syscall.h b/pk/syscall.h index a9fc3c8..e071785 100644 --- a/pk/syscall.h +++ b/pk/syscall.h @@ -17,6 +17,9 @@ #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 @@ -52,6 +55,8 @@ #define ERR_PTR(x) ((void*)(long)(x)) #define PTR_ERR(x) ((long)(x)) +#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); |