code wiki / _hdl_build / nx_shard_governance_gate.nx
nx_shard_governance_gate.nx
buildroot/runtime/_hdl_build/nx_shard_governance_gate.nx
dependencies 6 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_shard_registry.nxnx_access_lib.nxnx_shard_guardrail.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
| 16 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 18 | func gp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 19 | func g_app(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){buf[off+i]=s[i];i=i+1} return off+i } |
| 20 | func g_wr(path: *u8, buf: *u8, n: i64) -> i64 { let fd: i64=sys_openat_wr(path, 0x1a4); if fd>=0 { sys_write(fd, buf, n); sys_close(fd) } return n } |
| 21 | func g_shard(buf: *u8, off: i64, id: *u8, dom: *u8, svc: *u8, port: *u8, realm: *u8, keys: *u8, store: *u8, roles: *u8, health: *u8) -> i64 |
| 28 | func authz(reg: *u8, rn: i64, idx: *u8, uid: *u8, uidn: i64, shard: *u8, slen: i64, org_req: i64, guardrail: i64) -> i64 |
| 35 | func main(argc: i64, argv: *i64) -> i64 |