code wiki / _hdl_build / nx_worklog_ingest_gate.nx
nx_worklog_ingest_gate.nx
buildroot/runtime/_hdl_build/nx_worklog_ingest_gate.nx
dependencies 4 imports · 0 importers
imports: nx_gate_gn.nxnx_syscalls.nxnx_worklog_ingest_lib.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 16 | const GDIR: *u8 = "/tmp/nx_wli_gate" |
| 17 | const GT: *u8 = "/tmp/nx_wli_gate/transcript.jsonl" |
| 18 | const GC: *u8 = "/tmp/nx_wli_gate/cursor.cur" |
| 19 | const GW: *u8 = "/tmp/nx_wli_gate/worklog.tsv" |
functions
| 21 | func gp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 22 | func gstrlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 24 | func gtrunc(path: *u8, content: *u8) -> i64 |
| 32 | func gappend(path: *u8, content: *u8) -> i64 |
| 39 | func gread(path: *u8, buf: *u8, cap: i64) -> i64 |
| 48 | func gfind(buf: *u8, n: i64, pat: *u8) -> i64 |
| 60 | func 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 } |
| 62 | func main(argc: i64, argv: *i64) -> i64 |