Improved type system
This commit is contained in:
parent
78f2670553
commit
6eab48c586
62 changed files with 189 additions and 172 deletions
|
@ -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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue