code wiki / _hdl_build / nx_browser_doc_gate.nx
nx_browser_doc_gate.nx
buildroot/runtime/_hdl_build/nx_browser_doc_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func bg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n } |
| 12 | func bg_p(s: *u8) -> i64 { sys_write(1, s, bg_slen(s)); return 0 } |
| 13 | func 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 } |
| 14 | func bg_catn(dst: *u8, off: i64, v: i64) -> i64 calls 1: sys_mmap |
| 20 | func bg_write(path: *u8, content: *u8) -> i64 |
| 24 | func bg_readall(path: *u8, szout: *i64) -> *u8 |
| 30 | func bg_exists(path: *u8) -> i64 |
| 33 | func bg_copy(src: *u8, dst: *u8) -> i64 |
| 40 | func bg_sleep(ms: i64) -> i64 { let b: *u8=sys_mmap(8); sys_poll(b, 0, ms); return 0 } |
| 41 | func 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) |
| 44 | func bg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 61 | func bg_spawn(elf: *u8, logpath: *u8) -> i64 |
| 73 | func bg_has(path: *u8, needle: *u8) -> i64 |
| 80 | func bg_args2(a1: *u8, a2: *u8) -> *i64 |
| 83 | func bg_args0() -> *i64 { let a: *i64=sys_mmap(16) as *i64; a[0]=0; return a } |
| 84 | func bg_row(name: *u8, pass: i64) -> i64 |
| 88 | func main(argc: i64, argv: *i64) -> i64 |