Reorganized sys functions
This commit is contained in:
15
lib/sys/net_mac.q
Normal file
15
lib/sys/net_mac.q
Normal file
@ -0,0 +1,15 @@
|
||||
socket(family Int, type Int, protocol Int) -> Int {
|
||||
return syscall(0x2000061, family, type, protocol)
|
||||
}
|
||||
|
||||
accept(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(0x200001E, fd, address, length)
|
||||
}
|
||||
|
||||
bind(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(0x2000068, fd, address, length)
|
||||
}
|
||||
|
||||
listen(fd Int, backlog Int) -> Int {
|
||||
return syscall(0x200006A, fd, backlog)
|
||||
}
|
Reference in New Issue
Block a user