gethostbyname_r
Name
gethostbyname_r -- find network host database entry matching host name (DEPRECATED)
Synopsis
int
gethostbyname_r
(__const char *__restrict
__name, (struct hostent
*__restrict
__result_buf), char *__restrict
__buf, size_t
__buflen, (struct hostent
**__restrict __result), int *__restrict
__h_errnop);
Description
The gethostbyname_r
function is deprecated;
applications should call getaddrinfo
instead.
gethostbyname_r
is a reentrant version of
gethostbyname
that searches the network host
database for a host name match.