mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: getsockopt
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user