← All docs
fsync() — internals
Compiler internals for fsync(): lowering path, type checks, and runtime helpers.
fsync() — internals
Where it lives
- Signature:
src/builtins/io/fsync.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3257 (lower_fsync) - Function symbol:
lower_fsync()
Lowering notes
- Lowers
fsync(stream)through the shared fd sync runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_fflush__rt_fsync
Signature summary
function fsync(resource $stream): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/fsync.rs(eval_builtin!) - Dispatch hooks:
direct,values