code wiki / _hdl_build / nx_ssh_cmd.nx

nx_ssh_cmd.nx

buildroot/runtime/_hdl_build/nx_ssh_cmd.nx

1549 B29 linesdepth 10pulls 22 transitivereach 0 importersview sourcekind tooltopic ssh
docsdependenciesstructsconstsfunctions

about

nx_ssh_cmd.nx -- generic one-shot remote command over the sovereign SSH client. Reads the command text from /tmp/nxcmd and the password from /tmp/nxpw (both staged + deleted by the caller). Lets us inspect / drive the NAS without rebuilding per query. Read-only or write depending on the command supplied. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_ssh_lib.nx nx_ssh_cmd.nx

imports: nx_syscalls.nxnx_ssh_lib.nx

imported by: nobody (leaf or entry point)

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

main 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 ssh_puts sys_write ↻ ssh_open_session sys_socket sys_mmap ↻ ssh_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_munmap ↻ ssh_kex sys_write ↻ sys_mmap ↻ ssh_read_line sys_read ↻

structs

none

consts

none

functions

8func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } return n }
10func main() -> i64