From 0d0c0c016d2a6678b776fbfba4875b7e221dde2d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 12 Mar 2002 03:54:58 +0000 Subject: Restructure a little to permit wrapping a system implementation of getaddrinfo and friends in a function that does some fixups on the returned data. Use this for Linux and AIX. Also separate the replacement versions as functions with different names so that Windows can (eventually) use them from a wrapper function if a system version cannot be located. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14262 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/include/ChangeLog') diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 7cfea4524..7e3412655 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,28 @@ +2002-03-11 Ken Raeburn + + * fake-addrinfo.c (fixup_addrinfo): Deleted. + (fake_getaddrinfo, fake_getnameinfo, fake_freeaddrinfo): Renamed + from non-"fake_" versions, and made static. Compile if + NEED_FAKE_GETADDRINFO is defined. + (fake_getnameinfo): Truncate results if provided buffers are too + small. + (getaddrinfo, getnameinfo, freeaddrinfo) [HAVE_FAKE_GETADDRINFO]: + New functions, simple wrappers around the "fake_" versions. + (getaddrinfo, freeaddrinfo) [WRAP_GETADDRINFO]: New functions + which call the system versions via function pointers and then fix + up some known problems in the returned data. + (getnameinfo) [WRAP_GETNAMEINFO]: Likewise. + (gaiptr, faiptr, gniptr) [WRAP_GETADDRINFO || WRAP_GETNAMEINFO]: + New static variables, initialized with addresses of system + versions of getaddrinfo, etc. + * fake-addrinfo.h (fixup_addrinfo): Declaration deleted. + (WRAP_GETADDRINFO): New macro, defined on Linux and AIX. + (getaddrinfo, getnameinfo, freeaddrinfo): Define as macros, and + declare functions, if WRAP_GETADDRINFO is defined or + HAVE_GETADDRINFO is not defined; drop BROKEN_GETADDRINFO check. + (gai_strerror, addrinfo, EAI_*): Define macros and declare + functions only if HAVE_GETADDRINFO isn't defined. + 2002-03-06 Ken Raeburn * krb5.hin (krb5_const): Restore macro definition, but include a -- cgit