Back to index

glibc  2.9
Functions | Variables
unload6mod2.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>

Go to the source code of this file.

Functions

static void __attribute__ ((constructor))
static void __attribute__ ((destructor))

Variables

static void * h

Function Documentation

static void __attribute__ ( (constructor)  ) [static]

Definition at line 7 of file unload6mod2.c.

{
  h = dlopen ("unload6mod3.so", RTLD_LAZY);
  if (h == NULL)
    {
      puts ("dlopen unload6mod3.so failed");
      fflush (stdout);
      _exit (1);
    }
}

Here is the call graph for this function:

static void __attribute__ ( (destructor)  ) [static]

Definition at line 19 of file unload6mod2.c.

{
  dlclose (h);
}

Here is the call graph for this function:


Variable Documentation

void* h [static]

Definition at line 5 of file unload6mod2.c.