code wiki / _hdl_build / nx_url_scrub.nx
nx_url_scrub.nx
buildroot/runtime/_hdl_build/nx_url_scrub.nx
about
nx_url_scrub.nx -- ADDITIVE repair for poisoned url:<cid> rows (the 2026-07-03 empty-literal bug stamped
every library doc with an unterminated-pool href). Append-only store law: never delete -- SHADOW each bad
row with a 0-length value in a fresh segment; the serve layer treats ul==0 as "no url" and falls back to
the /doc view. usage: nx_url_scrub <domain> <bad-prefix> (scrubs rows whose CURRENT value starts with
bad-prefix; idempotent -- an already-shadowed row has length 0 and never matches). license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_docportal_search_seg.nxnx_itoa_lib.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 us_puts(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 1: main |
| 14 | func us_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 15 | func us_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 17 | func main(argc: i64, argv: *i64) -> i64 |