← All docs
chown() — internals
Compiler internals for chown(): lowering path, type checks, and runtime helpers.
chown() — internals
Where it lives
- Signature:
src/builtins/io/chown.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4469 (lower_chown) - Function symbol:
lower_chown()
Lowering notes
- Lowers
chown(path, owner)for integer UIDs and string user names.
Runtime helpers
The following runtime helpers are referenced:
__rt_umask
Signature summary
function chown(string $filename, string $user): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/chown.rs(eval_builtin!) - Dispatch hooks:
direct,values