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

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

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too 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
OLDNEW
1 #define _GNU_SOURCE 1 #define _GNU_SOURCE
2 #include <dlfcn.h> 2 #include <dlfcn.h>
3 3
4 __attribute__((__visibility__("hidden"))) 4 __attribute__((__visibility__("hidden"))) int __dl_invalid_handle(void*);
5 int __dl_invalid_handle(void *);
6 5
7 __attribute__((__visibility__("hidden"))) 6 __attribute__((__visibility__("hidden"))) void __dl_seterr(const char*, ...);
8 void __dl_seterr(const char *, ...);
9 7
10 int dlinfo(void *dso, int req, void *res) 8 int dlinfo(void* dso, int req, void* res) {
11 { 9 if (__dl_invalid_handle(dso))
12 » if (__dl_invalid_handle(dso)) return -1; 10 return -1;
13 » if (req != RTLD_DI_LINKMAP) { 11 if (req != RTLD_DI_LINKMAP) {
14 » » __dl_seterr("Unsupported request %d", req); 12 __dl_seterr("Unsupported request %d", req);
15 » » return -1; 13 return -1;
16 » } 14 }
17 » *(struct link_map **)res = dso; 15 *(struct link_map**)res = dso;
18 » return 0; 16 return 0;
19 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698