code wiki / _hdl_build / nx_shell.nx

nx_shell.nx

buildroot/runtime/_hdl_build/nx_shell.nx

7054 B93 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic shell
docsdependenciesstructsconstsfunctions

about

nx_shell.nx -- the SOVEREIGN NISHI SHELL gate (R0-R6), now on the GENERAL nx_shell_lib (rule 15: one capability, not copies). Proves every rung; the drivable tool is nx_shell_run. NEVER-BRICK: spawns userspace, 0 firmware. R0 process / R1 tokenize / R2 exec(runs a real organ) / R3 builtins / R4 capture+grep / R5 control / R6 pipeline. expect_exit: 0 Sovereign: nx_shell_lib (+ nx_syscalls).

dependencies 2 imports · 0 importers

nx_shell_lib.nx nx_syscalls.nx nx_shell.nx

imports: nx_shell_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write sh_fork_exit sys_fork sys_exit sys_mmap sys_wait4 wait_exit_code g_pn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap ck g_puts ↻ sys_mmap ↻ sh_tokenize sh_run sys_fork ↻ sys_execve sys_exit ↻ sys_mmap ↻ sys_wait4 ↻ wait_exit_code ↻ sh_builtin sh_streq sys_chdir sys_mmap ↻ g_puts ↻ sys_pipe2 sys_fork ↻ sys_dup3 sys_close sys_exit ↻ sys_read sys_wait4 ↻ sh_grep

structs

none

consts

7const K_MAGIC_4096: i64 = 4096

functions

9func ck(name: *u8, c: i64) -> i64 { if c==1 { g_puts(" PASS " as *u8) } else { g_puts(" FAIL " as *u8) } g_puts(name); g_puts("\n" as *u8); return c }
called by 1: main calls 1: g_puts
10func sh_fork_exit(code: i64) -> i64 { let pid: i64=sys_fork(); if pid==0 { sys_exit(code); return 0 } let st: *i64=sys_mmap(8); sys_wait4(pid, st, 0); return wait_exit_code(st[0]) }
12func main() -> i64