code wiki / _hdl_build / nx_profile_backup_run.nx

nx_profile_backup_run.nx

buildroot/runtime/_hdl_build/nx_profile_backup_run.nx

6569 B137 linesdepth 8pulls 17 transitivereach 0 importersview sourcekind tooltopic profile
docsdependenciesstructsconstsfunctions

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

nx_browser_profile_store.nx nx_itoa_lib.nx nx_profile_backup.nx nx_profile_backup_run.nx

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

main r_pw pb_slen pb_machine_ikm sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close bp_exists ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻ ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry

structs

none

consts

11const K_MAGIC_1024: i64 = 1024
12const K_MAGIC_262144: i64 = 262144
13const K_MAGIC_2048: i64 = 2048
14const K_MAGIC_4096: i64 = 4096

functions

16func r_pw(s: *u8) -> i64 { sys_write(1, s, pb_slen(s)); return 0 }
called by 1: main calls 1: pb_slen
21func r_pn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
22func 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
23func r_appn(b: *u8, n: i64, v: i64) -> i64
called by 1: main
27func main() -> i64