Back to index

glibc  2.9
Functions
failtestmod.c File Reference
#include <dlfcn.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void constr (void)

Function Documentation

void constr ( void  )

Definition at line 5 of file failtestmod.c.

{
  void *handle;
  void *m;

  /* Open the library.  */
  handle = dlopen (NULL, RTLD_NOW);
  if (handle == NULL)
    {
      puts ("Cannot get handle to own object");
      return;
    }

  /* Get a symbol.  */
  m = dlsym (handle, "main");
  puts ("called dlsym() to get main");

  dlclose (handle);
}

Here is the call graph for this function: