From owner-freebsd-standards@FreeBSD.ORG Fri May 12 18:03:30 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 6A2DF16B1FF for ; Fri, 12 May 2006 18:03:30 +0000 (UTC) (envelope-from rosti.bsd@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0CCD43D66 for ; Fri, 12 May 2006 18:03:20 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so109261uge for ; Fri, 12 May 2006 11:03:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=G5xrGGmNuAquX+6suR/BrVvpcFsOddFtH9IiYVfElHrDLYyrKz7oolvMssqvCXSlNfOd7re+/kT1LgW4LlBrGTN55D5epC9LwQ51AsXXOfcyW0MHMDu1OR8Abpq6C2n7Ir3Glk8Rbgn8EXpMNM/Nq/aW2Z8spUw/DOQrNX+bmhI= Received: by 10.78.47.9 with SMTP id u9mr573734huu; Fri, 12 May 2006 11:03:19 -0700 (PDT) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id 36sm1991832huc.2006.05.12.11.03.12; Fri, 12 May 2006 11:03:13 -0700 (PDT) Date: Fri, 12 May 2006 21:03:04 +0300 From: Rostislav Krasny To: Hajimu UMEMOTO Message-Id: <20060512210304.51cf2a03.rosti.bsd@gmail.com> In-Reply-To: References: <20060303204512.50b7f709.rosti.bsd@gmail.com> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.17; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 18:03:30 -0000 On Sat, 13 May 2006 00:42:42 +0900 Hajimu UMEMOTO wrote: > 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, Thank you!