Back to index

glibc  2.9
Defines | Functions
tst-deep1.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

int xyzzy (void)
int back (void)
int foo (void)
static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 35 of file tst-deep1.c.


Function Documentation

int back ( void  )

Definition at line 12 of file tst-deep1.c.

{
  printf ("%s:%s\n", __FILE__, __func__);
  return 1;
}

Here is the caller graph for this function:

static int do_test ( void  ) [static]

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

{
  void *p = dlopen ("$ORIGIN/tst-deep1mod2.so", RTLD_LAZY|RTLD_DEEPBIND);

  int (*f) (void) = dlsym (p, "bar");
  if (f == NULL)
    {
      puts (dlerror ());
      return 1;
    }

  return foo () + f ();
}

Here is the call graph for this function:

int foo ( void  )
int xyzzy ( void  )

Definition at line 5 of file tst-deep1.c.

{
  printf ("%s:%s\n", __FILE__, __func__);
  return 21;
}

Here is the call graph for this function: