Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 2004 13:22:37 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Cc:        Deng XueFeng <dsnofe@hotmail.com>
Subject:   Re: Is this LOST??
Message-ID:  <200405031322.37241.jhb@FreeBSD.org>
In-Reply-To: <20040502132115.C583.DSNOFE@hotmail.com>
References:  <20040502132115.C583.DSNOFE@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405031322.37241.jhb>