code wiki / (root) / nx_fileop.nx

nx_fileop.nx

buildroot/runtime/nx_fileop.nx

2365 B38 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_fileop.nx -- sovereign file-op CLI (retires Remove-Item / mv). Composes the canonical nx_fio + nx_syscalls's sys_renameat. Usage: nx_fileop rm <path> delete a file (refuses empty / "/" ) nx_fileop mv <src> <dst> atomic rename (sys_renameat) nx_fileop exists <path> existence check (exit 0 if present, 3 if absent) No shell. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_fio.nx nx_gate.nx nx_fileop.nx

imports: nx_fio.nxnx_gate.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write fo_streq fo_bad_path fio_exists sys_mmap sys_fstatat fio_unlink gn sys_write ↻ sys_mmap ↻ sys_renameat

structs

none

consts

none

functions

10func fo_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8) { if a[i]!=b[i] { return 0 } i=i+1 } if b[i]!=(0 as u8) { return 0 } return 1 }
called by 1: main
11func fo_bad_path(p: *u8) -> i64 { if p[0]==(0 as u8) { return 1 } if p[0]==(0x2f as u8) { if p[1]==(0 as u8) { return 1 } } return 0 }
called by 1: main
13func main(argc: i64, argv: *i64) -> i64