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

Commitd62267c

Browse files
committed
Improvements to the ultrix port, in particular a bunch of compiler
quieting prototyping in port/ultrix4.hSubmitted by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1 parentaa7dbd0 commitd62267c

File tree

4 files changed

+68
-3
lines changed

4 files changed

+68
-3
lines changed

‎src/backend/port/ultrix4/port-protos.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: port-protos.h,v 1.4 1997/01/16 06:32:17 bryanh Exp $
9+
* $Id: port-protos.h,v 1.5 1997/02/13 09:53:57 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -32,9 +32,12 @@ extern char *fcvt(double, int, int*, int*);
3232
#definepg_dlsym(h,f)((func_ptr)dl_sym(h, f))
3333
#definepg_dlclose(h)dl_close(h)
3434
#definepg_dlerror()dl_error()
35+
externintdl_init(char*);
3536

3637
/* port.c */
3738

39+
externintsyscall();
40+
3841
externvoidinit_address_fixup(void);
3942

4043
/* strdup.c: strdup() is not part of libc on Ultrix */
@@ -44,6 +47,7 @@ extern char* strdup(char const*);
4447
backend/port/inet_aton.h
4548
*/
4649

50+
structin_addr;
4751
int
4852
inet_aton(constchar*cp,structin_addr*addr);
4953

‎src/backend/port/ultrix4/port.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/port.c,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/port.c,v 1.2 1997/02/13 09:53:59 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#include<sys/syscall.h>
1515
#include<sys/sysmips.h>
1616

1717
#include"c.h"
18+
#include"port-protos.h"
1819

1920
void
2021
init_address_fixup()

‎src/backend/utils/fmgr/dfmgr.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.4 1996/11/27 08:16:07 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.5 1997/02/13 09:54:04 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -27,6 +27,9 @@
2727
#include"nodes/pg_list.h"
2828

2929
#include"port-protos.h"/* system specific function prototypes */
30+
#ifdef__ultrix
31+
#include<dl.h>
32+
#endif
3033

3134
#include"catalog/catname.h"
3235
#include"utils/syscache.h"

‎src/port/ultrix4.h

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,58 @@
11
# defineUSE_POSIX_TIME
2+
# defineNEED_STRDUP
3+
4+
/*
5+
* Except for those system calls and library functions that are either
6+
* - covered by the C standard library and Posix.1
7+
* - or need a declaration to declare parameter or return types,
8+
* most Ultrix 4 calls are not declared in the system header files.
9+
* The rest of this header is used to remedy this for PostgreSQL to give a
10+
* warning-free compilation.
11+
*/
12+
13+
#include<sys/types.h>/* Declare various types, e.g. size_t, fd_set */
14+
15+
externintstrcasecmp(constchar*,constchar*);
16+
externvoidbzero(void*,size_t);
17+
18+
externintfp_class_d(double);
19+
externlongrandom(void);
20+
21+
structrusage;
22+
externintgetrusage(int,structrusage*);
23+
24+
externintioctl(int,unsigned long, ...);
25+
26+
externintsocket(int,int,int);
27+
structsockaddr;
28+
externintconnect(int,conststructsockaddr*,int);
29+
typedefintssize_t;
30+
externssize_tsend(int,constvoid*,size_t,int);
31+
externssize_trecv(int,void*,size_t,int);
32+
externintsetsockopt(int,int,int,constvoid*,int);
33+
externintbind(int,conststructsockaddr*,int);
34+
externintlisten(int,int);
35+
externintaccept(int,structsockaddr*,int*);
36+
externintgetsockname(int,structsockaddr*,int*);
37+
externssize_trecvfrom(int,void*,size_t,int,structsockaddr*,int*);
38+
externssize_tsendto(int,constvoid*,size_t,int,conststructsockaddr*,int);
39+
structtimeval;
40+
externintselect(int,fd_set*,fd_set*,fd_set*,structtimeval*);
41+
42+
externintgethostname(char*,int);
43+
44+
externintgetopt(int,char*const*,constchar*);
45+
externintputenv(constchar*);
46+
47+
externpid_tvfork(void);
48+
49+
structitimerval;
50+
externintsetitimer(int,conststructitimerval*,structitimerval*);
51+
structtimezone;
52+
externintgettimeofday(structtimeval*,structtimezone*);
53+
54+
externintfsync(int);
55+
externintftruncate(int,off_t);
56+
57+
/* End of ultrix4.h */
58+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp