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

Commit97ac103

Browse files
committed
Remove sys/types.h in files that include postgres.h, and hence c.h,
because c.h has sys/types.h.
1 parent248c67d commit97ac103

File tree

64 files changed

+73
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+73
-135
lines changed

‎src/backend/access/transam/clog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
16-
* $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.9 2002/06/20 20:29:25 momjian Exp $
16+
* $Header: /cvsroot/pgsql/src/backend/access/transam/clog.c,v 1.10 2002/09/02 02:47:01 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -23,7 +23,6 @@
2323
#include<dirent.h>
2424
#include<errno.h>
2525
#include<sys/stat.h>
26-
#include<sys/types.h>
2726
#include<unistd.h>
2827

2928
#include"access/clog.h"

‎src/backend/access/transam/xlog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.104 2002/09/01 01:58:42 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.105 2002/09/02 02:47:01 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -20,7 +20,6 @@
2020
#include<errno.h>
2121
#include<sys/stat.h>
2222
#include<sys/time.h>
23-
#include<sys/types.h>
2423
#include<dirent.h>
2524
#include<locale.h>
2625

‎src/backend/commands/async.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.89 2002/08/30 22:18:05 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.90 2002/09/02 02:47:01 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -75,7 +75,6 @@
7575
#include<unistd.h>
7676
#include<signal.h>
7777
#include<errno.h>
78-
#include<sys/types.h>
7978
#include<netinet/in.h>
8079

8180
#include"access/heapam.h"

‎src/backend/commands/dbcommands.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.101 2002/09/0201:05:04 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.102 2002/09/0202:47:01 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -19,7 +19,6 @@
1919
#include<fcntl.h>
2020
#include<unistd.h>
2121
#include<sys/stat.h>
22-
#include<sys/types.h>
2322

2423
#include"access/heapam.h"
2524
#include"catalog/catname.h"

‎src/backend/commands/user.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.109 2002/08/30 01:01:02 tgl Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.110 2002/09/02 02:47:01 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#include"postgres.h"
1414

15-
#include<sys/types.h>
1615
#include<sys/stat.h>
1716
#include<fcntl.h>
1817
#include<errno.h>

‎src/backend/executor/execScan.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.20 2002/06/20 20:29:27 momjian Exp $
15+
* $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.21 2002/09/02 02:47:02 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
1919
#include"postgres.h"
2020

21-
#include<sys/types.h>
2221
#include<sys/file.h>
2322

2423
#include"executor/executor.h"

‎src/backend/executor/nodeHash.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
*
10-
*$Id: nodeHash.c,v 1.64 2002/08/24 15:00:46 tgl Exp $
10+
*$Id: nodeHash.c,v 1.65 2002/09/02 02:47:02 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -19,7 +19,6 @@
1919
*/
2020
#include"postgres.h"
2121

22-
#include<sys/types.h>
2322
#include<math.h>
2423

2524
#include"access/hash.h"

‎src/backend/executor/nodeHashjoin.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.40 2002/06/20 20:29:28 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHashjoin.c,v 1.41 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
15-
#include<sys/types.h>
1615

1716
#include"postgres.h"
1817

‎src/backend/lib/lispsort.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/lispsort.c,v 1.17 2002/06/20 20:29:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/lispsort.c,v 1.18 2002/09/02 02:47:02 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414

15-
#include<sys/types.h>
16-
1715
#include"postgres.h"
1816

1917

‎src/backend/libpq/auth.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.88 2002/08/30 16:00:41 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.89 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

1616
#include"postgres.h"
1717

18-
#include<sys/types.h>
1918
#include<sys/param.h>
2019
#include<sys/socket.h>
2120
#if defined(HAVE_STRUCT_CMSGCRED)|| defined(HAVE_STRUCT_FCRED)|| defined(HAVE_STRUCT_SOCKCRED)

‎src/backend/libpq/be-fsstubs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.62 2002/08/25 17:20:01 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.63 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
* NOTES
1414
* This should be moved to a more appropriate place. It is here
@@ -35,7 +35,6 @@
3535
#include"postgres.h"
3636

3737
#include<fcntl.h>
38-
#include<sys/types.h>
3938
#include<sys/stat.h>
4039
#include<unistd.h>
4140

‎src/backend/libpq/be-secure.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.11 2002/07/15 21:34:04 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.12 2002/09/02 02:47:02 momjian Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -76,7 +76,6 @@
7676

7777
#include"postgres.h"
7878

79-
#include<sys/types.h>
8079
#include<sys/stat.h>
8180
#include<signal.h>
8281
#include<fcntl.h>

‎src/backend/libpq/hba.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.85 2002/06/26 14:52:08 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.86 2002/09/02 02:47:02 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -19,7 +19,6 @@
1919
#include<errno.h>
2020
#include<pwd.h>
2121
#include<fcntl.h>
22-
#include<sys/types.h>
2322
#include<sys/param.h>
2423
#include<sys/socket.h>
2524
#if defined(HAVE_STRUCT_CMSGCRED)|| defined(HAVE_STRUCT_FCRED)|| defined(HAVE_STRUCT_SOCKCRED)

