code wiki / (root) / nx_barfresh.nx

nx_barfresh.nx

buildroot/runtime/nx_barfresh.nx

5761 B123 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_barfresh.nx -- CLI over nx_barfresh_lib: is every bar on a /compare board the CURRENT MONTH'S, or attested this month as the newest the field has? Prints one line per bar, the partition, and a verdict LAST (positional readers take it). nx_barfresh <domain> [YYYY-MM] The optional month replaces the clock, so a seat can ask "would this board pass next month" and a probe can show the refusal firing on a live board without planting anything. exit: 0 FRESH | 1 STALE (the hard fail) | 2 usage | 3 NO-BAR (no bar rows) or NO-PLAN (unreadable in both trees) license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_barfresh_lib.nx nx_barfresh.nx

imports: nx_syscalls.nxnx_barfresh_lib.nx

imported by: nobody (leaf or entry point)

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

main bfc_w sys_write bf_slen bf_parse_ym bf_is_digit bf_ym_index bf_slen ↻ bf_now_ym 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 ↻ sys_clock_gettime_real bf_ym_of_epoch sys_mmap ↻ civil_from_days bf_ym_index ↻ sys_mmap ↻ bf_read_plan sys_mmap ↻ ct_build_path ct_cat sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap

structs

none

consts

11const BFC_ARG_DOMAIN: i64 = 1
12const BFC_ARG_MONTH: i64 = 2
13const BFC_EXIT_USAGE: i64 = 2
14const BFC_NUM_CAP: i64 = 24
15const BFC_YM_CAP: i64 = 12
16const BFC_STDOUT: i64 = 1

functions

18func bfc_w(s: *u8) -> i64
called by 3: bfc_wnbfc_wymmain calls 2: sys_writebf_slen
21func bfc_wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapbfc_w
34func bfc_wym(ix: i64) -> i64
called by 1: main calls 3: bfc_wsys_mmapbf_ym_write
41func bfc_wspan(buf: *u8, off: i64, len: i64) -> i64
called by 1: main calls 1: sys_write
46func main(argc: i64, argv: *i64) -> i64