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

Commit 79e78f0

Browse files
committed
Added SCO support, from Daniel Harris.
1 parent 5a38a11 commit 79e78f0

File tree

20 files changed

+286
-202
lines changed

20 files changed

+286
-202
lines changed

src/backend/commands/vacuum.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.36 1997/06/07 17:34:35 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.37 1997/07/28 00:53:40 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
#include <sys/types.h>
1415
#include <sys/file.h>
1516
#include <string.h>
16-
#include <sys/types.h>
1717
#include <sys/stat.h>
1818
#include <fcntl.h>
1919
#include <unistd.h>

src/backend/executor/execScan.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.2 1996/10/31 10:11:34 scrappy Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.3 1997/07/28 00:53:51 momjian Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
1818

19+
#include <sys/types.h>
1920
#include <sys/file.h>
2021
#include "postgres.h"
2122

src/backend/executor/nodeHash.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.8 1997/04/22 03:32:38 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.9 1997/07/28 00:53:58 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -19,11 +19,11 @@
1919
*
2020
*/
2121

22+
#include <sys/types.h>
2223
#include <stdio.h> /* for sprintf() */
2324
#include <math.h>
2425
#include <string.h>
2526
#include <sys/file.h>
26-
#include <sys/types.h>
2727
#include <sys/stat.h>
2828
#include <fcntl.h>
2929

src/backend/executor/nodeHashjoin.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.3 1996/11/06 06:47:41 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.4 1997/07/28 00:54:06 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
#include <sys/types.h>
1415
#include <string.h>
1516
#include <sys/file.h>
16-
#include <sys/types.h>
1717
#include <sys/stat.h>
1818
#include <fcntl.h>
1919

src/backend/executor/nodeTee.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
* ExecEndTee
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.5 1996/11/10 03:00:08 momjian Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/executor/Attic/nodeTee.c,v 1.6 1997/07/28 00:54:11 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
2222

23+
#include <sys/types.h>
2324
#include <sys/file.h>
2425
#include "postgres.h"
2526

src/backend/libpq/pqcomm.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.16 1997/04/17 20:38:16 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.17 1997/07/28 00:54:18 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -493,7 +493,9 @@ pq_regoob(void (*fptr)())
493493
int fd = fileno(Pfout);
494494
#if defined(hpux)
495495
ioctl(fd, FIOSSAIOOWN, getpid());
496-
#else /* hpux */
496+
#elif defined(sco)
497+
ioctl(fd, SIOCSPGRP, getpid());
498+
#else
497499
fcntl(fd, F_SETOWN, getpid());
498500
#endif /* hpux */
499501
(void) pqsignal(SIGURG,fptr);

src/backend/storage/buffer/buf_init.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.9 1997/04/18 02:53:15 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_init.c,v 1.10 1997/07/28 00:54:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
#include <sys/types.h>
1415
#include <sys/file.h>
1516
#include <stdio.h>
1617
#include <math.h>

src/backend/storage/buffer/bufmgr.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.14 1997/07/24 20:13:48 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.15 1997/07/28 00:54:43 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,6 +46,7 @@
4646
* freelist.c -- chooses victim for buffer replacement
4747
* buf_table.c -- manages the buffer lookup table
4848
*/
49+
#include <sys/types.h>
4950
#include <sys/file.h>
5051
#include <stdio.h>
5152
#include <string.h>

src/backend/storage/buffer/localbuf.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.7 1997/05/20 11:30:32 vadim Exp $
18+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/localbuf.c,v 1.8 1997/07/28 00:54:48 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
22+
#include <sys/types.h>
2223
#include <sys/file.h>
2324
#include <stdio.h>
2425
#include <string.h>

src/backend/storage/file/fd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 1994, Regents of the University of California
77
*
88
* IDENTIFICATION
9-
* $Id: fd.c,v 1.18 1997/05/23 02:56:48 vadim Exp $
9+
* $Id: fd.c,v 1.19 1997/07/28 00:54:52 momjian Exp $
1010
*
1111
* NOTES:
1212
*
@@ -37,14 +37,14 @@
3737
*-------------------------------------------------------------------------
3838
*/
3939

