Added socket syscalls for Mac

This commit is contained in:
2025-02-06 13:19:04 +01:00
parent ace2f3c4a5
commit 170931cf5d
3 changed files with 30 additions and 16 deletions

View File

@ -42,22 +42,6 @@ exit(status Int) {
syscall(60, status)
}
socket(family Int, type Int, protocol Int) -> Int {
return syscall(41, family, type, protocol)
}
accept(fd Int, address Pointer, length Int) -> Int {
return syscall(43, fd, address, length)
}
bind(fd Int, address Pointer, length Int) -> Int {
return syscall(49, fd, address, length)
}
listen(fd Int, backlog Int) -> Int {
return syscall(50, fd, backlog)
}
getcwd(buffer Pointer, length Int) -> Int {
return syscall(79, buffer, length)
}