code wiki / _hdl_build / nx_manga_get_gate.nx
nx_manga_get_gate.nx
buildroot/runtime/_hdl_build/nx_manga_get_gate.nx
dependencies 5 imports · 0 importers
imports: nx_gate_grow.nxnx_gate_gn.nxnx_gate_read.nxnx_syscalls.nxnx_manga_get.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
| 19 | func gw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 20 | func g_has(hay: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 27 | func g_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]==(0 as u8){return 1} return 0 } called by 1: main |
| 28 | func g_mkdir(path: *u8) -> i64 { __syscall(258, 0 - 100, path as i64, 0x1ed, 0, 0, 0); return 0 } called by 1: main |
| 29 | func g_unlink(path: *u8) -> i64 { __syscall(263, 0 - 100, path, 0, 0, 0, 0); return 0 } called by 1: main |
| 30 | func g_wr(path: *u8, s: *u8, n: i64) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd >= 0 { sys_write(fd, s, n); sys_close(fd) } return 0 } |
| 32 | func main() -> i64 |