Implemented stat syscall

This commit is contained in:
2025-04-15 18:56:01 +02:00
parent 392b35423f
commit 53ecf40229
6 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import fs
import sys
main() {
show("/proc/sys/kernel/ostype")
show("/proc/sys/kernel/osrelease")
show("/proc/sys/kernel/arch")
}
show(path []byte) {
contents, length := fs.readFile(path)
sys.write(1, contents, length)
}