equal
deleted
inserted
replaced
477 |
477 |
478 static const char* get_temp_directory(); |
478 static const char* get_temp_directory(); |
479 static const char* get_current_directory(char *buf, int buflen); |
479 static const char* get_current_directory(char *buf, int buflen); |
480 |
480 |
481 // Builds a platform-specific full library path given a ld path and lib name |
481 // Builds a platform-specific full library path given a ld path and lib name |
482 static void dll_build_name(char* buffer, size_t size, |
482 // Returns true if buffer contains full path to existing file, false otherwise |
|
483 static bool dll_build_name(char* buffer, size_t size, |
483 const char* pathname, const char* fname); |
484 const char* pathname, const char* fname); |
484 |
485 |
485 // Symbol lookup, find nearest function name; basically it implements |
486 // Symbol lookup, find nearest function name; basically it implements |
486 // dladdr() for all platforms. Name of the nearest function is copied |
487 // dladdr() for all platforms. Name of the nearest function is copied |
487 // to buf. Distance from its base address is returned as offset. |
488 // to buf. Distance from its base address is returned as offset. |