code wiki / _hdl_build / nx_sh_safeharbor_gate.nx

nx_sh_safeharbor_gate.nx

buildroot/runtime/_hdl_build/nx_sh_safeharbor_gate.nx

3818 B53 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic sh
docsdependenciesstructsconstsfunctions

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

nx_sh_safeharbor.nx nx_syscalls.nx nx_sh_safeharbor_gate.nx

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

main g_puts sys_write sys_mmap sh_attest sh_cat sh_wdec sys_mmap ↻ sh_responsible sh_slen sh_eol sh_tab sh_memeq sh_field sh_tab ↻ g_ck g_puts ↻ g_streq sh_active sys_mmap ↻ sh_responsible ↻ sh_is_taken_down sh_count_by_cid sh_slen ↻ sh_eol ↻ sh_tab ↻ sh_memeq ↻ sh_flag_count sh_count_by_cid ↻ sh_takedown sh_count_by_cid ↻ sh_cat ↻ sh_is_taken_down ↻ sh_flag sh_cat ↻ sh_flag_count ↻ sys_exit

structs

none

consts

none

functions

8func 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 }
called by 2: g_ckmain calls 1: sys_write
9func 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
10func 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 }
called by 1: main calls 1: g_puts
12func main() -> i64