Availability:built-in
RTLD_NOW
,
RTLD_LAZY
, RTLD_GLOBAL
, RTLD_NODELETE
,
RTLD_NOLOAD
and RTLD_DEEPBIND
on systems where
this predicate is implemented using dlopen() and these flags are
supported. If the flag is not supported on the target OS, the
corresponding option is silently ignored.
- resolve(Atom)
- When to resolve symbols. Values are
lazy
(default) ornow
. - visibility(Atom)
- Visibility of the new symbols. Values are are
local
(default) orglobal
, making the new symbols available to all subsequently loaded shared objects. - now(Bool)
now(true)
is the same asresolve(now)
. Provided for backward compatibility.- global(Bool)
global(true)
is the same asvisibility(global)
. Provided for backward compatibility.- delete(Bool)
- If
false
, includeRTLD_NODELETE
. - load(Bool)
- if
false
, includeRTLD_NOLOAD
. This returns a handle to the object if it is already loaded andNULL
otherwise. It causes this predicate to fail silently if the object is not loaded. - deepbind(Bool)
- if
true
, includeRTLD_DEEPBIND
.
Note that these flags may not be supported by your operating system. Check the documentation of dlopen() or equivalent on your operating system. Unsupported flags are silently ignored.