]> granicus.if.org Git - postgresql/commitdiff
I'm getting there, slowly :)
authorMarc G. Fournier <scrappy@hub.org>
Wed, 6 Nov 1996 08:48:33 +0000 (08:48 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 6 Nov 1996 08:48:33 +0000 (08:48 +0000)
12 files changed:
src/backend/libpq/Makefile
src/backend/libpq/auth.c
src/backend/libpq/be-dumpdata.c
src/backend/libpq/be-fsstubs.c
src/backend/libpq/be-pqexec.c
src/backend/libpq/hba.c
src/backend/libpq/portal.c
src/backend/libpq/portalbuf.c
src/backend/libpq/pqcomm.c
src/backend/libpq/pqpacket.c
src/backend/libpq/pqsignal.c
src/backend/libpq/util.c

index d7a0e6d09db9cb288f4f04fc4f877f2b0139d8ed..0dbf2fb13499eb422b2df5f19f0fb2b75bc53954 100644 (file)
@@ -4,14 +4,15 @@
 #    Makefile for libpq subsystem (backend half of libpq interface)
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.2 1996/10/31 10:37:47 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.3 1996/11/06 08:48:21 scrappy Exp $
 #
 #-------------------------------------------------------------------------
 
 SRCDIR = ../..
 include ../../Makefile.global
 
-INCLUDE_OPT = -I../port/$(PORTNAME) \
+INCLUDE_OPT = -I.. \
+              -I../port/$(PORTNAME) \
               -I../../include
 
 CFLAGS+=$(INCLUDE_OPT)
index 8970469f90932431c2566b841fd10c1d8a62326a..ba015dd211450e1ae1baff16a063d8f871a25ba4 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.6 1996/11/06 06:48:06 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.7 1996/11/06 08:48:23 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include "postgres.h"
-#include "miscadmin.h"
+#include <postgres.h>
+#include <miscadmin.h>
 
-#include "libpq/auth.h"
-#include "libpq/libpq.h"
-#include "libpq/libpq-be.h"
-#include "libpq/hba.h"
+#include <libpq/auth.h>
+#include <libpq/libpq.h>
+#include <libpq/libpq-be.h>
+#include <libpq/hba.h>
 
 /*----------------------------------------------------------------
  * common definitions for generic fe/be routines
@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
  *----------------------------------------------------------------
  */
 
-#include "krb.h"
+#include <krb.h>
 
 #ifdef FRONTEND
 /* moves to src/libpq/fe-auth.c  */
@@ -228,7 +228,7 @@ return(STATUS_ERROR);
  *----------------------------------------------------------------
  */
 
-#include "krb5/krb5.h"
+#include <krb5/krb5.h>
 
 /*
  * pg_an_to_ln -- return the local name corresponding to an authentication
index 9242741992f864e8c91deb48dfdf437f899e55bf..e595528b566e99a78d617745ec9a9c652be1eb59 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.2 1996/11/06 06:48:10 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.3 1996/11/06 08:48:24 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
  *
  */
 #include <string.h>
-#include "postgres.h"
 
-#include "lib/dllist.h"
-#include "libpq/libpq-be.h"
+#include <postgres.h>
 
-#include "access/heapam.h"
-#include "access/htup.h"
-#include "storage/buf.h"
-#include "utils/memutils.h"
-#include "utils/palloc.h"
-#include "fmgr.h"
-#include "utils/mcxt.h"
-#include "utils/elog.h"
-#include "utils/exc.h"
-
-#include "utils/syscache.h"
-#include "catalog/pg_type.h"
-#include "catalog/catalog.h"
-#include "access/printtup.h"
+#include <lib/dllist.h>
+#include <libpq/libpq-be.h>
+#include <access/heapam.h>
+#include <access/htup.h>
+#include <storage/buf.h>
+#include <utils/memutils.h>
+#include <fmgr.h>
+#include <utils/mcxt.h>
+#include <utils/exc.h>
+#include <utils/syscache.h>
+#include <catalog/pg_type.h>
+#include <catalog/catalog.h>
+#include <access/printtup.h>
 
 /* ----------------
  *     backend portal stack for recursive PQexec calls
index d44a3b5149abade58a05dc66541601f3d98de0dd..6888494b88a98e23778d6ccb63aab14e8e18538e 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.3 1996/10/31 10:37:49 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.4 1996/11/06 08:48:25 scrappy Exp $
  *
  * NOTES
  *    This should be moved to a more appropriate place.  It is here
  *    closed.
  *-------------------------------------------------------------------------
  */
-#include "postgres.h"
-#include "lib/dllist.h"
-#include "libpq/libpq.h"
-#include "libpq/libpq-fs.h"
-#include "nodes/nodes.h"
-#include "utils/memutils.h"
-#include "lib/fstack.h"
-#include "utils/mcxt.h"
-#include "utils/palloc.h"
-
-#include "storage/fd.h"                /* for O_ */
-#include "storage/large_object.h"
-
-#include "utils/elog.h"
-#include "libpq/be-fsstubs.h"
+
+#include <fcntl.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <postgres.h>
+
+#include <lib/dllist.h>
+#include <libpq/libpq.h>
+#include <libpq/libpq-fs.h>
+#include <nodes/nodes.h>
+#include <utils/memutils.h>
+#include <lib/fstack.h>
+#include <utils/mcxt.h>
+#include <storage/fd.h>                /* for O_ */
+#include <storage/large_object.h>
+#include <libpq/be-fsstubs.h>
 
 /*#define FSDB 1*/
 #define MAX_LOBJ_FDS 256
index 1b1738d4fc4e16c99757407cb09b9b6f7616572f..b880ba7100964e2a5efc824abb13ff7ab6361c2d 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.1.1.1 1996/07/09 06:21:30 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.2 1996/11/06 08:48:26 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
  * NOTES
  *     These routines are compiled into the postgres backend.
  */
-#include "postgres.h"
+#include <postgres.h>
 
-#include "nodes/pg_list.h"
-#include "tcop/dest.h"
-#include "tcop/fastpath.h"
-#include "tcop/tcopprot.h"
-#include "lib/dllist.h"
-#include "libpq/libpq-be.h"
-#include "fmgr.h"
-#include "utils/exc.h"
-#include "utils/builtins.h"
-#include "utils/elog.h"
-#include "utils/palloc.h"
+#include <nodes/pg_list.h>
+#include <tcop/dest.h>
+#include <tcop/fastpath.h>
+#include <tcop/tcopprot.h>
+#include <lib/dllist.h>
+#include <libpq/libpq-be.h>
+#include <fmgr.h>
+#include <utils/exc.h>
+#include <utils/builtins.h>
+#ifndef HAVE_MEMMOVE
+# include <regex/utils.h>
+#else
+# include <string.h>
+#endif
 
 /* ----------------------------------------------------------------
  *                     PQ interface routines
index b93890231f0199e15154ec4ad33ed33971257481..7172dd31a071454894a6a7282d702d69062ed5fa 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.9 1996/11/06 06:48:12 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.10 1996/11/06 08:48:27 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <arpa/inet.h>
 #include <unistd.h>
 #if defined(sparc_solaris)
-#include "inet_aton.h" /* after I copied it into port/sparc_solaris */
+#include <inet_aton.h> /* after I copied it into port/sparc_solaris */
 #endif
 
-#include "postgres.h"
-#include "miscadmin.h"
-#include "libpq/libpq.h"
-#include "libpq/pqcomm.h"
-#include "libpq/hba.h"
+#include <postgres.h>
+#include <miscadmin.h>
+#include <libpq/libpq.h>
+#include <libpq/pqcomm.h>
+#include <libpq/hba.h>
 
 
 #define CONF_FILE "pg_hba.conf"             
index 1635184a64d81b369705c37cad5f3d1732e9e82b..e54e18676f8f54a4c6e3ac5624469925df5e1a93 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.3 1996/10/31 10:37:50 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.4 1996/11/06 08:48:28 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <stdio.h>     /* for sprintf() */
 #include <string.h>
 
-#include "postgres.h"
-#include "lib/dllist.h"
-#include "libpq/libpq.h"       /* where the declarations go */
-#include "utils/exc.h"
-#include "utils/palloc.h"
+#include <postgres.h>
+
+#include <lib/dllist.h>
+#include <libpq/libpq.h>       /* where the declarations go */
+#include <utils/exc.h>
 
 
 /* ----------------------------------------------------------------
index 98f225d19d9a3a57ec5a807b7243113a562c6604..e0390c5ae793eb568a58a507667cea78f6bc618b 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.2 1996/10/31 10:37:51 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.3 1996/11/06 08:48:29 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
  *     see utils/mmgr/portalmem.c for why. -cim 2/22/91
  *
  */
+#include <string.h>
 #include <sys/types.h>
-#include "postgres.h"
 
-#include "libpq/libpq.h"               /* where the declarations go */
-#include "utils/exc.h"
-#include "utils/palloc.h"
+#include <postgres.h>
+
+#include <libpq/libpq.h>               /* where the declarations go */
+#include <utils/exc.h>
 
 PortalEntry** portals = (PortalEntry**) NULL;
 size_t portals_array_size = 0;
index f78f4186364cf57a175af08e97df36dd35e96bc5..ada4d4a30a4952e0160a718f4f3397bc385062a7 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.4 1996/10/31 10:37:52 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.5 1996/11/06 08:48:30 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
  *     the postgres backend.
  *
  */
-
-#include "postgres.h"
-
-#include "libpq/pqsignal.h"    /* substitute for <signal.h> */
 #include <stdio.h>
 #include <string.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <signal.h>
 #ifndef WIN32
 #include <unistd.h>            /* for ttyname() */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
 #else
 #include <winsock.h>
 #endif /* WIN32 */
-#include <errno.h>
-#include <fcntl.h>
 
 #if defined(linux)
 #ifndef SOMAXCONN
 #endif /* SOMAXCONN */
 #endif /* linux */
 
-#include "libpq/auth.h"
-#include "libpq/libpq.h"       /* where the declarations go */
-#include "libpq/pqcomm.h"
+#include <postgres.h>
+
+#include <libpq/pqsignal.h>    /* substitute for <signal.h> */
+#include <libpq/auth.h>
+#include <libpq/libpq.h>       /* where the declarations go */
 
 /* ----------------
  *     declarations
index edf373d1afb56129e4355b694053c4370b3a7fd1..5b2ce7e6ad38992420b3566ad86226d8a68f89ff 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.1.1.1 1996/07/09 06:21:31 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.2 1996/11/06 08:48:31 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <fcntl.h>
 #include <errno.h>
 
-#include "postgres.h"
-#include "miscadmin.h" 
-#include "utils/elog.h"
-#include "storage/ipc.h"
-#include "libpq/pqcomm.h"      /* where the declarations go */
-#include "libpq/libpq.h"
+#include <postgres.h>
+#include <miscadmin.h>
+#include <storage/ipc.h>
+#include <libpq/libpq.h>
 
 /*
  * PacketReceive -- receive a packet on a port.
index 67bbc16fbaa67e391bc758622cfbc4ee39e9c536..98519ae7e1bcefe87987c262a4a9ca68b6ea7c33 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.2 1996/11/03 06:52:14 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.3 1996/11/06 08:48:32 scrappy Exp $
  *
  * NOTES
  *     This shouldn't be in libpq, but the monitor and some other
@@ -16,9 +16,9 @@
  *
  *-------------------------------------------------------------------------
  */
-#include "postgres.h"
+#include <postgres.h>
 
-#include "libpq/pqsignal.h"
+#include <libpq/pqsignal.h>
 
 pqsigfunc
 pqsignal(int signo, pqsigfunc func)
index bd7eb47d258e5e1951baaefede346df26ddb720e..e8ca2e4ccc5f0787547fd28d3d0b31fc663101a4 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/util.c,v 1.2 1996/10/31 10:37:53 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/util.c,v 1.3 1996/11/06 08:48:33 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <stdio.h>     /* for sprintf() */
 #include <string.h>
 
-#include "postgres.h"
-#include "lib/dllist.h"
-#include "libpq/libpq.h"       /* where the declarations go */
-#include "utils/exc.h"
-#include "utils/palloc.h"
+#include <postgres.h>
+#include <lib/dllist.h>
+#include <libpq/libpq.h>       /* where the declarations go */
+#include <utils/exc.h>
 
 
 /* ----------------