Implemented stat syscall

This commit is contained in:
Eduard Urbach 2025-04-15 18:56:01 +02:00
parent 98abc0d3a8
commit c238e3a190
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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)
}