code wiki / (root) / nx_torrent_competitor_census.nx

nx_torrent_competitor_census.nx

buildroot/runtime/nx_torrent_competitor_census.nx

7849 B120 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic torrent
docsdependenciesstructsconstsfunctions

about

nx_torrent_competitor_census.nx -- the TORRENT lane's COMPETITOR-FEATURE census: how much of the qBittorrent/ libtorrent/Transmission/BEP capability UNION does the Nishi sovereign stack already have? Data-driven over knowledge/registry/torrent_competitor_features.conf (add a row = a graded feature, ZERO rebuild). LIAR-KILL (the anti-cheat law, mirrors nx_search_competitor_census): a HAVE/PARTIAL row names its implementing organ; this census OPENS runtime/<organ> -- a MISSING file flips the claim to UNGROUNDED (counted as a GAP + flagged), so "we have X" can never be asserted without a real artifact on disk. Prints per-TIER rollup (core->advanced), an overall ‰ score, the ungrounded flags, and the GAP ROADMAP grouped by tier. Durable -> knowledge/status/torrent_competitor_census.log. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_str.nx nx_syscalls.nx nx_torrent_competitor_census.n

imports: nx_str.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 tp sys_write nx_str_len sys_mmap tc_read sys_openat_rd sys_read sys_close sys_exit tc_field tc_tier_idx tc_streq tc_streq ↻ tc_organ_exists tc_streq ↻ sys_mmap ↻ sys_openat_rd ↻ sys_close ↻ tc_app tc_tier_name tn sys_write ↻ sys_mmap ↻ sys_write ↻ sys_openat_wr tw sys_write ↻ nx_str_len ↻ sys_close ↻

structs

none

consts

11const TC_MAGIC_131072: i64 = 131072
12const TC_MAGIC_131000: i64 = 131000
13const TC_MAGIC_200000: i64 = 200000
14const TC_MAGIC_65536: i64 = 65536
16const TC_CONF: *u8 = "knowledge/registry/torrent_competitor_features.conf"
17const TC_LOG: *u8 = "knowledge/status/torrent_competitor_census.log"

functions

19func tp(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 2: sys_writenx_str_len
20func tn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 }
called by 1: main calls 2: sys_writesys_mmap
21func tw(fd: i64, s: *u8) -> i64 { if fd>=0 { sys_write(fd, s, nx_str_len(s)) } return 0 }
called by 1: main calls 2: sys_writenx_str_len
23func tc_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
29func tc_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 }
30func tc_app(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i }
called by 1: main
32func tc_field(buf: *u8, ls: i64, le: i64, n: i64, out: *u8) -> i64
called by 1: main
41func tc_organ_exists(organ: *u8) -> i64
48func tc_tier_idx(t: *u8) -> i64
called by 1: main calls 1: tc_streq
57func tc_tier_name(i: i64) -> *u8
called by 1: main
67func main() -> i64