code wiki / (root) / nx_craft_visitors_lit_status_expanded_t181.nx

nx_craft_visitors_lit_status_expanded_t181.nx

buildroot/runtime/nx_craft_visitors_lit_status_expanded_t181.nx

262144 B5411 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind orphan librarytopic craft
docsdependenciesstructsconstsfunctions

about

nx_game_page_emit.nx -- the SOVEREIGN game-page emitter. Until now the browser page for a wasm game was assembled by printf blocks in _ops/nx_emit_game.sh -- real emission logic living in SHELL, against the doctrine (shell only LAUNCHES sovereign ELFs). This organ owns it: reads the .wasm, base64-encodes it (composes nx_base64 -- one encoder, not a coreutils dependency), and emits the complete self-contained page (marker, shim, input forwarding, persistence bytes-mover). usage: nx_game_page_emit <wasm> <out.html> <title> <native-client-name> <controls-html> RECOVERED 2026-08-02 from buildroot/_build/nx_craft_emit.s (the 14:07 build's data section) after a failed in-place rewrite TRUNCATED this file to 0 bytes and the damage was copied to both trees. Every emitted chunk below is the exact byte sequence that build shipped, so the recovered emitter is byte-equivalent to the last one that passed both gates. license_tier: ORIGINAL syscalls.nx -- thin __syscall wrappers used across modules. Sovereign path: no libc. Every memory allocation, file op, and clock read in the rest of the runtime routes through one of these helpers. Numbers match Linux RV64; NishiOS uses the same set. Extracted from runtime.nx and ir.nx's copy-pasted helpers so the module-import build doesn't produce duplicate symbols.

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

structs

2841struct Sha256 {
3338struct NxFileWriteResult
3420struct NxFileReadRegion
3502struct NxFilePrepareResult
3564struct NxFilePublishResult
3592struct NxFileTargetLock
3639struct NxFileReplaceResult
5350struct GpaWasmCursor
5355struct GpaMemory

consts

225const NX_BUF_TINY: nx_size = 64
226const NX_BUF_SMALL: nx_size = 256
227const NX_BUF_MEDIUM: nx_size = 4096
228const NX_BUF_LARGE: nx_size = 65536
229const NX_BUF_HUGE: nx_size = 1048576
233const NX_TIER_MCU: nx_int = 0
234const NX_TIER_SOVEREIGN_CHIP: nx_int = 1
235const NX_TIER_FAMILY_DEVICE: nx_int = 2
236const NX_TIER_WORKSTATION: nx_int = 3
237const NX_TIER_SERVER: nx_int = 4
238const NX_TIER_HPC: nx_int = 5
242const NX_NUM_N0_I32: nx_int = 0
243const NX_NUM_N1_I64: nx_int = 1
244const NX_NUM_N2_I128: nx_int = 2
245const NX_NUM_N3_I256: nx_int = 3
246const NX_NUM_N4_I512: nx_int = 4
247const NX_NUM_N5_BIGINT: nx_int = 5
255const NX_SIZEOF_NX_INT: nx_size = 8 // nx_int currently i64 -> 8 bytes
256const NX_SIZEOF_NX_SIZE: nx_size = 8 // nx_size always pointer-width
257const NX_SIZEOF_NX_IDX: nx_size = 8 // nx_idx alias of nx_size
261const NX_FD_STDIN: nx_fd = 0
262const NX_FD_STDOUT: nx_fd = 1
263const NX_FD_STDERR: nx_fd = 2
265const SYS_MAGIC_1024: i64 = 1024
266const SYS_MAGIC_1000000: i64 = 1000000
267const SYS_MAGIC_4294967296: i64 = 4294967296
269const SYS_READ_GROW_INIT: i64 = 65536
270const SYS_MAGIC_100000: i64 = 100000
288const SYS_READ: i64 = 0
289const SYS_WRITE: i64 = 1
290const SYS_CLOSE: i64 = 3
291const SYS_LSEEK: i64 = 8
292const SYS_OPENAT: i64 = 257
293const SYS_EXIT: i64 = 60
294const SYS_MMAP: i64 = 9
295const SYS_CLOCK_GETTIME: i64 = 228
296const SYS_IOCTL: i64 = 16
297const SYS_CLOCK_NANOSLEEP: i64 = 230
301const SYS_CHROOT: i64 = 161
302const SYS_MOUNT: i64 = 165
303const SYS_UNSHARE: i64 = 272
304const SYS_GETUID: i64 = 102
305const SYS_GETGID: i64 = 104
306const SYS_POLL: i64 = 7
310const SYS_READ: i64 = 63
311const SYS_WRITE: i64 = 64
312const SYS_CLOSE: i64 = 57
313const SYS_LSEEK: i64 = 62
314const SYS_OPENAT: i64 = 56
315const SYS_EXIT: i64 = 93
316const SYS_MMAP: i64 = 222
317const SYS_CLOCK_GETTIME: i64 = 113
318const SYS_IOCTL: i64 = 29
319const SYS_CLOCK_NANOSLEEP: i64 = 115
326const SYS_CHROOT: i64 = 51
327const SYS_MOUNT: i64 = 40
328const SYS_UNSHARE: i64 = 97
329const SYS_GETUID: i64 = 174
330const SYS_GETGID: i64 = 176
331const SYS_POLL: i64 = 73
389const SYS_PATH_MAX: i64 = 4096 // Linux PATH_MAX; getcwd returns -ERANGE below it
393const MODE_0755: i64 = 0x1ed // rwxr-xr-x : default mode for a created directory
408const AT_FDCWD: i64 = -100
513const NX_MO_RELAXED: i64 = 0
514const NX_MO_CONSUME: i64 = 1
515const NX_MO_ACQUIRE: i64 = 2
516const NX_MO_RELEASE: i64 = 3
517const NX_MO_ACQ_REL: i64 = 4
518const NX_MO_SEQ_CST: i64 = 5
520const NXA_SMALL_MAX: i64 = 256
521const NXA_CHUNK: i64 = 262144
522const NXA_ALIGN: i64 = 16
523const NXA_GAP: i64 = 16
524const NXA_STATE: i64 = 4096
530const NXA_RING: i64 = 128
531const NXA_RBASE: i64 = 64
566const NXA_LOCK: i64 = 4
574const NXA_LOCK_WARN: i64 = NXA_RING * 8
578const NXA_LOCK_WARNED: i64 = 5
580const NXA_CHUNKBASE: i64 = 320
581const NXA_CHUNKMAX: i64 = 192
602const NXA_MAP_INVALID:i64=0-22 // Linux EINVAL, a protocol value rather than a resource budget.
654const SYS_STATFS_X86_MEASURED: i64 = 137
655const STATFS_BUF_BYTES: i64 = 144
656const STATFS_I_BSIZE: i64 = 1
657const STATFS_I_BLOCKS: i64 = 2
658const STATFS_I_BAVAIL: i64 = 4
659const STATFS_PERMIL: i64 = 1000
660const STATFS_ERR: i64 = 0 - 1
1005const O_RDONLY: i64 = 0
1006const O_WRONLY_CT: i64 = 0x241 // O_CREAT | O_WRONLY | O_TRUNC
1007const O_WRONLY_CA: i64 = 0x441 // O_CREAT | O_WRONLY | O_APPEND
1015const O_RDWR_CREATE: i64 = 0x42
1036const MODE_0644: i64 = 0x1a4 // rw-r--r-- : default mode for a generated artifact
1041const MODE_0755: i64 = 0x1ed
1054const ACCEPT_TMO_S: i64 = 30
1061const O_WRONLY_CREATE_EXCLUSIVE: i64 = 0x1 | 0x40 | 0x80
1067const O_DIRECTORY: i64 = 0x10000
1081const O_CLOEXEC: i64 = 0x80000
1082const O_NOFOLLOW: i64 = 0x20000
1083const O_NONBLOCK: i64 = 0x800
1084const MODE_0600: i64 = 0x180
1149const SYS_LOCK_SH: i64 = 1
1150const SYS_LOCK_EX: i64 = 2
1151const SYS_LOCK_NB: i64 = 4
1152const SYS_LOCK_UN: i64 = 8
1197const SYS_SETPGID: i64 = 109
1200const SYS_SETPGID: i64 = 154
1223const RLIMIT_CPU: i64 = 0
1224const RLIMIT_AS: i64 = 9
1225const WNOHANG: i64 = 1
1319const SYS_CLONE: i64 = 56
1320const SYS_EXECVE: i64 = 59
1321const SYS_WAIT4: i64 = 61
1322const SYS_PIPE2: i64 = 293
1323const SYS_DUP3: i64 = 292
1327const SYS_CLONE: i64 = 220
1328const SYS_EXECVE: i64 = 221
1329const SYS_WAIT4: i64 = 260
1330const SYS_PIPE2: i64 = 59
1331const SYS_DUP3: i64 = 24
1337const CLONE_VM: i64 = 0x00000100
1338const CLONE_VFORK: i64 = 0x00004000
1339const SIGCHLD: i64 = 17
1389const NX_SYS_PRCTL: i64 = 167
1390const NX_PR_SET_PDEATHSIG: i64 = 1
1391const NX_PR_SET_CHILD_SUBREAPER: i64 = 36
1406const SYS_WAITID_PORTABLE: i64 = 95
1407const NX_WAIT_P_PID: i64 = 1
1408const NX_WAIT_EXITED: i64 = 4
1409const NX_WAIT_NOWAIT: i64 = 0x01000000
1410const NX_WAIT_SIGINFO_BYTES: i64 = 128
1417const NX_FD_DENT_BUFFER: i64 = 4096
1418const NX_SYS_CLOSE_RANGE: i64 = 436 // Linux x86_64 and asm-generic ABI
1419const NX_FD_UINT_MAX: i64 = 4294967295
1591const SYS_GETDENTS64: i64 = 217
1594const SYS_GETDENTS64: i64 = 61
1597const DT_UNKNOWN: i64 = 0
1598const DT_FIFO: i64 = 1
1599const DT_CHR: i64 = 2
1600const DT_DIR: i64 = 4
1601const DT_BLK: i64 = 6
1602const DT_REG: i64 = 8
1603const DT_LNK: i64 = 10
1604const DT_SOCK: i64 = 12
1792const SYS_SOCKET: i64 = 41
1793const SYS_BIND: i64 = 49
1794const SYS_LISTEN: i64 = 50
1795const SYS_ACCEPT: i64 = 43
1796const SYS_CONNECT: i64 = 42
1797const SYS_SETSOCKOPT: i64 = 54
1798const SYS_SENDTO: i64 = 44
1799const SYS_RECVFROM: i64 = 45
1800const SYS_SHUTDOWN: i64 = 48
1804const SYS_SOCKET: i64 = 198
1805const SYS_BIND: i64 = 200
1806const SYS_LISTEN: i64 = 201
1807const SYS_ACCEPT: i64 = 202
1808const SYS_CONNECT: i64 = 203
1809const SYS_SETSOCKOPT: i64 = 208
1810const SYS_SENDTO: i64 = 206
1811const SYS_RECVFROM: i64 = 207
1812const SYS_SHUTDOWN: i64 = 210
1816const SOL_SOCKET: i64 = 1
1817const SO_REUSEADDR: i64 = 2
1822const SO_SNDTIMEO: i64 = 21
1823const SO_RCVTIMEO: i64 = 20
1851const SYS_ALARM: i64 = 37
1854const AF_INET: i64 = 2
1855const SOCK_STREAM: i64 = 1
1856const SOCK_DGRAM: i64 = 2
1962const SYS_SENDMSG: i64 = 46
1963const SYS_RECVMSG: i64 = 47
1964const SYS_SOCKETPAIR: i64 = 53
1965const SCM_AF_UNIX: i64 = 1
1966const SCM_SOL_SOCKET: i64 = 1
1967const SCM_RIGHTS_TYPE: i64 = 1
1968const SCM_MSG_CMSG_CLOEXEC: i64 = 1073741824
1969const SCM_MSGHDR_BYTES: i64 = 56
1970const SCM_MSGHDR_OFF_IOV: i64 = 16
1971const SCM_MSGHDR_OFF_IOVLEN: i64 = 24
1972const SCM_MSGHDR_OFF_CTRL: i64 = 32
1973const SCM_MSGHDR_OFF_CTRLLEN: i64 = 40
1974const SCM_IOVEC_BYTES: i64 = 16
1975const SCM_IOVEC_OFF_BASE: i64 = 0
1976const SCM_IOVEC_OFF_LEN: i64 = 8
1977const SCM_CMSG_OFF_LEN: i64 = 0
1978const SCM_CMSG_OFF_LEVEL: i64 = 8
1979const SCM_CMSG_OFF_TYPE: i64 = 12
1980const SCM_CMSG_OFF_DATA: i64 = 16
1981const SCM_CMSG_LEN_1FD: i64 = 20
1982const SCM_CMSG_SPACE_1FD: i64 = 24
1983const SCM_IOV_COUNT_ONE: i64 = 1
1984const SCM_U32_BYTES: i64 = 4
1985const SCM_BYTE_RADIX: i64 = 256
1986const SCM_FDPAIR_BYTES: i64 = 8
1989const SCM_PAYLOAD_BYTES: i64 = 1
1990const SCM_PAYLOAD_BYTE: i64 = 70
1994const SCM_ERR_NO_CMSG: i64 = 0 - 901
1995const SCM_ERR_CMSG_LEN: i64 = 0 - 902
1996const SCM_ERR_CMSG_LEVEL: i64 = 0 - 903
1997const SCM_ERR_CMSG_TYPE: i64 = 0 - 904
2069const SCM_SUN_PATH_OFF: i64 = 2 // sockaddr_un = [sa_family: u16][sun_path: 108]
2070const SCM_SUN_BYTES: i64 = 110
2071const SCM_SUN_PATH_MAX: i64 = 107
2196const NX_FILE_PERMISSION_MASK:i64=511
2197const NX_FILE_DESCRIPTOR_INVALID:i64=0-22
2203const NX_STAT_X64_BYTES:i64=144
2204const NX_STAT_X64_MODE_OFFSET:i64=24
2205const NX_STAT_X64_BLOCK_OFFSET:i64=56
2206const NX_STAT_X64_SIZE_OFFSET:i64=48
2207const NX_STAT_X64_DEVICE_OFFSET:i64=0
2208const NX_STAT_X64_INODE_OFFSET:i64=8
2209const NX_STAT_TYPE_MASK:i64=61440
2210const NX_STAT_REGULAR_FILE:i64=32768
2277const B64_PAD: i64 = 0x3D // '='
2839const K_MAGIC_536870912: i64 = 536870912
2878const M32: i64 = 0xFFFFFFFF
3256const SHA256_WORD_ALIGN: i64 = 8
3257const SHA256_BLOCK_BYTES: i64 = 64
3258const SHA256_ROUND_WORDS: i64 = 64
3259const SHA256_WIDE_WORD: i64 = 8
3260const SHA256_PACKED_WORD: i64 = 4
3261const SHA256_STATE_WORDS: i64 = 8
3262const SHA256_DIGEST_BYTES: i64 = 32
3263const SHA256_SIGNED_MAX: i64 = 9223372036854775807
3264const SHA256_BITS_PER_BYTE: i64 = 8
3265const SHA256_E_INPUT: i64 = 0-1
3266const SHA256_E_WORKSPACE: i64 = 0-2
3267const SHA256_E_MAPPING: i64 = 0-3
3268const SHA256_E_RELEASE: i64 = 0-4
3332const FIO_EINTR: i64 = 0 - 4
3333const FIO_EIO: i64 = 0 - 5
3334const FIO_EINVAL: i64 = 0 - 22
3335const FIO_EEXIST: i64 = 0 - 17
3336const FIO_EBADMSG: i64 = 0 - 74 // Linux ABI: artifact digest mismatch.
3761const CCZ_ASCII_0: i64 = 48
3762const CCZ_MINUS: i64 = 45
3763const CCZ_DEC: i64 = 10
3783const NXI_BUF: i64 = 24
3784const NXI_STDOUT: i64 = 1
3785const NXI_STDERR: i64 = 2
3841const VW_PROC_PATH_CAP: i64 = 256 // /proc/<pid>/status path buffer
3842const VW_STATUS_BUF: i64 = 8192 // /proc status read buffer
3843const VW_PTR_CELL: i64 = 16 // 2-i64 scratch cell (vw_num_at end-pointer out-param)
4006const OSF_SLASH: i64 = 47 // '/' -- path separator (namespace-boundary test)
4040const OSP_HZ_LINUX: i64 = 100 // Linux USER_HZ: /proc/<pid>/stat starttime ticks/sec
4041const OSP_PATH_CAP: i64 = 256
4042const OSP_RD_CAP: i64 = 4096
4043const OSP_STAT_CAP: i64 = 262144 // /proc/stat whole-file read cap (btime scan)
4044const OSP_DENT_BUF: i64 = 65536 // getdents64 batch buffer (proven sizing)
4045const OSP_F_PPID: i64 = 2 // /proc/<pid>/stat field after ')': state=1 ppid=2 ... utime=12 stime=13 ... starttime=20
4046const OSP_F_START: i64 = 20
4047const OSP_F_UTIME: i64 = 12 // user-mode CPU ticks (cumulative)
4048const OSP_F_STIME: i64 = 13 // kernel-mode CPU ticks (cumulative)
4049const OSP_ASCII_0: i64 = 48
4050const OSP_ASCII_9: i64 = 57
4051const OSP_SP: i64 = 32
4052const OSP_NL: i64 = 10
4053const OSP_RP: i64 = 41 // ')'
4054const OSP_SLASH: i64 = 47
4055const OSP_NUL: i64 = 0
4056const OSP_SENTINEL: i64 = 0 - 1 // "not available on this OS backend"
4286const OSP_DIRENT_NAME_OFFSET: i64 = 19 // Linux linux_dirent64 ABI
4361const FSX_MAGIC_4095: i64 = 4095
4363const FSX_READ_CAP: i64 = 1048576 // max bytes returned by `read` (truncation is MARKED, never silent)
4364const FSX_DENY_CAP: i64 = 8192 // fs_read_deny.conf read cap
4365const FSX_PATH_CAP: i64 = 1024 // lowercased path work buffer
4366const FSX_DENT_BUF: i64 = 65536 // getdents64 batch buffer (matches the proven vsz/heal sizing)
4367const FSX_LS_CAP: i64 = 200 // scale-law: max ls entries EMITTED; true total ALWAYS declared (65KB-dump fix)
4368const FSX_RC_ABSENT: i64 = 3 // exit: path absent/unreadable (mirrors nx_fileop's exists convention)
4369const FSX_RC_DENIED: i64 = 5 // exit: deny-list refused the read
4370const FSX_UPPER_A: i64 = 65 // 'A' (ASCII lowercasing)
4371const FSX_UPPER_Z: i64 = 90 // 'Z'
4372const FSX_CASE_OFF: i64 = 32 // 'a' - 'A'
4373const FSX_ASCII_0: i64 = 48 // '0' (decimal print)
4458const FSX_SNIFF_CAP: i64 = 4096
4607const FSX_SEEK_END: i64 = 2 // lseek whence: EOF offset = size, WITHOUT reading a single byte
4694const FSX_LINES_SCAN: i64 = 1048576 // line-addressing scan window (matches the proven read cap)
4695const FSX_LINES_MAXOUT: i64 = 262144 // max bytes emitted by one `lines` call (transport-friendly)
4696const FSX_LINES_DEFN: i64 = 40 // default line count when the caller omits it
4697const FSX_LINES_MAXN: i64 = 400 // max lines per call
4767const FSX_MODE_RW: i64 = MODE_0644 // 0644 -- the ecosystem's file-create mode idiom
4768const FSX_DEC: i64 = 10 // decimal base (pid rendering in the tmp suffix)
4769const FSX_EDIT_OUT: i64 = 2097152 // edit output buffer (2x read cap: bounded replacement growth)
4770const FSX_TMP_ROOM: i64 = 32 // reserved room for ".nxw" + pid digits + NUL in the tmp name
4771const FSX_RC_IO: i64 = 4 // exit: io failure (open/short-write/rename)
4772const FSX_RC_NOMATCH: i64 = 6 // exit: edit found 0 occurrences (file UNCHANGED)
4773const FSX_RC_AMBIG: i64 = 7 // exit: edit found >1 occurrences without `all` (file UNCHANGED)
4886const FSX_NL: i64 = 10 // '\n' -- the row terminator this verb requires and heals
4887const FSX_APP_EMPTY: i64 = 0 - 4 // append refused: nothing to append
4888const FSX_APP_NONL: i64 = 0 - 5 // append refused: body does not end in a newline
4889const FSX_SEEK_SET: i64 = 0 // lseek whence: absolute offset (the tail probe)
5186const FSX_JOB_DIR: *u8 = "_jobs/"
5187const FSX_JOB_PFX: *u8 = "job_"
5188const FSX_JOB_CLAIM: *u8 = ".claim"
5189const FSX_JOB_OUT: *u8 = ".out"
5190const FSX_JOB_IDMAX: i64 = 24 // a job id is an epoch-shaped integer; longer than this is not an id
5191const FSX_JOB_NOSUCH: i64 = 1 // no marker: the id was never claimed (unknown id, or the lane has not claimed it yet)
5192const FSX_JOB_RUNNING: i64 = 2 // marker reads state=CLAIMED
5193const FSX_JOB_DONE: i64 = 3 // marker reads state=DONE with bytes>0: the output was printed
5194const FSX_JOB_DONE_EMPTY: i64 = 4 // marker reads state=DONE with bytes=0: the tool produced NOTHING
5195const FSX_JOB_UNPARSED: i64 = 5 // marker present, no state token this reader knows: printed verbatim
5196const FSX_JOB_REFUSED: i64 = 6 // id is not digits-only
5197const FSX_JOB_OUT_ABSENT: i64 = 7 // marker says DONE with bytes>0 but the output file is unreadable
5198const FSX_RC_JOB_RUNNING: i64 = 8 // CLI exit for RUNNING, distinct from every other fs exit code
5199const FSX_ASCII_9: i64 = 57 // '9' (decimal parse upper bound)
5309const FXC_OPEN_EXCLUSIVE: i64 = 0xc1 // O_WRONLY | O_CREAT | O_EXCL
5310const FXC_RENAMEAT2_X86: i64 = 316
5311const FXC_RENAME_NOREPLACE: i64 = 1
5312const FXC_EXISTS: i64 = 0 - 17
5313const FXC_IO: i64 = 0 - 3
5348const GPA_HEADER_BYTES: i64 = 8

functions

334func sys_ioctl(fd: i64, request: i64, arg: i64) -> i64
345func sys_poll(fds: *u8, nfds: i64, timeout_ms: i64) -> i64
351func sys_write(fd: i64, buf: *u8, count: i64) -> i64
355func sys_read(fd: i64, buf: *u8, count: i64) -> i64
359func sys_close(fd: i64) -> i64
369func sys_chdir(path: *u8) -> i64
calls 1: sys_mmap
394func sys_getcwd(buf: *u8, cap: i64) -> i64
calls 1: sys_mmap
413func sys_unlinkat(path: *u8) -> i64
called by 2: fsx_writefxc_create
420func sys_fchmodat(path: *u8, mode: i64) -> i64
calls 1: sys_mmap
436func sys_exit_group(code: i64) -> i64
453func sys_setpriority(prio: i64) -> i64
461func sys_setpriority_of(pid: i64, prio: i64) -> i64
603func sys_munmap_direct(addr:*u8,len:i64)->i64
608func sys_munmap(addr: *u8, len: i64) -> i64
615func sys_lseek(fd: i64, offset: i64, whence: i64) -> i64
663func sys_statfs(path: *u8, buf: *i64) -> i64
668func sys_fs_avail_bytes(path: *u8) -> i64
677func sys_fs_used_permil(path: *u8) -> i64
686func sys_exit(code: i64) -> i64
called by 1: nxa_die
720func nxa_dump_printable(src: i64, n: i64) -> i64
called by 1: nxa_report_overrun calls 1: sys_write
741func nxa_dump_sizes() -> i64
called by 1: nxa_report_overrun calls 1: sys_write
766func nxa_report_overrun(sz: i64, gs: i64) -> i64
796func nxa_die(msg: *u8) -> i64
called by 1: sys_mmap calls 2: sys_writesys_exit
806func nxa_lock_addr() -> *i64
814func nxa_lock_take() -> i64
called by 1: sys_mmap calls 2: nxa_lock_addrsys_write
843func nxa_lock_give() -> i64
called by 1: sys_mmap calls 1: nxa_lock_addr
857func sys_mmap_try(size:i64)->*u8
864func sys_mmap(size: i64) -> *u8
946func sys_arena_mark() -> i64
calls 1: sys_mmap
960func sys_arena_reset() -> i64
984func sys_mmap_shared(size: i64) -> *u8
998func sys_madvise(addr: *u8, len: i64, advice: i64) -> i64
1009func sys_openat_rd(path: *u8) -> i64
1016func sys_openat_rdwr(path: *u8, mode: i64) -> i64
1055func sys_openat_wr(path: *u8, mode: i64) -> i64
called by 1: fsx_write
1062func sys_openat_exclusive(path: *u8, mode: i64) -> i64
called by 1: fio_prepare_copy
1068func sys_openat_directory(path: *u8) -> i64
1075func sys_openat_append(path: *u8, mode: i64) -> i64
called by 1: fsx_append
1085func sys_openat_lock(path: *u8) -> i64
1093func sys_symlinkat(target: *u8, linkpath: *u8) -> i64
1105func sys_readlinkat(path: *u8, buf: *u8, cap: i64) -> i64
1122func sys_renameat(oldpath: *u8, newpath: *u8) -> i64
1135func sys_fsync(fd: i64) -> i64
1153func sys_flock(fd: i64, op: i64) -> i64
1161func sys_fstatat(path: *u8, statbuf: *u8) -> i64
called by 2: fio_existsfsx_write
1168func sys_utimensat(path: *u8, times: *i64) -> i64
1187func nx_kill(pid: i64, sig: i64) -> i64 { return __syscall(129, pid, sig, 0, 0, 0, 0) }
1202func sys_setpgid(pid: i64, pgid: i64) -> i64 { return __syscall(SYS_SETPGID, pid, pgid, 0, 0, 0, 0) }
1216func nx_prlimit(pid: i64, resource: i64, new_limit: *u8, old_limit: *u8) -> i64
1228func sys_mkdir(path: *u8, mode: i64) -> i64 { return __syscall(34, AT_FDCWD, path, mode, 0, 0, 0) }
1231func nx_chmod(path: *u8, mode: i64) -> i64 { return __syscall(53, AT_FDCWD, path, mode, 0, 0, 0) }
1235func nx_setsid() -> i64 { return __syscall(112, 0, 0, 0, 0, 0, 0) }
1239func sys_clock_gettime_mono(ts: *i64) -> i64
1247func sys_clock_gettime_real(ts: *i64) -> i64
1252func sys_now_realtime_sec() -> i64
1259func sys_now_realtime_ms() -> i64
1271func sys_now_realtime_us() -> i64
1280func sys_now_ms() -> i64
1291func sys_now_us() -> i64
1302func sys_clock_now_us() -> i64
calls 1: sys_now_us
1352func sys_unshare(flags: i64) -> i64
1355func sys_mount(source: *u8, target: *u8, fs_type: *u8, mountflags: i64, data: *u8) -> i64
1358func sys_chroot(path: *u8) -> i64
1361func sys_getuid() -> i64
1364func sys_getgid() -> i64
1368func sys_fork() -> i64
1392func sys_prctl(option: i64, arg: i64) -> i64
1395func sys_bind_parent_lifetime(expected_parent: i64, signal: i64) -> i64
calls 1: sys_prctl
1411func sys_waitid(idtype: i64, id: i64, info: *u8, options: i64) -> i64
1420func sys_close_inherited_proc(first: i64) -> i64
1461func sys_close_inherited(first: i64) -> i64
1467func sys_execve_clean(path: *u8, argv: *i64, envp: *i64) -> i64
1473func sys_execve(path: *u8, argv: *i64, envp: *i64) -> i64
called by 1: sys_execve_clean
1482func sys_wait4(pid: i64, status: *i64, options: i64) -> i64
1488func wait_exit_code(status: i64) -> i64
called by 1: wait_status_rc
1496func wait_term_signal(status: i64) -> i64
called by 1: wait_status_rc
1521func wait_status_rc(status: i64) -> i64
1544func sys_default_signal(sig: i64) -> i64
calls 1: sys_mmap
1553func sys_ignore_sigpipe() -> i64
calls 1: sys_mmap
1568func sys_pipe2(fds: *i64, flags: i64) -> i64
1574func sys_dup3(oldfd: i64, newfd: i64, flags: i64) -> i64
1608func sys_getdents64(fd: i64, buf: *u8, buf_len: i64) -> i64
1614func dirent_reclen(rec: *u8) -> i64
1621func dirent_type(rec: *u8) -> i64
called by 1: fsx_ls_from
1626func dirent_name(rec: *u8) -> *u8
1633func sys_read_file(path: *u8, out_len: *i64) -> *u8
1715func sys_free_file(buf: *u8, len: i64) -> i64
calls 1: sys_munmap
1726func sys_map_file(path: *u8, out_len: *i64) -> *u8
1744func sys_sleep_ms(ms: i64) -> i64
1828func sys_setsockopt(fd: i64, level: i64, optname: i64,
1838func sys_set_socket_timeout(fd: i64, secs: i64) -> i64
1852func sys_alarm(secs: i64) -> i64 { return __syscall(SYS_ALARM, secs, 0, 0, 0, 0, 0) }
1858func sys_socket(domain: i64, sock_type: i64, protocol: i64) -> i64
1870func sockaddr_in_init(addr: *u8, port: i64) -> i64
1893func sys_bind(fd: i64, addr: *u8, addr_len: i64) -> i64
called by 1: sys_unix_listen
1896func sys_listen(fd: i64, backlog: i64) -> i64
called by 1: sys_unix_listen
1903func sys_accept(fd: i64) -> i64
1906func sys_accept_with_addr(fd: i64, addr: *u8, addr_len: *i64) -> i64
1910func sys_shutdown(fd: i64, how: i64) -> i64
1913func sys_connect(fd: i64, addr: *u8, addr_len: i64) -> i64
called by 1: sys_unix_connect_fd
1916func sys_sendto(fd: i64, buf: *u8, n: i64, flags: i64,
1920func sys_recvfrom(fd: i64, buf: *u8, n: i64, flags: i64,
1999func scm_zero(base: *u8, n: i64) -> i64 { var i: i64 = 0; while i < n { base[i] = 0; i = i + 1 } return 0 }
2000func scm_put_i64(base: *u8, off: i64, v: i64) -> i64
2005func scm_get_i64(base: *u8, off: i64) -> i64
called by 1: sys_recv_fd
2012func scm_put_u32(base: *u8, off: i64, v: i64) -> i64
called by 1: sys_send_fd
2022func scm_get_u32(base: *u8, off: i64) -> i64
called by 1: sys_recv_fd
2034func sys_sendmsg(fd: i64, msg: *u8, flags: i64) -> i64
called by 1: sys_send_fd
2037func sys_recvmsg(fd: i64, msg: *u8, flags: i64) -> i64
called by 1: sys_recv_fd
2061func sys_socketpair(domain: i64, sock_type: i64, protocol: i64, sv: *u8) -> i64
2072func sys_unix_listen(path: *u8, backlog: i64) -> i64
2100func sys_unix_connect_fd(path: *u8) -> i64
2124func sys_send_fd(sock: i64, fd: i64) -> i64
2158func sys_recv_fd(sock: i64, flags: i64) -> i64
2198func sys_fchmod_fd(fd:i64,mode:i64)->i64
2211func sys_fstat_fd(fd:i64,stat:*u8)->i64
2215func sys_stat_permissions(stat:*u8)->i64
2280func b64_enc_char(n: i64) -> i64
called by 1: b64_encode
2290func b64url_enc_char(n: i64) -> i64
2301func b64_dec_char(c: i64) -> i64
called by 1: b64_grab
2314func b64_encode(in_bytes: *u8, n: i64, out: *u8) -> i64
calls 1: b64_enc_char
2351func b64_grab(in_chars: *u8, n: i64, pos: *i64) -> i64
called by 1: b64_decode calls 1: b64_dec_char
2370func b64_decode(in_chars: *u8, n: i64, out: *u8) -> i64
calls 1: b64_grab
2527func nx_bits_popcount64(x: i64) -> i64
2531func nx_bits_popcount32(x: i64) -> i64
2540func nx_bits_clz32(x: i64) -> i64
called by 1: nx_bits_floor_log2
2544func nx_bits_ctz32(x: i64) -> i64
2553func nx_bits_clz64(x: i64) -> i64
2559func nx_bits_ctz64(x: i64) -> i64
2572func nx_bits_rotl64(x: i64, n: i64) -> i64
2576func nx_bits_rotr64(x: i64, n: i64) -> i64
2586func nx_bits_rotl32(x: i64, n: i64) -> i64
called by 1: nx_bits_rotl32_soft
2593func nx_bits_rotr32(x: i64, n: i64) -> i64
2605func nx_bits_bswap64(x: i64) -> i64
2614func nx_bits_bswap32(x: i64) -> i64
2620func nx_bits_popcount64_soft(x: i64) -> i64
2628func nx_bits_popcount32_soft(x: i64) -> i64
2636func nx_bits_clz32_soft(x: i64) -> i64
2658func nx_bits_rotl64_soft(x: i64, n: i64) -> i64
2665func nx_bits_rotr64_soft(x: i64, n: i64) -> i64
2675func nx_bits_bswap64_soft(x: i64) -> i64
2683func nx_bits_bswap32_soft(x: i64) -> i64
2695func nx_bits_rotl32_soft(x: i64, n: i64) -> i64
calls 1: nx_bits_rotl32
2698func nx_bits_rotr32_soft(x: i64, n: i64) -> i64
calls 1: nx_bits_rotr32
2705func nx_bits_clz64_soft(x: i64) -> i64
2722func nx_bits_ctz64_soft(x: i64) -> i64
2738func nx_bits_ctz32_soft(x: i64) -> i64
2760func nx_bits_lowest(x: i64) -> i64
2770func nx_bits_clear_lowest(x: i64) -> i64
2778func nx_bits_is_pow2(x: i64) -> i64
2789func nx_bits_next_pow2_32(x: i64) -> i64
2805func nx_bits_parity64(x: i64) -> i64
2818func nx_bits_floor_log2(x: i64) -> i64
calls 1: nx_bits_clz32
2832func nx_bits_bextr(x: i64, start: i64, len: i64) -> i64
2882func rotr32(x: i64, n: i64) -> i64 {
calls 1: nx_bits_rotr32
2886func shr32(x: i64, n: i64) -> i64 {
2893func sha256_k(i: i64) -> i64 {
2963func blk_byte(c: *Sha256, n: i64) -> i64 {
called by 1: blk_word
2969func blk_set_byte(c: *Sha256, n: i64, v: i64) -> i64 {
2977func blk_word(c: *Sha256, i: i64) -> i64 {
called by 1: sha256_compress calls 1: blk_byte
2991func sha256_compress_ni(c: *Sha256) -> i64 {
called by 1: sha256_compress
3010func sha256_compress_ni_blocks(c: *Sha256, blocks: i64, nblk: i64) -> i64 {
called by 1: sha256_update
3032func sha256_compress(c: *Sha256) -> i64 {
3095func sha256_seed_allocated(c: *Sha256) -> i64 {
3122func sha256_init(c: *Sha256) -> i64 {
3133func sha256_update(c: *Sha256, bytes: *u8, n: i64) -> i64 {
3163func sha256_final(c: *Sha256, out: *u8) -> i64 {
3233func sha256_destroy(c: *Sha256) -> i64 {
3242func sha256_digest(bytes: *u8, n: i64, out: *u8) -> i64 {
3270func sha256_context_aligned_bytes() -> i64 {
3273func sha256_workspace_bytes() -> i64 {
3276func sha256_checked_input(bytes: *u8, n: i64, out: *u8) -> i64 {
3283func sha256_ranges_overlap(a: i64, an: i64, b: i64, bn: i64) -> i64 {
3289func sha256_init_workspace(workspace: *u8, capacity: i64) -> i64 {
3300func sha256_digest_workspace(bytes: *u8, n: i64, out: *u8, workspace: *u8, capacity: i64) -> i64 {
3314func sha256_digest_mapping_native(bytes: *u8, n: i64, out: *u8, mapping: i64) -> i64 {
3323func sha256_digest_checked_native(bytes: *u8, n: i64, out: *u8) -> i64 {
3347func fio_write_sync_fd(fd: i64, body: *u8, n: i64, result: *NxFileWriteResult) -> i64
3380func fio_sync_parent(path: *u8, result: *NxFileWriteResult) -> i64
3412func fio_exists(path: *u8) -> i64
3431func fio_region_init(r: *NxFileReadRegion) -> i64
3437func fio_region_close(r: *NxFileReadRegion) -> i64
3445func fio_region_fail(r: *NxFileReadRegion,stage: *u8,code: i64) -> i64
3450func fio_region_open(path: *u8,r: *NxFileReadRegion) -> i64
3466func fio_region_select(r: *NxFileReadRegion,start: i64,length: i64) -> i64
3476func fio_region_next(r: *NxFileReadRegion,out: *u8,cap: i64) -> i64
3511func fio_prepare_copy(source: *u8,candidate: *u8,mode: i64,buffer: *u8,capacity: i64,out: *NxFilePrepareResult) -> i64
3572func fio_publish_candidate(candidate: *u8,live: *u8,out: *NxFilePublishResult) -> i64
3599func fio_target_lock_init(lock: *NxFileTargetLock) -> i64
3603func fio_target_lock_release(lock: *NxFileTargetLock) -> i64
called by 1: fio_replace_core calls 2: sys_flocksys_close
3614func fio_target_lock_acquire(live: *u8,lock: *NxFileTargetLock) -> i64
3649func fio_replace_owned(source: *u8,live: *u8,candidate: *u8,backup: *u8,mode: i64,buffer: *u8,capacity: i64,expected_candidate: *u8,expected_live: *u8,out: *NxFileReplaceResult) -> i64
3675func fio_replace_init(out: *NxFileReplaceResult) -> i64
3682func fio_replace_core(source: *u8,live: *u8,candidate: *u8,backup: *u8,mode: i64,buffer: *u8,capacity: i64,expected_candidate: *u8,expected_live: *u8,out: *NxFileReplaceResult) -> i64
3691func fio_replace_with_backup(source: *u8,live: *u8,candidate: *u8,backup: *u8,mode: i64,buffer: *u8,capacity: i64,out: *NxFileReplaceResult) -> i64
3695func fio_replace_verified(source: *u8,live: *u8,candidate: *u8,backup: *u8,mode: i64,buffer: *u8,capacity: i64,expected_candidate: *u8,expected_live: *u8,out: *NxFileReplaceResult) -> i64
3708func fio_verify_sha256(path: *u8,expected: *u8,buffer: *u8,capacity: i64) -> i64
3764func ccz_cat_num(buf: *u8, off: i64, v: i64) -> i64
called by 1: nxi_fd
3789func nxi_fd(fd: i64, v: i64) -> i64
3797func nxi_out(v: i64) -> i64 { return nxi_fd(NXI_STDOUT, v) }
called by 1: fsx_putn calls 1: nxi_fd
3798func nxi_err(v: i64) -> i64 { return nxi_fd(NXI_STDERR, v) }
calls 1: nxi_fd
3810func nxi_buf(dst: *u8, off: i64, v: i64) -> i64
called by 1: fxc_create
3845func vw_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
3848func vw_contains(hay: *u8, hn: i64, needle: *u8, nn: i64) -> i64
3862func vw_num_at(s: *u8, n: i64, off: i64, endp: *i64) -> i64
3878func vw_parse_row(buf: *u8, ls: i64, le: i64, outp: *i64) -> i64
3904func vw_status_kb(buf: *u8, n: i64, pat: *u8) -> i64
3927func vw_should_kill(vsz_kb: i64, max_gb: i64, last_kill_s: i64, now_s: i64, cooldown_s: i64) -> i64
3936func vw_read(path: *u8, buf: *u8, cap: i64) -> i64
3947func vw_now_s() -> i64 { let ts: *i64 = sys_mmap(16) as *i64; sys_clock_gettime_mono(ts); return ts[0] }
3950func vw_selfpid() -> i64
3961func vw_vmsize_parse(buf: *u8, n: i64) -> i64 { return vw_status_kb(buf, n, "VmSize:" as *u8) }
calls 1: vw_status_kb
3965func vw_status_kb_of(dirname: *u8, label: *u8) -> i64
3986func vw_vmsize_kb_of(dirname: *u8) -> i64 { return vw_status_kb_of(dirname, "VmSize:" as *u8) }
calls 1: vw_status_kb_of
3988func vw_rss_kb_of(dirname: *u8) -> i64 { return vw_status_kb_of(dirname, "VmRSS:" as *u8) }
calls 1: vw_status_kb_of
4009func osf_under(path: *u8, root: *u8) -> i64
called by 1: osf_write_forbidden
4020func osf_write_forbidden(path: *u8) -> i64
called by 1: fsx_write_denied calls 1: osf_under
4058func osp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (OSP_NUL as u8) { n = n + 1 } return n }
called by 1: osp_list_pids
4060func osp_itoa(v: i64, out: *u8) -> i64
called by 1: osp_ppath calls 1: sys_mmap
4073func osp_num(buf: *u8, n: i64, off: i64, endp: *i64) -> i64
4084func osp_basename(s: *u8) -> *u8
called by 1: osp_cmd_argv0
4098func osp_bread(path: *u8, buf: *u8, cap: i64) -> i64
4107func osp_ppath(out: *u8, pid: i64, leaf: *u8) -> i64
4119func osp_list_pids(pids: *i64, cap: i64) -> i64
4148func osp_fd_count_from_fd_result(fd: i64, cause: *i64) -> i64
4174func osp_fd_count_from_fd(fd: i64) -> i64
4177func osp_fd_count(pid: i64) -> i64
4189func osp_stat_field(pid: i64, fidx: i64) -> i64
4212func osp_ppid(pid: i64) -> i64 { return osp_stat_field(pid, OSP_F_PPID) }
calls 1: osp_stat_field
4213func osp_starttime_ticks(pid: i64) -> i64 { return osp_stat_field(pid, OSP_F_START) }
calls 1: osp_stat_field
4217func osp_cpu_ticks(pid: i64) -> i64
calls 1: osp_stat_field
4225func osp_cmd_argv0(pid: i64, out: *u8, cap: i64) -> i64
4238func osp_hz() -> i64 { return OSP_HZ_LINUX }
4241func osp_supervisor_log() -> *u8 { return "/tmp/supervisor.log" as *u8 }
4242func osp_uptime_s() -> i64 { let ts: *i64 = sys_mmap(16) as *i64; sys_clock_gettime_mono(ts); return ts[0] }
4243func osp_selfpid() -> i64
4251func osp_boot_epoch() -> i64
4287func osp_stat_parent(buf: *u8, n: i64) -> i64
called by 1: osp_children
4302func osp_children(parent: i64, children: *i64, capacity: i64) -> i64
4375func fsx_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
4380func fsx_putn(v: i64) -> i64 { nxi_out(v); return 0 }
4382func fsx_lower(s: *u8, out: *u8, cap: i64) -> i64
4395func fsx_seq(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 }
4406func fsx_cas_val(tok: *u8) -> *u8
called by 1: fsx_cas_ok
4414func fsx_cas_ok(cur: i64, tok: *u8) -> i64
4430func fsx_deny_hit(lp: *u8, ln: i64, needle: *u8) -> i64
4437func fsx_conf_deny(lp: *u8, ln: i64, conf: *u8) -> i64
4460func fsx_isalnum(c: i64) -> i64
called by 1: fsx_word_has
4467func fsx_ends_with(lp: *u8, ln: i64, suf: *u8) -> i64
called by 2: fsx_basename_isfsx_denied calls 1: vw_slen
4479func fsx_basename_is(lp: *u8, ln: i64, name: *u8) -> i64
called by 1: fsx_denied calls 2: vw_slenfsx_ends_with
4493func fsx_word_has(lp: *u8, ln: i64, w: *u8) -> i64
4518func fsx_content_secret(path: *u8) -> i64
4550func fsx_denied(path: *u8) -> i64
4594func fsx_fail(path: *u8, rc: i64) -> i64
4622func fsx_size(path: *u8) -> i64
4646func fsx_read(path: *u8, cap: i64) -> i64
4668func fsx_read_at(path: *u8, cap: i64, off: i64) -> i64
4705func fsx_read_lines(path: *u8, start: i64, count: i64) -> i64
4786func fsx_tail(path: *u8, count: i64) -> i64
4866func fsx_write_denied(path: *u8) -> i64
4891func fsx_tail_unterminated(path: *u8) -> i64
4905func fsx_append(path: *u8, body: *u8, blen: i64) -> i64
4936func fsx_write(path: *u8, body: *u8, blen: i64) -> i64
4991func fsx_count_occ(hay: *u8, hn: i64, nee: *u8, nl: i64) -> i64
5004func fsx_replace(hay: *u8, hn: i64, nee: *u8, nl: i64, rep: *u8, rl: i64, out: *u8, ocap: i64, allf: i64) -> i64
called by 1: fsx_edit
5038func fsx_edit(path: *u8, olds: *u8, news: *u8, allf: i64) -> i64
5109func fsx_edit_self_anchored(olds: *u8, news: *u8) -> i64
5124func fsx_ls(dir: *u8) -> i64 { return fsx_ls_from(dir, 0) }
calls 1: fsx_ls_from
5126func fsx_ls_from(dir: *u8, skip: i64) -> i64
5201func fsx_find(buf: *u8, n: i64, needle: *u8) -> i64
5216func fsx_kv_int(buf: *u8, n: i64, key: *u8) -> i64
called by 1: fsx_job_at calls 1: fsx_find
5234func fsx_job_id_ok(id: *u8) -> i64
called by 1: fsx_job_at
5247func fsx_job_path(dir: *u8, id: *u8, sfx: *u8, out: *u8) -> i64
called by 1: fsx_job_at
5263func fsx_job_at(dir: *u8, id: *u8) -> i64
5303func fsx_job(id: *u8) -> i64 { return fsx_job_at(FSX_JOB_DIR, id) }
calls 1: fsx_job_at
5314func fxc_create(path: *u8, body: *u8, n: i64) -> i64
5361func gpa_u32(c: *GpaWasmCursor) -> i64
5375func gpa_wasm_header(data: *u8,n: i64) -> i64
calls 1: gpa_same
5380func gpa_wasm_name(c: *GpaWasmCursor,name: *u8) -> i64
5389func gpa_memory_section(data: *u8,n: i64,shared: i64,m: *GpaMemory) -> i64
5412func gpa_body_section(c: *GpaWa