nx_fileop.nx
buildroot/runtime/nx_fileop.nx
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)
nx_fileop prepare-install-intent INTENT SOURCE LIVE CANDIDATE BACKUP NEW_SHA256 OLD_SHA256 MODE_DECIMAL BUDGET_BYTES
Creates or verifies an identical immutable intent; never publishes an artifact.
No shell. license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_file_install.nxnx_gate.nx
imported by: nx_fileop_intent_gate_20260910.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 12 | func 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 } |
| 13 | func 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 |
| 15 | func main(argc: i64, argv: *i64) -> i64 |
| 44 | func fo_intent_error(stage:*u8,code:i64)->i64 |
| 47 | func fo_decimal(s:*u8,max:i64,out:*i64)->i64 called by 1: fo_prepare_intent |
| 52 | func fo_digest(s:*u8,out:*u8)->i64 |
| 58 | func fo_plan_matches(p:*NxFileInstallPlan,argv:*i64,newhash:*u8,oldhash:*u8,mode:i64)->i64 |
| 61 | func fo_prepare_intent(argc:i64,argv:*i64)->i64 called by 2: mainmain calls 11: fo_intent_errorfi_plan_initfi_path_validfo_streqfo_digestfo_decimal+5 |