Added socket syscalls
This commit is contained in:
parent
3ea2f280d9
commit
e91e894046
@ -30,6 +30,22 @@ exit(code) {
|
||||
syscall(60, code)
|
||||
}
|
||||
|
||||
socket(family, type, protocol) {
|
||||
return syscall(41, family, type, protocol)
|
||||
}
|
||||
|
||||
accept(fd, address, length) {
|
||||
return syscall(43, fd, address, length)
|
||||
}
|
||||
|
||||
bind(fd, address, length) {
|
||||
return syscall(49, fd, address, length)
|
||||
}
|
||||
|
||||
listen(fd, backlog) {
|
||||
return syscall(50, fd, backlog)
|
||||
}
|
||||
|
||||
getcwd(buffer, length) {
|
||||
return syscall(79, buffer, length)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user