code wiki / _hdl_build / nx_ecomat_put.nx
nx_ecomat_put.nx
buildroot/runtime/_hdl_build/nx_ecomat_put.nx
about
nx_ecomat_put.nx -- store-native autoid domain adder for the ecomat maturity plane (acl F771).
Adds ONE domain to the seg-store at the next CONTIGUOUS id, atomically under flock. ss_commit REPLACES
the store with the write-set (gate-proven), so this RELOADS every existing domain + adds the new one +
commits the whole set (load-all/write-all, like nx_frontier_put). Kills the two-edit-surface seeder
clobber (no seeder-source edit). No hw writes (Rule 26). Gate: nx_ecomat_put_gate 3/3 on a throwaway.
nx_ecomat_put addauto <axis> <layer> <cur> <bar> <weight> <domain> <bench> <nextrung> [evlog] [evpat] [prefix]
exit: 0 ok (ECOMAT-PUT id=N) | 2 usage | 1 fail-closed.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_ecomat_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
structs
| none |
consts
| 12 | const EP_MAGIC_1024: i64 = 1024 |
| 14 | const EP_STDERR: i64 = 2 |
| 15 | const EP_MODE: i64 = 420 |
| 16 | const EP_LOCK_EX: i64 = 2 |
functions
| 18 | func ep_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 19 | func ep_werr(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(EP_STDERR, s, n); return 0 } |
| 20 | func ep_vlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 21 | func ep_atoi(s: *u8) -> i64 { var v: i64 = 0; var i: i64 = 0; while s[i] != (0 as u8) { let c: i64 = s[i] as i64; if c >= 48 { if c <= 57 { v = v * 10 + (c - 48) } } i = i + 1 } return v } called by 1: main |
| 22 | func ep_catn(fd: i64, v: i64) -> i64 { var m: i64 = v; if m < 0 { m = 0 } let t: *u8 = sys_mmap(28); 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 } let o: *u8 = sys_mmap(28); var i: i64 = 0; while i < k { o[i] = t[k-1-i]; i = i + 1 } sys_write(fd, o, k); return 0 } |
| 23 | func ep_lock(prefix: *u8) -> i64 |
| 37 | func main(argc: i64, argv: *i64) -> i64 |