From owner-freebsd-net@FreeBSD.ORG Thu Jun 24 12:49:07 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 656A31065678 for ; Thu, 24 Jun 2010 12:49:07 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:213:d4ff:fef3:2d8d]) by mx1.freebsd.org (Postfix) with ESMTP id DB5958FC19 for ; Thu, 24 Jun 2010 12:49:06 +0000 (UTC) Received: from [192.168.2.184] (pool-96-238-218-232.snfcca.dsl-w.verizon.net [96.238.218.232]) (authenticated bits=0) by lakerest.net (8.14.3/8.14.3) with ESMTP id o5OCn2tb053366 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 24 Jun 2010 08:49:05 -0400 (EDT) (envelope-from rrs@lakerest.net) DKIM-Signature: a=rsa-sha1; c=simple/simple; d=lakerest.net; s=mail; t=1277383746; h=Cc:Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:References: X-Mailer; b=pAJMDfIUyrP0Hdl8WrpAXObU7tU8UFrD1/egR1bdjThnpb1s+b81lIN VccnsTPwYhOEFyA1fCGhFfV6tA3+ZBQ== Message-Id: <58016669-3751-4E24-A84D-6C9418E78717@lakerest.net> From: Randall Stewart To: Erik Trulsson In-Reply-To: <20100624122913.GA95400@owl.midgard.homeip.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 24 Jun 2010 05:48:57 -0700 References: <20100622221228.GA93249@onelab2.iet.unipi.it> <20100623232402.X45536@delplex.bde.org> <9C936FEB-4858-4D8D-89CC-182EA3A80365@lakerest.net> <20100623171222.GA7981@onelab2.iet.unipi.it> <4C226354.80601@elischer.org> <465EA76D-C86C-47B2-8F6E-B60CFDBB087A@lakerest.net> <20100624122913.GA95400@owl.midgard.homeip.net> X-Mailer: Apple Mail (2.936) Cc: Bob Johnson , net@freebsd.org Subject: Re: Observations from an old timer playing with 64 bit numbers... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 12:49:07 -0000 On Jun 24, 2010, at 5:29 AM, Erik Trulsson wrote: > On Thu, Jun 24, 2010 at 05:19:29AM -0700, Randall Stewart wrote: >> Bob: >> >> Thats strange... when I do >> >> man byteorder >> >> (on my FreeBSD 8.0 system upgraded to head .. buildworld/ >> installworld/ >> et.al) >> >> I get the same man age showing for both >> >> man ntohl >> >> and >> >> man byteorder > > But if you do 'man 9 byteorder' you will get a different manpage. > (byteorder(3) and byteorder(9) are different manpages, and even > reference > each other in the SEE ALSO sections.) Now if thats not confusing I don't know what is.. Back to my last statement to Lugi.. We need something more explicit IMO.. something that says in ntohl man page (if we want folks to find an use be64): "Byte order conversions for 64 bit quantities should use the be64toh() macros." And also even more distressing I am talking about things as a application writer here.. not kernel developer... section 9 is from "FreeBSD Kernel Developer's Manual" Which gives one the impression (however untrue) that its for a kernel developer and not for user land.. R > > > > -- > > Erik Trulsson > ertr1013@student.uu.se > ------------------------------ Randall Stewart 803-317-4952 (cell)