code wiki / _hdl_build / nx_library_sources.nx

nx_library_sources.nx

buildroot/runtime/_hdl_build/nx_library_sources.nx

6670 B112 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic library
docsdependenciesstructsconstsfunctions

about

nx_library_sources.nx -- the CONSUMED-SOURCES CATALOG (operator 2026-06-20: "i cant even see on nishifamily.com/library the different research sources we have already consumed -- get them all parsable/readable/searchable, ingesting automatically from the sources we have given it + future ones"). The foundation organ only auto-ingests knowledge/library/*.txt (~28); but we have also consumed knowledge/research/*.md (deep-research reports) + knowledge/fetched/*.raw (sovereign-fetched sources). This organ AUTO-DISCOVERS every consumed source across those dirs (getdents64, so future sources you flag by dropping them in are picked up on the next run -- automatic ingestion of the catalog) and emits a single data-driven, searchable HTML catalog so EVERY consumed source is VISIBLE. Output: web_assets/library-sources.html. Sovereign: imports only nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_library_sources.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main ls_puts sys_write sys_openat_wr sys_exit ls_wr sys_write ↻ ls_emit_dir sys_openat_rd sys_mmap ls_getdents ls_ends ls_wr ↻ ls_wresc sys_write ↻ sys_close ls_wrn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_close ↻ ls_putn nxi_out nxi_fd ↻

structs

none

consts

14const LS_DENT: i64 = 65536

functions

16func ls_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
21func ls_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func ls_wr(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return n }
called by 2: ls_emit_dirmain calls 1: sys_write
27func ls_wrn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 1: main calls 1: nxi_fd
28func ls_wresc(fd: i64, s: *u8) -> i64
called by 1: ls_emit_dir calls 1: sys_write
37func ls_ends(name: *u8, ext: *u8) -> i64
called by 1: ls_emit_dir
44func ls_getdents(fd: i64, buf: *u8, count: i64) -> i64 { return __syscall(SYS_GETDENTS64, fd, buf, count, 0, 0, 0) }
called by 1: ls_emit_dir
46func ls_emit_dir(fd: i64, dir: *u8, ext: *u8, klass: *u8) -> i64
77func main() -> i64