code wiki / _hdl_build / nx_profile_backup_run.nx
nx_profile_backup_run.nx
buildroot/runtime/_hdl_build/nx_profile_backup_run.nx
about
nx_profile_backup_run.nx -- RUNNER: encrypted OS backup of the REAL browser profile store.
Composes nx_browser_profile_store (seeds the live store on first run) + nx_profile_backup (machine-bound
ChaCha20-Poly1305 blobs, built-in restore-verify). Destination from knowledge/hosting/profile_backup.conf
(rule 17: config, not hardcode; default = /mnt/c/Users/elder/.nishi/profile_backup = the Windows OS side,
outside the repo). Enumerates knowledge/store/browser_profile-* via getdents (no shell). Appends ONE
receipt line to knowledge/status/profile_backup.log. Exit 0 iff every store file backed up + verified.
expect_exit: 0 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_browser_profile_store.nxnx_itoa_lib.nxnx_profile_backup.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
| 11 | const K_MAGIC_1024: i64 = 1024 |
| 12 | const K_MAGIC_262144: i64 = 262144 |
| 13 | const K_MAGIC_2048: i64 = 2048 |
| 14 | const K_MAGIC_4096: i64 = 4096 |
functions
| 16 | func r_pw(s: *u8) -> i64 { sys_write(1, s, pb_slen(s)); return 0 } |
| 21 | func r_pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 22 | func r_apps(b: *u8, n: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){b[n+i]=s[i];i=i+1} return n+i } called by 1: main |
| 23 | func r_appn(b: *u8, n: i64, v: i64) -> i64 called by 1: main |
| 27 | func main() -> i64 |