code wiki / _hdl_build / nx_fb2_fixture.nx

nx_fb2_fixture.nx

buildroot/runtime/_hdl_build/nx_fb2_fixture.nx

2074 B33 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic fb2
docsdependenciesstructsconstsfunctions

about

nx_fb2_fixture.nx -- write a tiny sovereign DRM-free FB2 (FictionBook 2.0) file so the FB2->Nishi rung can be gated end-to-end (nx_fb2_book decodes -> book.json -> nx_nmz_pack @kind=book). A real .fb2 is a single XML file; this one has the title-info (title + author first/last) in <description> and prose in <body><section>, including a section <title> heading -- exactly the shape nx_fb2_book parses. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_fb2_fixture.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main ensure_dir sys_openat_wr fxw sys_write fx_slen sys_exit

structs

none

consts

none

functions

7func fx_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: fxw
8func fxw(fd: i64, s: *u8) -> i64 { sys_write(fd, s, fx_slen(s)); return 0 }
called by 1: main calls 2: sys_writefx_slen
9func ensure_dir(path: *u8) -> i64 { __syscall(258, 0-100, path, 0x1ed, 0, 0, 0); return 0 }
called by 1: main
11func main() -> i64