# 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)
*
*
* 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
*----------------------------------------------------------------
*/
-#include "krb.h"
+#include <krb.h>
#ifdef FRONTEND
/* moves to src/libpq/fe-auth.c */
*----------------------------------------------------------------
*/
-#include "krb5/krb5.h"
+#include <krb5/krb5.h>
/*
* pg_an_to_ln -- return the local name corresponding to an authentication
*
*
* 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
*
*
* 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
*
*
* 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
*
*
* 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"
*
*
* 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>
/* ----------------------------------------------------------------
*
*
* 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;
*
*
* 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
*
*
* 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.
*
*
* 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
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include <postgres.h>
-#include "libpq/pqsignal.h"
+#include <libpq/pqsignal.h>
pqsigfunc
pqsignal(int signo, pqsigfunc func)
*
*
* 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>
/* ----------------