postgresql/src/interfaces/libpq
Andres Freund 0ba99c84e8 Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h.
All postgres internal usages are replaced, it's just libpq example
usages that haven't been converted. External users of libpq can't
generally rely on including postgres internal headers.

Note that this includes replacing open-coded byte swapping of 64bit
integers (using two 32 bit swaps) with a single 64bit swap.

Where it looked applicable, I have removed netinet/in.h and
arpa/inet.h usage, which previously provided the relevant
functionality. It's perfectly possible that I missed other reasons for
including those, the buildfarm will tell.

Author: Andres Freund
Discussion: https://postgr.es/m/20170927172019.gheidqy6xvlxb325@alap3.anarazel.de
2017-10-01 15:36:14 -07:00
..
po Translation updates 2017-08-07 13:55:34 -04:00
test Fix script name in README. 2017-06-09 12:05:03 +03:00
.gitignore Add missing erand48.c to libpq/.gitignore. 2017-04-20 16:31:28 -04:00
exports.txt Add PQencryptPasswordConn function to libpq, use it in psql and createuser. 2017-05-03 11:19:07 +03:00
fe-auth-scram.c Tweak some SCRAM error messages and code comments 2017-08-23 12:29:38 -04:00
fe-auth.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
fe-auth.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
fe-connect.c Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. 2017-10-01 15:36:14 -07:00
fe-exec.c Reduce excessive dereferencing of function pointers 2017-09-07 13:56:09 -04:00
fe-lobj.c Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. 2017-10-01 15:36:14 -07:00
fe-misc.c Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. 2017-10-01 15:36:14 -07:00
fe-print.c In psql, use PSQL_PAGER in preference to PAGER, if it's set. 2017-09-05 12:02:13 -04:00
fe-protocol2.c Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. 2017-10-01 15:36:14 -07:00
fe-protocol3.c Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h. 2017-10-01 15:36:14 -07:00
fe-secure-openssl.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
fe-secure.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
libpq-events.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
libpq-events.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
libpq-fe.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
libpq-int.h Allow multiple hostaddrs to go with multiple hostnames. 2017-07-10 12:28:57 +03:00
libpq.rc.in Stamp HEAD as 11devel. 2017-08-14 18:08:30 -04:00
Makefile Add newly-symlinked files to "make clean" target. 2017-04-08 14:25:45 -04:00
nls.mk Translation updates 2017-08-07 13:55:34 -04:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pqexpbuffer.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
pthread-win32.c Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
win32.h Remove support for bcc and msvc standalone libpq builds 2017-04-11 15:22:21 +02:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.