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

Side by Side Diff: fusl/src/ldso/dlinfo.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 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 | « fusl/src/ldso/dlerror.c ('k') | fusl/src/ldso/dlopen.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #define _GNU_SOURCE 1 #define _GNU_SOURCE
2 #include <dlfcn.h> 2 #include <dlfcn.h>
3 3
4 int __dlinfo(void *, int, void *); 4 __attribute__((__visibility__("hidden")))
5 int __dl_invalid_handle(void *);
6
7 __attribute__((__visibility__("hidden")))
8 void __dl_seterr(const char *, ...);
5 9
6 int dlinfo(void *dso, int req, void *res) 10 int dlinfo(void *dso, int req, void *res)
7 { 11 {
8 » return __dlinfo(dso, req, res); 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;
9 } 19 }
OLDNEW
« no previous file with comments | « fusl/src/ldso/dlerror.c ('k') | fusl/src/ldso/dlopen.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698