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

@ -22,6 +22,10 @@ close(fd int) -> int {
return syscall(n.close, fd)
}
stat(path *any, stat *file_stat) -> int {
return syscall(n.newfstatat, -100, path, stat, 0)
}
clone(flags uint, stack *any, parent *int, child *int, tls uint) -> int {
return syscall(n.clone, flags, stack, parent, child, tls)
}