syscalls: linkat

This commit is contained in:
Matheus
2023-07-06 14:01:12 -03:00
parent 4a9306191b
commit 9b945d2bc0
5 changed files with 127 additions and 9 deletions
+3 -1
View File
@@ -28,6 +28,7 @@ extern syscall_unlinkat
extern syscall_ioctl
extern syscall_mkdirat
extern syscall_clockget
extern syscall_linkat
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -58,7 +59,8 @@ dq syscall_unlinkat
dq syscall_ioctl
dq syscall_mkdirat
dq syscall_clockget
syscallcount equ 29
dq syscall_linkat
syscallcount equ 30
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 29
#define SYSCALL_COUNT 30
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -36,7 +36,8 @@ static char *name[] = {
"unlinkat",
"ioctl",
"mkdirat",
"clockget"
"clockget",
"linkat"
};
static char *args[] = {
@@ -68,7 +69,8 @@ static char *args[] = {
"dirfd %d pathname %d flags %d", // unlinkat
"fd %d request %lu argument %d", // ioctl
"dirfd %d path %s mode %o", // mkdirat
"clockid %d timespec %p" // clockget
"clockid %d timespec %p", // clockget
"olddirfd %d oldpath %s newdirfd %d oldpath %s flags %d type %d" // linkat
};
#endif