postgresql

dlsymdlopen

10.3

31 / 6508 files match, 15 filtered matches.

src/include/utils/dynamic_loader.h



16 | #include "fmgr.h"
17 | 
18 | 
19 | extern void *pg_dlopen(char *filename);
20 | extern PGFunction pg_dlsym(void *handle, char *funcname);
21 | extern void pg_dlclose(void *handle);


src/backend/port/dynloader/win32.h



13 | char	   *dlerror(void);
14 | int			dlclose(void *handle);
15 | void	   *dlsym(void *handle, const char *symbol);
16 | void	   *dlopen(const char *path, int mode);
17 | 
18 | #endif							/* PORT_PROTOS_H */


src/backend/port/dynloader/freebsd.h



50 | #define		   pg_dlerror	   BSD44_derived_dlerror
51 | 
52 | char	   *BSD44_derived_dlerror(void);
53 | void	   *BSD44_derived_dlopen(const char *filename, int num);
54 | void	   *BSD44_derived_dlsym(void *handle, const char *name);
55 | void		BSD44_derived_dlclose(void *handle);


src/backend/port/dynloader/darwin.h



1 | 
2 | #include "fmgr.h"
3 | 
4 | void	   *pg_dlopen(char *filename);
5 | PGFunction	pg_dlsym(void *handle, char *funcname);
6 | void		pg_dlclose(void *handle);


src/backend/port/dynloader/win32.c



4 | char	   *dlerror(void);
5 | int			dlclose(void *handle);
6 | void	   *dlsym(void *handle, const char *symbol);
7 | void	   *dlopen(const char *path, int mode);
8 | 
9 | static char last_dyn_error[512];
64 | }
65 | 
66 | void *
67 | dlopen(const char *path, int mode)
68 | {
69 | 	HMODULE		h;


src/backend/port/dynloader/hpux.h



18 | /* System includes */
19 | #include "fmgr.h"
20 | 
21 | extern void *pg_dlopen(char *filename);
22 | extern PGFunction pg_dlsym(void *handle, char *funcname);
23 | extern void pg_dlclose(void *handle);


src/backend/port/dynloader/netbsd.c



54 | }
55 | 
56 | void *
57 | BSD44_derived_dlopen(const char *file, int num)
58 | {
59 | #if !defined(HAVE_DLOPEN)
60 | 	snprintf(error_message, sizeof(error_message),
61 | 			 "dlopen (%s) not supported", file);
62 | 	return NULL;
63 | #else
64 | 	void	   *vp;
65 | 
66 | 	if ((vp = dlopen((char *) file, num)) == NULL)
67 | 		snprintf(error_message, sizeof(error_message),
68 | 				 "dlopen (%s) failed: %s", file, dlerror());
69 | 	return vp;
70 | #endif


src/backend/port/dynloader/netbsd.h



51 | #define		   pg_dlerror	   BSD44_derived_dlerror
52 | 
53 | char	   *BSD44_derived_dlerror(void);
54 | void	   *BSD44_derived_dlopen(const char *filename, int num);
55 | void	   *BSD44_derived_dlsym(void *handle, const char *name);
56 | void		BSD44_derived_dlclose(void *handle);


src/backend/port/dynloader/openbsd.h



50 | #define		   pg_dlerror	   BSD44_derived_dlerror
51 | 
52 | char	   *BSD44_derived_dlerror(void);
53 | void	   *BSD44_derived_dlopen(const char *filename, int num);
54 | void	   *BSD44_derived_dlsym(void *handle, const char *name);
55 | void		BSD44_derived_dlclose(void *handle);


src/backend/port/dynloader/linux.c



28 | #ifndef HAVE_DLOPEN
29 | 
30 | void *
31 | pg_dlopen(char *filename)
32 | {
33 | #ifndef HAVE_DLD_H


src/backend/port/dynloader/freebsd.c



54 | }
55 | 
56 | void *
57 | BSD44_derived_dlopen(const char *file, int num)
58 | {
59 | #if !defined(HAVE_DLOPEN)
60 | 	snprintf(error_message, sizeof(error_message),
61 | 			 "dlopen (%s) not supported", file);
62 | 	return NULL;
63 | #else
64 | 	void	   *vp;
65 | 
66 | 	if ((vp = dlopen((char *) file, num)) == NULL)
67 | 		snprintf(error_message, sizeof(error_message),
68 | 				 "dlopen (%s) failed: %s", file, dlerror());
69 | 	return vp;
70 | #endif


src/backend/port/dynloader/openbsd.c



54 | }
55 | 
56 | void *
57 | BSD44_derived_dlopen(const char *file, int num)
58 | {
59 | #if !defined(HAVE_DLOPEN)
60 | 	snprintf(error_message, sizeof(error_message),
61 | 			 "dlopen (%s) not supported", file);
62 | 	return NULL;
63 | #else
64 | 	void	   *vp;
65 | 
66 | 	if ((vp = dlopen((char *) file, num)) == NULL)
67 | 		snprintf(error_message, sizeof(error_message),
68 | 				 "dlopen (%s) failed: %s", file, dlerror());
69 | 	return vp;
70 | #endif


src/backend/port/dynloader/darwin.c



19 | #ifdef HAVE_DLOPEN
20 | 
21 | void *
22 | pg_dlopen(char *filename)
23 | {
24 | 	return dlopen(filename, RTLD_NOW | RTLD_GLOBAL);
25 | }
26 | 
53 | static NSObjectFileImageReturnCode cofiff_result = NSObjectFileImageFailure;
54 | 
55 | void *
56 | pg_dlopen(char *filename)
57 | {
58 | 	NSObjectFileImage image;


src/backend/port/dynloader/hpux.c



25 | #include "utils/dynamic_loader.h"
26 | 
27 | void *
28 | pg_dlopen(char *filename)
29 | {
30 | 	/*


src/backend/utils/fmgr/dfmgr.c



227 | #endif
228 | 		file_scanner->next = NULL;
229 | 
230 | 		file_scanner->handle = pg_dlopen(file_scanner->filename);
231 | 		if (file_scanner->handle == NULL)
232 | 		{