From owner-freebsd-standards@FreeBSD.ORG Fri Mar 3 18:45:23 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 E4D8D16A422 for ; Fri, 3 Mar 2006 18:45:23 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D8CC43D45 for ; Fri, 3 Mar 2006 18:45:23 +0000 (GMT) (envelope-from rosti.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 57so721096wri for ; Fri, 03 Mar 2006 10:45:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:x-mailer:mime-version:content-type:content-transfer-encoding; b=ipAEnnCARFax9OW4FVhrGElMtedLTlhKFLHPJhWUQm0wvb5q0zCMGEW4+XfqcI/BBbKcyLIPv3UT2g8G8hYN42K9AKl9/Xgp16wkJrxtcQbl0nbZDvFUAS8oMwxd1JVHV2roRB2JdkQWUBy7sQAggI7EZpNck5vLEE3Y18FXzXE= Received: by 10.64.250.10 with SMTP id x10mr1555635qbh; Fri, 03 Mar 2006 10:45:22 -0800 (PST) Received: from saturn.lan ( [212.143.154.227]) by mx.gmail.com with ESMTP id e13sm1432386qba.2006.03.03.10.45.18; Fri, 03 Mar 2006 10:45:21 -0800 (PST) Date: Fri, 3 Mar 2006 20:45:12 +0200 From: Rostislav Krasny To: freebsd-standards@FreeBSD.org Message-Id: <20060303204512.50b7f709.rosti.bsd@gmail.com> X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: 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, 03 Mar 2006 18:45:24 -0000 Hi, IEEE Std 1003.1 has following gethostbyaddr() prototype: struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type); http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html However FreeBSD has differnet prototype of that function: struct hostent *gethostbyaddr(const char *addr, int len, int type); As you can see, types of first two arguments are different. Is there a good reason for that and could the gethostbyaddr() prototype be adjusted?