Removed old syscalls
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user