code wiki / (root) / nx_varfacts.nx

nx_varfacts.nx

buildroot/runtime/nx_varfacts.nx

10133 B249 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind tooltopic varfacts
docsdependenciesstructsconstsfunctions

about

nx_varfacts.nx -- CLI: VaM .var package measurements into the refcorpus plane. nx_varfacts probe <file.var> nx_varfacts sweep <listfile> <source> <provenance> <license> [put] The capability-target lane made mechanical (standing policy 1785794796): the package's own MANIFEST (central directory names/sizes) and its own DECLARED license are read; asset bytes are never opened, never converted, never published. Distribution rows ride rc_put_row's k>=8 admission wall like every reference corpus. Tail-window IO: a 519MB look pack costs an lseek and a few MB read. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_varfacts_lib.nx nx_mediafacts_lib.nx nx_refcorpus.nx nx_varfacts.nx

imports: nx_syscalls.nxnx_varfacts_lib.nxnx_mediafacts_lib.nxnx_refcorpus.nx

imported by: nobody (leaf or entry point)

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

main vfc_e sys_write vfc_slen sys_exit 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 ↻ vfc_read_tail sys_openat_rd sys_lseek sys_close sys_read vf_probe sys_mmap ↻ vf_cd_locate vf_u32 vf_u16 vf_cd_entry vf_u32 ↻ vf_u16 ↻ vf_zip64_extra vf_u16 ↻ vf_u64 vf_u32 ↻ vf_ends vf_has vfc_license

structs

none

consts

16const VFC_MAGIC_4194304: i64 = 4194304
18const VFC_TAIL: i64 = 8388608
19const VFC_MAX_FILES: i64 = 1024
20const VFC_PATH_MAX: i64 = 384

functions

22func vfc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: vfc_wvfc_e
23func vfc_w(s: *u8) -> i64 { sys_write(1, s, vfc_slen(s)); return 0 }
24func vfc_e(s: *u8) -> i64 { sys_write(2, s, vfc_slen(s)); return 0 }
called by 1: main calls 2: sys_writevfc_slen
25func vfc_num(v: i64) -> i64
38func vfc_itoa(v: i64, out: *u8) -> i64
called by 1: vfc_row calls 1: sys_mmap
54func vfc_read_tail(path: *u8, buf: *u8, sizebox: *i64) -> i64
76func vfc_license(path: *u8, facts: *i64, out: *u8) -> i64
98func vfc_print(facts: *i64, lic: *u8) -> i64
called by 1: main calls 2: vfc_wvfc_num
116func vfc_row(key: *u8, val: i64, unit: *u8, cnt: i64, src: *u8, prov: *u8, lic: *u8, do_put: i64, wrote: *i64) -> i64
127func vfc_mmm(base: *u8, arr: *i64, cnt: i64, unit: *u8, src: *u8, prov: *u8, lic: *u8, do_put: i64, wrote: *i64) -> i64
called by 1: main calls 3: mf_mediansys_mmapvfc_row
151func main(argc: i64, argv: *i64) -> i64