code wiki / (root) / fs_unlink_tail_test.nx

fs_unlink_tail_test.nx

buildroot/runtime/fs_unlink_tail_test.nx

2726 B87 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic fs
docsdependenciesstructsconstsfunctions

about

fs_unlink_tail_test.nx -- end-to-end smoke for fs_unlink + fs_tail. Builds a 5-line file, asks fs_tail for the last 3 lines, verifies the byte count and the newline count, then unlinks and verifies the file is gone. Re-unlinks to confirm the NotFound errno path.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_stdlib.nx nx_fs.nx fs_unlink_tail_test.nx

imports: nx_syscalls.nxnx_stdlib.nxnx_fs.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ fs_write_all fs_open_wr_raw fs_errno_to count_newlines fs_exists fs_open_rd_raw

structs

none

consts

none

functions

11func count_newlines(buf: *u8, n: i64) -> i64
called by 1: main
21func main() -> i64