| Modifier and Type | Field and Description |
|---|---|
| public static final long | RTLD_DEFAULT
Special-handle values for |
| public static final int | RTLD_GLOBAL
The |
| public static final int | |
| public static final int | RTLD_LOCAL
The |
| public static final long | RTLD_MAIN_ONLY
Special-handle values for |
| public static final long | |
| public static final int | |
| public static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static String | |
| public static long | dlopen(ByteBuffer
path to the image to open path, int specifies when the loaded image's external symbols are bound to their definitions in dependent libraries (lazy or at load time) and the visibility
of the image's exported symbols (global or local). The value of this parameter is made up by ORing one binding behavior value with one visibility
specification value.
mode)The following values specify the binding behavior:
The following values specify external symbol visibility:
Loads and links a dynamic library or bundle. |
| public static long | dlopen(CharSequence
path to the image to open path, int specifies when the loaded image's external symbols are bound to their definitions in dependent libraries (lazy or at load time) and the visibility
of the image's exported symbols (global or local). The value of this parameter is made up by ORing one binding behavior value with one visibility
specification value.
mode)The following values specify the binding behavior:
The following values specify external symbol visibility:
Loads and links a dynamic library or bundle. |
| public static long | dlsym(long
a handle obtained by a call to handle, ByteBuffer dlopen, or a special handle. If the handle was obtained by a call to dlopen, it must not have been
closed with a call to dlclose. These are the possible special-handle values: RTLD_DEFAULT, and RTLD_NEXT.the null-terminated character string containing the C name of the symbol being sought name)Returns the address of a symbol. |
| public static long | dlsym(long
a handle obtained by a call to handle, CharSequence dlopen, or a special handle. If the handle was obtained by a call to dlopen, it must not have been
closed with a call to dlclose. These are the possible special-handle values: RTLD_DEFAULT, and RTLD_NEXT.the null-terminated character string containing the C name of the symbol being sought name)Returns the address of a symbol. |
| public static native int | |
| public static native long | |
| public static native long | |
| public static native long |
| RTLD_DEFAULT | back to summary |
|---|---|
| public static final long RTLD_DEFAULT Special-handle values for | |
| RTLD_GLOBAL | back to summary |
|---|---|
| public static final int RTLD_GLOBAL The | |
| RTLD_LAZY | back to summary |
|---|---|
| public static final int RTLD_LAZY The | |
| RTLD_LOCAL | back to summary |
|---|---|
| public static final int RTLD_LOCAL The | |
| RTLD_MAIN_ONLY | back to summary |
|---|---|
| public static final long RTLD_MAIN_ONLY Special-handle values for | |
| RTLD_NEXT | back to summary |
|---|---|
| public static final long RTLD_NEXT Special-handle values for | |
| RTLD_NOW | back to summary |
|---|---|
| public static final int RTLD_NOW The | |
| RTLD_SELF | back to summary |
|---|---|
| public static final long RTLD_SELF Special-handle values for | |
| DynamicLinkLoader | back to summary |
|---|---|
| protected DynamicLinkLoader() | |
| dlclose | back to summary |
|---|---|
| public static int dlclose(long handle) Closes a dynamic library or bundle. This function decreases the reference count of the image referenced by handle. When the reference count for handle becomes 0, the termination routines in the image are called, and the image is removed from the address space of the current process. After that point, handle is rendered invalid.
| |
| dlerror | back to summary |
|---|---|
| public static String dlerror() Provides diagnostic information corresponding to problems with calls to When there's a problem to report, this function returns a pointer to a null-terminated string describing the problem. Otherwise, this function returns
Each call to
| |
| dlopen | back to summary |
|---|---|
| public static long dlopen(ByteBuffer path, int mode) Loads and links a dynamic library or bundle. This function examines the Mach-O file specified by path. If the image is compatible with the current process and has not already been loaded into the process, the image is loaded and linked. If the image contains initializer functions, they are executed before this function returns. Subsequent calls to For efficiency, the The dynamic loader looks in the paths specified by a set of environment variables, and in the process's current directory, when it searches for a
library. These paths are called dynamic loader search paths. The environment variables are The order in which the search paths are searched depends on whether path is a filename (it does not contain a slash) or a pathname (it contains at least one slash). When path is a filename, the dynamic loader searches for the library in the search paths in the following order:
When path is a pathname, the dynamic loader searches for the library in the search paths in the following order:
| |
| dlopen | back to summary |
|---|---|
| public static long dlopen(CharSequence path, int mode) Loads and links a dynamic library or bundle. This function examines the Mach-O file specified by path. If the image is compatible with the current process and has not already been loaded into the process, the image is loaded and linked. If the image contains initializer functions, they are executed before this function returns. Subsequent calls to For efficiency, the The dynamic loader looks in the paths specified by a set of environment variables, and in the process's current directory, when it searches for a
library. These paths are called dynamic loader search paths. The environment variables are The order in which the search paths are searched depends on whether path is a filename (it does not contain a slash) or a pathname (it contains at least one slash). When path is a filename, the dynamic loader searches for the library in the search paths in the following order:
When path is a pathname, the dynamic loader searches for the library in the search paths in the following order:
| |
| dlsym | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static long dlsym(long handle, ByteBuffer name) Returns the address of a symbol. The value of handle specifies what images this function searches for to locate the symbol specified by the symbol parameter. The following table describes the possible values for the handle parameter:
Unlike in the NS... functions, the symbol parameter doesn't require a leading underscore to be part of the symbol name.
| |||||||||
| dlsym | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public static long dlsym(long handle, CharSequence name) Returns the address of a symbol. The value of handle specifies what images this function searches for to locate the symbol specified by the symbol parameter. The following table describes the possible values for the handle parameter:
Unlike in the NS... functions, the symbol parameter doesn't require a leading underscore to be part of the symbol name.
| |||||||||
| ndlclose | back to summary |
|---|---|
| public static native int ndlclose(long handle) Unsafe version of: | |
| ndlerror | back to summary |
|---|---|
| public static native long ndlerror() Unsafe version of: | |
| ndlopen | back to summary |
|---|---|
| public static native long ndlopen(long path, int mode) Unsafe version of: | |
| ndlsym | back to summary |
|---|---|
| public static native long ndlsym(long handle, long name) Unsafe version of: | |