Back to index

glibc  2.9
Functions | Variables
dl-close.c File Reference
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <dlfcn.h>
#include <dlldr.h>

Go to the source code of this file.

Functions

void _dl_close (void *handle)

Variables

int _dl_numso
DL_SODATA_dl_sotable

Function Documentation

void _dl_close ( void *  handle)

Definition at line 30 of file dl-close.c.

{
  if ((int) handle < 0 || (int) handle >= _dl_numso || _dl_sotable == NULL)
    {
      errno = EINVAL;
      return;
    }

  if (_dl_sotable[(int) handle].handle != 0)
    __unload (_dl_sotable[(int) handle].handle);

  _dl_sotable[(int) handle].index = 0;
  _dl_sotable[(int) handle].dataorg = 0;
  _dl_sotable[(int) handle].handle = 0;
  _dl_sotable[(int) handle].type = 0;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 29 of file dl-open.c.

Definition at line 30 of file dl-open.c.