Reorganized sys functions
This commit is contained in:
parent
170931cf5d
commit
9dcd43be46
15 changed files with 110 additions and 120 deletions
15
lib/sys/io_mac.q
Normal file
15
lib/sys/io_mac.q
Normal file
|
@ -0,0 +1,15 @@
|
|||
read(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(0x2000003, fd, address, length)
|
||||
}
|
||||
|
||||
write(fd Int, address Pointer, length Int) -> Int {
|
||||
return syscall(0x2000004, fd, address, length)
|
||||
}
|
||||
|
||||
open(file Pointer, flags Int, mode Int) -> Int {
|
||||
return syscall(0x2000005, file, flags, mode)
|
||||
}
|
||||
|
||||
close(fd Int) -> Int {
|
||||
return syscall(0x2000006, fd)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue