* gethostbyname
@ 2013-08-11 22:04 Jon Grant
[not found] ` <CAGc9EveL=F15GLtZYi22KHVf8Obai5Fx1kuC8ppDVx_LaJWkJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jon Grant @ 2013-08-11 22:04 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello
Where on this page it talks about obsolete herror() and hstrerror(),
could it highlight the functions that should be used instead. I am not
sure what is the replacement, but pehaps it would return
HOST_NOT_FOUND as a string?
http://man7.org/linux/man-pages/man3/gethostbyname.3.html
With best regards, Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gethostbyname
[not found] ` <CAGc9EveL=F15GLtZYi22KHVf8Obai5Fx1kuC8ppDVx_LaJWkJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-09-04 7:20 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-09-04 7:20 UTC (permalink / raw)
To: Jon Grant; +Cc: Michael Kerrisk, linux-man-u79uwXL29TY76Z2rM5mHXA
On 08/12/13 00:04, Jon Grant wrote:
> Hello
>
> Where on this page it talks about obsolete herror() and hstrerror(),
> could it highlight the functions that should be used instead. I am not
> sure what is the replacement, but pehaps it would return
> HOST_NOT_FOUND as a string?
>
> http://man7.org/linux/man-pages/man3/gethostbyname.3.html
Hi Jon,
I applied the patch below.
Cheers,
Michael
diff --git a/man3/gethostbyname.3 b/man3/gethostbyname.3
index 23a11bf..9be2c28 100644
--- a/man3/gethostbyname.3
+++ b/man3/gethostbyname.3
@@ -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
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-04 7:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-11 22:04 gethostbyname Jon Grant
[not found] ` <CAGc9EveL=F15GLtZYi22KHVf8Obai5Fx1kuC8ppDVx_LaJWkJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-04 7:20 ` gethostbyname Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).