Back to index

glibc  2.9
Defines | Functions
tst-dlmopen3.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include "../test-skeleton.c"

Go to the source code of this file.

Defines

#define TEST_FUNCTION   do_test ()

Functions

static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 21 of file tst-dlmopen3.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 6 of file tst-dlmopen3.c.

{
  void *h = dlmopen (LM_ID_NEWLM, "$ORIGIN/tst-dlmopen1mod.so", RTLD_LAZY);
  if (h == NULL)
    {
      printf ("cannot get handle for %s: %s\n",
             "tst-dlmopen1mod.so", dlerror ());
      return 1;
    }

  /* Do not unload.  */

  return 0;
}

Here is the call graph for this function: