33 #if defined(LIBC_SCCS) && !defined(lint) 34 static char sccsid[] =
"@(#)dl.c 5.4 (Berkeley) 2/23/91";
43 #include "dynloader.h" 50 static char ret[BUFSIZ];
54 return (ret[0] == 0) ? NULL : ret;
60 #if !defined(HAVE_DLOPEN) 62 "dlopen (%s) not supported", file);
67 if ((vp =
dlopen((
char *) file, num)) == NULL)
69 "dlopen (%s) failed: %s", file,
dlerror());
77 #if !defined(HAVE_DLOPEN) 79 "dlsym (%s) failed", name);
89 snprintf(buf,
sizeof(buf),
"_%s", name);
93 if ((vp =
dlsym(handle, (
char *) name)) == NULL)
95 "dlsym (%s) failed", name);
103 #if defined(HAVE_DLOPEN) void * BSD44_derived_dlopen(const char *file, int num)
static char error_message[BUFSIZ]
int snprintf(char *str, size_t count, const char *fmt,...) pg_attribute_printf(3
int dlclose(void *handle)
void * BSD44_derived_dlsym(void *handle, const char *name)
void * dlsym(void *handle, const char *symbol)
char * BSD44_derived_dlerror(void)
void BSD44_derived_dlclose(void *handle)
void * dlopen(const char *path, int mode)