code wiki / _hdl_build / nx_cms_snapshot_test.nx
nx_cms_snapshot_test.nx
buildroot/runtime/_hdl_build/nx_cms_snapshot_test.nx
about
nx_cms_snapshot_test.nx -- KAT for the snapshot archive: pack 2 files with BINARY content
(newlines, NUL, high bytes), unpack to a fresh dir, assert byte-exact restore + correct count.
expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_cms_snapshot.nxnx_syscalls.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
| 7 | func ts_mkdir(path: *u8, mode: i64) -> i64 { let nb: *i64 = sys_mmap(8) as *i64; nb[0] = 258; return __syscall(nb[0], 0 - 100, path, mode, 0, 0, 0) } |
| 8 | func ts_write(path: *u8, buf: *u8, n: i64) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd < 0 { return 0 } sys_write(fd, buf, n); sys_close(fd); return 1 } |
| 9 | func ts_read(path: *u8, out: *u8, cap: i64) -> i64 |
| 19 | func main() -> i64 |