syscalls: getsockopt

This commit is contained in:
Matheus
2026-04-01 17:22:22 -03:00
parent d20c86f70d
commit ea8da40128
5 changed files with 96 additions and 5 deletions
+3 -1
View File
@@ -101,6 +101,7 @@ extern syscall_readv
extern syscall_yield
extern syscall_fstatvfs
extern syscall_fstatvfsat
extern syscall_getsockopt
syscalltab:
dq syscall_print
dq syscall_mmap
@@ -204,7 +205,8 @@ dq syscall_readv
dq syscall_yield
dq syscall_fstatvfs
dq syscall_fstatvfsat
syscallcount equ 102
dq syscall_getsockopt
syscallcount equ 103
section .text
global arch_syscall_entry
; on entry:
+3 -1
View File
@@ -8,7 +8,7 @@
void arch_interrupt_disable();
void arch_interrupt_enable();
#define SYSCALL_COUNT 102
#define SYSCALL_COUNT 103
#define LOGSTR(x) arch_e9_puts(x)
static char *name[] = {
@@ -114,6 +114,7 @@ static char *name[] = {
"yield",
"fstatvfs",
"fstatvfsat",
"getsockopt",
};
static char *args[] = {
@@ -219,6 +220,7 @@ static char *args[] = {
"N/A", // yield
"fd %d ustat %p", // fstatvfs
"dirfd %d path %s ustat %p flags %d", // fstatvfsat
"fd %d level %d optname %d optval %p optlen %p", // getsockopt
};
#endif