|
Last change
on this file since 2036 was 2036, checked in by bird, 21 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:
306 bytes
|
| Line | |
|---|
| 1 | #include <dlfcn.h>
|
|---|
| 2 | #include <stdlib.h>
|
|---|
| 3 |
|
|---|
| 4 | #include "testobj.h"
|
|---|
| 5 |
|
|---|
| 6 | int
|
|---|
| 7 | obj1func1 (int a __attribute__ ((unused)))
|
|---|
| 8 | {
|
|---|
| 9 | return 42;
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | int
|
|---|
| 13 | obj1func2 (int a)
|
|---|
| 14 | {
|
|---|
| 15 | return foo (a) + 10;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | int
|
|---|
| 19 | preload (int a)
|
|---|
| 20 | {
|
|---|
| 21 | int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
|
|---|
| 22 | if (fp != NULL)
|
|---|
| 23 | return fp (a) + 10;
|
|---|
| 24 | return 10;
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.