next up previous contents index
Next: 21.1.3 dlsym: Find the Up: 21.1 Introduction Previous: 21.1.1 oskit_boot_rtld: Initialize the

21.1.2 dlopen: Load a shared library

 

SYNOPSIS

#include <dlfnc.h>

void *dlopen(const char *name, int mode);

DESCRIPTION

Load the shared library named name, returning a descriptor that can be used in subsequent calls to dlsym and dlclose. If the library is already loaded, a new reference to the same object is returned. When a shared library is first loaded, its _init() function, if it exists, is called by the linker. The mode argument is currently ignored.

PARAMETERS

name
Path to the shared library to be loaded.
mode
Modify how external references are bound.

RETURNS

Returns a descriptor that can be used in later references to the object. Returns NULL on failure.



Utah Flux Research Group