code wiki / _hdl_build / nx_vroom_gitea_stage.nx

nx_vroom_gitea_stage.nx

buildroot/runtime/_hdl_build/nx_vroom_gitea_stage.nx

5401 B84 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind orphan librarytopic vroom
docsdependenciesstructsconstsfunctions

about

nx_vroom_gitea_stage.nx -- Promotes publisher-verified /video/ client files to Gitea-tracked source for safe, atomic deployment.

dependencies 2 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_vroom_gitea_stage.nx

imports: nx_gate_gn.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

20const SRC_IDX: *u8 = "knowledge/publish/video-live/video/index.html"
21const SRC_APP: *u8 = "knowledge/publish/video-live/video/app.js"
22const DST_IDX: *u8 = "sites/nishifamily/video/index.html"
23const DST_APP: *u8 = "sites/nishifamily/video/app.js"
24const GS_LOG: *u8 = "knowledge/status/vroom_gitea_stage.log"

functions

26func gwf(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
27func gnf(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 }
28func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
29func find_sub(hay: *u8, n: i64, needle: *u8) -> i64
36func copy_file(src: *u8, dst: *u8, lb: *i64) -> i64
46func main() -> i64