code wiki / _hdl_build / nx_collision_harm.nx

nx_collision_harm.nx

buildroot/runtime/_hdl_build/nx_collision_harm.nx

6689 B100 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tooltopic collision
docsdependenciesstructsconstsfunctions

about

nx_collision_harm.nx -- Identifies and triages harmful dormant code from benign coexisting duplicates in the Nishi ecosystem.

dependencies 5 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_collision_plan.nx nx_organ_callers.nx nx_syscalls.nx nx_collision_harm.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_collision_plan.nxnx_organ_callers.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 jdn_scan jdn_collect sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen dirent_name jdn_is_nx sys_close jdn_is_shadowed jdn_streq jdn_path jdn_read sys_openat_rd ↻ sys_read sys_close ↻ crp_extract_funcs crp_is_ident ch_first_unique crp_name_in jdn_streq ↻ ch_callers oc_find sys_mmap ↻ sys_openat_rd ↻ oc_getdents oc_eq oc_join oc_isdir oc_slen oc_ends oc_slen ↻ oc_read sys_openat_rd ↻ sys_read ↻ sys_close ↻

structs

none

consts

18const K_MAGIC_1048576: i64 = 1048576
19const K_MAGIC_131072: i64 = 131072
20const K_MAGIC_4096: i64 = 4096
21const K_MAGIC_1024: i64 = 1024
22const K_MAGIC_4194304: i64 = 4194304
23const K_MAGIC_32768: i64 = 32768
24const K_MAGIC_4000: i64 = 4000

functions

26func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
28func gws(buf: *u8, off: i64) -> i64 { var n: i64=0; while buf[off+n]!=(0 as u8){n=n+1} sys_write(1, (buf as i64 + off) as *u8, n); return 0 }
31func ch_first_unique(na: *u8, oa: *i64, ca: i64, nb: *u8, ob: *i64, cb: i64) -> i64
37func ch_callers(repfunc: i64, basename: *u8, hits: *u8, hitoff: *i64) -> i64
42func main() -> i64