nx_linux_guest_gate.nx
buildroot/runtime/nx_linux_guest_gate.nx
about
nx_linux_guest_gate.nx -- F103c "Linux guest lane" (os lane, critical path; deps F103a=D F103b=D 2026-07-21).
THE CLAIM: the Linux ABI exists in NishiOS ONLY as a LABELED interop GUEST LANE (contract C09,
backend linux-host-syscalls) and that lane WORKS end-to-end as a real process substrate: guest
spawn (fork+dup3+execve+wait4) with exit-code propagation, byte-exact stdout capture, stderr on
the same capture, envp delivery, determinism -- while the NATIVE lane REFUSES Linux guests BY
CONSTRUCTION (host paths unresolvable in the block-VFS; planted ELF bytes rejected by
verify-before-execute with NO output fabricated). D001: emits the nx_gate_verdict contract.
REFUTATION: argv[1]=negctl corrupts ONE byte of the expected stdout capture -> the byte-exact
capture tooth (C03) MUST go RED alone; registered sibling nx_linux_guest_negtest pins that arg.
license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26): guests are user-space children.
dependencies 2 imports · 0 importers
imports: nx_pabi.nxnx_gate_verdict.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
| 14 | const LG_BUF: i64 = 4096 |
| 15 | const LG_EXECN: i64 = 5 |
functions
| 18 | func lg_code(i: i64) -> i64 called by 1: main |
| 26 | func lg_script(i: i64) -> *u8 called by 1: main |
| 36 | func lg_run(script: *u8, outpath: *u8) -> i64 |
| 52 | func lg_runx(prog: *u8, outpath: *u8) -> i64 |
| 62 | func lg_cmp(got: *u8, gn: i64, want: *u8, wn: i64) -> i64 called by 1: main |
| 72 | func lg_slen(s: *u8) -> i64 called by 1: main |
| 79 | func lg_fold(ck: i64, buf: *u8, n: i64) -> i64 called by 1: main |
| 87 | func main(argc: i64, argv: *i64) -> i64 |