aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader/svr4.h
blob: e49b5a7446a2ec4b7fdc82663667b736366aa11d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*-------------------------------------------------------------------------
 *
 * dynloader.h--
 *	  port-specific prototypes for Intel x86/Intel SVR4
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: svr4.h,v 1.1 1998/02/24 03:41:58 scrappy Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef DYNLOADER_H
#define DYNLOADER_H

#include <dlfcn.h>
#include "fmgr.h"				/* for func_ptr */
#include "utils/dynamic_loader.h"

/* dynloader.h */
/*
 * Dynamic Loader on Intel x86/Intel SVR4.
 *
 * this dynamic loader uses the system dynamic loading interface for shared
 * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
 * library as the file to be dynamically loaded.
 *
 */
#define pg_dlopen(f)	dlopen(f,RTLD_LAZY)
#define pg_dlsym		dlsym
#define pg_dlclose		dlclose
#define pg_dlerror		dlerror

#endif							/* DYNLOADER_H */