Skip to main content

Mojo struct

RTLD

struct RTLD

Enumeration of the RTLD flags used during dynamic library loading.

Implemented traits

AnyType, UnknownDestructibility

Aliases

__del__is_trivial

comptime __del__is_trivial = True

GLOBAL

comptime GLOBAL = 256 if CompilationTarget.is_linux[_current_target()]() 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 = 4

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

NODELETE

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

Do not delete the library when the process exits.

NOW

comptime NOW = 2

Load library immediately (resolve all symbols on load).

Was this page helpful?