code wiki / _hdl_build / nx_xlate_gap_gate.nx

nx_xlate_gap_gate.nx

buildroot/runtime/_hdl_build/nx_xlate_gap_gate.nx

5582 B110 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic xlate
docsdependenciesstructsconstsfunctions

about

nx_xlate_gap_gate.nx -- regression gate for the NXASM-SYSCALL-XLATE-GAP class: every syscall once filed as untranslated (mkdirat-34, renameat2-276 via the 2026-06-06 table rows; fsync-74 and unlinkat-263 via the proven direct-x86 escape hatch) must BEHAVE at runtime under the CURRENT blessed toolchain. Each row is a discriminating pair where possible (valid input succeeds AND invalid input fails with the right errno), so a pass cannot be a silent no-op. Durable: XLATE-ROW + XLATE-GATE lines -> knowledge/status/xlate_gap_gate.log. Exit 0 iff all rows PASS. Owner: Engineer. Resolves sentinel key NXASM-XLATE-GAP. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_xlate_gap_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

9const AT_FDCWD: i64 = 0 - 100

functions

10func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
11func _fs(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 }
12func _fn(fd: i64, v: i64) -> i64
26func xg_rmdir(p: *u8) -> i64 { return __syscall(263, AT_FDCWD, p, 512, 0, 0, 0) } // unlinkat AT_REMOVEDIR(0x200)
29func xg_clean() -> i64
36func xg_row(lfd: i64, name: *u8, ok: i64, rc1: i64, rc2: i64) -> i64
44func main() -> i64