Skip to content
Snippets Groups Projects
Commit 10e4c496 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Formatting cleanups in generated stub library code.

parent 88a06cf4
No related branches found
No related tags found
Loading
...@@ -60,7 +60,8 @@ static char *prefix; ...@@ -60,7 +60,8 @@ static char *prefix;
static void *dso; static void *dso;
// should we exclude libpthread here? // should we exclude libpthread here?
// in any case, these are DSOs we do _not_ want to isolate // in any case, these are DSOs we do _not_ want to isolate
static const char *exclude[] = { // MUST NOT be pulled from the capsule prefixed filesystem tree: static const char *exclude[] = { // MUST NOT be pulled from the capsule
// prefixed filesystem tree:
"libc.so.6", "libc.so.6",
"libpthread.so.0", "libpthread.so.0",
"libpthread-2.19.so", "libpthread-2.19.so",
...@@ -78,8 +79,9 @@ static void *_dlopen (const char *filename, int flag) ...@@ -78,8 +79,9 @@ static void *_dlopen (const char *filename, int flag)
{ {
if( flag & RTLD_GLOBAL ) if( flag & RTLD_GLOBAL )
{ {
fprintf (stderr, "Warning: libcapsule dlopen wrapper cannot pass " fprintf( stderr, "Warning: libcapsule dlopen wrapper cannot pass "
"RTLD_GLOBAL to underlying dlmopen(%s...) call\\n", filename ); "RTLD_GLOBAL to underlying dlmopen(%s...) call\\n",
filename );
flag = (flag & ~RTLD_GLOBAL) & 0xfffff; flag = (flag & ~RTLD_GLOBAL) & 0xfffff;
} }
return capsule_shim_dlopen( symbol_ns, prefix, exclude, filename, flag ); return capsule_shim_dlopen( symbol_ns, prefix, exclude, filename, flag );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment