← All docs
popen() — internals
Compiler internals for popen(): lowering path, type checks, and runtime helpers.
popen() — internals
Where it lives
- Signature:
src/builtins/io/popen.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3598 (lower_popen) - Function symbol:
lower_popen()
Lowering notes
- Lowers
popen(command, mode)and boxes the process pipe asresource|false.
Runtime helpers
The following runtime helpers are referenced:
__rt_popen
Signature summary
function popen(string $command, string $mode): mixed
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/popen.rs(eval_builtin!) - Dispatch hooks:
direct,values