Reorganized sys functions
This commit is contained in:
parent
9908066c20
commit
c352778c6d
15 changed files with 110 additions and 120 deletions
15
lib/sys/net_linux.q
Normal file
15
lib/sys/net_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