From owner-freebsd-standards@FreeBSD.ORG Fri May 12 15:42:58 2006 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E948D16A75C for ; Fri, 12 May 2006 15:42:58 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ED4B43D60 for ; Fri, 12 May 2006 15:42:49 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:D07LmfSzUVi7Pc6prmGgBobY6MZQmAEuftUWhoBnIflMcq/S4qpU8p7hvz9shMA+@kasuga-iwi.mahoroba.org [IPv6:3ffe:501:185b:8010:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.6/8.13.6) with ESMTP/inet6 id k4CFggDI070039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 May 2006 00:42:43 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sat, 13 May 2006 00:42:42 +0900 Message-ID: From: Hajimu UMEMOTO To: Rostislav Krasny In-Reply-To: <20060303204512.50b7f709.rosti.bsd@gmail.com> References: <20060303204512.50b7f709.rosti.bsd@gmail.com> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386--freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.1-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.1.5 (ameno.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Sat, 13 May 2006 00:42:44 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ameno.mahoroba.org Cc: freebsd-standards@FreeBSD.org Subject: Re: gethostbyaddr() X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 15:42:59 -0000 Hi, >>>>> On Fri, 3 Mar 2006 20:45:12 +0200 >>>>> Rostislav Krasny said: rosti> IEEE Std 1003.1 has following gethostbyaddr() prototype: rosti> struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type); rosti> http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html rosti> However FreeBSD has differnet prototype of that function: rosti> struct hostent *gethostbyaddr(const char *addr, int len, int type); rosti> As you can see, types of first two arguments are different. Is there a rosti> good reason for that and could the gethostbyaddr() prototype be adjusted? Yup, perhaps, it is just because historical reason. I've just committed the fix into HEAD. However, it breaks ABI compatibility on 64 bit arch. So, the 2nd argument is still `int' on 64 bit arch. I'll change it when libc major version will be bumped. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/