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:
383 bytes
|
Line | |
---|
1 | #include <dlfcn.h>
|
---|
2 | #include <stdio.h>
|
---|
3 |
|
---|
4 |
|
---|
5 | static int
|
---|
6 | do_test (void)
|
---|
7 | {
|
---|
8 | void *h = dlmopen (LM_ID_NEWLM, "$ORIGIN/tst-dlmopen1mod.so", RTLD_LAZY);
|
---|
9 | if (h == NULL)
|
---|
10 | {
|
---|
11 | printf ("cannot get handle for %s: %s\n",
|
---|
12 | "tst-dlmopen1mod.so", dlerror ());
|
---|
13 | return 1;
|
---|
14 | }
|
---|
15 |
|
---|
16 | /* Do not unload. */
|
---|
17 |
|
---|
18 | return 0;
|
---|
19 | }
|
---|
20 |
|
---|
21 | #define TEST_FUNCTION do_test ()
|
---|
22 | #include "../test-skeleton.c"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.