nx_lock_reap_gate.nx
buildroot/runtime/nx_lock_reap_gate.nx
about
nx_lock_reap_gate.nx -- liar-killed GATE for the sovereign lock-reaper (R-ORCH-2a).
The load-bearing property is FAIL-SAFE: a lock is reaped ONLY when abandoned. Proves: stale+
unowned -> REAP (and the real unlink removes it); a live-OWNER lock is NEVER reaped even when old
(the load-bearing neg-control -- never yank a lock a running process holds); a FRESH lock is
never reaped; an absent lock is a no-op; owner-detection finds a real live process (self via a
cmdline needle) and correctly reports absence for a bogus needle. Exit 0 only on all-PASS.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_lock_reap_core.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
| none |
functions
| 11 | func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func g_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 15 | func g_bool(name: *u8, got: i64, want: i64, passp: *i64) -> i64 |
| 20 | func g_write(path: *u8, s: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 420); if fd < 0 { return 0 - 1 } sys_write(fd, s, ccz_slen(s)); sys_close(fd); return 0 } |
| 21 | func g_touch(path: *u8, e: i64) -> i64 { let t: *i64 = sys_mmap(32) as *i64; t[0] = e; t[1] = 0; t[2] = e; t[3] = 0; return sys_utimensat(path, t) } |
| 23 | func main(argc: i64, argv: *i64) -> i64 |