code wiki / _hdl_build / nx_frontier_put.nx

nx_frontier_put.nx

buildroot/runtime/_hdl_build/nx_frontier_put.nx

13494 B275 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic frontier
docsdependenciesstructsconstsfunctions

about

nx_frontier_put.nx -- STORE-NATIVE edit verb for the frontier plane (operator 2026-07-18: "we are supposed to use the nishi information management formats and system"). The seg-store IS the edit surface; the flat TSV becomes a GENERATED VIEW re-exported on every put, byte-consistent, so the cron seed-before-emit and legacy readers stay true during the transition (F-201b retires it). nx_frontier_put set <id> <T|D|X> [prefix] [exportpath] nx_frontier_put add <tab-row-9col> [prefix] [exportpath] Fail-closed: unknown id / duplicate id / bad status commit NOTHING. flock on <prefix>plock. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_frontier_put.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main fp_werr sys_write sys_exit fp_span_lit fp_vlen fp_lock sys_mmap fp_cat sys_openat_append sys_flock sys_mmap ↻ sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻

structs

none

consts

13const FP_CAP: i64 = 1048576
14const FP_TAB: i64 = 9
15const FP_NL: i64 = 10
16const FP_STDERR: i64 = 2
17const FP_LOCK_EX: i64 = 2
18const FP_MODE: i64 = 420
19const FP_SPAN: i64 = 16
20const FP_PATHCAP: i64 = 256
21const FP_HDRCAP: i64 = 512
22const FP_EXIT_USAGE: i64 = 2

functions

24func fp_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
calls 1: sys_write
25func fp_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(FP_STDERR, s, n); return 0 }
called by 1: main calls 1: sys_write
26func fp_vlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
27func fp_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { d[o] = s[i]; o = o + 1; i = i + 1 } return o }
28func fp_catn(d: *u8, o: i64, v: i64) -> i64 { let t: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 } var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { d[o] = t[k-1-i]; o = o + 1; i = i + 1 } return o }
called by 1: main calls 1: sys_mmap
29func fp_le(q: *u8, i: i64, n: i64) -> i64 { var e: i64 = i; var s: i64 = 1; while s == 1 { if e >= n { s = 0 } else { if q[e] == (FP_NL as u8) { s = 0 } else { e = e + 1 } } } return e }
called by 2: fp_max_fidmain
30func fp_col(q: *u8, ls: i64, le: i64, c: i64, out: *i64) -> i64
called by 2: fp_max_fidmain
46func fp_span_lit(q: *u8, s: i64, e: i64, lit: *u8) -> i64
called by 1: main
56func fp_max_fid(q: *u8, n: i64, letter: i64) -> i64
called by 1: main calls 3: sys_mmapfp_lefp_col
78func fp_lock(prefix: *u8) -> i64
89func fp_export(path: *u8, rows: *u8, n: i64) -> i64
100func main(argc: i64, argv: *i64) -> i64