diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-20 18:23:33 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-20 18:23:33 +0000 |
commit | bf872f0aff435cce475279d56f8f981f3044ba77 (patch) | |
tree | 47b6585f9991ae74e4ed6e57be50e7436472ffcb /src/include/libpq/pqcomm.h | |
parent | 7d5770eaf29c494e9a7830ae02c92a3bec202ab2 (diff) |
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] libpq/pqcomm stuff and Solaris byte order
I decided to go ahead with the required changes since no one else seems
to. I don't guarantee that it is perfect but with these changes the
package actually compiles. While I was at it I added to the Sparc
Solaris header to define the byte order. Note that NetBSD sets this
in the system headers so it wasn't required there.
In particular, someone may want to check whether I removed the correct
84 lines from backend/libpq/pqcomprim.c.
Diffstat (limited to 'src/include/libpq/pqcomm.h')
-rw-r--r-- | src/include/libpq/pqcomm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index 99fc21bfd86..53f0b970eb5 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.h,v 1.9 1997/03/16 18:50:47 scrappy Exp $ + * $Id: pqcomm.h,v 1.10 1997/03/20 18:23:03 scrappy Exp $ * * NOTES * Some of this should move to libpq.h @@ -126,8 +126,16 @@ extern int PQAsyncNotifyWaiting; /* in pqcompriv.c */ int pqGetShort(int *, FILE *); int pqGetLong(int *, FILE *); +int pqGetNBytes(char *, size_t, FILE *); +int pqGetString(char *, size_t, FILE *); +int pqGetByte(FILE *); + int pqPutShort(int, FILE *); int pqPutLong(int, FILE *); +int pqPutNBytes(const char *, size_t, FILE *); +int pqPutString(const char *, FILE *); +int pqPutByte(int, FILE *); + /* * prototypes for functions in pqpacket.c */ |