The "dl" Package

These routines are meant to support loading of shared objects. NOTE: THIS PACKAGE IS WORK IN PROGRESS. THE INTERFACE MAY CHANGE IN THE NEXT RELEASE, POSSIBLY WITHOUT NOTICE.

Library: karma
Link With: -lkarma

Functions

dl_load_objectLoad shared object.
dl_symbolLookup a symbol in loaded object.
dl_closeClose a loaded object.


Functions


EXPERIMENTAL FUNCTION: subject to change without notice

void * dl_load_object (CONST char *name, CONST char *dirs, char failed_object[STRING_LENGTH])

Load shared object.

Parameters:

Returns: A handle to the loaded object on success, else NULL.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

void * dl_symbol (void *handle, CONST char *symbol)

Lookup a symbol in loaded object.

Parameters:

Returns: The address where the symbol is loaded, else NULL if it is not found.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

int dl_close (void *handle)

Close a loaded object.

Parameters:

Returns: 0 on success, else non-zero on error.
Multithreading Level: Unsafe


Back to Karma Home Page
Contact: Richard Gooch
Web Development: Ariel Internet Services