code wiki / (root) / nx_portability_gate.nx

nx_portability_gate.nx

buildroot/runtime/nx_portability_gate.nx

2586 B42 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic portability
docsdependenciesstructsconstsfunctions

about

nx_portability_gate.nx -- gates the portability linter (v_scan_port) on synthetic fixtures: a clean logic buffer PASSes; raw /proc + /tmp + __syscall( each counted; a //-comment naming "/proc" is NOT flagged (documentation may cite the law); a string-literal coupling IS flagged (couplings live in strings). Asserts the scanner's RETURN COUNTS directly. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0 (this file is *_gate.nx = structurally EXEMPT from the linter itself -- fixtures NAME couplings)

dependencies 1 imports · 0 importers

nx_verify_port_core.nx nx_portability_gate.nx

imports: nx_verify_port_core.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main pg_check vp_puts sys_write vp_scan vp_matchat pg_slen vp_puts ↻ vp_putn sys_write ↻ sys_mmap

structs

none

consts

9const GATE_CHECKS: i64 = 5
10const FIX_MIXED: i64 = 3 // fixture C: /proc + /tmp + __syscall(

functions

12func pg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
13func pg_check(name: *u8, ok: i64, pass: *i64) -> i64
called by 1: main calls 1: vp_puts
19func main(argc: i64, argv: *i64) -> i64