code wiki / _hdl_build / nx_browser_doc_gate.nx

nx_browser_doc_gate.nx

buildroot/runtime/_hdl_build/nx_browser_doc_gate.nx

12456 B219 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_doc_gate.nx -- gate for the BROWSER-NATIVE document omnitool: nx_browser's load_page diverts a registered document extension (.md/.csv/.docx via knowledge/doc_viewers.conf) through the nx_doc_view dispatch and paints the renderer's HTML inline. E2E and headless: a fixture HTTP server (nx_browser_view_serve, docroot _offc, :8099) serves real files; the REAL browser (SITETEST mode) navigates to them over its own HTTP stack. Rows: 1 instruments 2 neg-html-untouched(+renders) 3 md-converted 4 csv-converted 5 docx-converted 6 all-laid-out-in-browser 7 outputs-sovereign-0js Stale-proofing: expected artifacts are OVERWRITTEN with STALE sentinels before run B (no unlink syscall), so every marker found was written by THIS run. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_browser_doc_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main bg_p sys_write bg_slen bg_pick3 bg_exists sys_openat_rd sys_close bg_exists ↻ bg_runv sys_fork sys_openat_wr sys_dup3 sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_execve sys_exit ↻ sys_wait4 bg_args2 sys_mmap ↻ bg_row bg_p ↻ bg_write sys_openat_wr ↻ sys_write ↻ bg_slen ↻ sys_close ↻

structs

none

consts

none

functions

12func bg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n }
called by 3: bg_pbg_writebg_has
13func bg_p(s: *u8) -> i64 { sys_write(1, s, bg_slen(s)); return 0 }
called by 2: bg_rowmain calls 2: sys_writebg_slen
14func bg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i }
15func bg_catn(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
21func bg_write(path: *u8, content: *u8) -> i64
25func bg_readall(path: *u8, szout: *i64) -> *u8
31func bg_exists(path: *u8) -> i64
called by 2: bg_pick3main calls 2: sys_openat_rdsys_close
36func bg_pick3(a: *u8, b: *u8, c: *u8) -> *u8
called by 1: main calls 1: bg_exists
41func bg_copy(src: *u8, dst: *u8) -> i64
48func bg_sleep(ms: i64) -> i64 { let b: *u8=sys_mmap(8); sys_poll(b, 0, ms); return 0 }
49func bg_kill(pid: i64) -> i64 { return __syscall(129, pid, 9, 0, 0, 0, 0) } // kill(2), SIGKILL. rv64 kill=129; raw x86 62 is an RV64 KEY translated to lseek(8) -- the kill never happened (debt idx 2277)
52func bg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
69func bg_spawn(elf: *u8, logpath: *u8) -> i64
81func bg_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapbg_readallbg_slen
88func bg_args2(a1: *u8, a2: *u8) -> *i64
called by 1: main calls 1: sys_mmap
91func bg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64
called by 1: main calls 1: sys_mmap
94func bg_args0() -> *i64 { let a: *i64=sys_mmap(16) as *i64; a[0]=0; return a }
called by 1: main calls 1: sys_mmap
95func bg_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: bg_p
99func main(argc: i64, argv: *i64) -> i64