‎src/backend/libpq/pqcomm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
*$Id: pqcomm.c,v 1.137 2002/06/20 20:29:28 momjian Exp $
32+
*$Id: pqcomm.c,v 1.138 2002/09/02 02:47:02 momjian Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -66,7 +66,6 @@
6666
#include<fcntl.h>
6767
#include<grp.h>
6868
#include<unistd.h>
69-
#include<sys/types.h>
7069
#include<sys/stat.h>
7170
#include<sys/socket.h>
7271
#include<netdb.h>

‎src/backend/nodes/nodeFuncs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.18 2002/06/20 20:29:29 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/nodes/nodeFuncs.c,v 1.19 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

16-
#include<sys/types.h>
1716

1817
#include"postgres.h"
1918

‎src/backend/optimizer/path/joinpath.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.69 2002/06/20 20:29:30 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.70 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

17-
#include<sys/types.h>
1817
#include<math.h>
1918

2019
#include"optimizer/clauses.h"

‎src/backend/optimizer/plan/createplan.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.116 2002/06/20 20:29:30 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.117 2002/09/02 02:47:02 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717
#include"postgres.h"
1818

19-
#include<sys/types.h>
2019

2120
#include"nodes/makefuncs.h"
2221
#include"nodes/nodeFuncs.h"

‎src/backend/optimizer/plan/initsplan.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.73 2002/06/20 20:29:30 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.74 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515
#include"postgres.h"
1616

17-
#include<sys/types.h>
1817

1918
#include"catalog/pg_operator.h"
2019
#include"catalog/pg_type.h"

‎src/backend/optimizer/plan/planmain.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.69 2002/06/20 20:29:31 momjian Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planmain.c,v 1.70 2002/09/02 02:47:02 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
2121
#include"postgres.h"
2222

23-
#include<sys/types.h>
2423

2524
#include"optimizer/clauses.h"
2625
#include"optimizer/cost.h"

‎src/backend/optimizer/plan/setrefs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.79 2002/06/20 20:29:31 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.80 2002/09/02 02:47:02 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
1616
#include"postgres.h"
1717

18-
#include<sys/types.h>
1918

2019
#include"nodes/makefuncs.h"
2120
#include"nodes/nodeFuncs.h"

‎src/backend/optimizer/prep/prepqual.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.32 2002/06/20 20:29:31 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepqual.c,v 1.33 2002/09/02 02:47:02 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
15-
#include<sys/types.h>
1615

1716
#include"postgres.h"
1817

‎src/backend/optimizer/prep/prepunion.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.76 2002/08/29 16:03:48 tgl Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/optimizer/prep/prepunion.c,v 1.77 2002/09/02 02:47:02 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
2121
#include"postgres.h"
2222

23-
#include<sys/types.h>
2423

2524
#include"catalog/pg_type.h"
2625
#include"nodes/makefuncs.h"

‎src/backend/port/dynloader/aix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* 30159 Hannover, Germany
55
*/
66

7+
#include"postgres.h"
8+
79
#include<stdio.h>
810
#include<errno.h>
9-
#include<sys/types.h>
1011
#include"sys/ldr.h"
1112
#include<a.out.h>
1213
#include"ldfcn.h"
1314

14-
#include"postgres.h"
1515
#include"dynloader.h"
1616

1717
#ifndefHAVE_DLOPEN

‎src/backend/port/dynloader/freebsd.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,16 @@
3636
staticcharsccsid[]="@(#)dl.c5.4 (Berkeley) 2/23/91";
3737
#endif/* LIBC_SCCS and not lint */
3838

39-
#include<sys/types.h>
39+
#include"postgres.h"
40+
#include"dynloader.h"
41+
4042
#include<nlist.h>
4143
#include<link.h>
4244
#include<dlfcn.h>
4345

4446
#include<stdio.h>
4547
#include<stdlib.h>
4648

47-
#include"postgres.h"
48-
#include"dynloader.h"
49-
5049
staticcharerror_message[BUFSIZ];
5150

5251
char*

‎src/backend/port/dynloader/netbsd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636
staticcharsccsid[]="@(#)dl.c5.4 (Berkeley) 2/23/91";
3737
#endif/* LIBC_SCCS and not lint */
3838

39-
#include<sys/types.h>
39+
#include"postgres.h"
40+
4041
#include<nlist.h>
4142
#include<link.h>
4243
#include<dlfcn.h>
4344

4445
#include<stdio.h>
4546
#include<stdlib.h>
4647

47-
#include"postgres.h"
4848
#include"dynloader.h"
4949

5050
staticcharerror_message[BUFSIZ];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp