nx_portability_gate.nx
buildroot/runtime/nx_portability_gate.nx
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
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
structs
| none |
consts
| 9 | const GATE_CHECKS: i64 = 5 |
| 10 | const FIX_MIXED: i64 = 3 // fixture C: /proc + /tmp + __syscall( |
functions
| 12 | func pg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 13 | func pg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 19 | func main(argc: i64, argv: *i64) -> i64 |