nx_syscalls.nx
buildroot/runtime/nx_syscalls.nx
about
dependencies 1 imports · 14553 importers
diagram shows first 10 each side; +0 more imports, +14543 more importers in the complete lists below.
imports: nx_tier.nx
imported by: _4kpage_gate.nx_ab_mk_erf.nx_ad_gate.nx_aes128_gcm_throughput_bench.nx_ale_agent_gate.nx_ale_aggregate_gate.nx_ale_exec_gate.nx_ale_format_gate.nx_ale_grade_gate.nx_ale_plan_gate.nx_ale_verify_gate.nx_an_honest.nx_an_score_test.nx_andor_probe.nx_ar2_minrepro.nx_ar2_perf_probe.nx_arg7_minrepro.nx_arg9_delegate_probe.nx_ark_gate_authored.nx_ark_gate_test.nx_assign_next_gate_authored.nx_attn_exp_hoist_gate.nx_authored.nx_autograd_authored.nx_autonomy_meter_gate_authored.nx_bf_atan_gate_authored.nx_bf_erf_gate_authored.nx_bf_erfc_oracle_gate.nx_bf_gamma_gate_authored.nx_bf_pow_gate_authored.nx_bf_regen_gate_authored.nx_bf_sinhcosh_gate_authored.nx_bf_tan_gate_authored.nx_bf_trig_gate_authored.nx_bitreader_authored.nx_bits_rotr64_kat.nx_bm25_rank_authored.nx_boot_stub_gate.nx_bpe_vocab_authored.nx_bs_poison.nx_cbz_list_authored.nx_cegis_authored.nx_cegis_bitfield.nx_cegis_clamp.nx_cegis_validator.nx_census_run_gate_authored.nx_cl_probe.nx_cl_probe2.nx_claude_ch_census.nx_claude_jpeg_census.nx_claude_meter_authored.nx_claude_novel_lane.nx_clksched_probe.nx_cn_fetch.nx_cn_fetch_test.nx_cn_flow.nx_cn_flow_test.nx_cn_jam.nx_cn_jam_test.nx_codec_bench.nx_codec_bench2.nx_codec_bench_med.nx_codec_real_med.nx_cond_healed.nx_constarg_probe.nx_coopsched_gate.nx_csv_field_authored.nx_ctxsw_gate.nx_dcb_probe2.nx_debolt_gate.nx_derefcast_minrepro.nx_dfl_comp_test.nx_dfl_enc_gate.nx_dfl_rtgate.nx_dfl_rtgate_sa.nx_dfl_rtgate_sa_test.nx_dfl_rtgate_test.nx_dfl_specgate.nx_dfl_specgate_test.nx_dga0.nx_dga1.nx_dga10.nx_dga11.nx_dga2.nx_dga3.nx_dga4.nx_dga5.nx_dga6.nx_dga7.nx_dga8.nx_dga9.nx_dgb0.nx_dgb1.nx_dgb10.nx_dgb11.nx_dgb2.nx_dgb3.nx_dgb4.nx_dgb5.nx_dgb6.nx +14453 more (shown cap 100 declared)
structs
| none |
consts
| 18 | const SYS_MAGIC_1024: i64 = 1024 |
| 19 | const SYS_MAGIC_1000000: i64 = 1000000 |
| 20 | const SYS_MAGIC_4294967296: i64 = 4294967296 |
| 21 | const SYS_MAGIC_100000: i64 = 100000 |
| 39 | const SYS_READ: i64 = 0 |
| 40 | const SYS_WRITE: i64 = 1 |
| 41 | const SYS_CLOSE: i64 = 3 |
| 42 | const SYS_LSEEK: i64 = 8 |
| 43 | const SYS_OPENAT: i64 = 257 |
| 44 | const SYS_EXIT: i64 = 60 |
| 45 | const SYS_MMAP: i64 = 9 |
| 46 | const SYS_CLOCK_GETTIME: i64 = 228 |
| 47 | const SYS_IOCTL: i64 = 16 |
| 48 | const SYS_CLOCK_NANOSLEEP: i64 = 230 |
| 52 | const SYS_CHROOT: i64 = 161 |
| 53 | const SYS_MOUNT: i64 = 165 |
| 54 | const SYS_UNSHARE: i64 = 272 |
| 55 | const SYS_GETUID: i64 = 102 |
| 56 | const SYS_GETGID: i64 = 104 |
| 57 | const SYS_POLL: i64 = 7 |
| 61 | const SYS_READ: i64 = 63 |
| 62 | const SYS_WRITE: i64 = 64 |
| 63 | const SYS_CLOSE: i64 = 57 |
| 64 | const SYS_LSEEK: i64 = 62 |
| 65 | const SYS_OPENAT: i64 = 56 |
| 66 | const SYS_EXIT: i64 = 93 |
| 67 | const SYS_MMAP: i64 = 222 |
| 68 | const SYS_CLOCK_GETTIME: i64 = 113 |
| 69 | const SYS_IOCTL: i64 = 29 |
| 70 | const SYS_CLOCK_NANOSLEEP: i64 = 115 |
| 77 | const SYS_CHROOT: i64 = 51 |
| 78 | const SYS_MOUNT: i64 = 40 |
| 79 | const SYS_UNSHARE: i64 = 97 |
| 80 | const SYS_GETUID: i64 = 174 |
| 81 | const SYS_GETGID: i64 = 176 |
| 82 | const SYS_POLL: i64 = 73 |
| 134 | const AT_FDCWD: i64 = -100 |
| 229 | const O_RDONLY: i64 = 0 |
| 230 | const O_WRONLY_CT: i64 = 0x241 // O_CREAT | O_WRONLY | O_TRUNC |
| 231 | const O_WRONLY_CA: i64 = 0x441 // O_CREAT | O_WRONLY | O_APPEND |
| 239 | const O_RDWR_CREATE: i64 = 0x42 |
| 315 | const SYS_LOCK_SH: i64 = 1 |
| 316 | const SYS_LOCK_EX: i64 = 2 |
| 317 | const SYS_LOCK_NB: i64 = 4 |
| 318 | const SYS_LOCK_UN: i64 = 8 |
| 374 | const RLIMIT_CPU: i64 = 0 |
| 375 | const RLIMIT_AS: i64 = 9 |
| 376 | const WNOHANG: i64 = 1 |
| 458 | const SYS_CLONE: i64 = 56 |
| 459 | const SYS_EXECVE: i64 = 59 |
| 460 | const SYS_WAIT4: i64 = 61 |
| 461 | const SYS_PIPE2: i64 = 293 |
| 462 | const SYS_DUP3: i64 = 292 |
| 466 | const SYS_CLONE: i64 = 220 |
| 467 | const SYS_EXECVE: i64 = 221 |
| 468 | const SYS_WAIT4: i64 = 260 |
| 469 | const SYS_PIPE2: i64 = 59 |
| 470 | const SYS_DUP3: i64 = 24 |
| 476 | const CLONE_VM: i64 = 0x00000100 |
| 477 | const CLONE_VFORK: i64 = 0x00004000 |
| 478 | const SIGCHLD: i64 = 17 |
| 622 | const SYS_GETDENTS64: i64 = 217 |
| 625 | const SYS_GETDENTS64: i64 = 61 |
| 628 | const DT_UNKNOWN: i64 = 0 |
| 629 | const DT_FIFO: i64 = 1 |
| 630 | const DT_CHR: i64 = 2 |
| 631 | const DT_DIR: i64 = 4 |
| 632 | const DT_BLK: i64 = 6 |
| 633 | const DT_REG: i64 = 8 |
| 634 | const DT_LNK: i64 = 10 |
| 635 | const DT_SOCK: i64 = 12 |
| 770 | const SYS_SOCKET: i64 = 41 |
| 771 | const SYS_BIND: i64 = 49 |
| 772 | const SYS_LISTEN: i64 = 50 |
| 773 | const SYS_ACCEPT: i64 = 43 |
| 774 | const SYS_CONNECT: i64 = 42 |
| 775 | const SYS_SETSOCKOPT: i64 = 54 |
| 776 | const SYS_SENDTO: i64 = 44 |
| 777 | const SYS_RECVFROM: i64 = 45 |
| 778 | const SYS_SHUTDOWN: i64 = 48 |
| 782 | const SYS_SOCKET: i64 = 198 |
| 783 | const SYS_BIND: i64 = 200 |
| 784 | const SYS_LISTEN: i64 = 201 |
| 785 | const SYS_ACCEPT: i64 = 202 |
| 786 | const SYS_CONNECT: i64 = 203 |
| 787 | const SYS_SETSOCKOPT: i64 = 208 |
| 788 | const SYS_SENDTO: i64 = 206 |
| 789 | const SYS_RECVFROM: i64 = 207 |
| 790 | const SYS_SHUTDOWN: i64 = 210 |
| 794 | const SOL_SOCKET: i64 = 1 |
| 795 | const SO_REUSEADDR: i64 = 2 |
| 800 | const SO_SNDTIMEO: i64 = 21 |
| 801 | const SO_RCVTIMEO: i64 = 20 |
| 829 | const SYS_ALARM: i64 = 37 |
| 832 | const AF_INET: i64 = 2 |
| 833 | const SOCK_STREAM: i64 = 1 |
| 834 | const SOCK_DGRAM: i64 = 2 |
functions
| 85 | func sys_ioctl(fd: i64, request: i64, arg: i64) -> i64 |
| 96 | func sys_poll(fds: *u8, nfds: i64, timeout_ms: i64) -> i64 |
| 102 | func sys_write(fd: i64, buf: *u8, count: i64) -> i64 |
| 106 | func sys_read(fd: i64, buf: *u8, count: i64) -> i64 |
| 110 | func sys_close(fd: i64) -> i64 |
| 120 | func sys_chdir(path: *u8) -> i64 |
| 139 | func sys_unlinkat(path: *u8) -> i64 |
| 146 | func sys_fchmodat(path: *u8, mode: i64) -> i64 |
| 162 | func sys_exit_group(code: i64) -> i64 |
| 179 | func sys_setpriority(prio: i64) -> i64 called by 1: main |
| 187 | func sys_setpriority_of(pid: i64, prio: i64) -> i64 called by 1: main |
| 196 | func sys_munmap(addr: *u8, len: i64) -> i64 |
| 202 | func sys_lseek(fd: i64, offset: i64, whence: i64) -> i64 |
| 206 | func sys_exit(code: i64) -> i64 |
| 212 | func sys_mmap(size: i64) -> *u8 |
| 221 | func sys_mmap_shared(size: i64) -> *u8 |
| 233 | func sys_openat_rd(path: *u8) -> i64 |
| 240 | func sys_openat_rdwr(path: *u8, mode: i64) -> i64 |
| 244 | func sys_openat_wr(path: *u8, mode: i64) -> i64 |
| 251 | func sys_openat_append(path: *u8, mode: i64) -> i64 |
| 259 | func sys_symlinkat(target: *u8, linkpath: *u8) -> i64 |
| 271 | func sys_readlinkat(path: *u8, buf: *u8, cap: i64) -> i64 |
| 288 | func sys_renameat(oldpath: *u8, newpath: *u8) -> i64 |
| 301 | func sys_fsync(fd: i64) -> i64 |
| 319 | func sys_flock(fd: i64, op: i64) -> i64 |
| 327 | func sys_fstatat(path: *u8, statbuf: *u8) -> i64 |
| 334 | func sys_utimensat(path: *u8, times: *i64) -> i64 |
| 353 | func nx_kill(pid: i64, sig: i64) -> i64 { return __syscall(129, pid, sig, 0, 0, 0, 0) } |
| 367 | func nx_prlimit(pid: i64, resource: i64, new_limit: *u8, old_limit: *u8) -> i64 |
| 379 | func sys_mkdir(path: *u8, mode: i64) -> i64 { return __syscall(34, AT_FDCWD, path, mode, 0, 0, 0) } |
| 382 | func nx_chmod(path: *u8, mode: i64) -> i64 { return __syscall(53, AT_FDCWD, path, mode, 0, 0, 0) } |
| 386 | func nx_setsid() -> i64 { return __syscall(112, 0, 0, 0, 0, 0, 0) } |
| 390 | func sys_clock_gettime_mono(ts: *i64) -> i64 |
| 398 | func sys_clock_gettime_real(ts: *i64) -> i64 |
| 403 | func sys_now_realtime_sec() -> i64 |
| 410 | func sys_now_realtime_ms() -> i64 called by 52: nx_dns01_udp_queryca_session_okmainacc_session_mintpace_beforepace_after+46 calls 2: sys_mmapsys_clock_gettime_real |
| 419 | func sys_now_ms() -> i64 called by 168: pp_oneg_fresh_prefixmainnish_fetch_rendermainmain+162 calls 2: sys_mmapsys_clock_gettime_mono |
| 430 | func sys_now_us() -> i64 |
| 441 | func sys_clock_now_us() -> i64 |
| 491 | func sys_unshare(flags: i64) -> i64 called by 1: _child_setup_and_exec |
| 494 | func sys_mount(source: *u8, target: *u8, fs_type: *u8, mountflags: i64, data: *u8) -> i64 called by 1: _child_setup_and_exec |
| 497 | func sys_chroot(path: *u8) -> i64 called by 1: _child_setup_and_exec |
| 500 | func sys_getuid() -> i64 called by 1: main |
| 503 | func sys_getgid() -> i64 called by 1: main |
| 507 | func sys_fork() -> i64 |
| 525 | func sys_execve_clean(path: *u8, argv: *i64, envp: *i64) -> i64 called by 81: cb_runds_launchds_verify_regdep_rundep_run_capture_boundeddep_run_capture+75 calls 2: sys_closesys_execve |
| 531 | func sys_execve(path: *u8, argv: *i64, envp: *i64) -> i64 |
| 540 | func sys_wait4(pid: i64, status: *i64, options: i64) -> i64 |
| 546 | func wait_exit_code(status: i64) -> i64 |
| 554 | func wait_term_signal(status: i64) -> i64 called by 1: main |
| 575 | func sys_default_signal(sig: i64) -> i64 |
| 584 | func sys_ignore_sigpipe() -> i64 called by 6: mainnx_http_server_listennx_http_server_listen_hotsg_probemaintsv_serve calls 1: sys_mmap |
| 599 | func sys_pipe2(fds: *i64, flags: i64) -> i64 |
| 605 | func sys_dup3(oldfd: i64, newfd: i64, flags: i64) -> i64 |
| 639 | func sys_getdents64(fd: i64, buf: *u8, buf_len: i64) -> i64 |
| 645 | func dirent_reclen(rec: *u8) -> i64 |
| 652 | func dirent_type(rec: *u8) -> i64 |
| 657 | func dirent_name(rec: *u8) -> *u8 |
| 664 | func sys_read_file(path: *u8, out_len: *i64) -> *u8 |
| 704 | func sys_map_file(path: *u8, out_len: *i64) -> *u8 called by 25: em_recalles_find_outfitmainmains_verb_querymain+19 calls 3: sys_openat_rdsys_lseeksys_close |
| 722 | func sys_sleep_ms(ms: i64) -> i64 called by 182: g_wait_listeng_wait_listenmainmainmainnx_dns01_wait_txt_propagated+176 calls 2: sys_mmapsys_munmap |
| 806 | func sys_setsockopt(fd: i64, level: i64, optname: i64, |
| 816 | func sys_set_socket_timeout(fd: i64, secs: i64) -> i64 called by 171: nx_dns01_udp_querynx_acme_reqmainac_probemainmain+165 calls 3: sys_mmapsys_setsockoptsys_munmap |
| 830 | func sys_alarm(secs: i64) -> i64 { return __syscall(SYS_ALARM, secs, 0, 0, 0, 0, 0) } |
| 836 | func sys_socket(domain: i64, sock_type: i64, protocol: i64) -> i64 |
| 839 | func sys_bind(fd: i64, addr: *u8, addr_len: i64) -> i64 |
| 842 | func sys_listen(fd: i64, backlog: i64) -> i64 |
| 849 | func sys_accept(fd: i64) -> i64 |
| 852 | func sys_accept_with_addr(fd: i64, addr: *u8, addr_len: *i64) -> i64 |
| 856 | func sys_shutdown(fd: i64, how: i64) -> i64 |
| 859 | func sys_connect(fd: i64, addr: *u8, addr_len: i64) -> i64 |
| 862 | func sys_sendto(fd: i64, buf: *u8, n: i64, flags: i64, |
| 866 | func sys_recvfrom(fd: i64, buf: *u8, n: i64, flags: i64, |