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

Commit3aae0f5

Browse files
committed
More cleanups...several ports are major redundancies of other ports
1 parent3ad815f commit3aae0f5

File tree

12 files changed

+19
-377
lines changed

12 files changed

+19
-377
lines changed

‎src/backend/port/Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@
1919
# be converted to Method 2.
2020
#
2121
# IDENTIFICATION
22-
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.5 1997/12/19 02:06:24 scrappy Exp $
22+
# $Header: /cvsroot/pgsql/src/backend/port/Attic/Makefile.in,v 1.6 1997/12/19 02:45:38 scrappy Exp $
2323
#
2424
#-------------------------------------------------------------------------
2525

2626
SRCDIR=../..
2727
include ../../Makefile.global
2828

29-
OBJS = @PORTNAME@/SUBSYS.o @INET_ATON@ @STRERROR@
29+
OBJS = @PORTNAME@/SUBSYS.o @INET_ATON@ @STRERROR@ @RANDOM@ @SRANDOM@
30+
OBJS+= @GETHOSTNAME@ @GETRUSAGE@ @STRCASECMP@
3031

3132
all: submake SUBSYS.o
3233

‎src/backend/port/getrusage.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
#include"rusagestub.h"
55
#include"port-protos.h"
66

7+
#ifdef0/* this is from univel port ... how does compiler define? */
8+
/* same for i386_solaris port ... how does compiler define? */
9+
/* same for sco port ... how does compiler define? */
10+
/* same for sparc_solaris port ... how does compiler define? */
11+
/* same for svr4 port ... how does compiler define? */
712
int
813
getrusage(intwho,structrusage*rusage)
914
{
@@ -44,4 +49,11 @@ getrusage(int who, struct rusage * rusage)
4449
rusage->ru_stime.tv_usec=TICK_TO_USEC(u,tick_rate);
4550
return (0);
4651
}
52+
#endif
4753

54+
#ifdef0/* this is for hpux port ... how does compiler define? */
55+
getrusage(intwho,structrusage*ru)
56+
{
57+
return (syscall(SYS_GETRUSAGE,who,ru));
58+
}
59+
#endif

‎src/backend/port/hpux/port.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.3 1997/09/07 04:45:52 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/port.c,v 1.4 1997/12/19 02:45:44 scrappy Exp $
1111
*
1212
* NOTES
1313
* For the most part, this file gets around some non-POSIX calls
@@ -30,20 +30,3 @@ init_address_fixup()
3030
* by the kernel.
3131
*/
3232
}
33-
34-
long
35-
random()
36-
{
37-
return (lrand48());
38-
}
39-
40-
void
41-
srandom(unsignedseed)
42-
{
43-
srand48((longint)seed);
44-
}
45-
46-
getrusage(intwho,structrusage*ru)
47-
{
48-
return (syscall(SYS_GETRUSAGE,who,ru));
49-
}

‎src/backend/port/i386_solaris/port.c

Lines changed: 0 additions & 70 deletions
This file was deleted.
File renamed without changes.

‎src/backend/port/sco/Makefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎src/backend/port/sco/port.c

Lines changed: 0 additions & 60 deletions
This file was deleted.

‎src/backend/port/sparc_solaris/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for port/sparc_solaris
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/Makefile,v 1.3 1996/11/10 00:38:38 bryanh Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/port/sparc_solaris/Attic/Makefile,v 1.4 1997/12/19 02:46:16 scrappy Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -17,7 +17,7 @@ INCLUDE_OPT = -I.. \
1717

1818
CFLAGS+=$(INCLUDE_OPT)
1919

20-
OBJS =port.otas.o
20+
OBJS = tas.o
2121

2222
all: SUBSYS.o
2323

‎src/backend/port/sparc_solaris/port.c

Lines changed: 0 additions & 83 deletions
This file was deleted.

‎src/backend/port/srandom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include"port-protos.h"
66

77
void
8-
srandom(intseed)
8+
srandom(unsignedintseed)
99
{
1010
srand48((longint)seed);
1111
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp