code wiki / _hdl_build / nx_pub_daemon.nx

nx_pub_daemon.nx

buildroot/runtime/_hdl_build/nx_pub_daemon.nx

3640 B48 linesdepth 6pulls 12 transitivereach 0 importersview sourcekind servicetopic pub
docsdependenciesstructsconstsfunctions

dependencies 4 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_publisher.nx nx_pub_daemon.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nxnx_publisher.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write pub_init streq touch sys_openat_wr sys_write ↻ sys_close pub_daemon_hb_age sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ pub_atoi sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gn pub_daemon_serve pub_daemon_watch_init pub_daemon_should_stop pub_exists sys_openat_rd ↻ sys_close ↻ pub_run_governed sys_mmap ↻ sys_read_file ↻ pub_field pub_streq pub_policy_allows pub_streq ↻ sys_mmap ↻ pub_join pub_pcat pub_exists ↻ fl_acquire

structs

none

consts

12const K_MAGIC_1000000000: i64 = 1000000000
13const K_MAGIC_2000: i64 = 2000

functions

15func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
17func 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 0} return 1 }
18func touch(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd<0 { return 0 } sys_write(fd, "1" as *u8, 1); sys_close(fd); return 1 }
20func main(argc: i64, argv: *i64) -> i64