code wiki / _hdl_build / nx_os_census.nx

nx_os_census.nx

buildroot/runtime/_hdl_build/nx_os_census.nx

15478 B93 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic os
docsdependenciesstructsconstsfunctions

about

nx_os_census.nx -- the SOVEREIGN OS CAPABILITY CENSUS: where does the Nishi OS still lack (beyond AI + hardware), to get it FULLY built? Grades each standard OS capability HAVE / PARTIAL / MISSING, grounded on a REAL organ (have_file -- liar-killed: a capability counts only if its organ actually exists). The PARTIAL+MISSING rows ARE the remaining work. Benchmark = "what a complete OS comprises" (os_*.raw). AI (no-float ladder, 44 caps) and HARDWARE (drivers/RISC-V/no-FPU) are tracked in their OWN censuses; THIS is the kernel-services + userland layer. expect_exit: 0 Sovereign: nx_syscalls.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_g_puts_lib.nx nx_os_census.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_g_puts_lib.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 os_row have sys_openat_rd sys_close g_puts ↻ g_pn nxi_out nxi_fd sys_mmap ccz_cat_num sys_write ↻ sys_munmap ck g_puts ↻ sys_openat_append sys_write ↻ sys_close ↻ sys_exit

structs

none

consts

none

functions

15func g_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
16func 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
17func have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: os_row calls 2: sys_openat_rdsys_close
19func os_row(cap: *u8, organ: *u8, grade: i64, note: *u8) -> i64
called by 1: main calls 2: haveg_puts
25func main() -> i64