@@ -3,6 +3,14 @@
|
||||
#include "dlfcn-util.h"
|
||||
#include "log.h"
|
||||
|
||||
void* safe_dlclose(void *dl) {
|
||||
if (!dl)
|
||||
return NULL;
|
||||
|
||||
assert_se(dlclose(dl) == 0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int dlsym_many_or_warnv(void *dl, int log_level, va_list ap) {
|
||||
void (**fn)(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user