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,26 +1,26 @@
struct sockaddr_in {
sin_family Int16
sin_port Int16
sin_addr Int64
sin_zero Int64
sin_family int16
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(41, family, type, protocol)
}
accept(fd Int, address *Any, length Int) -> Int {
accept(fd int, address *any, length int) -> int {
return syscall(43, fd, address, length)
}
bind(fd Int, address *sockaddr_in, length Int) -> Int {
bind(fd int, address *sockaddr_in, length int) -> int {
return syscall(49, fd, address, length)
}
listen(fd Int, backlog Int) -> Int {
listen(fd int, backlog int) -> int {
return syscall(50, fd, backlog)
}
setsockopt(fd Int, level Int, optname Int, optval *Any, optlen Int) -> Int {
setsockopt(fd int, level int, optname int, optval *any, optlen int) -> int {
return syscall(54, fd, level, optname, optval, optlen)
}