Removed old syscalls

This commit is contained in:
2025-04-15 09:31:49 +02:00
parent 6483573923
commit 19a8154e06
7 changed files with 143 additions and 107 deletions

View File

@ -1,15 +1,25 @@
read(fd int, buffer *byte, length int) -> int {
return syscall(63, fd, buffer, length)
}
write(fd int, buffer *byte, length int) -> int {
return syscall(64, fd, buffer, length)
}
mmap(address int, length uint, protection int, flags int) -> *any {
return syscall(222, address, length, protection, flags)
}
munmap(address *any, length uint) -> int {
return syscall(215, address, length)
const {
n {
read 63
write 64
mmap 222
munmap 215
openat 56
close 57
clone 220
execve 221
exit 93
waitid 95
socket 198
accept 202
bind 200
listen 201
setsockopt 208
getcwd 17
chdir 49
mkdirat 34
unlinkat 35
renameat 38
nanosleep 101
}
}