Observations from an old timer playing with 64 bit numbers...

Randall Stewart rrs at lakerest.net
Thu Jun 24 12:49:07 UTC 2010


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 at student.uu.se
>

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



More information about the freebsd-net mailing list