From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Jon Grant <jg-hus3n9K41k0@public.gmane.org>
Cc: Michael Kerrisk
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: gethostbyname
Date: Wed, 04 Sep 2013 09:20:28 +0200 [thread overview]
Message-ID: <5226DF3C.8040607@gmail.com> (raw)
In-Reply-To: <CAGc9EveL=F15GLtZYi22KHVf8Obai5Fx1kuC8ppDVx_LaJWkJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
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
prev parent reply other threads:[~2013-09-04 7:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-11 22:04 gethostbyname Jon Grant
[not found] ` <CAGc9EveL=F15GLtZYi22KHVf8Obai5Fx1kuC8ppDVx_LaJWkJA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-04 7:20 ` Michael Kerrisk (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5226DF3C.8040607@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=jg-hus3n9K41k0@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.