code wiki / (root) / nx_os_introspect_gate.nx

nx_os_introspect_gate.nx

buildroot/runtime/nx_os_introspect_gate.nx

4193 B79 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic os
docsdependenciesstructsconstsfunctions

about

nx_os_introspect_gate.nx -- in-process referee for the OS-introspection lib (CAP-PORT-OWNER). Binds a REAL listener, resolves it back through the sovereign /proc chain, and asserts the owner is THIS process (the mapping is correct, not arbitrary) -- the honest self-test. Then, as a LIVE DIAGNOSTIC (not an assertion), it names whatever holds :8456 (the docportal-admin bind conflict). GREEN iff T1..T6. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_os_introspect.nx nx_os_introspect_gate.nx

imports: nx_os_introspect.nx

imported by: nobody (leaf or entry point)

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

main og_w sys_socket sys_setsockopt sys_bind sys_listen pon_listener_inode pon_scan_file sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pon_field pon_is_space pon_hex pon_dec og_row og_w ↻ pon_inode_to_pid sys_openat_rd ↻ sys_mmap ↻ sys_getdents64 dirent_name pon_str_all_digits pon_pid_has_inode sys_mmap ↻ pon_join3 sys_openat_rd ↻ sys_getdents64 ↻ dirent_name ↻ pon_str_all_digits ↻ pon_join pon_readlink pon_dec ↻ dirent_reclen sys_close ↻ pon_dec ↻

structs

none

consts

none

functions

7func og_w(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 2: og_rowmain
8func og_puti(v: i64) -> i64
called by 1: main
15func og_row(name: *u8, ok: i64) -> i64 { if ok == 1 { og_w(" PASS " as *u8) } else { og_w(" FAIL " as *u8) } og_w(name); og_w("\n" as *u8); return ok }
called by 1: main calls 1: og_w
17func main() -> i64