Mercurial > hg > octave-kai > gnulib-hg
view modules/getaddrinfo @ 6224:85d0a6143cc4
* modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
LGPL.
* modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
Make canon-host require getaddrinfo.
* m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
AC_LIBSOURCE canon-host.h. Call...
(gl_PREREQ_CANON_HOST): ...this new function, which requires
gl_GETADDRINFO.
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when
needed.
Return usable errors from canon-host.
* lib/canon-host.h: New file.
* lib/canon-host.c (canon_host): Wrap...
(canon_host_r): ...this new function, which now relies exclusively on
getaddrinfo.
(ch_strerror): New function.
(last_cherror): New global.
* lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
interface.
(getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic
on void *.
(freeaddrinfo): Free ai->ai_canonname when set.
author | Derek R. Price <derek@ximbiot.com> |
---|---|
date | Tue, 13 Sep 2005 04:15:15 +0000 |
parents | cd3c62f1332e |
children | 0962ab88db9f |
line wrap: on
line source
Description: getaddrinfo() function: Get address information. Files: lib/getaddrinfo.h lib/getaddrinfo.c lib/gai_strerror.c m4/getaddrinfo.m4 m4/sockpfaf.m4 Depends-on: restrict gettext-h stdbool strdup configure.ac: gl_GETADDRINFO Makefile.am: lib_SOURCES += getaddrinfo.h Include: "getaddrinfo.h" License: LGPL Maintainer: Simon Josefsson