Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93e7446

Browse files
committed
removed the port-protos.h from bsd a little too quick...remedied now
1 parentf4ceaf8 commit93e7446

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

Lines changed: 48 additions & 0 deletions
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+
#ifndefPORT_PROTOS_H
14+
#definePORT_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+
#definepg_dlopen(f) BSD44_derived_dlopen(f, 1)
39+
#definepg_dlsym BSD44_derived_dlsym
40+
#definepg_dlclose BSD44_derived_dlclose
41+
#definepg_dlerror BSD44_derived_dlerror
42+
43+
char*BSD44_derived_dlerror(void);
44+
void*BSD44_derived_dlopen(constchar*filename,intnum);
45+
void*BSD44_derived_dlsym(void*handle,constchar*name);
46+
voidBSD44_derived_dlclose(void*handle);
47+
48+
#endif/* PORT_PROTOS_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp