Is this LOST??

John Baldwin jhb at FreeBSD.org
Mon May 3 10:50:51 PDT 2004


On Sunday 02 May 2004 01:26 am, Deng XueFeng wrote:
> I found the htonl implemention in libc for i386 is not sync with the
> kern.
>
> sys use bswap for swaping the int. but libc still use xchg.
> IS THIS LOST?

It's because libc still supports 80386 which doesn't have bswap (introduced on 
the 486 IIRC).  The kernel only supports 486+ unless you explicitly build an 
80386 kernel, which won't use bswap for htonl().

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-hackers mailing list