Improved type system
This commit is contained in:
parent
c0ffddaba8
commit
2e3857622a
30 changed files with 132 additions and 85 deletions
|
@ -9,7 +9,7 @@ socket(family Int, type Int, protocol Int) -> Int {
|
|||
return syscall(41, family, type, protocol)
|
||||
}
|
||||
|
||||
accept(fd Int, address Pointer, length Int) -> Int {
|
||||
accept(fd Int, address *Any, length Int) -> Int {
|
||||
return syscall(43, fd, address, length)
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,6 @@ listen(fd Int, backlog Int) -> Int {
|
|||
return syscall(50, fd, backlog)
|
||||
}
|
||||
|
||||
setsockopt(fd Int, level Int, optname Int, optval Pointer, 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