Added socket syscalls for Mac
This commit is contained in:
parent
1b63ac73cf
commit
9908066c20
3 changed files with 30 additions and 16 deletions
15
lib/sys/network_linux.q
Normal file
15
lib/sys/network_linux.q
Normal file
|
@ -0,0 +1,15 @@
|
|||
socket(family Int, type Int, protocol Int) -> Int {
|
||||
return syscall(41, family, type, protocol)
|
||||
}
|
||||
|
||||
accept(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(43, fd, address, length)
|
||||
}
|
||||
|
||||
bind(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(49, fd, address, length)
|
||||
}
|
||||
|
||||
listen(fd Int, backlog Int) -> Int {
|
||||
return syscall(50, fd, backlog)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue