syscalls: mknodat

This commit is contained in:
Matheus
2024-08-11 14:44:53 -03:00
parent 40693d8ca0
commit b6ed9c1bac
5 changed files with 101 additions and 8 deletions
+3 -1
View File
@@ -77,6 +77,7 @@ extern syscall_pause
extern syscall_ppoll
extern syscall_pread
extern syscall_pwrite
extern syscall_mknodat
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -156,7 +157,8 @@ dq syscall_pause
dq syscall_ppoll
dq syscall_pread
dq syscall_pwrite
syscallcount equ 78
dq syscall_mknodat
syscallcount equ 79
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -5,7 +5,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 78
#define SYSCALL_COUNT 79
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -86,7 +86,8 @@ static char *name[] = {
"pause",
"ppoll",
"pread",
"pwrite"
"pwrite",
"mknodat"
};
static char *args[] = {
@@ -165,9 +166,10 @@ static char *args[] = {
"fd %d addr %p addrlen %p", // getpeername
"path %s", // chroot
"N/A", // pause
"fds %p nfds %d timeout %p sigmask %p" // ppoll
"fds %p nfds %d timeout %p sigmask %p", // ppoll
"fd %d buffer %p count %lu offset %lu\n", // pread
"fd %d buffer %p count %lu offset %lu\n", // pwrite
"dirfd %d path %s mode %o dev %x\n" // mknodat
};
#endif