Commit a472a29b authored by Marc G. Fournier's avatar Marc G. Fournier

I'm getting there, slowly :)

parent e2329091
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
# Makefile for libpq subsystem (backend half of libpq interface) # Makefile for libpq subsystem (backend half of libpq interface)
# #
# IDENTIFICATION # 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 = ../.. SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
INCLUDE_OPT = -I../port/$(PORTNAME) \ INCLUDE_OPT = -I.. \
-I../port/$(PORTNAME) \
-I../../include -I../../include
CFLAGS+=$(INCLUDE_OPT) CFLAGS+=$(INCLUDE_OPT)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -62,13 +62,13 @@ ...@@ -62,13 +62,13 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "postgres.h" #include <postgres.h>
#include "miscadmin.h" #include <miscadmin.h>
#include "libpq/auth.h" #include <libpq/auth.h>
#include "libpq/libpq.h" #include <libpq/libpq.h>
#include "libpq/libpq-be.h" #include <libpq/libpq-be.h>
#include "libpq/hba.h" #include <libpq/hba.h>
/*---------------------------------------------------------------- /*----------------------------------------------------------------
* common definitions for generic fe/be routines * common definitions for generic fe/be routines
...@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc); ...@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
*---------------------------------------------------------------- *----------------------------------------------------------------
*/ */
#include "krb.h" #include <krb.h>
#ifdef FRONTEND #ifdef FRONTEND
/* moves to src/libpq/fe-auth.c */ /* moves to src/libpq/fe-auth.c */
...@@ -228,7 +228,7 @@ return(STATUS_ERROR); ...@@ -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 * pg_an_to_ln -- return the local name corresponding to an authentication
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -30,25 +30,22 @@ ...@@ -30,25 +30,22 @@
* *
*/ */
#include <string.h> #include <string.h>
#include "postgres.h"
#include "lib/dllist.h" #include <postgres.h>
#include "libpq/libpq-be.h"
#include "access/heapam.h" #include <lib/dllist.h>
#include "access/htup.h" #include <libpq/libpq-be.h>
#include "storage/buf.h" #include <access/heapam.h>
#include "utils/memutils.h" #include <access/htup.h>
#include "utils/palloc.h" #include <storage/buf.h>
#include "fmgr.h" #include <utils/memutils.h>
#include "utils/mcxt.h" #include <fmgr.h>
#include "utils/elog.h" #include <utils/mcxt.h>
#include "utils/exc.h" #include <utils/exc.h>
#include <utils/syscache.h>
#include "utils/syscache.h" #include <catalog/pg_type.h>
#include "catalog/pg_type.h" #include <catalog/catalog.h>
#include "catalog/catalog.h" #include <access/printtup.h>
#include "access/printtup.h"
/* ---------------- /* ----------------
* backend portal stack for recursive PQexec calls * backend portal stack for recursive PQexec calls
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* This should be moved to a more appropriate place. It is here * This should be moved to a more appropriate place. It is here
...@@ -21,21 +21,23 @@ ...@@ -21,21 +21,23 @@
* closed. * closed.
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include "postgres.h"
#include "lib/dllist.h" #include <fcntl.h>
#include "libpq/libpq.h" #include <sys/types.h>
#include "libpq/libpq-fs.h" #include <unistd.h>
#include "nodes/nodes.h"
#include "utils/memutils.h" #include <postgres.h>
#include "lib/fstack.h"
#include "utils/mcxt.h" #include <lib/dllist.h>
#include "utils/palloc.h" #include <libpq/libpq.h>
#include <libpq/libpq-fs.h>
#include "storage/fd.h" /* for O_ */ #include <nodes/nodes.h>
#include "storage/large_object.h" #include <utils/memutils.h>
#include <lib/fstack.h>
#include "utils/elog.h" #include <utils/mcxt.h>
#include "libpq/be-fsstubs.h" #include <storage/fd.h> /* for O_ */
#include <storage/large_object.h>
#include <libpq/be-fsstubs.h>
/*#define FSDB 1*/ /*#define FSDB 1*/
#define MAX_LOBJ_FDS 256 #define MAX_LOBJ_FDS 256
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -20,19 +20,22 @@ ...@@ -20,19 +20,22 @@
* NOTES * NOTES
* These routines are compiled into the postgres backend. * These routines are compiled into the postgres backend.
*/ */
#include "postgres.h" #include <postgres.h>
#include "nodes/pg_list.h" #include <nodes/pg_list.h>
#include "tcop/dest.h" #include <tcop/dest.h>
#include "tcop/fastpath.h" #include <tcop/fastpath.h>
#include "tcop/tcopprot.h" #include <tcop/tcopprot.h>
#include "lib/dllist.h" #include <lib/dllist.h>
#include "libpq/libpq-be.h" #include <libpq/libpq-be.h>
#include "fmgr.h" #include <fmgr.h>
#include "utils/exc.h" #include <utils/exc.h>
#include "utils/builtins.h" #include <utils/builtins.h>
#include "utils/elog.h" #ifndef HAVE_MEMMOVE
#include "utils/palloc.h" # include <regex/utils.h>
#else
# include <string.h>
#endif
/* ---------------------------------------------------------------- /* ----------------------------------------------------------------
* PQ interface routines * PQ interface routines
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <unistd.h> #include <unistd.h>
#if defined(sparc_solaris) #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 #endif
#include "postgres.h" #include <postgres.h>
#include "miscadmin.h" #include <miscadmin.h>
#include "libpq/libpq.h" #include <libpq/libpq.h>
#include "libpq/pqcomm.h" #include <libpq/pqcomm.h>
#include "libpq/hba.h" #include <libpq/hba.h>
#define CONF_FILE "pg_hba.conf" #define CONF_FILE "pg_hba.conf"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -58,11 +58,11 @@ ...@@ -58,11 +58,11 @@
#include <stdio.h> /* for sprintf() */ #include <stdio.h> /* for sprintf() */
#include <string.h> #include <string.h>
#include "postgres.h" #include <postgres.h>
#include "lib/dllist.h"
#include "libpq/libpq.h" /* where the declarations go */ #include <lib/dllist.h>
#include "utils/exc.h" #include <libpq/libpq.h> /* where the declarations go */
#include "utils/palloc.h" #include <utils/exc.h>
/* ---------------------------------------------------------------- /* ----------------------------------------------------------------
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -47,12 +47,13 @@ ...@@ -47,12 +47,13 @@
* see utils/mmgr/portalmem.c for why. -cim 2/22/91 * see utils/mmgr/portalmem.c for why. -cim 2/22/91
* *
*/ */
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include "postgres.h"
#include "libpq/libpq.h" /* where the declarations go */ #include <postgres.h>
#include "utils/exc.h"
#include "utils/palloc.h" #include <libpq/libpq.h> /* where the declarations go */
#include <utils/exc.h>
PortalEntry** portals = (PortalEntry**) NULL; PortalEntry** portals = (PortalEntry**) NULL;
size_t portals_array_size = 0; size_t portals_array_size = 0;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -34,23 +34,22 @@ ...@@ -34,23 +34,22 @@
* the postgres backend. * the postgres backend.
* *
*/ */
#include "postgres.h"
#include "libpq/pqsignal.h" /* substitute for <signal.h> */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#ifndef WIN32 #ifndef WIN32
#include <unistd.h> /* for ttyname() */ #include <unistd.h> /* for ttyname() */
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#else #else
#include <winsock.h> #include <winsock.h>
#endif /* WIN32 */ #endif /* WIN32 */
#include <errno.h>
#include <fcntl.h>
#if defined(linux) #if defined(linux)
#ifndef SOMAXCONN #ifndef SOMAXCONN
...@@ -58,9 +57,11 @@ ...@@ -58,9 +57,11 @@
#endif /* SOMAXCONN */ #endif /* SOMAXCONN */
#endif /* linux */ #endif /* linux */
#include "libpq/auth.h" #include <postgres.h>
#include "libpq/libpq.h" /* where the declarations go */
#include "libpq/pqcomm.h" #include <libpq/pqsignal.h> /* substitute for <signal.h> */
#include <libpq/auth.h>
#include <libpq/libpq.h> /* where the declarations go */
/* ---------------- /* ----------------
* declarations * declarations
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -48,12 +48,10 @@ ...@@ -48,12 +48,10 @@
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include "postgres.h" #include <postgres.h>
#include "miscadmin.h" #include <miscadmin.h>
#include "utils/elog.h" #include <storage/ipc.h>
#include "storage/ipc.h" #include <libpq/libpq.h>
#include "libpq/pqcomm.h" /* where the declarations go */
#include "libpq/libpq.h"
/* /*
* PacketReceive -- receive a packet on a port. * PacketReceive -- receive a packet on a port.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* This shouldn't be in libpq, but the monitor and some other * This shouldn't be in libpq, but the monitor and some other
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#include "postgres.h" #include <postgres.h>
#include "libpq/pqsignal.h" #include <libpq/pqsignal.h>
pqsigfunc pqsigfunc
pqsignal(int signo, pqsigfunc func) pqsignal(int signo, pqsigfunc func)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -22,11 +22,10 @@ ...@@ -22,11 +22,10 @@
#include <stdio.h> /* for sprintf() */ #include <stdio.h> /* for sprintf() */
#include <string.h> #include <string.h>
#include "postgres.h" #include <postgres.h>
#include "lib/dllist.h" #include <lib/dllist.h>
#include "libpq/libpq.h" /* where the declarations go */ #include <libpq/libpq.h> /* where the declarations go */
#include "utils/exc.h" #include <utils/exc.h>
#include "utils/palloc.h"
/* ---------------- /* ----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment