syscalls: umask

This commit is contained in:
Matheus
2023-07-06 21:17:54 -03:00
parent e29d75580a
commit 300e77e36d
9 changed files with 41 additions and 12 deletions
+3 -1
View File
@@ -32,6 +32,7 @@ extern syscall_linkat
extern syscall_readlinkat
extern syscall_fchmod
extern syscall_fchmodat
extern syscall_umask
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -66,7 +67,8 @@ dq syscall_linkat
dq syscall_readlinkat
dq syscall_fchmod
dq syscall_fchmodat
syscallcount equ 33
dq syscall_umask
syscallcount equ 34
section .text
global arch_syscall_entry
; on entry:
+5 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 33
#define SYSCALL_COUNT 34
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -40,7 +40,8 @@ static char *name[] = {
"linkat",
"readlinkat",
"fchmod",
"fchmodat"
"fchmodat",
"umask"
};
static char *args[] = {
@@ -76,7 +77,8 @@ static char *args[] = {
"olddirfd %d oldpath %s newdirfd %d oldpath %s flags %d type %d", // linkat
"dirfd %d path %s buffer %p buffer length %lu", // readlinkat
"fd %d mode %o", // fchmod
"dirfd %d path %s mode %o flags %d" // fchmodat
"dirfd %d path %s mode %o flags %d", // fchmodat
"mode %o" // umask
};
#endif