mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
syscalls: linkat
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user