Added socket syscalls

This commit is contained in:
Eduard Urbach 2024-07-21 21:30:37 +02:00
parent 3ea2f280d9
commit e91e894046
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -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)
}