public class Dlfcn extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Dlfcn.Dl_info
Structure containing information about object searched using `dladdr'.
|
| Constructor and Description |
|---|
Dlfcn() |
| Modifier and Type | Method and Description |
|---|---|
static int |
dladdr(org.graalvm.word.WordBase address,
Dlfcn.Dl_info info)
Fill in *INFO with the following information about ADDRESS.
|
static int |
dlclose(org.graalvm.word.PointerBase handle)
Unmap and close a shared object opened by `dlopen'.
|
static org.graalvm.nativeimage.c.type.CCharPointer |
dlerror()
When any of the above functions fails, call this function to return a string describing the
error.
|
static <T extends org.graalvm.word.PointerBase> |
dlmopen(long nsid,
org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
Like `dlopen', but request object to be allocated in a new namespace.
|
static org.graalvm.word.PointerBase |
dlopen(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
Open the shared object FILE and map it in; return a handle that can be passed to `dlsym' to
get symbol values from it.
|
static <T extends org.graalvm.word.PointerBase> |
dlsym(org.graalvm.word.PointerBase handle,
org.graalvm.nativeimage.c.type.CCharPointer name)
Find the run-time address in the shared object HANDLE refers to of the symbol called NAME.
|
static <T extends org.graalvm.word.PointerBase> |
dlvsym(org.graalvm.word.PointerBase handle,
org.graalvm.nativeimage.c.type.CCharPointer name,
org.graalvm.nativeimage.c.type.CCharPointer version)
Find the run-time address in the shared object HANDLE refers to of the symbol called NAME
with VERSION.
|
static org.graalvm.word.PointerBase |
RTLD_DEFAULT()
If the first argument to `dlsym' or `dlvsym' is set to RTLD_DEFAULT the run-time address of
the symbol called NAME in the global scope is returned.
|
static int |
RTLD_GLOBAL()
If the following bit is set in the MODE argument to `dlopen', the symbols of the loaded
object and its dependencies are made visible as if the object were linked directly into the
program.
|
static int |
RTLD_LAZY()
Lazy function call binding.
|
static int |
RTLD_LOCAL()
Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
|
static org.graalvm.word.PointerBase |
RTLD_NEXT()
If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT the run-time address of the
symbol called NAME in the next shared object is returned.
|
static int |
RTLD_NODELETE()
Do not delete object when closed.
|
static int |
RTLD_NOLOAD()
Do not load the object.
|
static int |
RTLD_NOW()
Immediate function call binding.
|
public static int RTLD_LAZY()
public static int RTLD_NOW()
public static int RTLD_NOLOAD()
public static int RTLD_GLOBAL()
public static int RTLD_LOCAL()
public static int RTLD_NODELETE()
public static org.graalvm.word.PointerBase RTLD_NEXT()
public static org.graalvm.word.PointerBase RTLD_DEFAULT()
public static org.graalvm.word.PointerBase dlopen(org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
public static int dlclose(org.graalvm.word.PointerBase handle)
public static <T extends org.graalvm.word.PointerBase> T dlsym(org.graalvm.word.PointerBase handle,
org.graalvm.nativeimage.c.type.CCharPointer name)
public static <T extends org.graalvm.word.PointerBase> T dlmopen(long nsid,
org.graalvm.nativeimage.c.type.CCharPointer file,
int mode)
public static <T extends org.graalvm.word.PointerBase> T dlvsym(org.graalvm.word.PointerBase handle,
org.graalvm.nativeimage.c.type.CCharPointer name,
org.graalvm.nativeimage.c.type.CCharPointer version)
public static org.graalvm.nativeimage.c.type.CCharPointer dlerror()
public static int dladdr(org.graalvm.word.WordBase address,
Dlfcn.Dl_info info)