code wiki / _hdl_build / nx_email_mailbox_gate.nx
nx_email_mailbox_gate.nx
buildroot/runtime/_hdl_build/nx_email_mailbox_gate.nx
about
nx_email_mailbox_gate.nx -- GATE for EMAIL R3 (mailbox store, nx_email_mailbox).
REAL filesystem I/O against a fresh segment-store dir (the harness
rm -rf + mkdir's knowledge/status/mbox_test before each run):
COMPLETENESS : deliver two messages; fetch each back BYTE-IDENTICAL;
fetch a never-delivered id -> absent.
SOFT-DELETE : tombstone msg-001; it disappears from the current
view (fetch -> tombstoned, exists -> 0) while msg-002
is unaffected (per-key isolation).
HISTORY : after delete, msg-001 still has 2 retained versions
(put + tombstone) -- Cardinal 13, nothing erased.
Evidence -> knowledge/status/email_mailbox.log
(MBOXGATE authored=organ ... verdict=GREEN)
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_email_mailbox.nxnx_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
| 20 | const MBOX_LOG: *u8 = "knowledge/status/email_mailbox.log" |
| 21 | const MBOX_PREFIX: *u8 = "knowledge/status/mbox_test/" |
functions
| 23 | func ew(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 24 | func ewn(fd: i64, v: i64) -> i64 |
| 33 | func epf(fd: i64, label: *u8, pass: i64) -> i64 { ew(fd, label); if pass == 1 { ew(fd, "PASS" as *u8) } else { ew(fd, "FAIL" as *u8) } return 0 } |
| 34 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 35 | func memeq(a: *u8, b: *u8, len: i64) -> i64 { var i: i64 = 0; while i < len { if a[i] != b[i] { return 0 } i = i + 1 } return 1 } called by 1: main |
| 37 | func main() -> i64 |