code wiki / _hdl_build / nx_domain_forge_gate.nx
nx_domain_forge_gate.nx
buildroot/runtime/_hdl_build/nx_domain_forge_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func 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 } |
| 10 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 11 | func g_row(name: *u8, ok: i64) -> i64 |
| 16 | func g_trunc(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x180); if fd >= 0 { sys_close(fd) } return 0 } |
| 17 | func 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 } |
| 18 | func 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 } |
| 19 | func g_has(path: *u8, needle: *u8) -> i64 |
| 34 | func main() -> i64 |