source: vendor/glibc-tests/2005-06-14/elf/testobj5.c

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 307 bytes
Line 
1#include <dlfcn.h>
2#include <stdlib.h>
3
4#include "testobj.h"
5
6
7int
8obj5func1 (int a __attribute__ ((unused)))
9{
10 return 66;
11}
12
13int
14obj5func2 (int a)
15{
16 return foo (a) + 44;
17}
18
19int
20preload (int a)
21{
22 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
23 if (fp != NULL)
24 return fp (a) + 10;
25 return 10;
26}
Note: See TracBrowser for help on using the repository browser.