code wiki / _hdl_build / nx_url_index.nx

nx_url_index.nx

buildroot/runtime/_hdl_build/nx_url_index.nx

14190 B231 linesdepth 21pulls 159 transitivereach 0 importersview sourcekind tooltopic url
docsdependenciesstructsconstsfunctions

about

nx_url_index.nx -- Fetches and indexes a single live URL into the web scope using a neutral, sovereign stack.

dependencies 9 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_corpus_ingest.nx nx_struct_extract.nx nx_feed_extract.nx nx_crawl_pace.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_https_fetch_follow.nx nx_url_index.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_corpus_ingest.nxnx_struct_extract.nxnx_feed_extract.nxnx_crawl_pace.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write nx_trust_store_load_from_c sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse sys_mmap ↻ asn1_cursor_init asn1_expect_tag sys_mmap ↻ asn1_read_tlv_header asn1_read_tag asn1_read_length asn1_read_length ↻ x509_read_tlv sys_mmap ↻ asn1_expect_tag ↻ x509_read_alg_id

structs

none

consts

18const K_MAGIC_4194304: i64 = 4194304
19const K_MAGIC_1048576: i64 = 1048576
20const K_MAGIC_1024: i64 = 1024
21const K_MAGIC_2048: i64 = 2048
22const K_MAGIC_4096: i64 = 4096
23const K_MAGIC_8192: i64 = 8192
24const K_MAGIC_8191: i64 = 8191
25const K_MAGIC_65536: i64 = 65536
26const K_MAGIC_70000: i64 = 70000
27const K_MAGIC_69998: i64 = 69998

functions

29func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
31func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
32func has(hay: *u8, hn: i64, ndl: *u8) -> i64 { var nl: i64=0; while ndl[nl]!=(0 as u8){nl=nl+1} var i: i64=0; while i+nl<=hn { var m: i64=1; var j: i64=0; while j<nl { if hay[i+j]!=ndl[j] { m=0; j=nl } else { j=j+1 } } if m==1 { return 1 } i=i+1 } return 0 }
36func ui_host(url: *u8, out: *u8) -> i64
55func ui_resolve(base: *u8, href: *u8, out: *u8) -> i64
80func main(argc: i64, argv: *i64) -> i64