code wiki / _hdl_build / nx_lsdir.nx

nx_lsdir.nx

buildroot/runtime/_hdl_build/nx_lsdir.nx

1355 B33 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_lsdir.nx -- sovereign directory lister (getdents64, no /bin/ls / no shell). argv[1]=dir. Prints "d <name>" for dirs, "f <name>" for files. A reusable Nishi inspection tool (feeds archive-manifest authoring, dir-walk, glob). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_sovjson_lib.nx nx_syscalls.nx nx_lsdir.nx

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

main ls_w sj_puts sys_write sys_exit sys_openat_rd sys_mmap sys_getdents64 dirent_type dirent_name dirent_reclen sys_close

structs

none

consts

6const K_MAGIC_131072: i64 = 131072

functions

8func ls_w(s: *u8) -> i64 { return sj_puts(s) }
called by 1: main calls 1: sj_puts
10func main(argc: i64, argv: *i64) -> i64