1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Move some system includes into c.h, and remove duplicates.

This commit is contained in:
Bruce Momjian
1999-07-17 20:18:55 +00:00
parent c62b8a68bf
commit 3406901a29
262 changed files with 265 additions and 883 deletions

View File

@@ -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 */

View File

@@ -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"

View File

@@ -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"

View File

@@ -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);

View File

@@ -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"

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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>

View File

@@ -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"