source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/ldso/dlinfo.c
Last change on this file was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 421 bytes |
Line | |
---|---|
1 | #define _GNU_SOURCE |
2 | #include <dlfcn.h> |
3 | |
4 | __attribute__((__visibility__("hidden"))) |
5 | int __dl_invalid_handle(void *); |
6 | |
7 | __attribute__((__visibility__("hidden"))) |
8 | void __dl_seterr(const char *, ...); |
9 | |
10 | int dlinfo(void *dso, int req, void *res) |
11 | { |
12 | if (__dl_invalid_handle(dso)) return -1; |
13 | if (req != RTLD_DI_LINKMAP) { |
14 | __dl_seterr("Unsupported request %d", req); |
15 | return -1; |
16 | } |
17 | *(struct link_map **)res = dso; |
18 | return 0; |
19 | } |
Note:
See TracBrowser
for help on using the repository browser.