Reorganized sys functions
This commit is contained in:
15
lib/sys/io_linux.q
Normal file
15
lib/sys/io_linux.q
Normal file
@ -0,0 +1,15 @@
|
||||
read(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(0, fd, address, length)
|
||||
}
|
||||
|
||||
write(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(1, fd, address, length)
|
||||
}
|
||||
|
||||
open(file Pointer, flags Int, mode Int) -> Int {
|
||||
return syscall(2, file, flags, mode)
|
||||
}
|
||||
|
||||
close(fd Int) -> Int {
|
||||
return syscall(3, fd)
|
||||
}
|
Reference in New Issue
Block a user