code wiki / _hdl_build / nx_syscalls_gate.nx

nx_syscalls_gate.nx

buildroot/runtime/_hdl_build/nx_syscalls_gate.nx

9032 B205 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic syscalls
docsdependenciesstructsconstsfunctions

about

nx_syscalls_gate.nx -- THE BASE CONTRACT GATE (arch-board w22 queue row #1: nx_syscalls = 13,307 importers, ZERO direct gate until now; also the mom-3 "never break userspace" hard version). Every sworn wrapper is proven with a REAL KERNEL ROUND-TRIP -- not presence, BEHAVIOR: bytes written are bytes read, forked children are reaped with their exact code, shared pages cross fork, dirents list planted files, negatives FAIL (a gate that cannot fail is not a gate). Composes (fork+exec, fail- closed) nx_syscall_sanity_kat.elf -- the syscall-NUMBER translation KAT from the RV64/x86 collision fix -- so number-mistranslation and behavior regressions are both caught here. Any edit to nx_syscalls.nx must leave this GREEN; the arch board counts it as the base's paired validator. nx_syscalls_gate -- run the battery; exit 0 GREEN / 1 RED license_tier: ORIGINAL module: nishi-core.examiner.syscalls_gate No hw writes (rule 26).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_syscalls_gate.nx

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

main sg_p sys_write sys_mmap sys_munmap sg_row sg_p ↻ sys_openat_wr sys_write ↻ sys_close sys_openat_rd sys_read sys_lseek sys_renameat sys_getdents64 sys_fork sys_exit sys_wait4 sys_pipe2 sys_readlinkat sys_mmap ↻ sys_munmap ↻ sys_mmap_shared sys_chdir sys_mmap ↻ sys_execve sg_pn sg_p ↻ sys_mmap ↻ sys_write ↻ sys_munmap ↻

structs

none

consts

none

functions

13func sg_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: sg_pnsg_rowmain calls 1: sys_write
14func sg_pn(v: i64) -> i64
21func sg_row(name: *u8, ok: i64, fails: *i64) -> i64
called by 1: main calls 1: sg_p
27func main(argc: i64, argv: *i64) -> i64