code wiki / _hdl_build / nx_gated_edit_multi.nx
nx_gated_edit_multi.nx
buildroot/runtime/_hdl_build/nx_gated_edit_multi.nx
about
nx_gated_edit_multi.nx -- MULTI-EDIT gated applier: apply N exact old->new edits ATOMICALLY, keep iff a
verify command's output is byte-identical before/after (else restore ALL + refuse). The multi-edit
generalisation of nx_gated_edit -- needed for delegation that adds an IMPORT line AND replaces a body
as ONE unit, so the g_check-bulk organs (which don't import the base) consolidate onto a shared lib.
argv: <srcfile> <manifestfile> <verifyelf> <verifyarg>
manifest: one edit per line, oldfile<TAB>newfile (paths -> no argv escaping). Edits applied in order;
each old must occur EXACTLY once in the evolving working copy, else REFUSE-ALL (no partial writes).
exit: 0 CONSOLIDATED | 1 REFUSED (restored) | 2 usage/edit-contract (untouched) | 3 verify-before-empty
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 4 imports · 0 importers
imports: nx_seat_drive_lib.nxnx_deploy_lib.nxnx_ge_str_lib.nxnx_syscalls.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
| 15 | const GM_CAP: i64 = 1048576 |
| 16 | const GM_ECAP: i64 = 2097152 |
| 17 | const GM_MANIFEST: i64 = 65536 |
| 18 | const GM_PATH: i64 = 1024 |
functions
| 20 | func main(argc: i64, argv: *i64) -> i64 |