Chapter 6 233
Shared Library Management Routines
The shl_load Shared Library Management Routines
Parameters
handle The handle of the shared library whose symbols you
want to retrieve. If handle is NULL, shl_getsymbols
returns symbols that were defined with the
shl_definesym routine.
type Defines the type of symbol to retrieve. It must be one of
the following values, which are defined as constants in
<dl.h>:
TYPE_PROCEDURE
Retrieve only function or procedure symbols.
TYPE_DATA
Retrieve only symbols from the data segment (for
example, variables).
TYPE_UNDEFINED
Retrieve all symbols, regardless of type.
TYPE_STORAGE
32-bit mode only.
TYPE_TSTORAGE
32-bit mode only.
flags Defines whether to retrieve import or export symbols
from the library. An import symbol is an external
reference made from a library. An export symbol is a
symbol definition that is referenced outside the library.
In addition, any symbol defined by shl_definesym is
an export symbol. Set this argument to one of the
following values (defined in <dl.h>):
IMPORT_SYMBOLS
To return import symbols.
EXPORT_SYMBOLS
To return export symbols.
INITIALIZERS
To return initializer symbols.