Added socket syscalls

This commit is contained in:
Eduard Urbach 2024-07-21 21:30:37 +02:00
parent d35498b77a
commit eaeeba495e
Signed by: eduard
GPG key ID: 49226B848C78F6C8

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