Improved type system

This commit is contained in:
Eduard Urbach 2025-02-17 14:31:47 +01:00
parent 78f2670553
commit 6eab48c586
Signed by: eduard
GPG key ID: 49226B848C78F6C8
62 changed files with 189 additions and 172 deletions

View file

@ -1,23 +1,23 @@
struct sockaddr_in_bsd {
sin_len Int8
sin_family Int8
sin_port Int16
sin_addr Int64
sin_zero Int64
sin_len int8
sin_family int8
sin_port int16
sin_addr int64
sin_zero int64
}
socket(family Int, type Int, protocol Int) -> Int {
socket(family int, type int, protocol int) -> int {
return syscall(0x2000061, family, type, protocol)
}
accept(fd Int, address *Any, length Int) -> Int {
accept(fd int, address *any, length int) -> int {
return syscall(0x200001E, fd, address, length)
}
bind(fd Int, address *sockaddr_in_bsd, length Int) -> Int {
bind(fd int, address *sockaddr_in_bsd, length int) -> int {
return syscall(0x2000068, fd, address, length)
}
listen(fd Int, backlog Int) -> Int {
listen(fd int, backlog int) -> int {
return syscall(0x200006A, fd, backlog)
}