gethostbyname.3: gai_strerror() is the modern replacement for herror() and hstrerror()

Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-09-04 09:18:39 +02:00
parent 930c9b6d23
commit 7d0ec5b670
1 changed files with 7 additions and 4 deletions

View File

@ -131,14 +131,17 @@ none
.PD
.SH DESCRIPTION
The
.BR gethostbyname* ()
.BR gethostbyname* (),
.BR gethostbyaddr* (),
.BR herror (),
and
.BR gethostbyaddr* ()
.BR hstrerror ()
functions are obsolete.
Applications should use
.BR getaddrinfo (3)
.BR getaddrinfo (3),
.BR getnameinfo (3),
and
.BR getnameinfo (3)
.BR gai_strerror (3)
instead.
The