nx_gauge_gate.nx
buildroot/runtime/nx_gauge_gate.nx
about
nx_gauge_gate.nx -- CE9 (codeeffectiveness sm_gauge_alarm): the gauge-heartbeat ruler proven on planted stamps.
In-process over nx_gauge_lib (the ONE classifier the writing beat and the /compare emitter both use), so a stale
gauge is proven to read STALE and never zero, a blind axis to read BLIND, an absent stamp ABSENT, a future stamp
STALE (clock skew is never fresh), the value present ONLY on a FRESH row, and an unpinned cadence STALE by
construction. Every parsed field is -1 when absent, never 0. Rows written with real bytes under /tmp.
exit: 0 GREEN . 1 RED . 3 SKIP license_tier: ORIGINAL No hw writes.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gauge_lib.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
| 11 | const GG_ROOT: *u8 = "/tmp/nx_gauge_gate" |
| 12 | const GG_FRESH: *u8 = "/tmp/nx_gauge_gate/fresh.stamp" |
| 13 | const GG_STALE: *u8 = "/tmp/nx_gauge_gate/stale.stamp" |
| 14 | const GG_FUTURE: *u8 = "/tmp/nx_gauge_gate/future.stamp" |
| 15 | const GG_BLIND: *u8 = "/tmp/nx_gauge_gate/blind.stamp" |
| 16 | const GG_NOCAD: *u8 = "/tmp/nx_gauge_gate/nocad.stamp" |
| 17 | const GG_NOFIELD: *u8 = "/tmp/nx_gauge_gate/nofield.stamp" |
| 18 | const GG_ABSENT: *u8 = "/tmp/nx_gauge_gate/does-not-exist.stamp" |
| 19 | const GG_MODE_RWX: i64 = 493 |
| 20 | const GG_MODE_RW: i64 = 420 |
| 21 | const GG_NOW: i64 = 1788700000 |
| 22 | const GG_CAD: i64 = 100 // max_age = 2*100 = 200 |
| 23 | const GG_GAUGE: i64 = 42 |
| 24 | const GG_DOC: i64 = 4096 |
functions
| 26 | func gg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 27 | func gg_contains(buf: *u8, n: i64, needle: *u8) -> i64 |
| 35 | func gg_raw(path: *u8, s: *u8) -> i64 |
| 44 | func main(argc: i64, argv: *i64) -> i64 |