code wiki / _hdl_build / nx_ns_probe.nx
nx_ns_probe.nx
buildroot/runtime/_hdl_build/nx_ns_probe.nx
about
nx_ns_probe.nx -- R2-A NISHI CONTAINERS rung 0: does the sovereign syscall layer speak Linux
NAMESPACES? Probes unshare(2) with UTS/MNT/PID flags. rv64 unshare = 97 (__syscall translates
rv64->x86 272). Readout law: 0 = namespace created (running as root) ; -EPERM(-1) = syscall WIRED,
needs privilege (still a PASS for the layer) ; -ENOSYS(-38) = TRANSLATION GAP = raised hand.
Run VIA nx_sov_build_run; trust run-exit only. exit: 0=wired(0/EPERM), 1=ENOSYS gap, 2=other.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_sovjson_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
| none |
functions
| 10 | func np_w(s: *u8) -> i64 { return sj_puts(s) } |
| 11 | func np_n(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0 {m=0-m; np_w("-" as *u8)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0 {t[0]=48 as u8;k=1}; while m>0 {t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k {b[i]=t[k-1-i];i=i+1}; sys_write(1,b,k); return 0 } |
| 13 | func np_try(name: *u8, flags: i64) -> i64 |
| 19 | func main() -> i64 |