code wiki / (root) / nx_civicmap.nx

nx_civicmap.nx

buildroot/runtime/nx_civicmap.nx

16374 B393 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_civicmap.nx -- the VERBS of the civic quality-of-life map. All judgement lives in nx_civicmap_lib.nx; this file is argv, defaults and exit codes, so the logic stays testable in-process by nx_civicmap_gate and reachable by the mutation harness. admit [layers.conf] -- CM1: run the refusing door over every layer row join <counties.conf> <lat_ud> <lon_ud> -- CM2: which county contains this point emit <title> [out] [counties] [values] [layers] -- CM3: render the honest choropleth EXIT CODES: 0 ran, 1 a partition did not sum (an internal leak, never a data verdict), 3 UNPROVEN -- a conf that could not be read is "I could not look", which is not "there is nothing there". A REFUSED LAYER IS NOT A FAILURE OF THIS ORGAN: refusing an unlicensed or unmirrored row IS the organ working, so refusals are reported and counted, never turned into a non-zero exit. license_tier: ORIGINAL No hardware writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_estate_path.nx nx_civicmap_lib.nx nx_civicmap.nx

imports: nx_syscalls.nxnx_estate_path.nxnx_civicmap_lib.nx

imported by: nobody (leaf or entry point)

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

main cm_usage cm_w sys_write sys_exit cm_eqlit cm_starts cm_do_admit sys_mmap nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ep_artifact_path sys_openat_rd sys_close ep_join cm_w ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ↻ cm_to cm_starts ↻ cm_layer_admit cm_nfields cm_fld

structs

none

consts

none

functions

17func cm_usage() -> i64
called by 1: main calls 1: cm_w
23func cm_do_admit(path: *u8) -> i64
93func cm_do_join(cpath: *u8, lat: i64, lon: i64) -> i64
called by 1: main calls 4: sys_mmapcm_wcm_fips_joincm_n
127func cm_do_emit(title: *u8, outpath: *u8, cpath: *u8, vpath: *u8, lpath: *u8) -> i64
350func main(argc: i64, argv: *i64) -> i64