Added socket syscalls
This commit is contained in:
parent
d35498b77a
commit
eaeeba495e
1 changed files with 16 additions and 0 deletions
|
@ -30,6 +30,22 @@ exit(code) {
|
||||||
syscall(60, 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) {
|
getcwd(buffer, length) {
|
||||||
return syscall(79, buffer, length)
|
return syscall(79, buffer, length)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue