From owner-freebsd-hackers@FreeBSD.ORG Mon May 3 18:04:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 963AC16A4CE; Mon, 3 May 2004 18:04:53 -0700 (PDT) Received: from hotmail.com (bay2-dav45.bay2.hotmail.com [65.54.246.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A3D243D45; Mon, 3 May 2004 18:04:53 -0700 (PDT) (envelope-from dsnofe@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 3 May 2004 18:04:53 -0700 Received: from 61.147.223.15 by bay2-dav45.bay2.hotmail.com with DAV; Tue, 04 May 2004 01:04:53 +0000 X-Originating-IP: [61.147.223.15] X-Originating-Email: [dsnofe@hotmail.com] X-Sender: dsnofe@hotmail.com Date: Tue, 04 May 2004 09:04:53 +0800 From: Deng XueFeng To: John Baldwin In-Reply-To: <200405031322.37241.jhb@FreeBSD.org> References: <20040502132115.C583.DSNOFE@hotmail.com> <200405031322.37241.jhb@FreeBSD.org> Message-Id: <20040504090033.B046.DSNOFE@hotmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.09.01 [CN] X-OriginalArrivalTime: 04 May 2004 01:04:53.0265 (UTC) FILETIME=[CEBC1810:01C43173] cc: hackers Subject: Re: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 01:04:53 -0000 > 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? and if wanna 80386 support, 4-stable can do that. Sincerely, Deng XueFeng