code wiki / _hdl_build / nx_figures_data_push.nx
nx_figures_data_push.nx
buildroot/runtime/_hdl_build/nx_figures_data_push.nx
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
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
structs
| none |
consts
| 12 | const FD_MAGIC_1024: i64 = 1024 |
| 14 | const FD_WIKIDIR: *u8 = "/volume1/homes/elderwesto/nishihost/sites/nishifamily/wiki" as *u8 |
| 15 | const FD_PUSH_ELF: *u8 = "_offc/nx_aw_push.elf" as *u8 |
| 16 | const FD_MODE_0644: i64 = 0x1a4 |
functions
| 18 | func 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 } |
| 19 | func 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 |
| 22 | func fd_write_file(path: *u8, content: *u8, clen: i64) -> i64 |
| 31 | func fd_run(src_spec: *u8, dst_spec: *u8) -> i64 |
| 51 | func fd_push_one(fname: *u8, idx: i64) -> i64 |
| 98 | func main() -> i64 |