Back to index

glibc  2.9
testobj5.c File Reference
#include <dlfcn.h>
#include <stdlib.h>
#include "testobj.h"

Go to the source code of this file.


int obj5func1 (int a __attribute__((unused)))
int obj5func2 (int a)
int preload (int a)

Function Documentation

int obj5func1 ( int a   __attribute__(unused))

Definition at line 8 of file testobj5.c.

  return 66;
int obj5func2 ( int  a)

Definition at line 14 of file testobj5.c.

  return foo (a) + 44;
int preload ( int  a)

Definition at line 20 of file testobj5.c.

  int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
  if (fp != NULL)
    return fp (a) + 10;
  return 10;

Here is the call graph for this function: