← All docs
gethostname() — internals
Compiler internals for gethostname(): lowering path, type checks, and runtime helpers.
gethostname() — internals
Where it lives
- Signature:
src/builtins/io/gethostname.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:3405 (lower_gethostname) - Function symbol:
lower_gethostname()
Lowering notes
- Lowers
gethostname()through the shared runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_gethostbyaddr__rt_gethostbyname__rt_gethostname
Signature summary
function gethostname(): string
What the type checker enforces
- Arity: takes no arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/network_env/gethostname.rs(eval_builtin!) - Dispatch hooks:
direct,values