Back to index

glibc  2.9
Functions
testobj2.c File Reference
#include <dlfcn.h>
#include <stdlib.h>
#include <stdio.h>
#include "testobj.h"

Go to the source code of this file.

Functions

int obj2func1 (int a __attribute__((unused)))
int obj2func2 (int a)
int preload (int a)
void p (void)

Function Documentation

int obj2func1 ( int a   __attribute__(unused))

Definition at line 8 of file testobj2.c.

{
  return 43;
}
int obj2func2 ( int  a)

Definition at line 14 of file testobj2.c.

{
  return obj1func1 (a) + 10;
}

Here is the call graph for this function:

void p ( void  )

Definition at line 29 of file testobj2.c.

{
  puts ("hello world");
}

Here is the call graph for this function:

int preload ( int  a)

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