code wiki / _hdl_build / nx_gallery_nsfw_gate.nx

nx_gallery_nsfw_gate.nx

buildroot/runtime/_hdl_build/nx_gallery_nsfw_gate.nx

5979 B95 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic gallery
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_base.nx nx_authz.nx nx_syscalls.nx nx_gallery_nsfw_gate.nx

imports: nx_gate_base.nxnx_authz.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap gslen authz_filter authz_level_allow acl_is_prefix grow gw ↻ sys_mmap ↻ sys_write ↻ gcontains gallow authz_level_allow ↻ gslen ↻ sys_write ↻ sys_openat_append sys_close sys_exit

structs

none

consts

none

functions

12func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: gallowmain
13func grow(id: i64, ok: i64, what: *u8) -> i64 { gw("GNROW " as *u8); let b: *u8=sys_mmap(8); b[0]=(48+id) as u8; sys_write(1,b,1); gw(" " as *u8); if ok==1 { gw("PASS " as *u8) } else { gw("FAIL " as *u8) } gw(what); gw("\n" as *u8); return ok }
called by 1: main calls 3: gwsys_mmapsys_write
14func gcontains(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main
21func gallow(level: i64, paths: *i64, lens: *i64, lvls: *i64, n: i64, req: *u8) -> i64
called by 1: main calls 2: authz_level_allowgslen
25func main() -> i64