Back to index

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

Go to the source code of this file.


int obj4func1 (int a __attribute__((unused)))
int obj4func2 (int a)
int preload (int a)

Function Documentation

int obj4func1 ( int a   __attribute__(unused))

Definition at line 7 of file testobj4.c.

  return 55;
int obj4func2 ( int  a)

Definition at line 13 of file testobj4.c.

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

Definition at line 19 of file testobj4.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: