syscalls: fchmod and fchmodat

This commit is contained in:
Matheus
2023-07-06 20:58:17 -03:00
parent a94d8f7389
commit e29d75580a
4 changed files with 106 additions and 8 deletions
+5 -1
View File
@@ -30,6 +30,8 @@ extern syscall_mkdirat
extern syscall_clockget
extern syscall_linkat
extern syscall_readlinkat
extern syscall_fchmod
extern syscall_fchmodat
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -62,7 +64,9 @@ dq syscall_mkdirat
dq syscall_clockget
dq syscall_linkat
dq syscall_readlinkat
syscallcount equ 31
dq syscall_fchmod
dq syscall_fchmodat
syscallcount equ 33
section .text
global arch_syscall_entry
; on entry:
+7 -3
View File
@@ -4,7 +4,7 @@
#ifdef SYSCALL_LOGGING
#define SYSCALL_COUNT 30
#define SYSCALL_COUNT 33
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -38,7 +38,9 @@ static char *name[] = {
"mkdirat",
"clockget",
"linkat",
"readlinkat"
"readlinkat",
"fchmod",
"fchmodat"
};
static char *args[] = {
@@ -72,7 +74,9 @@ static char *args[] = {
"dirfd %d path %s mode %o", // mkdirat
"clockid %d timespec %p", // clockget
"olddirfd %d oldpath %s newdirfd %d oldpath %s flags %d type %d", // linkat
"dirfd %d path %s buffer %p buffer length %lu" // readlinkat
"dirfd %d path %s buffer %p buffer length %lu", // readlinkat
"fd %d mode %o", // fchmod
"dirfd %d path %s mode %o flags %d" // fchmodat
};
#endif