std/ffi/libc/proc
libc process-lifecycle primitives. @link(symbol = …) binds them directly,
so no shim stands between the Axle call and the C entry point.
Only the verbs whose name and signature are the same on every target
live here. A query that diverges — the process id is getpid on unix
and _getpid on the Windows CRT — is bound beside the one function
that calls it, under @target(…), because a gated declaration cannot
be reached through a target-agnostic use.
Normal termination is not here: a program leaves through std/sys::exit,
which is the runtime's own departure and the one spelling of a stop that
flushes.
Free functions
| Type | Method and description |
|---|---|
| libcAbort() : void Terminate abnormally: raise SIGABRT on unix, take the C runtime'sabnormal-termination path on Windows. Never returns. Nothing is flushed and no destructor runs — that is what distinguishes it from exit, and the reason a program reaches for it only whencontinuing would be worse than stopping without cleanup. |
Method detail
#libcAbort
Terminate abnormally: raise SIGABRT on unix, take the C runtime's
abnormal-termination path on Windows. Never returns.
Nothing is flushed and no destructor runs — that is what distinguishes
it from exit, and the reason a program reaches for it only when
continuing would be worse than stopping without cleanup.