|
rlib
Convenience library for useful things
|
OS-system facing primitives: processes, signals, system info, environment variables, dynamic loading and TTY detection. More...
Modules | |
| Environment variables | |
| Cross-platform wrappers around the C library's environment accessors. Lookup, set (optionally overwriting) and unset. | |
| Dynamic modules | |
| Open shared libraries at runtime, resolve exported symbols and walk named sections. | |
| Process introspection | |
| Queries about the running process — whether a debugger is attached, the executable's path and name, and the process ID. | |
| Signal timers | |
SIGALRM-driven timers that invoke a callback once or on a recurring interval. | |
| System and hardware topology | |
| Query CPU and NUMA-node counts, build RBitset masks of the available CPUs / nodes, and walk a discovered hardware topology. | |
| Terminal output and ANSI escapes | |
| Helpers for writing to stdout / stderr with optional ANSI styling. | |
OS-system facing primitives: processes, signals, system info, environment variables, dynamic loading and TTY detection.
Six headers:
r_proc — process introspection and management.r_signal — signal handlers and synchronous delivery.r_sys — system info (uname-style, CPU count, hostname).r_env — environment-variable accessors.r_module — dynamic-library loading (dlopen / LoadLibrary).r_tty — terminal detection and capability queries.