MCPcopy Create free account
hub / github.com/apache/impala / DynamicLookup

Function DynamicLookup

be/src/util/dynamic-util.cc:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace impala {
27
28Status DynamicLookup(void* handle, const char* symbol, void** fn_ptr, bool quiet) {
29 *(void **) (fn_ptr) = dlsym(handle, symbol);
30 char* error = dlerror();
31 if (error != NULL) {
32 stringstream ss;
33 ss << "Unable to find " << symbol << "\ndlerror: " << error;
34 return quiet ? Status::Expected(ss.str()) : Status(ss.str());
35 }
36 return Status::OK();
37}
38
39Status DynamicOpen(const char* library, void** handle) {
40 int flags = RTLD_NOW;

Callers 2

LoadPluginLibraryMethod · 0.85
GetSoFunctionPtrMethod · 0.85

Calls 3

OKFunction · 0.85
StatusClass · 0.70
strMethod · 0.45

Tested by

no test coverage detected