Back to index

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

Go to the source code of this file.


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");

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

  dlclose (handle);

Here is the call graph for this function: