code wiki / _hdl_build / nx_fileop_intent_gate_20260910.nx
nx_fileop_intent_gate_20260910.nx
buildroot/runtime/_hdl_build/nx_fileop_intent_gate_20260910.nx
dependencies 2 imports · 0 importers
imports: nx_fileop.nxnx_gate_verdict.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
| 3 | func fg_path(root:*u8,name:*u8)->*u8 { let n:i64=fi_len(root);let m:i64=fi_len(name);let p:*u8=sys_mmap(n+m+2);fi_copy(p,root,n);p[n]=47 as u8;fi_copy(p+n+1,name,m+1);return p } called by 1: main |
| 4 | func fg_write(path:*u8,text:*u8)->i64 { let fd:i64=sys_openat_exclusive(path,MODE_0600);if fd<0 { return fd };let w:*NxFileWriteResult=sys_mmap(__size_of(NxFileWriteResult)) as *NxFileWriteResult;return fio_write_sync_fd(fd,text,fi_len(text),w) } called by 1: main |
| 5 | func fg_unchanged(path:*u8,text:*u8)->i64 { let hash:*u8=sys_mmap(32);let scratch:*u8=sys_mmap(64);sha256_digest(text,fi_len(text),hash);return (fio_verify_sha256(path,hash,scratch,64)==0) as i64 } called by 1: main |
| 6 | func fg_plan_match(path:*u8,av:*i64,hashes:*u8)->i64 { let p:*NxFileInstallPlan=sys_mmap(__size_of(NxFileInstallPlan)) as *NxFileInstallPlan;fi_plan_init(p);let rc:i64=fi_plan_read(path,8192,p);if rc!=0 { return 0 };let same:i64=fo_plan_matches(p,av,hashes,hashes+32,493);fi_plan_close(p);return same } |
| 7 | func main(argc:i64,argv:*i64)->i64 |