code wiki / (root) / syscalls.nx

syscalls.nx

buildroot/runtime/syscalls.nx

967 B20 linesdepth 2pulls 2 transitivereach 4024 importersview sourcekind librarytopic syscalls
docsdependenciesstructsconstsfunctions

about

syscalls.nx -- alias stub. nx_syscalls.nx is the canonical syscall surface: same 15 funcs this file used to define (sys_write/read/mmap/openat/close/exit/ brk/lseek/getpid/kill/fork/execve/wait4/clone/ioctl) plus 9 additions for sockets and time (sys_socket/bind/listen/accept/ connect/clock_gettime_mono/now_ms/sleep_ms/openat_append). Consumers using `import "syscalls.nx"` resolve via NishiLang's textual import splicing with path-dedup (runtime/import.nx I1): this stub splices nx_syscalls.nx once, and any other file that also imports "nx_syscalls.nx" directly gets deduped to the same canonical splice. No duplicate symbols. This fixed the nxasm_main.nx duplicate-symbol error on first link 2026-05-19. Deprecation: when every "syscalls.nx" consumer migrates to the nx_-prefixed name, delete this stub. bench/nx_import_closure.sh will catch any straggler before the build ships.

dependencies 1 imports · 872 importers

nx_syscalls.nx syscalls.nx _a2a_count_subst.nx _a2a_cs_x100.nx _a2a_hll_i64_x100.nx _a2a_hll_x100.nx _a2a_selfhost_binop.nx _a2a_selfhost_let.nx _a2a_subst.nx _a2a_td_x100.nx _a2a_tdigest_subst.nx _bmi_intrinsics_smoke.nx

diagram shows first 10 each side; +0 more imports, +862 more importers in the complete lists below.

imports: nx_syscalls.nx

imported by: _a2a_count_subst.nx_a2a_cs_x100.nx_a2a_hll_i64_x100.nx_a2a_hll_x100.nx_a2a_selfhost_binop.nx_a2a_selfhost_let.nx_a2a_subst.nx_a2a_td_x100.nx_a2a_tdigest_subst.nx_bmi_intrinsics_smoke.nx_bmi_test.nx_clz_test.nx_nx_bits_bswap_oracle.nx_nx_bits_bswap_speed_fast.nx_nx_bits_bswap_speed_soft.nx_nx_bits_clz64_oracle.nx_nx_bits_clz64_speed_fast.nx_nx_bits_clz64_speed_soft.nx_nx_bits_fast_vs_soft.nx_nx_bits_rotate_oracle.nx_nx_bits_rotate_speed_fast.nx_nx_bits_rotate_speed_soft.nx_nx_bits_speed_fast.nx_nx_bits_speed_paired.nx_nx_bits_speed_soft.nx_nx_loop_v2_oracle.nx_offc_argv_open.nx_offc_asm_probe.nx_offc_bisect_50strings.nx_offc_bisect_many_strings.nx_offc_bisect_outbuf_use.nx_offc_bisect_ptr_arith.nx_offc_bisect_string_literal.nx_offc_bitset_helper_probe.nx_offc_bitset_probe.nx_offc_deref_minimal_v2.nx_offc_deref_store_minimal.nx_offc_deref_store_probe.nx_offc_dmcell_addr_of_local_sbracket_lbracket.nx_offc_dmcell_addr_of_local_sbracket_lstar.nx_offc_dmcell_addr_of_local_sstar_lbracket.nx_offc_dmcell_addr_of_local_sstar_lstar.nx_offc_dmcell_arg_param_sbracket_lbracket.nx_offc_dmcell_arg_param_sbracket_lstar.nx_offc_dmcell_arg_param_sstar_lbracket.nx_offc_dmcell_arg_param_sstar_lstar.nx_offc_dmcell_call_return_sbracket_lbracket.nx_offc_dmcell_call_return_sbracket_lstar.nx_offc_dmcell_call_return_sstar_lbracket.nx_offc_dmcell_call_return_sstar_lstar.nx_offc_dmcell_cast_mmap_sbracket_lbracket.nx_offc_dmcell_cast_mmap_sbracket_lstar.nx_offc_dmcell_cast_mmap_sstar_lbracket.nx_offc_dmcell_cast_mmap_sstar_lstar.nx_offc_dmcell_ptr_arith_sbracket_lbracket.nx_offc_dmcell_ptr_arith_sbracket_lstar.nx_offc_dmcell_ptr_arith_sstar_lbracket.nx_offc_dmcell_ptr_arith_sstar_lstar.nx_offc_dmcell_rebound_let_sbracket_lbracket.nx_offc_dmcell_rebound_let_sbracket_lstar.nx_offc_dmcell_rebound_let_sstar_lbracket.nx_offc_dmcell_rebound_let_sstar_lstar.nx_offc_editor_smoke.nx_offc_hello.nx_offc_la_repro.nx_offc_ledger_smoke.nx_offc_lex_only.nx_offc_loop_smoke.nx_offc_micro_bare.nx_offc_micro_narr.nx_offc_micro_plain.nx_offc_minrepro.nx_offc_nxc_small.nx_offc_out_i64.nx_offc_outbuf_a.nx_offc_outbuf_b.nx_offc_outbuf_c.nx_offc_probe.nx_offc_probe_5args.nx_offc_probe_m0b.nx_offc_probe_pstar.nx_offc_probe_struct.nx_offc_strlen_call.nx_offc_strlit.nx_offc_struct_cast.nx_offc_tier2_probe.nx_offc_weaver_smoke.nx_offc_xfile_struct.nx_primes_bitpacked.nx_primes_bitpacked_inline.nx_primes_drag.nx_primes_sieve.nx_py_freq_substrate.nx_py_head2head_substrate.nx_py_quant_substrate.nx_selfhost_compile_42.nx_selfhost_compile_binop.nx_selfhost_compile_if.nx_selfhost_compile_if_false.nx_selfhost_compile_let.nx +772 more (shown cap 100 declared)

structs

none

consts

none

functions

none