For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
RTLD
struct RTLD
Enumeration of the RTLD flags used during dynamic library loading.
Implemented traits
comptime members
GLOBAL
comptime GLOBAL = Int(256) if CompilationTarget.is_linux() else Int(8)
Make symbols available for symbol resolution of subsequently loaded libraries.
LAZY
comptime LAZY = 1
Load library lazily (defer function resolution until needed).
LOCAL
comptime LOCAL = Int(0) if CompilationTarget.is_linux() else Int(4)
Make symbols not available for symbol resolution of subsequently loaded libraries.
NODELETE
comptime NODELETE = Int(4096) if CompilationTarget.is_linux() else Int(128)
Do not delete the library when the process exits.
NOW
comptime NOW = 2
Load library immediately (resolve all symbols on load).