code wiki / _hdl_build / nx_wpt_fetch.nx
nx_wpt_fetch.nx
buildroot/runtime/_hdl_build/nx_wpt_fetch.nx
about
nx_wpt_fetch.nx -- SOVEREIGN one-time retrieval of a small REAL Web-Platform-Tests reftest subset, for
the external-oracle validation spine (the WPT files are a 3rd-party ORACLE, never on the program path).
Fetches each pinned raw.githubusercontent.com URL over our OWN DNS+TLS1.3(vs Mozilla CAs)+HTTP stack
(no curl/git/wget) -> vendors verbatim under knowledge/wpt/ + writes PROVENANCE.txt (the exact commit
SHA + source URLs) so the pass-% nx_wpt_run reports is falsifiable + reproducible. license_tier: ORACLE-VENDOR
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_get.nxnx_http_response_parse.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
| 11 | const K_MAGIC_8388608: i64 = 8388608 |
| 12 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 14 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func _n(v0: i64) -> i64 { var v: i64=v0; if v<0 { let m: *u8=sys_mmap(8); m[0]=45 as u8; sys_write(1,m,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 } |
| 19 | func wf_fetch(url: *u8, store: *TrustStore, cr: *u8, priv: *u8, lenbox: *i64) -> *u8 |
| 46 | func wf_write(path: *u8, buf: *u8, len: i64) -> i64 |
| 53 | func _ws(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 56 | func fetch_one(url: *u8, path: *u8, store: *TrustStore, cr: *u8, priv: *u8) -> i64 |
| 66 | func main() -> i64 |