summaryrefslogtreecommitdiff
path: root/src/backend/libpq
diff options
context:
space:
mode:
authorBruce Momjian1999-07-17 20:18:55 +0000
committerBruce Momjian1999-07-17 20:18:55 +0000
commit3406901a2928627477374769416a32b01a08b131 (patch)
treee045a16716bbeb4b90ed143260887e23f96939f5 /src/backend/libpq
parentc62b8a68bf60a451f57fd026bacc91648de7433a (diff)
Move some system includes into c.h, and remove duplicates.
Diffstat (limited to 'src/backend/libpq')
-rw-r--r--src/backend/libpq/auth.c4
-rw-r--r--src/backend/libpq/be-dumpdata.c3
-rw-r--r--src/backend/libpq/be-fsstubs.c3
-rw-r--r--src/backend/libpq/be-pqexec.c7
-rw-r--r--src/backend/libpq/crypt.c5
-rw-r--r--src/backend/libpq/hba.c4
-rw-r--r--src/backend/libpq/password.c4
-rw-r--r--src/backend/libpq/portal.c4
-rw-r--r--src/backend/libpq/portalbuf.c3
-rw-r--r--src/backend/libpq/pqcomm.c9
-rw-r--r--src/backend/libpq/pqformat.c4
-rw-r--r--src/backend/libpq/pqpacket.c4
-rw-r--r--src/backend/libpq/util.c4
13 files changed, 15 insertions, 43 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c
index 24def9d755c..d42503f3c18 100644
--- a/src/backend/libpq/auth.c
+++ b/src/backend/libpq/auth.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.39 1999/07/16 04:58:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.40 1999/07/17 20:17:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -17,8 +17,6 @@
* backend (postmaster) routines:
* be_recvauth receive authentication information
*/
-#include <stdio.h>
-#include <string.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
diff --git a/src/backend/libpq/be-dumpdata.c b/src/backend/libpq/be-dumpdata.c
index b15eaad617b..288ff70f523 100644
--- a/src/backend/libpq/be-dumpdata.c
+++ b/src/backend/libpq/be-dumpdata.c
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: be-dumpdata.c,v 1.29 1999/07/16 04:58:58 momjian Exp $
+ * $Id: be-dumpdata.c,v 1.30 1999/07/17 20:17:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -27,7 +27,6 @@
* puts portals on the stack and the PQ functions remove them.
*
*/
-#include <string.h>
#include "postgres.h"
diff --git a/src/backend/libpq/be-fsstubs.c b/src/backend/libpq/be-fsstubs.c
index 9f020bdea29..280fdd9410d 100644
--- a/src/backend/libpq/be-fsstubs.c
+++ b/src/backend/libpq/be-fsstubs.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.40 1999/07/16 04:58:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.41 1999/07/17 20:17:01 momjian Exp $
*
* NOTES
* This should be moved to a more appropriate place. It is here
@@ -33,7 +33,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <string.h>
#include "postgres.h"
diff --git a/src/backend/libpq/be-pqexec.c b/src/backend/libpq/be-pqexec.c
index 8131662a2a9..e92efd503fd 100644
--- a/src/backend/libpq/be-pqexec.c
+++ b/src/backend/libpq/be-pqexec.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.23 1999/07/16 04:59:00 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.24 1999/07/17 20:17:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,11 +26,6 @@
#include "tcop/fastpath.h"
#include "tcop/tcopprot.h"
#include "utils/builtins.h"
-#ifndef HAVE_MEMMOVE
-#include <regex/utils.h>
-#else
-#include <string.h>
-#endif
static char *strmake(char *str, int len);
diff --git a/src/backend/libpq/crypt.c b/src/backend/libpq/crypt.c
index c10efca9ff0..7c3bd35e243 100644
--- a/src/backend/libpq/crypt.c
+++ b/src/backend/libpq/crypt.c
@@ -9,14 +9,11 @@
* Dec 17, 1997 - Todd A. Brandys
* Orignal Version Completed.
*
- * $Id: crypt.c,v 1.22 1999/07/16 04:59:00 momjian Exp $
+ * $Id: crypt.c,v 1.23 1999/07/17 20:17:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
#include <unistd.h>
#include "postgres.h"
diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index 38c49bbf01d..5012d22263a 100644
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -5,12 +5,10 @@
* wherein you authenticate a user by seeing what IP address the system
* says he comes from and possibly using ident).
*
- * $Id: hba.c,v 1.46 1999/07/16 04:59:01 momjian Exp $
+ * $Id: hba.c,v 1.47 1999/07/17 20:17:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#include <stdio.h>
-#include <string.h>
#include <errno.h>
#include <pwd.h>
#include <sys/types.h>
diff --git a/src/backend/libpq/password.c b/src/backend/libpq/password.c
index 831e80c66af..3e3b8401e15 100644
--- a/src/backend/libpq/password.c
+++ b/src/backend/libpq/password.c
@@ -1,12 +1,12 @@
/*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: password.c,v 1.24 1999/07/16 04:59:01 momjian Exp $
+ * $Id: password.c,v 1.25 1999/07/17 20:17:02 momjian Exp $
*
*/
-#include <string.h>
#include <unistd.h>
+
#include "postgres.h"
#ifdef HAVE_CRYPT_H
#include "crypt.h"
diff --git a/src/backend/libpq/portal.c b/src/backend/libpq/portal.c
index f8a6db73589..abc69686e6d 100644
--- a/src/backend/libpq/portal.c
+++ b/src/backend/libpq/portal.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: portal.c,v 1.26 1999/07/16 04:59:02 momjian Exp $
+ * $Id: portal.c,v 1.27 1999/07/17 20:17:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -50,8 +50,6 @@
* see utils/mmgr/portalmem.c for why. -cim 2/22/91
*
*/
-#include <stdio.h>
-#include <string.h>
#include "postgres.h"
diff --git a/src/backend/libpq/portalbuf.c b/src/backend/libpq/portalbuf.c
index a9c3e9506be..b61c7a7b731 100644
--- a/src/backend/libpq/portalbuf.c
+++ b/src/backend/libpq/portalbuf.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.20 1999/07/16 04:59:03 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.21 1999/07/17 20:17:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -47,7 +47,6 @@
* see utils/mmgr/portalmem.c for why. -cim 2/22/91
*
*/
-#include <string.h>
#include <sys/types.h>
#include "postgres.h"
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 062488184e5..e8361b85353 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -28,7 +28,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.c,v 1.79 1999/07/17 05:16:15 momjian Exp $
+ * $Id: pqcomm.c,v 1.80 1999/07/17 20:17:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,7 +58,6 @@
*
*------------------------
*/
-#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
@@ -74,12 +73,6 @@
#include "postgres.h"
-#if defined(HAVE_STRING_H)
-#include <string.h>
-#else
-#include <strings.h>
-#endif
-
#include "libpq/libpq.h"
#include "utils/trace.h" /* needed for HAVE_FCNTL_SETLK */
#include "miscadmin.h"
diff --git a/src/backend/libpq/pqformat.c b/src/backend/libpq/pqformat.c
index 7bb502b984e..e5da571886d 100644
--- a/src/backend/libpq/pqformat.c
+++ b/src/backend/libpq/pqformat.c
@@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqformat.c,v 1.6 1999/07/16 04:59:04 momjian Exp $
+ * $Id: pqformat.c,v 1.7 1999/07/17 20:17:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -51,8 +51,8 @@
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
#endif
-#include <string.h>
#ifdef HAVE_ENDIAN_H
+#include "endian.h"
#endif
#ifndef BYTE_ORDER
diff --git a/src/backend/libpq/pqpacket.c b/src/backend/libpq/pqpacket.c
index febfb374367..160944cc5fb 100644
--- a/src/backend/libpq/pqpacket.c
+++ b/src/backend/libpq/pqpacket.c
@@ -8,14 +8,12 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.21 1999/07/15 23:03:14 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.22 1999/07/17 20:17:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#include <stdio.h>
#include <unistd.h>
-#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
diff --git a/src/backend/libpq/util.c b/src/backend/libpq/util.c
index 3d9ba30b496..c331298dbd5 100644
--- a/src/backend/libpq/util.c
+++ b/src/backend/libpq/util.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: util.c,v 1.12 1999/07/16 03:12:57 momjian Exp $
+ * $Id: util.c,v 1.13 1999/07/17 20:17:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -17,8 +17,6 @@
* PQuntrace - turn off pqdebug() tracing
*/
-#include <stdio.h>
-#include <string.h>
#include "postgres.h"
#include "libpq/libpq.h"