nx_catalog_lib.nx
buildroot/runtime/nx_catalog_lib.nx
about
dependencies 3 imports · 22 importers
diagram shows first 10 each side; +0 more imports, +12 more importers in the complete lists below.
imports: nx_syscalls.nxnx_organkind.nxnx_estate_path.nx
imported by: nx_catalog.nxnx_catalog_adopt_t75.nxnx_catalog_call_gate_20260909.nxnx_catalog_coverage_adopt_t75.nxnx_catalog_dispatch_t66.nxnx_compare_growth_matrix_full_20260910.nxnx_compare_rank.nxnx_compare_rank_artifact_20260910.nxnx_compare_rank_refresh_test_20260907.nxnx_compare_regen.nxnx_compare_regen_scoped.nxnx_compare_regen_t138.nxnx_compare_shared_fit_matrix_20260910.nxnx_domain_admit.nxnx_libindex_lib.nxnx_swcompare_evidence_matrix_t138.nxnx_swcompare_heading_matrix_20260907.nxnx_swcompare_matrix.nxnx_swcompare_matrix_ladder_test_20260907.nxnx_swcompare_matrix_rank_guard_t162.nxnx_swcompare_preview_matrix_t56.nxnx_swcompare_production_matrix_20260907.nx
structs
| none |
consts
| 29 | const CL_BUF: i64 = 4194304 // registry/consent/actlog read cap; the actlog read is TAIL-anchored (cl_slurp_tail) |
| 30 | const CL_PATH: i64 = 1024 |
| 31 | const CL_SEEK_SET: i64 = 0 |
| 32 | const CL_SEEK_END: i64 = 2 |
| 34 | const CLM_SRC: i64 = 0 // source bytes, or -1 when no root resolves it |
| 35 | const CLM_LIB: i64 = 1 // 1 = no top-level main() (a binary is not expected), 0 = program, -1 = unreadable |
| 36 | const CLM_BUILT: i64 = 2 // buildroot/_build/<n>.sov.elf bytes, or -1 |
| 37 | const CLM_STAGED: i64 = 3 // <n>.sov.elf.new bytes, or -1 (a loaded gun aimed at the next deploy) |
| 38 | const CLM_PROMOTED: i64 = 4 // <n>.elf | _offc/<n>.elf bytes, or -1 |
| 39 | const CLM_REG: i64 = 5 // 1 = tool_allowlist.conf row "<n><TAB>" |
| 40 | const CLM_AUTH: i64 = 6 // 1 = cap_consent.log mentions it |
| 41 | const CLM_INV: i64 = 7 // 1 = completed MCP call matched in supplied actlog window; not lifetime or quality evidence |
| 42 | const CLM_DKIND: i64 = 8 // declared kind from organ_kind.conf (OK_DAEMON or other) |
| 43 | const CLM_RESOLVED: i64 = 9 // HOW field 2 of the registry row resolved: one of the CLR_* below |
| 44 | const CLM_N: i64 = 10 |
| 49 | const CLR_NAME: i64 = 0 // no registry row at all -- the <name>.nx/<name>.elf convention answered |
| 50 | const CLR_PATH: i64 = 1 // field 2 STATTED AS GIVEN -- the row is the contract and the contract holds |
| 51 | const CLR_REGBASE: i64 = 2 // field 2 did NOT stat; its basename answered instead -> the row is MISPOINTED |
| 52 | const CL_CH_SLASH: i64 = 47 |
| 53 | const CL_CH_DOT: i64 = 46 |
| 55 | const CLV_ABSENT: i64 = 0 |
| 56 | const CLV_SOURCE_ONLY: i64 = 1 |
| 57 | const CLV_BUILT_UNPROMOTED: i64 = 2 |
| 58 | const CLV_PROMOTED_SOURCELESS: i64 = 3 |
| 59 | const CLV_PROMOTED_UNREGISTERED: i64 = 4 |
| 60 | const CLV_REGISTERED_UNAUTHORISED: i64 = 5 |
| 61 | const CLV_REGISTERED_DARK: i64 = 6 |
| 62 | const CLV_LIVE: i64 = 7 |
| 63 | const CLV_LIB: i64 = 8 |
| 64 | const CLV_LIVE_DAEMON: i64 = 9 |
| 67 | const CLV_FIXTURE: i64 = 10 |
| 68 | const CLV_REGISTRY_MISPOINTED: i64 = 11 |
| 69 | const CLV_N: i64 = 12 |
| 184 | const CLC_STATE:i64=0 |
| 185 | const CLC_EXTENT:i64=1 |
| 186 | const CLC_START:i64=2 |
| 187 | const CLC_END:i64=3 |
| 188 | const CLC_READ:i64=4 |
| 189 | const CLC_HEAD:i64=5 |
| 190 | const CLC_TAIL:i64=6 |
| 191 | const CLC_ERRNO:i64=7 |
| 192 | const CLC_FINAL:i64=8 |
| 193 | const CLC_OBSERVED:i64=9 |
| 194 | const CLC_N:i64=10 |
| 195 | const CLC_OK:i64=0 |
| 196 | const CLC_OPEN:i64=1 |
| 197 | const CLC_SEEK:i64=2 |
| 198 | const CLC_ALLOC:i64=3 |
| 199 | const CLC_READ_ERROR:i64=4 |
| 200 | const CLC_CHANGED:i64=5 |
| 201 | const CLC_CLOSE:i64=6 |
| 202 | const CLC_INVALID:i64=7 |
| 740 | const CLB_TOK_CAP: i64 = 96 |
| 741 | const CLB_FULL: i64 = 1 |
| 742 | const CLB_PARTIAL: i64 = 0 |
| 743 | const CLB_NA: i64 = 2 |
| 744 | const CLB_TAB: i64 = 9 |
| 745 | const CLB_PIPE: i64 = 124 |
| 746 | const CLB_GA_COL_TRIAL: i64 = 17 // gateadjudicate.rows: name|src|...|ref|first_ref|trial|class |
| 747 | const CLB_GA_COL_CLASS: i64 = 18 |
| 748 | const CLB_IMP_COL_IMPORTERS: i64 = 1 // importers.tsv: name importers importers_nonval imports first |
| 749 | const CLB_IMP_COL_NONVAL: i64 = 2 |
| 751 | const CLB_REG: i64 = 0 |
| 752 | const CLB_REGN: i64 = 1 |
| 753 | const CLB_CNS: i64 = 2 |
| 754 | const CLB_CNSN: i64 = 3 |
| 755 | const CLB_ACT: i64 = 4 |
| 756 | const CLB_ACTN: i64 = 5 |
| 757 | const CLB_IMP: i64 = 6 |
| 758 | const CLB_IMPN: i64 = 7 |
| 759 | const CLB_GA: i64 = 8 |
| 760 | const CLB_GAN: i64 = 9 |
| 761 | const CLB_IMP_ASOF: i64 = 10 |
| 762 | const CLB_GA_ASOF: i64 = 11 |
| 767 | const CLB_ES: i64 = 12 |
| 768 | const CLB_ESN: i64 = 13 |
| 769 | const CLB_ES_ASOF: i64 = 14 |
| 770 | const CLB_N: i64 = 15 |
| 771 | const CLB_ES_COL_FIRST: i64 = 7 // execsurface.tsv: name clock cron daemon fork roster actlog first_surface |
| 772 | const CLB_REM_CAP: i64 = 512 // a composed remedy: the ladder's sentence plus the surfaces checked |
functions
| 71 | func cl_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 80 | func cl_estate_path(out: *u8, p: *u8) -> *u8 |
| 85 | func cl_open_estate(p: *u8) -> i64 |
| 93 | func cl_read_whole(path: *u8, lp: *i64) -> *u8 called by 3: cl_symbol_declaredclb_loadli_scan_dir calls 5: cl_open_estatesys_lseeksys_closesys_mmapsys_read |
| 116 | func cl_cat3(dst: *u8, pre: *u8, name: *u8, suf: *u8) -> i64 |
| 132 | func cl_fsize(path: *u8) -> i64 |
| 142 | func cl_has_sub(hay: *u8, hn: i64, ned: *u8) -> i64 |
| 161 | func cl_slurp(path: *u8, lp: *i64) -> *u8 |
| 203 | func cl_tail_state_name(s:i64)->*u8 |
| 213 | func cl_tail_reset(c:*i64)->i64 |
| 219 | func cl_slurp_tail_fd(fd:i64,cap:i64,lp:*i64,c:*i64)->*u8 called by 3: ct_fdmaincl_slurp_tail_covered calls 5: cl_tail_resetsys_lseeksys_mmapsys_munmapsys_read |
| 266 | func cl_slurp_tail_covered(path:*u8,lp:*i64,c:*i64)->*u8 called by 4: mainmainmaincl_slurp_tail calls 4: cl_tail_resetcl_open_estatecl_slurp_tail_fdsys_close |
| 275 | func cl_slurp_tail(path:*u8,lp:*i64)->*u8 |
| 290 | func cl_fsize_asgiven(path: *u8) -> i64 |
| 301 | func cl_strip1(out: *u8, o: i64, sfx: *u8) -> i64 called by 1: cl_strip_artifact |
| 314 | func cl_strip_artifact(out: *u8, o0: i64) -> i64 |
| 344 | func cl_regresolve(alw: *u8, alwn: i64, name: *u8, out: *u8, regp: *u8, rb: *i64, cap: i64) -> i64 |
| 397 | func cl_resolved_name(code: i64) -> *u8 |
| 406 | func cl_src(p: *u8, eff: *u8) -> i64 |
| 430 | func cl_is_lib(path: *u8) -> i64 |
| 466 | func cl_actlog_completed(act: *u8, n: i64, name: *u8) -> i64 |
| 522 | func cl_ladder(name: *u8, alw: *u8, alwn: i64, cns: *u8, cnsn: i64, act: *u8, actn: i64, m: *i64) -> i64 called by 4: cat_onecat_onecat_oneclb_classify calls 11: sys_mmapcl_regresolvecl_srccl_is_libcl_cat3cl_fsize+5 |
| 617 | func cl_gap(code: i64) -> i64 |
| 626 | func cl_verdict_name(code: i64) -> *u8 called by 1: clb_classify |
| 643 | func cl_remedy(code: i64) -> *u8 called by 1: clb_classify |
| 656 | func cl_verdict_text(code: i64) -> *u8 |
| 673 | func cl_name_of_path(path: *u8, out: *u8, cap: i64) -> i64 |
| 694 | func cl_symbol_declared(organ_path: *u8, sym: *u8) -> i64 called by 10: mainmainda_rule_disagreeefm_mainmainmain+4 calls 5: sys_mmapcl_slencl_cat3cl_read_wholesys_munmap |
| 774 | func clb_eq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } |
| 775 | func clb_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var p: i64 = o; while s[i] != (0 as u8) { d[p] = s[i]; p = p + 1; i = i + 1 } d[p] = 0 as u8; return p } called by 1: clb_classify |
| 776 | func clb_ends(s: *u8, sfx: *u8) -> i64 |
| 784 | func clb_catn(d: *u8, o: i64, v: i64) -> i64 |
| 799 | func clb_digits(b: *u8, i: i64, n: i64) -> i64 |
| 813 | func clb_row(b: *u8, n: i64, name: *u8, sep: i64) -> i64 |
| 830 | func clb_field_off(b: *u8, n: i64, r: i64, f: i64, sep: i64) -> i64 |
| 841 | func clb_field_str(b: *u8, n: i64, r: i64, f: i64, sep: i64, out: *u8, cap: i64) -> i64 |
| 855 | func clb_field_int(b: *u8, n: i64, r: i64, f: i64, sep: i64) -> i64 |
| 861 | func clb_last_kv(b: *u8, n: i64, key: *u8) -> i64 |
| 880 | func clb_load(ads: *i64) -> i64 called by 15: mainmainmainmainrg_selfcatalogrg_selfcatalog+9 calls 5: sys_mmapcl_slurpcl_slurp_tailcl_read_wholeclb_last_kv |
| 904 | func clb_classify(name: *u8, ads: *i64, tok: *u8, rem: *i64) -> i64 called by 15: mainmainmainmainrg_selfcatalogrg_selfcatalog+9 calls 12: clb_endsclb_rowsys_mmapclb_field_strclb_catclb_eq+6 |