Changeset fbdfcd8
- Timestamp:
- Feb 16, 2023, 4:38:44 PM (17 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- fb907d3
- Parents:
- f5f2768
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/interpose.cfa
rf5f2768 rfbdfcd8 10 10 // Created On : Wed Mar 29 16:10:31 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jan 5 22:23:57202313 // Update Count : 18 012 // Last Modified On : Mon Jan 9 08:44:03 2023 13 // Update Count : 182 14 14 // 15 15 … … 62 62 63 63 static generic_fptr_t interpose_symbol( const char symbol[], const char version[] ) { 64 const char * error;65 66 64 static void * library; 67 65 static void * pthread_library; 66 68 67 if ( ! library ) { 69 68 #if defined( RTLD_NEXT ) … … 72 71 // missing RTLD_NEXT => must hard-code library name, assuming libstdc++ 73 72 library = dlopen( "libc.so.6", RTLD_LAZY ); 74 error = dlerror();73 const char * error = dlerror(); 75 74 if ( error ) { 76 75 abort( "interpose_symbol : failed to open libc, %s\n", error ); … … 84 83 // missing RTLD_NEXT => must hard-code library name, assuming libstdc++ 85 84 pthread_library = dlopen( "libpthread.so", RTLD_LAZY ); 86 error = dlerror();85 const char * error = dlerror(); 87 86 if ( error ) { 88 87 abort( "interpose_symbol : failed to open libpthread, %s\n", error ); -
libcfa/src/interpose_thread.cfa
rf5f2768 rfbdfcd8 39 39 const char version[] 40 40 ) libcfa_public { 41 const char * error;42 43 41 static void * library; 44 42 if ( ! library ) { … … 48 46 // missing RTLD_NEXT => must hard-code library name, assuming libstdc++ 49 47 library = dlopen( "libpthread.so", RTLD_LAZY ); 50 error = dlerror();48 const char * error = dlerror(); 51 49 if ( error ) { 52 50 abort( "interpose_symbol : failed to open libpthread, %s\n", error );
Note: See TracChangeset
for help on using the changeset viewer.