code wiki / _hdl_build / nx_kill_portable.nx

nx_kill_portable.nx

buildroot/runtime/_hdl_build/nx_kill_portable.nx

1648 B29 linesdepth 0pulls 0 transitivereach 14 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_kill_portable.nx -- kill(2) that works under BOTH compiler lanes. nx_syscalls' nx_kill hardcodes rv64 129 and relies on the SOVEREIGN compiler's rv64->x86 __syscall translation (129->62). The C-bootstrap compiler has NO translator, so 129 hits x86 rt_sigqueueinfo and fails silently -- gates hung on wait4 of children that never died, daemons leaked after every teardown (landmine #5, 2026-06-10). This helper uses the @ifdef pattern (same as SYS_GETDENTS64) so the kg lane emits the raw x86 number. SOVEREIGN-RE-GATE NOTE: 62 collides with rv64 lseek in the translator -- when the compiler lane re-blesses, either the translator learns to skip translation under TARGET_X86_64 or this helper switches back to 129 there. Tracked in the landmine doc. license_tier: ORIGINAL

dependencies 0 imports · 14 importers

nx_kill_portable.nx nx_budget_run.nx nx_cms_analytics_gate.nx nx_cms_argon_gate.nx nx_cms_blocks_gate.nx nx_cms_draft_gate.nx nx_cms_forms_gate.nx nx_cms_fuzz_gate.nx nx_cms_gate.nx nx_cms_multisite_gate.nx nx_cms_seo_gate.nx

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

imports: none

imported by: nx_budget_run.nxnx_cms_analytics_gate.nxnx_cms_argon_gate.nxnx_cms_blocks_gate.nxnx_cms_draft_gate.nxnx_cms_forms_gate.nxnx_cms_fuzz_gate.nxnx_cms_gate.nxnx_cms_multisite_gate.nxnx_cms_seo_gate.nxnx_cms_snapshot_gate.nxnx_cms_tls_gate.nxnx_perf_sentinel.nxnx_perf_sentinel_gate.nx

structs

none

consts

none

functions

25func nxk_kill(pid: i64, sig: i64) -> i64
called by 13: mainmainmainmainmainmain+7