code wiki / (root) / nx_research_cleanup.nx

nx_research_cleanup.nx

buildroot/runtime/nx_research_cleanup.nx

2189 B31 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic research
docsdependenciesstructsconstsfunctions

about

nx_research_cleanup.nx -- SOVEREIGN deletion of the 7 copy-paste nx_*_research_fetch organs, now SUPERSEDED by thin topic organs composing nx_research_engine (rule-15 DRY correction). Uses unlinkat(263) -- the ecosystem's own delete (the nx_cad_nas_probe precedent), NOT a shell rm. Idempotent: confirms each file is gone after unlink. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_research_cleanup.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write del p_unlink g_puts ↻ have sys_openat_rd sys_close g_pn nxi_out nxi_fd sys_mmap ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

none

functions

8func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: delmain calls 1: sys_write
13func g_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
15func have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: del calls 2: sys_openat_rdsys_close
16func del(path: *u8) -> i64 { p_unlink(path); g_puts(" "); g_puts(path); if have(path)==0 { g_puts(" -> gone\n" as *u8); return 1 } g_puts(" -> STILL PRESENT\n" as *u8); return 0 }
called by 1: main calls 3: p_unlinkg_putshave
18func main() -> i64
calls 3: g_putsdelg_pn