From owner-freebsd-chat Tue May 1 9:38:15 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mx7.airmail.net (mxall.airmail.net [209.196.77.104]) by hub.freebsd.org (Postfix) with ESMTP id E228037B423 for ; Tue, 1 May 2001 09:38:12 -0700 (PDT) (envelope-from jason@smethers.net) Received: from mail2.iadfw.net ([206.66.12.234]) by mx7.airmail.net with smtp (Exim 3.16 #10) id 14udEH-00014U-00 for chat@FreeBSD.ORG; Tue, 01 May 2001 11:42:25 -0500 Received: from jason from [64.31.204.8] by mail2.iadfw.net (/\##/\ Smail3.1.30.16 #30.50) with smtp for sender: id ; Tue, 1 May 2001 11:38:24 -0500 (CDT) Message-ID: <002c01c0d25d$10af76a0$08cc1f40@pdq.net> From: "Jason Smethers" To: References: <20010430172143.A9910@Odin.AC.HMC.Edu> Subject: Re: BSD libc for Linux? Date: Tue, 1 May 2001 11:37:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > At 5:21 PM -0700 4/30/01, Brooks Davis wrote: > >For lack of any where better to ask, I'll try chat. Does any one know > >of a working port of a BSD libc for a modern Linux (RedHat 6.x, SuSE 6.y, > >etc.) I ask because I've got some scientific code that's more or less > >pure ANSI C that works just fine producing the same or nearly the same > >results on FreeBSD, Solaris, Irix, and even Alpha Linux, but on i386 > >Linux it produces wildly different (though consistant) results. I'm > >hoping for an easy to way to figure out it it's the kernel or glibc. The statistical differences may be a result of your programs use of the rand() family. Linux's GNU libc decided not to implement these functions for backwards compatibility. Instead it aliases these functions to the random() family. You can find at least one discussion about this in the mail archives during a discussion of the random device some months back. - Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message