Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 05:48:57 -0700
From:      Randall Stewart <rrs@lakerest.net>
To:        Erik Trulsson <ertr1013@student.uu.se>
Cc:        Bob Johnson <fbsdlists@gmail.com>, net@freebsd.org
Subject:   Re: Observations from an old timer playing with 64 bit numbers...
Message-ID:  <58016669-3751-4E24-A84D-6C9418E78717@lakerest.net>
In-Reply-To: <20100624122913.GA95400@owl.midgard.homeip.net>
References:  <E3C4102C-3106-4D5B-86E5-8D5BDD7FD442@lakerest.net> <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> <EDF1B516-63DC-4595-9690-2B7AB6CA811E@lakerest.net> <AANLkTilU6EoCroqk3LevRgNS_Ghlc9I10foMj5rG48El@mail.gmail.com> <465EA76D-C86C-47B2-8F6E-B60CFDBB087A@lakerest.net> <20100624122913.GA95400@owl.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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
>
>
>
> -- 
> <Insert your favourite quote here.>
> Erik Trulsson
> ertr1013@student.uu.se
>

------------------------------
Randall Stewart
803-317-4952 (cell)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58016669-3751-4E24-A84D-6C9418E78717>