code wiki / _hdl_build / _xorc_parts_gate.nx
_xorc_parts_gate.nx
buildroot/runtime/_hdl_build/_xorc_parts_gate.nx
about
_xorc_parts_gate.nx -- self-validating gate for the X-ORC role-parts chain.
X-ORC-006 (owner parts, live): knowledge/parts/<owner>.txt exist + non-empty.
X-ORC-008 (section parts, rung2): knowledge/parts/section_<name>.txt exist and are LEAD-FIRST
(the FIRST "owner=" line in a section file == that section's lead per sections.tsv).
NEG/tamper: a bogus section file must NOT exist (proves the existence checks discriminate).
GREEN per rung iff its checks pass; writes machine-matchable verdicts to xorc_parts_gate.log.
dependencies 1 imports · 0 importers
imports: nx_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
| none |
functions
| 9 | func g_puts(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 10 | func g_putn(fd: i64, v: i64) -> i64 |
| 16 | func g_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 28 | func g_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd >= 0 { sys_close(fd); return 1 } return 0 } |
| 30 | func g_first_owner_is(buf: *u8, n: i64, name: *u8) -> i64 called by 1: main |
| 44 | func main(argc: i64, argv: *i64) -> i64 |