Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: dlwrap/dlwrap.h

Issue 8713008: Add dlwrap.c to binutils to simulate dlopen/dlsym for gold plugin (Closed)
Patch Set: x Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « binutils-2.20/ld/sysdep.h ('k') | dlwrap/dlwrap.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* This header is a drop-in replacement for dlfcn.h */
2 /* See dlwrap.c for more information */
3
4 #ifndef __DLWRAP_H
5 #define __DLWRAP_H
6
7 #ifdef ENABLE_DLWRAP
8
9 #define RTLD_NOW 0x2
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 void *pnacl_dlopen(const char *filename, int flag);
16 char *pnacl_dlerror(void);
17 void *pnacl_dlsym(void *handle, const char *symbol);
18 int pnacl_dlclose(void *handle);
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #define dlopen pnacl_dlopen
25 #define dlerror pnacl_dlerror
26 #define dlsym pnacl_dlsym
27 #define dlclose pnacl_dlclose
28
29 #endif /* ENABLE_DLWRAP */
30 #endif /* __DLWRAP_H */
OLDNEW
« no previous file with comments | « binutils-2.20/ld/sysdep.h ('k') | dlwrap/dlwrap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698