code wiki / _hdl_build / nx_scm_probe.nx
nx_scm_probe.nx
buildroot/runtime/_hdl_build/nx_scm_probe.nx
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
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
structs
| none |
consts
| 9 | const SP_NUM_SCRATCH: i64 = 24 |
| 10 | const SP_ASCII_ZERO: i64 = 48 |
| 11 | const SP_B10: i64 = 10 |
| 12 | const SP_FDPAIR_BYTES: i64 = 8 |
| 13 | const SP_PAGE_BYTES: i64 = 4096 |
| 14 | const SP_PIPEBOX_BYTES: i64 = 16 |
| 15 | const SP_NR_SOCKETPAIR: i64 = 53 |
| 16 | const SP_NR_SENDMSG: i64 = 46 |
| 17 | const SP_NR_RECVMSG: i64 = 47 |
| 19 | const SP_SUN_PATH_OFF: i64 = 2 |
| 20 | const SP_SUN_BYTES: i64 = 110 |
| 21 | const SP_BACKLOG: i64 = 4 |
functions
| 23 | func 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 } |
| 24 | func p_num(v: i64) -> i64 |
| 35 | func main() -> i64 |