code wiki / _hdl_build / nx_domain_forge_gate.nx

nx_domain_forge_gate.nx

buildroot/runtime/_hdl_build/nx_domain_forge_gate.nx

4893 B80 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic domain
docsdependenciesstructsconstsfunctions

about

nx_domain_forge_gate.nx -- SOVEREIGN gate for the append-driven domain auto-builder. Writes a 2-domain registry, forges, and asserts each site was COMPOSED from Lego pieces (the hub blocks) into its docroot + the vhost + cert-registry rows were emitted. Then APPENDS a 3rd domain + re-forges -> it appears (the "append a domain and the builders emit it" property) AND the rewrite is IDEMPOTENT (3, not 6). GREEN iff T1..T8. Sovereign: nx_domain_forge + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_domain_forge.nx nx_syscalls.nx nx_domain_forge_gate.nx

imports: nx_domain_forge.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 g_w sys_write g_trunc sys_openat_wr sys_close g_writef sys_openat_wr ↻ sys_write ↻ g_len sys_close ↻ df_forge sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close ↻ sys_openat_wr ↻ df_eol df_split df_copyz df_emit sys_read_file ↻ ht_emit_hub ht_put ht_emit_first sys_mmap ↻ ht_eol ht_line_field ht_tageq ht_slen ht_esc ht_put ↻ ht_render_posts sys_mmap ↻ ht_eol ↻ ht_line_field ↻ ht_tageq ↻ ht_put ↻

structs

none

consts

none

functions

9func g_w(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: g_rowmain calls 1: sys_write
10func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
11func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
16func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 }
called by 1: main calls 2: sys_openat_wrsys_close
17func g_writef(path: *u8, s: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd < 0 { return 0-1 } sys_write(fd, s, g_len(s)); sys_close(fd); return 0 }
18func g_appendf(path: *u8, s: *u8) -> i64 { let fd: i64 = sys_openat_append(path, 0x1a4); if fd < 0 { return 0-1 } sys_write(fd, s, g_len(s)); sys_close(fd); return 0 }
19func g_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapsys_read_fileg_len
34func main() -> i64