code wiki / _hdl_build / nx_galx_viewadd.nx

nx_galx_viewadd.nx

buildroot/runtime/_hdl_build/nx_galx_viewadd.nx

3479 B80 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_viewadd.nx -- put a cid into the gallery's VIEW index, so the image actually APPEARS. THE THIRD INDEX. Operator, 2026-08-07: *"i also dont see your new gens in nishifamily.com/gallery in the gens area"* -- after I had verified 10/10 served over /img/<cid> and called it done. Both claims were true at once, because the gallery keeps THREE separate indexes: 1. galx_cid_paths.tsv -> galx_cid.idx/.blob RESOLVER (/img/<cid> finds the bytes) 2. galx_view_index.txt ENUMERATOR (what the grid lists) 3. galx_search.tsv SEARCH I fixed (1), proved (1), and shipped. An image in (1) but not (2) is fetchable by anyone who already knows its cid and INVISIBLE to everyone else -- which is the same as not existing. ★★★★★★ "IS IT IN THE INDEX" IS THE WRONG QUESTION. THE QUESTION IS "HOW MANY INDEXES ARE THERE, AND IS IT IN EACH ONE THAT A USER'S PATH GOES THROUGH?" ★ I ASKED WHETHER THE READER COULD RESOLVE IT, NEVER WHETHER ANY READER WOULD EVER ASK. Format, measured not assumed: FIXED-WIDTH 70-byte records = 69-char cid + '\n', and the order is NEWEST-FIRST (verified by resolving record[0] and record[last] to their files and comparing mtimes: 2026-06-14 vs 2026-03-15). So a new gen PREPENDS. Appending would file it as the oldest image in the gallery and bury it under 226,576 others -- technically "added", never seen. Usage: nx_galx_viewadd <view_index> <cid> [<cid> ...] [--apply] license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_strconv.nx nx_galx_viewadd_lib.nx nx_galx_viewadd.nx

imports: nx_syscalls.nxnx_strconv.nxnx_galx_viewadd_lib.nx

imported by: nobody (leaf or entry point)

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

main va_puts sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_galx_view_present nx_galx_view_prepend _nxv_len sys_mmap ↻ sys_read_file ↻ nx_galx_view_present ↻ sys_openat_wr sys_write ↻ sys_close ↻ sys_renameat va_i sys_mmap ↻ sys_write ↻ nx_strconv_format_i64

structs

none

consts

none

functions

28func va_puts(s: *u8) -> i64 {
called by 1: main calls 1: sys_write
33func va_i(v: i64) -> i64 {
38func main(argc: i64, argv: *i64) -> i64 {