code wiki / (root) / nx_pe_compile_win_iotcli.nx

nx_pe_compile_win_iotcli.nx

buildroot/runtime/nx_pe_compile_win_iotcli.nx

22058 B392 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic pe
docsdependenciesstructsconstsfunctions

about

nx_pe_compile_win_uiserve.nx -- W-NET-5b: native static-file HTTP server (sockets + file I/O in ONE PE) to serve the REAL Elder ui/dist on :5173. 13 imports across 2 DLLs: kernel32 { ExitProcess, GetProcessHeap, HeapAlloc, CreateFileA, ReadFile } ws2_32 { WSAStartup, socket, bind, listen, accept, recv, send, closesocket } Keystone-linker redirects shims to thunks (tolerant: only those the source defines, so a combined probe and the full server build from the same organ). lineage_id: substrate_pe_compile_win_uiserve_v1

dependencies 3 imports · 0 importers

nx_syscalls.nx nxasm_x86.nx nx_pe_writer.nx nx_pe_compile_win_iotcli.nx

imports: nx_syscalls.nxnxasm_x86.nxnx_pe_writer.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 sys_openat_wr icli_run sys_fork sys_dup3 sys_execve sys_exit sys_mmap ↻ sys_wait4 sys_close sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ us_assemble sys_mmap ↻ axc_pass axc_is_space axc_is_ident axc_apply_section axc_tok_is axc_cstr_len axc_is_space ↻ axc_is_ident ↻ axc_tok_is ↻ axc_emit_bytes axc_is_digit axc_parse_int axc_is_digit ↻ axc_parse_operand axc_is_space ↻ axc_is_ident ↻ axc_reg_num axc_tok_is ↻ axc_parse_int ↻ axc_is_digit ↻ axc_tok_is ↻

structs

none

consts

11const US_CODE_CAP: i64 = 1048576
12const US_FILE_SIZE: i64 = 0x2400 // headers(0x200)+.text(0x2000)+.idata(0x200)
13const US_STUB_LEN: i64 = 18
14const US_TEXT_CAP: i64 = 0x2000
15const US_RVA_TEXT: i64 = 0x1000
16const US_RVA_IDATA: i64 = 0x3000 // .text raw 0x2000 -> virtual 0x1000..0x3000 -> idata at 0x3000
17const US_FOFF_TEXT: i64 = 0x200
18const US_FOFF_IDATA:i64 = 0x2200
20const US_IAT_EXIT: i64 = 0x30BC
21const US_IAT_GPH: i64 = 0x30C4
22const US_IAT_HA: i64 = 0x30CC
23const US_IAT_CFA: i64 = 0x30D4
24const US_IAT_RF: i64 = 0x30DC
25const US_IAT_WSA: i64 = 0x30EC
26const US_IAT_SOCK: i64 = 0x30F4
27const US_IAT_BIND: i64 = 0x30FC
28const US_IAT_LISTEN:i64 = 0x3104
29const US_IAT_ACCEPT:i64 = 0x310C
30const US_IAT_RECV: i64 = 0x3114
31const US_IAT_SEND: i64 = 0x311C
32const US_IAT_CLOSE: i64 = 0x3124
33const US_IAT_CONNECT:i64 = 0x312C
35const US_L_HALLOC: i64 = 29
36const US_L_FOPEN: i64 = 57
37const US_L_FREAD: i64 = 42
38const US_L_WSA: i64 = 31
39const US_L_SOCK: i64 = 28
40const US_L_BIND: i64 = 65
41const US_L_LISTEN: i64 = 23
42const US_L_ACCEPT: i64 = 23
43const US_L_RECV: i64 = 27
44const US_L_SEND: i64 = 27
45const US_L_CLOSE: i64 = 18
46const US_L_CONNECT: i64 = 65

functions

48func us_lbloff(src: *u8, lab_off: *i64, lab_len: *i64, lab_addr: *i64, n_lab: i64, nm: *u8) -> i64
called by 1: us_assemble calls 1: axc_tok_is
54func us_assemble(src: *u8, n: i64, out: *u8, out_cap: i64, off: *i64) -> i64
92func us_redirect(buf: *u8, shim_off: i64, thunk_off: i64) -> i64
called by 1: us_emit_pe calls 2: _w8_w32
101func us_putname(buf: *u8, base: i64, off: i64, s: *u8) -> i64
called by 1: us_emit_pe calls 2: _w16_w8
108func us_putdll(buf: *u8, base: i64, off: i64, s: *u8) -> i64
called by 1: us_emit_pe calls 1: _w8
115func us_emit_pe(buf: *u8, code: *u8, code_len: i64, off: *i64) -> i64
343func icli_run(path: *u8, argv: *i64, envp: *i64, redir_out: i64, redir_err: i64) -> i64
356func main() -> i64