From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ersek, Laszlo" Subject: gethostbyname(3) / IPv6 Date: Thu, 4 Mar 2010 01:14:18 +0100 (CET) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Return-path: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Michael Kerrisk / Linux man-pages Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org Hi, we were having a discussion in the comp.unix.programmer Usenet newsgroup, starting with Message-ID: . Consequently, I'd like to report two bugs (in separate e-mails): (2/2) gethostbyname(3) fails to resolve the IPv6 address "::1", but the manual page says: "If name is an IPv4 or IPv6 address, no lookup is performed and gethostbyname() simply copies name into the h_name field [...]". Debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455762 glibc bug report: http://sourceware.org/bugzilla/show_bug.cgi?id=5479 SUSv3 link for gethostbyname(3): http://www.opengroup.org/onlinepubs/000095399/functions/gethostbyname.html It seems that the glibc behavior is conformant, and the manual page is in error. I'm using the manpages-dev package, version 3.05-1, under Debian Lenny. However, before sending this report, I've verified the bug's existence in the online page under http://www.kernel.org/doc/man-pages/online/pages/man3/gethostbyname.3.html If this goes anywhere on linux-man@vger, please keep me CC'd. Thank you very much, lacos -- 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