← All docs
posix_setsid() — internals
Compiler internals for posix_setsid(): lowering path, type checks, and runtime helpers.
posix_setsid() — internals
Where it lives
- Signature:
src/builtins/system/posix_setsid.rs - Lowering:
src/builtins/semantics.rs:639 (lower_registry_call) - Function symbol:
lower_registry_call()
Lowering notes
- Uses the
runtime_callstrategy from the single-source builtin descriptor. - Emits the typed EIR target
runtime.posix.setsidthroughBuiltinLoweringContext. - The backend resolves that typed target through
src/codegen/lower_inst/runtime_calls.rs; PHP builtin names do not participate in dispatch.
Semantic descriptor
- Target strategy:
runtime_call - Validation:
shared - Result type source:
declared - Result ownership:
non_heap - Effects:
static (5 declared effects) - Requirements:
static (1 requirements) - Callable policy:
static_only - Target support:
macos-aarch64,linux-aarch64,linux-x86_64
EIR and runtime boundary
- Typed EIR target:
runtime.posix.setsid - Backend boundary:
src/codegen/lower_inst/runtime_calls.rsresolves the typed target without PHP-name dispatch.
Signature summary
function posix_setsid(): int
What the type checker enforces
- Arity: takes no arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/pcntl/posix_setsid.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
capability-dependent. - Dispatch hooks:
direct,values