Back to index

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

Go to the source code of this file.


int obj3func1 (int a __attribute__((unused)))
int obj3func2 (int a)
int preload (int a)

Function Documentation

int obj3func1 ( int a   __attribute__(unused))

Definition at line 8 of file testobj3.c.

  return 44;
int obj3func2 ( int  a)

Definition at line 14 of file testobj3.c.

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

Definition at line 20 of file testobj3.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: