Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 93e7446

Browse files
committed
removed the port-protos.h from bsd a little too quick...remedied now
1 parent f4ceaf8 commit 93e7446

File tree

1 file changed

+48
-0
lines changed
  • src/backend/port/dynloader

1 file changed

+48
-0
lines changed

src/backend/port/dynloader/bsd.h

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* port-protos.h--
4+
* port-specific prototypes for NetBSD 1.0
5+
*
6+
*
7+
* Copyright (c) 1994, Regents of the University of California
8+
*
9+
* $Id: bsd.h,v 1.1 1997/12/19 23:17:42 scrappy Exp $
10+
*
11+
*-------------------------------------------------------------------------
12+
*/
13+
#ifndef PORT_PROTOS_H
14+
#define PORT_PROTOS_H
15+
16+
#include <sys/types.h>
17+
#include <nlist.h>
18+
#include <link.h>
19+
20+
#include "postgres.h"
21+
22+
#include "fmgr.h" /* for func_ptr */
23+
#include "utils/dynamic_loader.h"
24+
25+
/* dynloader.c */
26+
/*
27+
* Dynamic Loader on NetBSD 1.0.
28+
*
29+
* this dynamic loader uses the system dynamic loading interface for shared
30+
* libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
31+
* library as the file to be dynamically loaded.
32+
*
33+
* agc - I know this is all a bit crufty, but it does work, is fairly
34+
* portable, and works (the stipulation that the d.l. function must
35+
* begin with an underscore is fairly tricky, and some versions of
36+
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
37+
*/
38+
#define pg_dlopen(f) BSD44_derived_dlopen(f, 1)
39+
#define pg_dlsym BSD44_derived_dlsym
40+
#define pg_dlclose BSD44_derived_dlclose
41+
#define pg_dlerror BSD44_derived_dlerror
42+
43+
char *BSD44_derived_dlerror(void);
44+
void *BSD44_derived_dlopen(const char *filename, int num);
45+
void *BSD44_derived_dlsym(void *handle, const char *name);
46+
void BSD44_derived_dlclose(void *handle);
47+
48+
#endif /* PORT_PROTOS_H */

0 commit comments

Comments
 (0)