code wiki / _hdl_build / nx_gated_edit_multi.nx

nx_gated_edit_multi.nx

buildroot/runtime/_hdl_build/nx_gated_edit_multi.nx

5471 B106 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic gated
docsdependenciesstructsconstsfunctions

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

nx_seat_drive_lib.nx nx_deploy_lib.nx nx_ge_str_lib.nx nx_syscalls.nx nx_gated_edit_multi.nx

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

main sd_w sys_write sys_exit sys_mmap dp_read sys_openat_rd sys_read sys_close ge_count ge_find ge_find ↻ dep_run_capture sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ sys_execve_clean sys_close ↻ sys_execve sys_exit ↻ sys_wait4 dp_writefile sys_openat_wr ↻ sys_write ↻ sys_close ↻ ge_eq sd_num sys_mmap ↻

structs

none

consts

15const GM_CAP: i64 = 1048576
16const GM_ECAP: i64 = 2097152
17const GM_MANIFEST: i64 = 65536
18const GM_PATH: i64 = 1024

functions

20func main(argc: i64, argv: *i64) -> i64