code wiki / _hdl_build / nx_pub_audit_run.nx
nx_pub_audit_run.nx
buildroot/runtime/_hdl_build/nx_pub_audit_run.nx
about
nx_pub_audit_run.nx -- R7b: run the no-bypass LAW audit over the REAL source tree to produce the MIGRATION
WORKLIST. Walks runtime/ + runtime/_hdl_build/ (sovereign getdents64 via nx_dirent), runs pub_audit_file on
each .nx, and reports every file that references the raw transport (nx_aw_send/nx_aw_push) yet is NOT part of
the sanctioned publisher/transport family (allowlisted by prefix: nx_aw_, nx_pub, nx_url, nx_synced, nx_hostctl).
Read-only (no migration here -- migration touches sibling files and is operator-coordinated). Emits the worklist
to knowledge/publish/bypass_worklist.txt + stdout with a count. license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_publisher.nxnx_dirent.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
| 10 | const K_MAGIC_131072: i64 = 131072 |
functions
| 12 | func aw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 13 | func an(v: i64) -> i64 { var m: i64=v; if m<0{aw("-" as *u8);m=0-m} let t:*u8=sys_mmap(24); var k:i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i:i64=0; let o:*u8=sys_mmap(24); while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 } |
| 14 | func rep(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); sys_write(fd,s,n); return 0 } |
| 16 | func ax_starts(s: *u8, pfx: *u8) -> i64 { var i: i64=0; while pfx[i]!=(0 as u8){ if s[i]!=pfx[i]{ return 0 } i=i+1 } return 1 } called by 1: ax_allowed |
| 18 | func ax_allowed(name: *u8) -> i64 |
| 26 | func ax_ends_nx(name: *u8) -> i64 called by 1: ax_scan |
| 34 | func ax_scan(dirpath: *u8, repfd: i64, st: *i64) -> i64 |
| 64 | func main() -> i64 |