]> granicus.if.org Git - postgresql/blob - src/backend/port/dynloader/osf.h
pgindent run on all C files. Java run to follow. initdb/regression
[postgresql] / src / backend / port / dynloader / osf.h
1 /*-------------------------------------------------------------------------
2  *
3  * alpha.h
4  *        prototypes for OSF/1-specific routines
5  *
6  *
7  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: osf.h,v 1.4 2001/10/25 05:49:40 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14
15 #ifndef PORT_PROTOS_H
16 #define PORT_PROTOS_H
17
18 #include <dlfcn.h>
19 #include "utils/dynamic_loader.h"
20
21 /* dynloader.c */
22
23 /*
24  * Dynamic Loader on Alpha OSF/1.x
25  *
26  * this dynamic loader uses the system dynamic loading interface for shared
27  * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
28  * library as the file to be dynamically loaded.
29  *
30  */
31 #define  pg_dlopen(f)   dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
32 #define  pg_dlsym(h, f) ((PGFunction) dlsym(h, f))
33 #define  pg_dlclose(h)  dlclose(h)
34 #define  pg_dlerror()   dlerror()
35 #endif   /* PORT_PROTOS_H */