code wiki / _hdl_build / nx_worklog_sweep_gate.nx

nx_worklog_sweep_gate.nx

buildroot/runtime/_hdl_build/nx_worklog_sweep_gate.nx

9230 B160 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic worklog
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_worklog_ingest_lib.nx nx_worklog_sweep_gate.nx

imports: nx_gate_gn.nxnx_syscalls.nxnx_worklog_ingest_lib.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write sys_mkdir gclear sys_openat_wr sys_close gtrunc sys_openat_wr ↻ gstrlen sys_write ↻ sys_close ↻ gappend sys_openat_append sys_write ↻ gstrlen ↻ sys_close ↻ gstrlen ↻ wli_write_cursor sys_mmap wli_catn sys_mmap ↻ wli_cat sys_openat_wr ↻ sys_write ↻ sys_close ↻ sys_renameat sys_mmap ↻ wli_sweep_behind_to sys_openat_rd sys_mmap ↻ wli_is_cur jx_len wli_cat ↻ sys_fstatat wli_read_cursor sys_openat_rd ↻ sys_mmap ↻ sys_read sys_close ↻

structs

none

consts

18const SD: *u8 = "/tmp/nx_sweep_gate"
19const SPROJ: *u8 = "/tmp/nx_sweep_gate/proj"
20const SCUR: *u8 = "/tmp/nx_sweep_gate/cursors"
21const SW: *u8 = "/tmp/nx_sweep_gate/worklog.tsv"
23const TA: *u8 = "/tmp/nx_sweep_gate/proj/AAAAAAAA.jsonl"
24const TB: *u8 = "/tmp/nx_sweep_gate/proj/BBBBBBBB.jsonl"
25const TD: *u8 = "/tmp/nx_sweep_gate/proj/DDDDDDDD.jsonl"
26const CA: *u8 = "/tmp/nx_sweep_gate/cursors/AAAAAAAA.jsonl.cur"
27const CB: *u8 = "/tmp/nx_sweep_gate/cursors/BBBBBBBB.jsonl.cur"
28const CC: *u8 = "/tmp/nx_sweep_gate/cursors/CCCCCCCC.jsonl.cur"
29const CD: *u8 = "/tmp/nx_sweep_gate/cursors/DDDDDDDD.jsonl.cur"

functions

31func gp(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 1: main calls 1: sys_write
32func gstrlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: gtruncgappendmain
33func gtrunc(path: *u8, content: *u8) -> i64
41func gappend(path: *u8, content: *u8) -> i64
48func gread(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
57func gfind(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
69func gcount(buf: *u8, n: i64, c: i64) -> i64 { var cnt: i64 = 0; var i: i64 = 0; while i < n { if (buf[i] as i64) == c { cnt = cnt + 1 } i = i + 1 } return cnt }
called by 1: main
70func gsize(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_fstatat
78func gclear(path: *u8) -> i64
called by 1: main calls 2: sys_openat_wrsys_close
84func main(argc: i64, argv: *i64) -> i64