code wiki / _hdl_build / nx_browser_doc_gate.nx

nx_browser_doc_gate.nx

buildroot/runtime/_hdl_build/nx_browser_doc_gate.nx

9764 B184 linesdepth 2pulls 2 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 1 imports · 0 importers

nx_syscalls.nx nx_browser_doc_gate.nx

imports: nx_syscalls.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_exists sys_openat_rd sys_close bg_runv sys_fork sys_openat_wr sys_dup3 sys_mmap 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 ↻ bg_copy sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ bg_args0 sys_mmap ↻ bg_has sys_mmap ↻ bg_readall

structs

none

consts

none

functions

11func 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
12func bg_p(s: *u8) -> i64 { sys_write(1, s, bg_slen(s)); return 0 }
called by 2: bg_rowmain calls 2: sys_writebg_slen
13func 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 }
14func bg_catn(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
20func bg_write(path: *u8, content: *u8) -> i64
24func bg_readall(path: *u8, szout: *i64) -> *u8
30func bg_exists(path: *u8) -> i64
called by 1: main calls 2: sys_openat_rdsys_close
33func bg_copy(src: *u8, dst: *u8) -> i64
40func bg_sleep(ms: i64) -> i64 { let b: *u8=sys_mmap(8); sys_poll(b, 0, ms); return 0 }
41func 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)
44func bg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
61func bg_spawn(elf: *u8, logpath: *u8) -> i64
73func bg_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmapbg_readallbg_slen
80func bg_args2(a1: *u8, a2: *u8) -> *i64
called by 1: main calls 1: sys_mmap
83func bg_args0() -> *i64 { let a: *i64=sys_mmap(16) as *i64; a[0]=0; return a }
called by 1: main calls 1: sys_mmap
84func bg_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: bg_p
88func main(argc: i64, argv: *i64) -> i64