code wiki / _hdl_build / nx_sweep_dir.nx

nx_sweep_dir.nx

buildroot/runtime/_hdl_build/nx_sweep_dir.nx

2517 B58 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic sweep
docsdependenciesstructsconstsfunctions

about

nx_sweep_dir.nx -- enumerate .nx files in a dir, emit "<dir>/<name>" one per line to stdout (or an outfile via argv[2]). Single-responsibility enumerator (rule 9) so list-based tools like nx_map_remove_func can run FULL-SCALE over a whole tree with no context round-trip. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_deploy_lib.nx nx_sweep_dir.nx

imports: nx_syscalls.nxnx_deploy_lib.nx

imported by: nobody (leaf or entry point)

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

main sys_write sw_slen sys_exit sys_openat_wr sys_dup3 sys_openat_rd sys_mmap sys_getdents64 sw_reclen sw_ends_nx sw_slen ↻

structs

none

consts

6const SW_MAGIC_4096: i64 = 4096
8const SW_DBUF: i64 = 262144

functions

10func sw_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: sw_ends_nxmain
11func sw_reclen(rec: *u8) -> i64 { return (rec[16] as i64) | ((rec[17] as i64) << 8) }
called by 1: main
12func sw_ends_nx(nm: *u8) -> i64
called by 1: main calls 1: sw_slen
21func main(argc: i64, argv: *i64) -> i64