User's Manual
Return Values..............................................................................................................160
Description.................................................................................................................161
Using dlmodinfo to retrieve information about a load module............................................161
The dlgetname Routine.....................................................................................................161
Syntax.......................................................................................................................161
Return Values..............................................................................................................162
Description.................................................................................................................162
Using dlgetname to retrieve pathname...........................................................................162
The dlclose Routine..........................................................................................................162
Syntax.......................................................................................................................162
Return Values..............................................................................................................163
Description.................................................................................................................163
Using dlclose to unload a shared library........................................................................163
The dladdr Routine...........................................................................................................163
Syntax.......................................................................................................................163
Return Values..............................................................................................................164
Diagnostics................................................................................................................164
Description.................................................................................................................164
Using dladdr to get the symbolic information for an address.............................................165
The dlmodadd Routine......................................................................................................165
Syntax.......................................................................................................................165
Return Values..............................................................................................................165
Description.................................................................................................................166
The dlmodremove Routine.................................................................................................166
Syntax.......................................................................................................................166
Return Values..............................................................................................................166
Description.................................................................................................................166
The dlgetmodinfo Routine..................................................................................................166
Syntax.......................................................................................................................166
Return Values..............................................................................................................167
Description.................................................................................................................167
Using dlgetmodinfo.....................................................................................................167
The shl_load Shared Library Management Routines...................................................................168
The shl_load Routine........................................................................................................168
Syntax.......................................................................................................................168
Parameters.................................................................................................................168
Return Value...............................................................................................................169
Description.................................................................................................................169
shl_load Usage...........................................................................................................170
shl_load Example........................................................................................................170
BIND_NONFATAL Modifier.....................................................................................171
BIND_VERBOSE Modifier........................................................................................171
BIND_FIRST Modifier..............................................................................................171
DYNAMIC_PATH Modifier.......................................................................................171
BIND_NOSTART Modifier .......................................................................................171
BIND_RESTRICTED Modifier.....................................................................................171
BIND_TOGETHER Modifier......................................................................................172
BIND_BREADTH_FIRST Modifier...............................................................................172
The shl_findsym Routine....................................................................................................172
Syntax ......................................................................................................................172
Parameters ................................................................................................................173
Return Value...............................................................................................................173
Description.................................................................................................................173
shl_findsym Example....................................................................................................174
Load a Shared Library and Call its Routines and Access its Data...................................174
Contents 9