Force a checkpoint in CREATE DATABASE before starting to copy the files,
[PostgreSQL.git] / src / backend / port / dynloader / aix.h
blob386c6ef2788903402302cf5d1a199c6d2117a111
1 /*
2 * $PostgreSQL$
4 * @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
5 * This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
6 * 30159 Hannover, Germany
7 */
9 #ifndef PORT_PROTOS_H
10 #define PORT_PROTOS_H
12 #ifdef HAVE_DLOPEN
14 #include <dlfcn.h>
15 #else /* HAVE_DLOPEN */
17 #ifdef __cplusplus
18 extern "C"
20 #endif
23 * Mode flags for the dlopen routine.
25 #define RTLD_LAZY 1 /* lazy function call binding */
26 #define RTLD_NOW 2 /* immediate function call binding */
27 #define RTLD_GLOBAL 0x100 /* allow symbols to be global */
30 * To be able to intialize, a library may provide a dl_info structure
31 * that contains functions to be called to initialize and terminate.
33 struct dl_info
35 void (*init) (void);
36 void (*fini) (void);
39 #if __STDC__ || defined(_IBMR2)
40 void *dlopen(const char *path, int mode);
41 void *dlsym(void *handle, const char *symbol);
42 char *dlerror(void);
43 int dlclose(void *handle);
44 #else
45 void *dlopen();
46 void *dlsym();
47 char *dlerror();
48 int dlclose();
49 #endif
51 #ifdef __cplusplus
53 #endif
54 #endif /* HAVE_DLOPEN */
56 #include "utils/dynamic_loader.h"
58 #define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
59 #define pg_dlsym dlsym
60 #define pg_dlclose dlclose
61 #define pg_dlerror dlerror
63 #endif /* PORT_PROTOS_H */