pgsql: Remove replacement code for getaddrinfo.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove replacement code for getaddrinfo.
Date: 2022-08-13 22:02:48
Message-ID: E1oMzDT-000eLH-2Q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove replacement code for getaddrinfo.

SUSv3, all targeted Unixes and modern Windows have getaddrinfo() and
related interfaces. Drop the replacement implementation, and adjust
some headers slightly to make sure that the APIs are visible everywhere
using standard POSIX headers and names.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5579388d2dda60ded329a4623f9b4529e91a1b24

Modified Files
--------------
config/c-library.m4 | 11 -
configure | 42 ----
configure.ac | 11 -
src/backend/libpq/auth.c | 1 +
src/backend/libpq/hba.c | 1 +
src/bin/initdb/initdb.c | 3 +-
src/include/common/ip.h | 4 +-
src/include/getaddrinfo.h | 162 -------------
src/include/libpq/libpq-be.h | 8 -
src/include/pg_config.h.in | 6 -
src/include/port/win32/netdb.h | 8 +
src/include/replication/walreceiver.h | 4 +-
src/interfaces/libpq/fe-connect.c | 1 +
src/interfaces/libpq/libpq-int.h | 3 +-
src/port/Makefile | 4 -
src/port/getaddrinfo.c | 439 ----------------------------------
src/tools/msvc/Mkvcbuild.pm | 2 +-
src/tools/msvc/Solution.pm | 2 -
18 files changed, 22 insertions(+), 690 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2022-08-13 23:17:48 pgsql: Add new win32 header to headerscheck and cpluspluscheck
Previous Message Thomas Munro 2022-08-13 21:06:32 pgsql: Remove configure probe for struct sockaddr_storage.