Lines Matching defs:dlsym
37 // On platforms where `dlerror` is still MT-unsafe, `dlsym` (`Library::get`) can spuriously
40 // instance on GNU glibc based-systems (an excerpt from dlsym(3)):
42 // > The value of a symbol returned by dlsym() will never be NULL if the shared object is the
44 // > address. There are nevertheless cases where a lookup using dlsym() may return NULL as the
48 // While we could could call `dlerror` here to clear the previous error value, only the `dlsym`
50 // clear the error inside the dlsym binding instead.
58 // In non-dlsym case this may happen when there’re bugs in our bindings or there’s
194 // `dlsym` may return nullptr in two cases: when a symbol genuinely points to a null
202 let symbol = dlsym(self.handle, symbol.as_ptr());
238 /// as FreeBSD), this function will unconditionally return an error when the underlying `dlsym`
239 /// call returns a null pointer. There are rare situations where `dlsym` returns a genuine null
433 fn dlsym(handle: *mut raw::c_void, symbol: *const raw::c_char) -> *mut raw::c_void;