syscalls: readlinkat

This commit is contained in:
Matheus
2023-07-06 19:49:35 -03:00
parent 9b945d2bc0
commit c769735068
4 changed files with 76 additions and 7 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ extern syscall_ioctl
extern syscall_mkdirat
extern syscall_clockget
extern syscall_linkat
extern syscall_readlinkat
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -60,7 +61,8 @@ dq syscall_ioctl
dq syscall_mkdirat
dq syscall_clockget
dq syscall_linkat
syscallcount equ 30
dq syscall_readlinkat
syscallcount equ 31
section .text
global arch_syscall_entry
; on entry:
+4 -2
View File
@@ -37,7 +37,8 @@ static char *name[] = {
"ioctl",
"mkdirat",
"clockget",
"linkat"
"linkat",
"readlinkat"
};
static char *args[] = {
@@ -70,7 +71,8 @@ static char *args[] = {
"fd %d request %lu argument %d", // ioctl
"dirfd %d path %s mode %o", // mkdirat
"clockid %d timespec %p", // clockget
"olddirfd %d oldpath %s newdirfd %d oldpath %s flags %d type %d" // linkat
"olddirfd %d oldpath %s newdirfd %d oldpath %s flags %d type %d", // linkat
"dirfd %d path %s buffer %p buffer length %lu" // readlinkat
};
#endif