Re: gethostbyname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux