code wiki / _hdl_build / nx_adnet_catalog.nx

nx_adnet_catalog.nx

buildroot/runtime/_hdl_build/nx_adnet_catalog.nx

12368 B223 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic adnet
docsdependenciesstructsconstsfunctions

about

nx_adnet_catalog.nx -- GENERATOR: the LIVING ad-real-estate CATALOGUE + sitemap for the sovereign ad network (operator 2026-07-09: "a state of the art catalogue of digital and physical and real estate and apps ... in living documentation and site maps so people can go between them"). LIVING DOCUMENTATION BY CONSTRUCTION: this organ renders the catalogue FROM the same data files the system runs on -- adnet_properties.txt (the property registry) + adnet_inventory.txt (the LIVE serving inventory) -- so re-running it can never disagree with what actually serves. Emits: knowledge/staging/adnet/adnet_catalog.html (human catalogue + cross-navigation) knowledge/staging/adnet/adnet_sitemap.xml (machine sitemap of every catalogued property) The catalogue page deliberately does NOT opt out of the ad slot: it demonstrates the live unit. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_adnet_slot.nx nx_adnet_catalog.nx

imports: nx_syscalls.nxnx_adnet_slot.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ac_puts sys_write sys_exit ac_section sys_mmap ↻ ad_eol aslot_field_b ad_tab aslot_cat_esc ad_cat ac_inventory sys_mmap ↻ ad_eol ↻ aslot_field_b ↻ aslot_id_ok aslot_cat_esc ↻ ac_sitemap aslot_cat_esc ↻ ac_wfile sys_openat_wr sys_write ↻ sys_close ↻ ac_has

structs

none

consts

13const K_MAGIC_1400: i64 = 1400
14const K_MAGIC_2048: i64 = 2048
15const K_MAGIC_262144: i64 = 262144
16const K_MAGIC_65536: i64 = 65536

functions

18func ac_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 calls 1: sys_write
20func ac_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
36func ac_section(reg: *u8, rn: i64, kind: *u8, out: *u8, o0: i64, cap: i64) -> i64
78func ac_sitemap(reg: *u8, rn: i64, out: *u8, cap: i64) -> i64
called by 1: main calls 1: aslot_cat_esc
104func ac_inventory(inv: *u8, iln: i64, out: *u8, o0: i64, cap: i64) -> i64
145func ac_wfile(path: *u8, buf: *u8, n: i64) -> i64
154func main() -> i64