code wiki / _hdl_build / nx_reader_page_gate.nx
nx_reader_page_gate.nx
buildroot/runtime/_hdl_build/nx_reader_page_gate.nx
dependencies 3 imports · 0 importers
imports: nx_gate_gn.nxnx_syscalls.nxnx_reader_sov.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 10 | 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 } |
| 11 | func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: gfind |
| 12 | func gfind(hay: *u8, hl: i64, needle: *u8) -> i64 |
| 18 | func gexists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 19 | func gunlink(path: *u8) -> i64 { return __syscall(263, 0-100, path, 0, 0, 0, 0) } |
| 20 | func gwrite(path: *u8, buf: *u8, n: i64) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd<0 {return 0-1} sys_write(fd, buf, n); sys_close(fd); return n } |
| 21 | func eq_bytes(a: *u8, an: i64, b: *u8, bn: i64) -> i64 { if an != bn { return 0 } var i: i64=0; while i<an { if a[i]!=b[i]{return 0} i=i+1 } return 1 } called by 1: main |
| 23 | func spawn(path: *u8, a0: *u8, a1: *u8, redir: *u8) -> i64 |
| 44 | func main() -> i64 |