File tree 12 files changed +104
-102
lines changed
12 files changed +104
-102
lines changed Original file line number Diff line number Diff line change 4
4
# Makefile for libpq subsystem (backend half of libpq interface)
5
5
#
6
6
# IDENTIFICATION
7
- # $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.2 1996/10/31 10:37:47 scrappy Exp $
7
+ # $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.3 1996/11/06 08:48:21 scrappy Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
11
11
SRCDIR = ../..
12
12
include ../../Makefile.global
13
13
14
- INCLUDE_OPT = -I../port/$(PORTNAME ) \
14
+ INCLUDE_OPT = -I.. \
15
+ -I../port/$(PORTNAME ) \
15
16
-I../../include
16
17
17
18
CFLAGS+ =$(INCLUDE_OPT )
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.6 1996/11/06 06 :48:06 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.7 1996/11/06 08 :48:23 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
62
62
#include <netinet/in.h>
63
63
#include <arpa/inet.h>
64
64
65
- #include " postgres.h"
66
- #include " miscadmin.h"
65
+ #include < postgres.h>
66
+ #include < miscadmin.h>
67
67
68
- #include " libpq/auth.h"
69
- #include " libpq/libpq.h"
70
- #include " libpq/libpq-be.h"
71
- #include " libpq/hba.h"
68
+ #include < libpq/auth.h>
69
+ #include < libpq/libpq.h>
70
+ #include < libpq/libpq-be.h>
71
+ #include < libpq/hba.h>
72
72
73
73
/*----------------------------------------------------------------
74
74
* common definitions for generic fe/be routines
@@ -129,7 +129,7 @@ static n_authsvcs = sizeof(authsvcs) / sizeof(struct authsvc);
129
129
*----------------------------------------------------------------
130
130
*/
131
131
132
- #include " krb.h"
132
+ #include < krb.h>
133
133
134
134
#ifdef FRONTEND
135
135
/* moves to src/libpq/fe-auth.c */
@@ -228,7 +228,7 @@ return(STATUS_ERROR);
228
228
*----------------------------------------------------------------
229
229
*/
230
230
231
- #include " krb5/krb5.h"
231
+ #include < krb5/krb5.h>
232
232
233
233
/*
234
234
* pg_an_to_ln -- return the local name corresponding to an authentication
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.2 1996/11/06 06 :48:10 scrappy Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-dumpdata.c,v 1.3 1996/11/06 08 :48:24 scrappy Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
30
30
*
31
31
*/
32
32
#include <string.h>
33
- #include "postgres.h"
34
33
35
- #include "lib/dllist.h"
36
- #include "libpq/libpq-be.h"
34
+ #include <postgres.h>
37
35
38
- #include "access/heapam.h"
39
- #include "access/htup.h"
40
- #include "storage/buf.h"
41
- #include "utils/memutils.h"
42
- #include "utils/palloc.h"
43
- #include "fmgr.h"
44
- #include "utils/mcxt.h"
45
- #include "utils/elog.h"
46
- #include "utils/exc.h"
47
-
48
- #include "utils/syscache.h"
49
- #include "catalog/pg_type.h"
50
- #include "catalog/catalog.h"
51
- #include "access/printtup.h"
36
+ #include <lib/dllist.h>
37
+ #include <libpq/libpq-be.h>
38
+ #include <access/heapam.h>
39
+ #include <access/htup.h>
40
+ #include <storage/buf.h>
41
+ #include <utils/memutils.h>
42
+ #include <fmgr.h>
43
+ #include <utils/mcxt.h>
44
+ #include <utils/exc.h>
45
+ #include <utils/syscache.h>
46
+ #include <catalog/pg_type.h>
47
+ #include <catalog/catalog.h>
48
+ #include <access/printtup.h>
52
49
53
50
/* ----------------
54
51
* backend portal stack for recursive PQexec calls
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.3 1996/10/31 10:37:49 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.4 1996/11/06 08:48:25 scrappy Exp $
11
11
*
12
12
* NOTES
13
13
* This should be moved to a more appropriate place. It is here
21
21
* closed.
22
22
*-------------------------------------------------------------------------
23
23
*/
24
- #include "postgres.h"
25
- #include "lib/dllist.h"
26
- #include "libpq/libpq.h"
27
- #include "libpq/libpq-fs.h"
28
- #include "nodes/nodes.h"
29
- #include "utils/memutils.h"
30
- #include "lib/fstack.h"
31
- #include "utils/mcxt.h"
32
- #include "utils/palloc.h"
33
-
34
- #include "storage/fd.h" /* for O_ */
35
- #include "storage/large_object.h"
36
-
37
- #include "utils/elog.h"
38
- #include "libpq/be-fsstubs.h"
24
+
25
+ #include <fcntl.h>
26
+ #include <sys/types.h>
27
+ #include <unistd.h>
28
+
29
+ #include <postgres.h>
30
+
31
+ #include <lib/dllist.h>
32
+ #include <libpq/libpq.h>
33
+ #include <libpq/libpq-fs.h>
34
+ #include <nodes/nodes.h>
35
+ #include <utils/memutils.h>
36
+ #include <lib/fstack.h>
37
+ #include <utils/mcxt.h>
38
+ #include <storage/fd.h> /* for O_ */
39
+ #include <storage/large_object.h>
40
+ #include <libpq/be-fsstubs.h>
39
41
40
42
/*#define FSDB 1*/
41
43
#define MAX_LOBJ_FDS 256
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.1.1.1 1996/07/09 06:21:30 scrappy Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.2 1996/11/06 08:48:26 scrappy Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
20
20
* NOTES
21
21
* These routines are compiled into the postgres backend.
22
22
*/
23
- #include " postgres.h"
23
+ #include < postgres.h>
24
24
25
- #include "nodes/pg_list.h"
26
- #include "tcop/dest.h"
27
- #include "tcop/fastpath.h"
28
- #include "tcop/tcopprot.h"
29
- #include "lib/dllist.h"
30
- #include "libpq/libpq-be.h"
31
- #include "fmgr.h"
32
- #include "utils/exc.h"
33
- #include "utils/builtins.h"
34
- #include "utils/elog.h"
35
- #include "utils/palloc.h"
25
+ #include <nodes/pg_list.h>
26
+ #include <tcop/dest.h>
27
+ #include <tcop/fastpath.h>
28
+ #include <tcop/tcopprot.h>
29
+ #include <lib/dllist.h>
30
+ #include <libpq/libpq-be.h>
31
+ #include <fmgr.h>
32
+ #include <utils/exc.h>
33
+ #include <utils/builtins.h>
34
+ #ifndef HAVE_MEMMOVE
35
+ # include <regex/utils.h>
36
+ #else
37
+ # include <string.h>
38
+ #endif
36
39
37
40
/* ----------------------------------------------------------------
38
41
* PQ interface routines
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.9 1996/11/06 06 :48:12 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.10 1996/11/06 08 :48:27 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
21
21
#include <arpa/inet.h>
22
22
#include <unistd.h>
23
23
#if defined(sparc_solaris )
24
- #include " inet_aton.h" /* after I copied it into port/sparc_solaris */
24
+ #include < inet_aton.h> /* after I copied it into port/sparc_solaris */
25
25
#endif
26
26
27
- #include " postgres.h"
28
- #include " miscadmin.h"
29
- #include " libpq/libpq.h"
30
- #include " libpq/pqcomm.h"
31
- #include " libpq/hba.h"
27
+ #include < postgres.h>
28
+ #include < miscadmin.h>
29
+ #include < libpq/libpq.h>
30
+ #include < libpq/pqcomm.h>
31
+ #include < libpq/hba.h>
32
32
33
33
34
34
#define CONF_FILE "pg_hba.conf"
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.3 1996/10/31 10:37:50 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.4 1996/11/06 08:48:28 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
58
58
#include <stdio.h> /* for sprintf() */
59
59
#include <string.h>
60
60
61
- #include " postgres.h"
62
- #include "lib/dllist.h"
63
- #include "libpq/libpq.h" /* where the declarations go */
64
- #include "utils/exc.h"
65
- #include " utils/palloc.h"
61
+ #include < postgres.h>
62
+
63
+ #include <lib/dllist.h>
64
+ #include <libpq/libpq.h> /* where the declarations go */
65
+ #include < utils/exc.h>
66
66
67
67
68
68
/* ----------------------------------------------------------------
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.2 1996/10/31 10:37:51 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portalbuf.c,v 1.3 1996/11/06 08:48:29 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
47
47
* see utils/mmgr/portalmem.c for why. -cim 2/22/91
48
48
*
49
49
*/
50
+ #include <string.h>
50
51
#include <sys/types.h>
51
- #include "postgres.h"
52
52
53
- #include "libpq/libpq.h" /* where the declarations go */
54
- #include "utils/exc.h"
55
- #include "utils/palloc.h"
53
+ #include <postgres.h>
54
+
55
+ #include <libpq/libpq.h> /* where the declarations go */
56
+ #include <utils/exc.h>
56
57
57
58
PortalEntry * * portals = (PortalEntry * * ) NULL ;
58
59
size_t portals_array_size = 0 ;
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.4 1996/10/31 10:37:52 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.5 1996/11/06 08:48:30 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
34
34
* the postgres backend.
35
35
*
36
36
*/
37
-
38
- #include "postgres.h"
39
-
40
- #include "libpq/pqsignal.h" /* substitute for <signal.h> */
41
37
#include <stdio.h>
42
38
#include <string.h>
39
+ #include <errno.h>
40
+ #include <fcntl.h>
41
+ #include <signal.h>
43
42
#ifndef WIN32
44
43
#include <unistd.h> /* for ttyname() */
45
44
#include <sys/types.h>
46
45
#include <sys/socket.h>
47
46
#include <netdb.h>
48
47
#include <netinet/in.h>
48
+ #include <sys/socket.h>
49
+ #include <arpa/inet.h>
49
50
#else
50
51
#include <winsock.h>
51
52
#endif /* WIN32 */
52
- #include <errno.h>
53
- #include <fcntl.h>
54
53
55
54
#if defined(linux )
56
55
#ifndef SOMAXCONN
57
56
#define SOMAXCONN 5 /* from Linux listen(2) man page */
58
57
#endif /* SOMAXCONN */
59
58
#endif /* linux */
60
59
61
- #include "libpq/auth.h"
62
- #include "libpq/libpq.h" /* where the declarations go */
63
- #include "libpq/pqcomm.h"
60
+ #include <postgres.h>
61
+
62
+ #include <libpq/pqsignal.h> /* substitute for <signal.h> */
63
+ #include <libpq/auth.h>
64
+ #include <libpq/libpq.h> /* where the declarations go */
64
65
65
66
/* ----------------
66
67
* declarations
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.1.1.1 1996/07/09 06:21 :31 scrappy Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.2 1996/11/06 08:48 :31 scrappy Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
48
48
#include <fcntl.h>
49
49
#include <errno.h>
50
50
51
- #include "postgres.h"
52
- #include "miscadmin.h"
53
- #include "utils/elog.h"
54
- #include "storage/ipc.h"
55
- #include "libpq/pqcomm.h" /* where the declarations go */
56
- #include "libpq/libpq.h"
51
+ #include <postgres.h>
52
+ #include <miscadmin.h>
53
+ #include <storage/ipc.h>
54
+ #include <libpq/libpq.h>
57
55
58
56
/*
59
57
* PacketReceive -- receive a packet on a port.
Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.2 1996/11/03 06:52:14 scrappy Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/libpq/pqsignal.c,v 1.3 1996/11/06 08:48:32 scrappy Exp $
12
12
*
13
13
* NOTES
14
14
* This shouldn't be in libpq, but the monitor and some other
15
15
* things need it...
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
19
- #include " postgres.h"
19
+ #include < postgres.h>
20
20
21
- #include " libpq/pqsignal.h"
21
+ #include < libpq/pqsignal.h>
22
22
23
23
pqsigfunc
24
24
pqsignal (int signo , pqsigfunc func )
You can’t perform that action at this time.
0 commit comments