← All docs
chmod() — internals
Compiler internals for chmod(): lowering path, type checks, and runtime helpers.
chmod() — internals
Where it lives
- Signature:
src/builtins/io/chmod.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4464 (lower_chmod) - Function symbol:
lower_chmod()
Lowering notes
- Lowers
chmod(path, mode)through the target-aware runtime helper.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function chmod(string $filename, int $permissions): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/chmod.rs(eval_builtin!) - Dispatch hooks:
direct,values