PGFunction pg_dlsym(void *handle, char *funcname) { #ifndef HAVE_DLD_H return NULL; #else return (PGFunction) dld_get_func((funcname)); #endif }
/* A function called through the vtable to get the address of a symbol loaded from a particular module. */ static void * vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module LT__UNUSED, const char *name) { void *address = dld_get_func (name); if (!address) { LT__SETERROR (SYMBOL_NOT_FOUND); } return address; }
static void *dlsym(void *module, char *function) { return dld_get_func(function); }