code wiki / _hdl_build / nx_shell.nx
nx_shell.nx
buildroot/runtime/_hdl_build/nx_shell.nx
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
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
structs
| none |
consts
| 7 | const K_MAGIC_4096: i64 = 4096 |
functions
| 9 | func 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 } |
| 10 | func 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]) } |
| 12 | func main() -> i64 |