nx_research_cleanup.nx
buildroot/runtime/nx_research_cleanup.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func 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 } |
| 13 | func g_pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 14 | func p_unlink(path: *u8) -> i64 { __syscall(263, AT_FDCWD, path, 0, 0, 0, 0); return 0 } called by 1: del |
| 15 | func have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 } |
| 16 | func 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 } |
| 18 | func main() -> i64 |