linux-libc groups process/runtime, fd, path, and virtual-memory helpers that
call into libc on Linux hosts.
libc := import('linux-libc')
Convenience wrappers for getpid, getppid, and sysconf(_SC_PAGESIZE).
Thread-local error accessors.
Real/effective UID and GID wrappers.
Host/path query helpers.
Thin wrappers over POSIX-style file descriptor operations.
openFile(..., mode?)defaultsmodeto decimal420(0644) when omitted.
Direct libc mappings.
Convenience wrapper around mmap using anonymous private mapping.
- default protection:
PROT_READ | PROT_WRITE - mapping flags:
MAP_PRIVATE | MAP_ANONYMOUS
Convenience wrappers over munmap and mprotect.
- On non-Linux hosts, OS-gated calls return
-1,?, or a structured{type: :error, ...}object depending on the API. - On Linux hosts, results mirror underlying syscall/libc semantics via Magnolia's
sysinterop result shape.