Improved error handling for struct types
This commit is contained in:
@ -13,7 +13,7 @@ accept(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(43, fd, address, length)
|
||||
}
|
||||
|
||||
bind(fd Int, address Pointer, length Int) -> Int {
|
||||
bind(fd Int, address *sockaddr_in, length Int) -> Int {
|
||||
return syscall(49, fd, address, length)
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
nanosleep(duration Pointer) -> Int {
|
||||
struct timespec {
|
||||
seconds Int
|
||||
nanoseconds Int
|
||||
}
|
||||
|
||||
nanosleep(duration *timespec) -> Int {
|
||||
return syscall(35, duration, 0)
|
||||
}
|
Reference in New Issue
Block a user