Kenwood HP 9000 Personal Computer User Manual


 
Chapter 6 215
Shared Library Management Routines
The shl_load Shared Library Management Routines
The shl_load Shared Library
Management Routines
This section describes the shl_load family of shared library
management routines.
NOTE You can use these routines in both 32-bit and 64-bit mode. Support for
these routines may be discontinues in a future 64-bit HP-UX release. If
you use these routines in 64-bit mode, consider converting your
programs to the dl* family of shared library management routines.
The shl_load and cxxshl_load Routines
Explicitly loads a library.
Syntax
shl_t shl_load( const char * path,
int flags,
long address )
Parameters
path A null-terminated character string containing the path
name of the shared library to load.
flags Specifies when the symbols in the library should be
bound to addresses. It must be one of these values,
defined in <dl.h>:
BIND_IMMEDIATE
Bind the addresses of all symbols immediately upon
loading the library.
BIND_DEFERRED
Bind the addresses when they are first referenced.
Be aware that BIND_IMMEDIATE causes the binding of
all symbols, and the resolution of all imports, even from
older versioned modules in the shared library. If
symbols are not accessible because they come from old
modules, they are unresolved and shl_load may fail.