Module libc/dyld
libc/dyld
Stability: unstable — a raw C binding serving one caller: `std/env`'s `current_exe()` on macOS. The public surface is `std/env`; this module follows Darwin's dynamic-linker API, so its shape is Apple's to change, not Yo's. It grows by demand as `std/` needs more of `<mach-o/dyld.h>`. — stable modules only change additively; this one may still change.
macOS <mach-o/dyld.h> — dynamic linker interface.
Only available when compiling for macOS: import this module only from
inside a platform == Platform.Macos branch (the same rule as
std/libc/windows).
Stability
unstable — a raw C binding serving one caller: std/env's
current_exe() on macOS. The public surface is std/env; this module
follows Darwin's dynamic-linker API, so its shape is Apple's to change,
not Yo's. It grows by demand as std/ needs more of <mach-o/dyld.h>.
Functions
_NSGetExecutablePath
function
fn(buf : *(char), bufsize : *(u32)) -> int
Parameters
| Name | Type | Notes |
|---|---|---|
buf | *(char) | |
bufsize | *(u32) |
Returns: int