lib: drop snake_case from io/types/bufio/net/os exports

This commit is contained in:
2026-05-11 14:15:53 +09:00
parent 2c33228b7e
commit 2918013c1a
11 changed files with 37 additions and 37 deletions

View File

@@ -16,9 +16,9 @@ def SYS_ACCEPT: i64 = 43;
def SYS_BIND: i64 = 49;
def SYS_LISTEN: i64 = 50;
// sockaddr_in is laid out by the kernel: family u16, port u16 (BE),
// sockaddrin is laid out by the kernel: family u16, port u16 (BE),
// addr u32 (BE), padding 8B = 16B total. Caller fills it.
type sockaddr_in = struct {
type sockaddrin = struct {
family: u16,
port: u16,
addr: u32,
@@ -30,11 +30,11 @@ export fn socket() i32 = {
IPPROTO_TCP: i64): i32;
};
export fn connect(fd: i32, sa: *sockaddr_in) i32 = {
export fn connect(fd: i32, sa: *sockaddrin) i32 = {
return syscall3(SYS_CONNECT, fd: i64, sa: i64, 16): i32;
};
export fn bind(fd: i32, sa: *sockaddr_in) i32 = {
export fn bind(fd: i32, sa: *sockaddrin) i32 = {
return syscall3(SYS_BIND, fd: i64, sa: i64, 16): i32;
};