code wiki / _hdl_build / nx_figures_data_push.nx

nx_figures_data_push.nx

buildroot/runtime/_hdl_build/nx_figures_data_push.nx

5152 B112 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_figures_data_push.nx -- push the 3 downloadable dataset files (figures_data.{csv,json,tsv}) to the live wiki doc-root as STATIC ASSETS, so the <a href="/wiki/figures_data.csv" download> links on /wiki/figures.html actually resolve. ADDITIVE: each push is `mkdir -p <wikidir>; cat > <wikidir>/<f>` -- writes exactly that one file, never deletes/clobbers anything else. REUSE: the proven sovereign push spine _offc/nx_aw_push.elf (vault-backed SSH stream). We drive it in its argv mode (argc>=3: src-spec-file + dst-cmd-file) with per-file spec files, so it never collides with the default awpush.src/.dst the page publisher uses. Each nx_aw_push runs as a SEPARATE forked process (its 4GB sys_read_file reservation lives in the child, not here) -- so pushing 3 files from one parent is safe. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_figures_data_push.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main fd_w sys_write fd_push_one sys_mmap fd_cat fd_write_file sys_openat_wr sys_write ↻ sys_close fd_w ↻ fd_run sys_fork sys_mmap ↻ sys_execve sys_exit sys_wait4 sys_write ↻ sys_mmap ↻ sys_write ↻ sys_exit ↻

structs

none

consts

12const FD_MAGIC_1024: i64 = 1024
14const FD_WIKIDIR: *u8 = "/volume1/homes/elderwesto/nishihost/sites/nishifamily/wiki" as *u8
15const FD_PUSH_ELF: *u8 = "_offc/nx_aw_push.elf" as *u8
16const FD_MODE_0644: i64 = 0x1a4

functions

18func fd_w(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 2: fd_push_onemain calls 1: sys_write
19func fd_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != 0 as u8 { dst[o] = s[i]; o = o + 1; i = i + 1 } return o }
called by 1: fd_push_one
22func fd_write_file(path: *u8, content: *u8, clen: i64) -> i64
31func fd_run(src_spec: *u8, dst_spec: *u8) -> i64
51func fd_push_one(fname: *u8, idx: i64) -> i64
98func main() -> i64