code wiki / _hdl_build / nx_worklog_append_gate.nx

nx_worklog_append_gate.nx

buildroot/runtime/_hdl_build/nx_worklog_append_gate.nx

5138 B90 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic worklog
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_worklog_lib.nx nx_syscalls.nx nx_worklog_append_gate.nx

imports: nx_gate_gn.nxnx_worklog_lib.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 gp sys_write wl_ensure_dir sys_mkdir sys_openat_wr sys_close wl_append3_t sys_mmap fa_catn sys_mmap ↻ fa_cat fa_appendz fa_append sys_mmap ↻ sys_openat_append sys_flock fa_write_all sys_write ↻ sys_close ↻ fa_len sys_mmap ↻ g_read sys_openat_rd sys_read sys_close ↻ g_count gn g_find g_cat sys_exit

structs

none

consts

8const GD: *u8 = "/tmp/nx_wl_gate"
9const GP: *u8 = "/tmp/nx_wl_gate/worklog.tsv"

functions

11func 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
13func g_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
22func g_find(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
34func g_count(buf: *u8, n: i64, c: i64) -> i64
called by 1: main
39func g_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64 = off; var i: i64 = 0; while s[i] != (0 as u8) { dst[o] = s[i]; o = o + 1; i = i + 1 } return o }
called by 1: main
41func main(argc: i64, argv: *i64) -> i64