Is this LOST??

Kris Kennaway kris at obsecurity.org
Mon May 3 18:49:21 PDT 2004


On Tue, May 04, 2004 at 09:04:53AM +0800, Deng XueFeng wrote:
> > 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().
> Since 5-current kernel do not support 80386.
> why keep libc(5-current) support 80386?

5-current does support 80386, just not in the default GENERIC kernel.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040503/59cb1af1/attachment.bin


More information about the freebsd-hackers mailing list