code wiki / (root) / _wt_probe_one.nx

_wt_probe_one.nx

buildroot/runtime/_wt_probe_one.nx

1764 B40 linesdepth 21pulls 129 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

_wt_probe_one.nx -- single-host WALL PROBE unit for nx_wall_triage. Runs the full sovereign HTTPS fetch and exits with the STAGE that refused us, so the parent can NAME the wall instead of a flat rc=2: exit 0 = HTTP reached (status line + header head written to argv[2] -- an HTTP-level wall like 403 is visible there) exit 12 = bad url exit 13 = DNS/TCP connect refused exit 14 = TLS handshake refused (ClientHello-fingerprint suspect) exit 15 = TLS up, HTTP fetch failed (send/read) exit 3 = bad args Child of nx_guarded_run (a hang is reaped as 124). usage: _wt_probe_one <url> <out>

dependencies 6 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_csprng.nx nx_x509_trust_store.nx nx_pem_loader.nx nx_https_get.nx _wt_probe_one.nx

imports: nx_str.nxnx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_pem_loader.nxnx_https_get.nx

imported by: nobody (leaf or entry point)

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

main nx_pem_trust_load_file 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_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_pem_trust_load nx_str_len _pem_find nx_str_len ↻ sys_mmap ↻ b64_decode b64_grab b64_dec_char sys_mmap ↻ nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd ↻ sys_read ↻ sys_close ↻ nx_https_get

structs

none

consts

none

functions

18func main(argc: i64, argv: *i64) -> i64