code wiki / _hdl_build / nx_site_lock.nx
nx_site_lock.nx
buildroot/runtime/_hdl_build/nx_site_lock.nx
about
nx_site_lock.nx -- the one-click operational tool over the real lock registry. Resolves whether a
(site, path) is locked and into which OPAQUE realm/level. Usage:
nx_site_lock <site> <path> -> prints LOCKED/PUBLIC for that request
nx_site_lock -> self-demo over the seeded knowledge/registry/site_locks.tsv
A serving daemon calls slk_resolve directly; this runner proves the real registry file parses and
gives the operator a quick "is X locked?" check. Sovereign. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_site_lock_lib.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
| 9 | const SL_MAGIC_1048576: i64 = 1048576 |
| 11 | const SL_REG: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/knowledge/registry/site_locks.tsv" |
functions
| 13 | func sl_p(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 sl_pn(v: i64) -> i64 |
| 22 | func sl_slurp(path: *u8, buf: *u8, cap: i64) -> i64 |
| 31 | func sl_query(reg: *u8, n: i64, site: *u8, path: *u8) -> i64 |
| 41 | func main(argc: i64, argv: *i64) -> i64 |