code wiki / _hdl_build / nx_browser_profile_gate.nx

nx_browser_profile_gate.nx

buildroot/runtime/_hdl_build/nx_browser_profile_gate.nx

6342 B132 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic browser
docsdependenciesstructsconstsfunctions

about

nx_browser_profile_gate.nx -- gate for the browser PERSISTENT PROFILE STORE (R4 of the comms-parity ladder). Proves on FRESH /tmp fixtures: (T1) contact roundtrip byte-identical, (T2) setting last-wins, (T3) chat multi-key, (T4) ★THE SPLIT: clearing the CACHE family (delete every cache-prefix file = the history-clear) leaves the PROFILE family byte-identical -- the operator's "different cache than the history-clearing cache" requirement, proven mechanically, (T5) tombstone-delete misses, (T6) NEG bogus key misses (liar-kill), (T7) re-put after tombstone works (additive law: current view correct). expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_browser_profile_store.nx nx_browser_profile_gate.nx

imports: nx_browser_profile_store.nx

imported by: nobody (leaf or entry point)

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

main g_pw bp_len g_clear_family sys_getdents64 bp_len ↻ g_unlink bp_put ss_begin ss_begin_cap sys_mmap ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys sys_mmap ↻ ss_r32

structs

none

consts

10const GP: *u8 = "/tmp/bp_gate_profile-"
11const GC: *u8 = "/tmp/bp_gate_cache-"

functions

14func g_pw(s: *u8) -> i64 { sys_write(1, s, bp_len(s)); return 0 }
called by 2: chkmain calls 1: bp_len
15func g_pn(v: i64) -> i64
called by 1: main
19func g_eq(a: *u8, alen: i64, b: *u8, blen: i64) -> i64
called by 1: main
25func g_clear_family(stem: *u8) -> i64
called by 1: main calls 3: sys_getdents64bp_leng_unlink
62func chk(name: *u8, ok: i64, pass: *i64) -> i64
called by 1: main calls 1: g_pw
68func main() -> i64