code wiki / _hdl_build / nx_scm_probe.nx

nx_scm_probe.nx

buildroot/runtime/_hdl_build/nx_scm_probe.nx

10257 B182 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_scm_probe.nx -- ISOLATE why sys_socketpair returns -14 (EFAULT) on this host. Built BEFORE forming a hypothesis: five variants, each changing exactly one thing, plus two CONTROLS that are known-good on this platform (pipe2 also has the kernel write two ints into a caller buffer; socket() proves AF_UNIX itself is available). A verdict is not a diagnosis, so this prints numbers and reaches no conclusion. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_unix_socket.nx nx_scm_probe.nx

imports: nx_syscalls.nxnx_unix_socket.nx

imported by: nobody (leaf or entry point)

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

main sys_socket p_puts sys_write p_num sys_write ↻ 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 ↻ sys_close sys_mmap ↻ sys_pipe2 sys_socketpair sys_mmap_shared sys_setsockopt sys_mkdir sys_unlinkat sys_bind sys_listen nx_unix_connect sys_socket ↻ sys_mmap ↻ sys_connect sys_close ↻ sys_accept sys_sendto scm_zero scm_put_i64

structs

none

consts

9const SP_NUM_SCRATCH: i64 = 24
10const SP_ASCII_ZERO: i64 = 48
11const SP_B10: i64 = 10
12const SP_FDPAIR_BYTES: i64 = 8
13const SP_PAGE_BYTES: i64 = 4096
14const SP_PIPEBOX_BYTES: i64 = 16
15const SP_NR_SOCKETPAIR: i64 = 53
16const SP_NR_SENDMSG: i64 = 46
17const SP_NR_RECVMSG: i64 = 47
19const SP_SUN_PATH_OFF: i64 = 2
20const SP_SUN_BYTES: i64 = 110
21const SP_BACKLOG: i64 = 4

functions

23func p_puts(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 1: main calls 1: sys_write
24func p_num(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
35func main() -> i64