summaryrefslogtreecommitdiffstats
path: root/src/include/fake-addrinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* Change approach for getaddrinfo support. Now, only fake-addrinfo.h isKen Raeburn2002-03-261-528/+0
| | | | | | | | | | | | included, no magic macros need to be defined, and no special care needs to be taken to identify a unique object file used in all builds of a library/program. All defined functions (if any) are static in each object file, and declared inline under gcc so they can be more easily eliminated. Simplifies maintenance, and worst case should add no more than a few KB to libraries and programs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14291 dc483132-0cff-0310-8789-dd5450dbe970
* Restructure a little to permit wrapping a system implementation of getaddrinfoKen Raeburn2002-03-121-73/+226
| | | | | | | | | 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
* * fake-addrinfo.c (_XOPEN_SOURCE_EXTENDED): Define if not defined, and if notKen Raeburn2002-02-191-2/+10
| | | | | | | | Mac or Windows, for duration of inclusion of netdb.h. This gets us the h_errno declaration on HP-UX. (getnameinfo): Cast gethostbyaddr pointer arg to char *, not sockaddr *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14147 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.h: Always check for FAI_PREFIX, not just when fake getaddrinfoKen Raeburn2002-02-101-0/+47
| | | | | | | | | support is needed. (fixup_addrinfo): Declare. * fake-addrinfo.c (fixup_addrinfo): New function, fixes up breakage in AIX and GNU implementations (so far) of getaddrinfo. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14139 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c (freeaddrinfo): Do not free NULL pointersEzra Peisach2001-10-301-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13905 dc483132-0cff-0310-8789-dd5450dbe970
* use a different macro in fake-addrinfo.h to tell fake-addrinfo.c to define fnsKen Raeburn2001-08-311-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13717 dc483132-0cff-0310-8789-dd5450dbe970
* * fake-addrinfo.c (getnameinfo): Cast address argument to gethostbyaddrKen Raeburn2001-08-301-1/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13700 dc483132-0cff-0310-8789-dd5450dbe970
* copyrightsKen Raeburn2001-08-301-0/+41
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13692 dc483132-0cff-0310-8789-dd5450dbe970
* split fake getaddrinfo implementation off into a separate fileKen Raeburn2001-08-291-0/+270
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13687 dc483132-0cff-0310-8789-dd5450dbe970