mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
syscalls: unlinkat
This commit is contained in:
@@ -24,6 +24,7 @@ extern syscall_chdir
|
||||
extern syscall_pipe2
|
||||
extern syscall_isatty
|
||||
extern syscall_faccessat
|
||||
extern syscall_unlinkat
|
||||
syscalltab:
|
||||
dq syscall_print
|
||||
dq syscall_mmap
|
||||
@@ -50,7 +51,8 @@ dq syscall_chdir
|
||||
dq syscall_pipe2
|
||||
dq syscall_isatty
|
||||
dq syscall_faccessat
|
||||
syscallcount equ 25
|
||||
dq syscall_unlinkat
|
||||
syscallcount equ 26
|
||||
section .text
|
||||
global arch_syscall_entry
|
||||
; on entry:
|
||||
|
||||
@@ -30,7 +30,8 @@ static char *name[] = {
|
||||
"chdir",
|
||||
"pipe2",
|
||||
"isatty",
|
||||
"faccessat"
|
||||
"faccessat",
|
||||
"unlinkat"
|
||||
};
|
||||
|
||||
static char *args[] = {
|
||||
@@ -58,7 +59,8 @@ static char *args[] = {
|
||||
"path %s", // chdir
|
||||
"flags %d", // pipe2
|
||||
"fd %d", // isatty
|
||||
"dirfd %d pathname %s mode %d flags %d" // faccessat
|
||||
"dirfd %d pathname %s mode %d flags %d", // faccessat
|
||||
"dirfd %d pathname %d flags %d" // unlinkat
|
||||
};
|
||||
|
||||
__attribute__((no_caller_saved_registers)) void arch_syscall_log(int syscall, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6) {
|
||||
|
||||
Reference in New Issue
Block a user