code wiki / _hdl_build / nx_url_scrub.nx

nx_url_scrub.nx

buildroot/runtime/_hdl_build/nx_url_scrub.nx

4921 B93 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic url
docsdependenciesstructsconstsfunctions

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

nx_docportal_search_seg.nx nx_itoa_lib.nx nx_url_scrub.nx

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

main us_puts us_len dss_prefix ss_open ss_open2 sys_mmap ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻ ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ss_r32 ↻ ssl_key_eq ss_r32 ↻

structs

none

consts

none

functions

9func 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
14func us_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
15func us_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
17func main(argc: i64, argv: *i64) -> i64