mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
syscalls: mkdirat and gethostname + uname stubs in mlibc
This commit is contained in:
@@ -26,6 +26,7 @@ extern syscall_isatty
|
||||
extern syscall_faccessat
|
||||
extern syscall_unlinkat
|
||||
extern syscall_ioctl
|
||||
extern syscall_mkdirat
|
||||
syscalltab:
|
||||
dq syscall_print
|
||||
dq syscall_mmap
|
||||
@@ -54,7 +55,8 @@ dq syscall_isatty
|
||||
dq syscall_faccessat
|
||||
dq syscall_unlinkat
|
||||
dq syscall_ioctl
|
||||
syscallcount equ 27
|
||||
dq syscall_mkdirat
|
||||
syscallcount equ 28
|
||||
section .text
|
||||
global arch_syscall_entry
|
||||
; on entry:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#ifdef SYSCALL_LOGGING
|
||||
|
||||
#define SYSCALL_COUNT 25
|
||||
#define SYSCALL_COUNT 28
|
||||
#define LOGSTR(x) arch_e9_puts(x)
|
||||
|
||||
static char *name[] = {
|
||||
@@ -33,7 +33,9 @@ static char *name[] = {
|
||||
"pipe2",
|
||||
"isatty",
|
||||
"faccessat",
|
||||
"unlinkat"
|
||||
"unlinkat",
|
||||
"ioctl",
|
||||
"mkdirat"
|
||||
};
|
||||
|
||||
static char *args[] = {
|
||||
@@ -62,7 +64,9 @@ static char *args[] = {
|
||||
"flags %d", // pipe2
|
||||
"fd %d", // isatty
|
||||
"dirfd %d pathname %s mode %d flags %d", // faccessat
|
||||
"dirfd %d pathname %d flags %d" // unlinkat
|
||||
"dirfd %d pathname %d flags %d", // unlinkat
|
||||
"fd %d request %lu argument %d", // ioctl
|
||||
"dirfd %d path %s mode %o" // mkdirat
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user