Back to index

glibc  2.9
Functions | Variables
nextmod1.c File Reference
#include <dlfcn.h>

Go to the source code of this file.

Functions

int successful_rtld_next_test (void)
void * failing_rtld_next_use (void)

Variables

int nextmod1_dummy_var

Function Documentation

void* failing_rtld_next_use ( void  )

Definition at line 22 of file nextmod1.c.

{
  void *ret = dlsym (RTLD_NEXT, __FUNCTION__);

  /* Ensure we are not tail call optimized, because then RTLD_NEXT
     might return this function.  */
  ++nextmod1_dummy_var;
  return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 9 of file nextmod1.c.

{
  int (*fp) (void);

  /* Get the next function... */
  fp = (int (*) (void)) dlsym (RTLD_NEXT, __FUNCTION__);

  /* ...and simply call it.  */
  return fp ();
}

Variable Documentation

Definition at line 6 of file nextmod1.c.