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