code wiki / (root) / nx_portcheck_staged_cli_gate.nx

nx_portcheck_staged_cli_gate.nx

buildroot/runtime/nx_portcheck_staged_cli_gate.nx

9644 B140 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

Executes the caller-pinned staged CLI; only this gate owns the two listeners. Captures are exclusive retained files. No production signals or deployment writes; the shared runner bounds its own children.

dependencies 4 imports · 0 importers

nx_os_introspect.nx nx_http_server.nx nx_tool_run.nx nx_gate_verdict.nx nx_portcheck_staged_cli_gate.n

imports: nx_os_introspect.nxnx_http_server.nxnx_tool_run.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

main gv_puts sys_write pon_obs_uint pon_strlen pg_path_ok pon_strlen ↻ gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts ↻ gv_check gv_puts ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_puts ↻ gv_num ↻

structs

none

consts

7const PG_ARG_SLOTS: i64 = 6
8const PG_SOCKADDR_BYTES: i64 = 16
9const PG_EXPECTED_ROWS: i64 = 2
10const PG_PRIVATE_DIR_MODE: i64 = 448
11const PG_PRIVATE_FILE_MODE: i64 = 384

functions

13func pg_contains(b: *u8, n: i64, wanted: *u8) -> i64
called by 2: pg_rowmain calls 1: pon_strlen
21func pg_append(b: *u8, at: i64, s: *u8) -> i64
25func pg_path_ok(s: *u8, directory: i64) -> i64
called by 1: main calls 1: pon_strlen
42func pg_inode(fd: i64) -> i64
51func pg_save(dir: *u8, name: *u8, b: *u8, n: i64) -> i64
called by 1: pg_run calls 3: pg_appendgv_putsgv_num
68func pg_run(subject: *u8, av: *i64, dir: *u8, name: *u8, b: *u8, cap: i64, timeout: i64, expected_exit: i64, ctr: *i64) -> i64
82func pg_row(b: *u8, n: i64, port: i64, inode: i64, address: *u8, expected: *u8) -> i64
89func main(argc: i64, argv: *i64) -> i64