Back to index

glibc  2.9
testobj5.c
Go to the documentation of this file.
00001 #include <dlfcn.h>
00002 #include <stdlib.h>
00003 
00004 #include "testobj.h"
00005 
00006 
00007 int
00008 obj5func1 (int a __attribute__ ((unused)))
00009 {
00010   return 66;
00011 }
00012 
00013 int
00014 obj5func2 (int a)
00015 {
00016   return foo (a) + 44;
00017 }
00018 
00019 int
00020 preload (int a)
00021 {
00022   int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
00023   if (fp != NULL)
00024     return fp (a) + 10;
00025   return 10;
00026 }