IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
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

AnyType, ImplicitlyDestructible

comptime members

GLOBAL

comptime GLOBAL = 256 if CompilationTarget.is_linux() else 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 = 0 if CompilationTarget.is_linux() else 4

Make symbols not available for symbol resolution of subsequently loaded libraries.

NODELETE

comptime NODELETE = 4096 if CompilationTarget.is_linux() else 128

Do not delete the library when the process exits.

NOW

comptime NOW = 2

Load library immediately (resolve all symbols on load).