7 Shared Library Management Routines
You can explicitly load and use shared libraries from your program. The linker toolset provides two families of load routines, dlopen and shl_load. The dlopen routines (primarily for
NOTE: Support for shl_load library management routines may be discontinued in a future
Do not mix use of the shl_load and dlopen APIs.
Shared Library Management Routine Summaries
The following sections introduce the shared library management routines.
The dlopen Routines Summary
The dlopen family of shared library management routines is available for the IPF and
•dlopen
•dlclose
•dlsym
•dlerror
•dladdr
The dlopen family of routines use Unix SVR4 shared library mechanisms.
Use the following dl* routines for shared library management:
Table 22 dl* routines for shared library management
Routine | Action |
Loads a shared library. This routine does | |
searching. | |
|
|
Extension of dlopen allowing specific placement of text. | |
|
|
Sets the dynamic search path to locate shared libraries. | |
|
|
Returns numeric error code corresponding to last error that | |
| occurred during dynamic linking processing. |
|
|
Returns file information for a library prior to loading it. | |
|
|
Prints the last error message recorded by dld. | |
|
|
Gets the address of a symbol in a shared library. | |
|
|
Returns information on a loaded module. | |
|
|
Returns information about a loaded module. | |
|
|
Retrieves the name of a loaded module, given a load model | |
| descriptor. |
|
|
Unloads a shared library previously loaded by dlopen(). | |
|
|
Gets the symbolic information for an address. | |
|
|
Registers information about dynamically generated functions. | |
|
|
136 Shared Library Management Routines