code wiki / (root) / nx_synthroom.nx

nx_synthroom.nx

buildroot/runtime/nx_synthroom.nx

7096 B153 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_synthroom.nx -- THE ROOM PROTOCOL TOOL (/compare/synthroom rung SR1): the thin main over nx_synthroom_lib. All judgement lives in the lib so the gate can reach it in-process and a mutation bite is not hidden behind a fork boundary. nx_synthroom append <log> <nonce> <verb> <actor> [a1] [a2] -> appends ONE event row, or refuses by name nx_synthroom replay <log> <menu.conf> -> prints the derived intent stream nx_synthroom menu <menu.conf> <amount> [item] -> prints the intent one tip maps to nx_synthroom verbs -> prints the verb vocabulary exit 0 done | 1 refused (the reason is printed and named) | 2 usage license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_synthroom_lib.nx nx_synthroom.nx

imports: nx_syscalls.nxnx_synthroom_lib.nx

imported by: nobody (leaf or entry point)

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

main srt_usage srt_w sys_write sys_exit sr_streq sr_slen srt_w ↻ sr_verb_name 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 ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sr_event_append sr_verb_of sr_streq ↻ sr_verb_name ↻ sr_field_clean sr_slen ↻ sr_cat sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap

structs

none

consts

15const SRT_EXIT_OK: i64 = 0
16const SRT_EXIT_REFUSED: i64 = 1
17const SRT_EXIT_USAGE: i64 = 2
18const SRT_ARGV_VERB: i64 = 1
19const SRT_MIN_ARGC: i64 = 2
20const SRT_APPEND_MIN: i64 = 6
21const SRT_REPLAY_ARGC: i64 = 4
22const SRT_MENU_MIN: i64 = 4
23const SRT_A_LOG: i64 = 2
24const SRT_A_NONCE: i64 = 3
25const SRT_A_VERB: i64 = 4
26const SRT_A_ACTOR: i64 = 5
27const SRT_A_A1: i64 = 6
28const SRT_A_A2: i64 = 7
29const SRT_A_MENU: i64 = 3
30const SRT_M_CONF: i64 = 2
31const SRT_M_AMT: i64 = 3
32const SRT_M_ITEM: i64 = 4
35const SRT_ROW_MAX: i64 = 128
36const SRT_WORD: i64 = 8

functions

38func srt_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: srt_usagesrt_refusemain calls 1: sys_write
39func srt_n(v: i64) -> i64
called by 1: main calls 3: sys_mmapsr_catnumsys_write
46func srt_usage() -> i64
called by 1: main calls 1: srt_w
57func srt_refuse(d: i64) -> i64
64func srt_lines(buf: *u8, n: i64) -> i64
called by 1: main
71func main(argc: i64, argv: *i64) -> i64