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