Reorganized sys functions

This commit is contained in:
Eduard Urbach 2025-02-06 13:46:37 +01:00
parent 170931cf5d
commit 9dcd43be46
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
15 changed files with 110 additions and 120 deletions

15
lib/sys/io_mac.q Normal file
View 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)
}