11#define LIBCGLUE_SYS_SOCKET_NO_ALIASES
12#define LIBCGLUE_ARPA_INET_NO_ALIASES
19struct hostent *gethostbyaddr(
const void *addr,
int len,
int type)
21 if (_libcglue_fdman_socket_ops == NULL || _libcglue_fdman_socket_ops->gethostbyaddr == NULL)
26 return _libcglue_fdman_socket_ops->gethostbyaddr(addr, len, type);
31struct hostent *gethostbyname(
const char *name)
33 if (_libcglue_fdman_socket_ops == NULL || _libcglue_fdman_socket_ops->gethostbyname == NULL)
38 return _libcglue_fdman_socket_ops->gethostbyname(name);
42#ifdef F_gethostbyname_r
43int gethostbyname_r(
const char *name,
struct hostent *ret,
char *buf,
size_t buflen,
struct hostent **result,
int *h_errnop)
45 if (_libcglue_fdman_socket_ops == NULL || _libcglue_fdman_socket_ops->gethostbyname_r == NULL)
49 *h_errnop = NO_RECOVERY;
54 return _libcglue_fdman_socket_ops->gethostbyname_r(name, ret, buf, buflen, result, h_errnop);
59void freeaddrinfo(
struct addrinfo *ai)
61 if (_libcglue_fdman_socket_ops == NULL || _libcglue_fdman_socket_ops->freeaddrinfo == NULL)
66 return _libcglue_fdman_socket_ops->freeaddrinfo(ai);
71int getaddrinfo(
const char *nodename,
const char *servname,
const struct addrinfo *hints,
struct addrinfo **res)
73 if (_libcglue_fdman_socket_ops == NULL || _libcglue_fdman_socket_ops->getaddrinfo == NULL)
78 return _libcglue_fdman_socket_ops->getaddrinfo(nodename, servname, hints, res);