40+
#include <sys/types.h>
4041
#include <stdio.h>
4142
#include <sys/file.h>
4243
#include <sys/param.h>
4344
#include <errno.h>
4445
#include <sys/stat.h>
4546
#include <string.h>
4647
#include <unistd.h>
47-
#include <sys/types.h>
4848
#include <fcntl.h>
4949

5050
#include "postgres.h"

src/backend/storage/large_object/inv_api.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.10 1997/06/05 22:59:29 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.11 1997/07/28 00:55:08 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
15+
#include <sys/types.h>
1516
#include <stdio.h> /* for sprintf() */
1617
#include <string.h>
1718
#include <sys/file.h>
18-
#include <sys/types.h>
1919
#include <sys/stat.h>
2020

2121
#include "postgres.h"

src/backend/tcop/postgres.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.34 1997/07/24 20:15:03 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.35 1997/07/28 00:55:28 momjian Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -29,6 +29,9 @@
2929
#ifndef MAXHOSTNAMELEN
3030
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
3131
#endif
32+
#ifndef MAXHOSTNAMELEN /* for MAXHOSTNAMELEN under sco3.2v5.0.2 */
33+
#include <sys/socket.h>
34+
#endif
3235
#include <errno.h>
3336
#ifdef aix
3437
#include <sys/select.h>
@@ -1271,7 +1274,7 @@ PostgresMain(int argc, char *argv[])
12711274
*/
12721275
if (IsUnderPostmaster == false) {
12731276
puts("\nPOSTGRES backend interactive interface");
1274-
puts("$Revision: 1.34 $ $Date: 1997/07/24 20:15:03 $");
1277+
puts("$Revision: 1.35 $ $Date: 1997/07/28 00:55:28 $");
12751278
}
12761279

12771280
/* ----------------

src/backend/utils/Gen_fmgrtab.sh.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.3 1997/04/24 20:30:16 scrappy Exp $
11+
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.4 1997/07/28 00:55:41 momjian Exp $
1212
#
1313
# NOTES
1414
# Passes any -D options on to cpp prior to generating the list
@@ -81,7 +81,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
8181
*
8282
* Copyright (c) 1994, Regents of the University of California
8383
*
84-
* $Id: Gen_fmgrtab.sh.in,v 1.3 1997/04/24 20:30:16 scrappy Exp $
84+
* $Id: Gen_fmgrtab.sh.in,v 1.4 1997/07/28 00:55:41 momjian Exp $
8585
*
8686
* NOTES
8787
* ******************************
@@ -152,7 +152,7 @@ extern void load_file(char *filename);
152152
153153
FuNkYfMgRsTuFf
154154
awk '{ print $2, $1; }' $RAWFILE | \
155-
@TR@ '[a-z]' '[A-Z]' | \
155+
@TR@ @TRARGS@ | \
156156
sed -e 's/^/#define F_/' >> $HFILE
157157
cat >> $HFILE <<FuNkYfMgRsTuFf
158158
@@ -175,7 +175,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
175175
*
176176
*
177177
* IDENTIFICATION
178-
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.3 1997/04/24 20:30:16 scrappy Exp $
178+
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.4 1997/07/28 00:55:41 momjian Exp $
179179
*
180180
* NOTES
181181
*

src/backend/utils/adt/float.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.16 1997/06/03 13:58:06 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.17 1997/07/28 00:55:49 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1446,7 +1446,8 @@ static int isinf(x)
14461446
}
14471447
#endif /* alpha */
14481448

1449-
#if defined(sparc_solaris) || defined(i386_solaris) || defined(svr4)
1449+
#if defined(sparc_solaris) || defined(i386_solaris) || defined(svr4) || \
1450+
defined(sco)
14501451
#include <ieeefp.h>
14511452
static int
14521453
isinf(d)

src/backend/utils/adt/misc.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.6 1997/04/27 19:20:14 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/misc.c,v 1.7 1997/07/28 00:55:58 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
#include <sys/types.h>
1415
#include <sys/file.h>
1516
#include "postgres.h"
1617
#include "utils/datum.h"

src/backend/utils/cache/relcache.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.9 1997/06/04 08:56:51 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.10 1997/07/28 00:56:04 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -29,6 +29,7 @@
2929
* careful....
3030
*
3131
*/
32+
#include <sys/types.h>
3233
#include <stdio.h> /* for sprintf() */
3334
#include <errno.h>
3435
#include <sys/file.h>

0 commit comments

Comments
 (0)