From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1032 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: printf POSIX compliance Date: Fri, 8 Jun 2012 19:33:57 -0700 Message-ID: <20120608193357.40fb538d@newbook> References: <20120608144423.GN163@brightrain.aerifal.cx> <20120608145519.GP163@brightrain.aerifal.cx> <20120608150618.GB17860@port70.net> <4FD22C6C.5040704@barfooze.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339209251 23918 80.91.229.3 (9 Jun 2012 02:34:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 02:34:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1033-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 09 04:34:10 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SdBVA-0005zX-UL for gllmg-musl@plane.gmane.org; Sat, 09 Jun 2012 04:34:09 +0200 Original-Received: (qmail 9837 invoked by uid 550); 9 Jun 2012 02:34:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9829 invoked from network); 9 Jun 2012 02:34:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=yBgBuPKlhSqDmENM9az9TOAtMLVVuZcLhh6Sou7egaZD1Ixrby859gXX6QeFp2kqVV83npjb8IWWZ43z1E457UEzTKDnF9N3mKkSn9/lWFQYIS/H/EaKq2MQpYvfwq5RHXAb8bSUZs6a9PqQ47NkrlujtT3H2+XB7usNx4JZGEM=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1032 Archived-At: On Fri, 8 Jun 2012 17:46:10 +0100 Reuben Thomas wrote: > As regards the particular problem with freadahead, looking at the code > suggests a workaround of -DSLOW_BUT_NO_HACKS to avoid trying to build > the FILE-fiddling code. Having looked at that code myself, I think there's some idiotic tests going on: #ifdef __OSNAME .. #else if __system2__ .. #else if SLOW_BUT_NO_HACKS //return 1 #else //build error #endif 1. If I define SLOW_BUT_NO_HACKS, it should be the first test. (if I run MINT and define this, assume I mean it!) 2. If it works with a stub, why do we get an error? I'd suggest more-or-less this approach: -#else if SLOW_BUT_NO_HACKS +#else //return 1 -#else -//build error +//warn "falling back to stub, please port" #endif Of course, I know this isn't the right place to discuss such things--that would be for gnulib. Isaac Dunham