From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1811 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Best bikeshed ever (feature test macros) Date: Sun, 2 Sep 2012 13:13:12 -0400 Message-ID: <20120902171312.GF27715@brightrain.aerifal.cx> References: <20120824214138.GA17792@brightrain.aerifal.cx> <50439211.6050504@purdue.edu> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346605866 4654 80.91.229.3 (2 Sep 2012 17:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2012 17:11:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1812-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 02 19:11:08 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 1T8DhQ-0005BG-N6 for gllmg-musl@plane.gmane.org; Sun, 02 Sep 2012 19:11:04 +0200 Original-Received: (qmail 18059 invoked by uid 550); 2 Sep 2012 17:11:01 -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 18048 invoked from network); 2 Sep 2012 17:11:01 -0000 Content-Disposition: inline In-Reply-To: <50439211.6050504@purdue.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1811 Archived-At: On Sun, Sep 02, 2012 at 01:06:25PM -0400, Gregor Richards wrote: > >Leave it as is, this actually helps find bugs in software. A real > >world example is accidentally utilizing gnu extensions in mruby > >(see github mruby bug page for more info). > > The same can be accomplished on any modern libc by using -std=c89 or > -std=c99. You shouldn't have to port to a new libc to find these I'm a bit confused because I suspect the code in question actually wanted POSIX, not just baseline C... > problems, nor should said new libc be designed in such a way that > the majority of software doesn't work on it without additional > complication. Especially when, as I will repeat over and over again, > going through the additional complication to supposedly make your > code more portable WILL INVARIABLY MAKE YOUR CODE LESS PORTABLE. This only applies if you're using extensions. And actually, I'm not sure it's the case. If you add -D_GNU_SOURCE (and no other feature test macros), does that really _hide_ any interfaces on BSD, Darwin, Solaris, or other relevant systems? Rich