code wiki / _hdl_build / nx_sh_safeharbor_gate.nx
nx_sh_safeharbor_gate.nx
buildroot/runtime/_hdl_build/nx_sh_safeharbor_gate.nx
about
nx_sh_safeharbor_gate.nx -- proves the safe-harbor mechanism: an uploader ATTESTS (naming themselves the
responsible party) before content is carried; a DMCA-512 NOTICE tombstones a cid (idempotent); community FLAGS
auto-suppress abuse/malware; un-attested content is never carried. Responsibility shifts to peers; the hub honors
notices. ⚠NOT LEGAL ADVICE. expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_sh_safeharbor.nxnx_syscalls.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
| 8 | func g_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func g_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8) { if a[i]!=b[i] { return 0 } i=i+1 } if b[i]!=(0 as u8) { return 0 } return 1 } called by 1: main |
| 10 | func g_ck(name: *u8, cond: i64, st: *i64) -> i64 { st[1]=st[1]+1; if cond==1 { st[0]=st[0]+1; g_puts(" [OK] " as *u8) } else { g_puts(" [FAIL] " as *u8) } g_puts(name); g_puts("\n" as *u8); return 0 } |
| 12 | func main() -> i64 |