code wiki / (root) / nx_licdetect.nx

nx_licdetect.nx

buildroot/runtime/nx_licdetect.nx

3177 B76 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_licdetect.nx -- thin CLI over nx_licdetect_lib. WHICH LICENCE IS THIS FILE? The decision lives in the LIB so this command line and any in-process consumer prove the SAME code, and so the gate can IMPORT the logic instead of forking this binary -- a fork is a boundary the mutation harness cannot see across. Exit codes are the estate's shared refusal vocabulary so a caller branching on nx_licgate or nx_acquire branches identically here: 0 DETECTED exactly one licence matched -- the only answer 3 UNKNOWN nothing matched; the artifact does NOT advance to evidence=READ 4 AMBIGUOUS two or more matched; a coin flip is not a verdict 4 unreadable file license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_licdetect_lib.nx nx_licdetect.nx

imports: nx_syscalls.nxnx_licdetect_lib.nx

imported by: nobody (leaf or entry point)

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

main ldc_puts sys_write ldc_len sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close ld_ctx sys_mmap ↻ sys_read_file ↻ ld_field ld_detect ld_streq_n ld_contains ld_result_name sys_write ↻ ld_marker_set_verified ld_streq_n ↻ ldc_num sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

17func ldc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ldc_puts
18func ldc_puts(s: *u8) -> i64 { sys_write(1, s, ldc_len(s)); return 0 }
called by 1: main calls 2: sys_writeldc_len
20func ldc_num(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
33func main(argc: i64, argv: *i64) -> i64