[krbdev.mit.edu #2761] CVS Commit
Ken Raeburn via RT
rt-comment at krbdev.mit.edu
Wed Nov 3 03:41:04 EST 2004
With the cache on Mac OS X, and likely to be enabled eventually on other
platforms, this is going to wind up being a non-trivial amount of code on most
platforms, and updating the cache code to work on other configurations is
likely to take a few rounds. Rather than recompile the world and add a bunch
of code to each object file doing name lookups, moving the code into the
support library that already defines the static data (list head, mutex) should
make things simpler.
(TODO: Fix calling conventions for Windows?)
* include/fake-addrinfo.h: Move most of code content into
util/support/fake-addrinfo.c.
(krb5int_getaddrinfo, krb5int_freeaddrinfo, krb5int_getnameinfo,
krb5int_gai_strerror): Declare.
(getaddrinfo, freeaddrinfo, getnameinfo, gai_strerror): Define as macros
mapping to the krb5int_ function names.
* util/support/fake-addrinfo.c: Import most of the contents of
include/fake-addrinfo.h, so we only compile it once.
(krb5int_getaddrinfo, krb5int_freeaddrinfo, krb5int_getnameinfo,
krb5int_gai_strerror): New functions, always defined and exported.
* util/support/libkrb5support.exports: Export the new functions, not the old
_fac symbols.
To generate a diff of this commit:
cvs diff -r1.472 -r1.473 krb5/src/include/ChangeLog
cvs diff -r1.52 -r1.53 krb5/src/include/fake-addrinfo.h
cvs diff -r1.19 -r1.20 krb5/src/util/support/ChangeLog
cvs diff -r1.4 -r1.5 krb5/src/util/support/fake-addrinfo.c
cvs diff -r1.3 -r1.4 krb5/src/util/support/libkrb5support.exports
More information about the krb5-bugs
mailing list