From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1795 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: Best bikeshed ever (feature test macros) Date: Wed, 29 Aug 2012 10:59:26 -0700 Message-ID: <20120829105926.4deebc51@newbook> References: <20120824214138.GA17792@brightrain.aerifal.cx> <20120829073442.66c72367@gmail.com> <20120829134939.GS27715@brightrain.aerifal.cx> <503E20B9.7060705@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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346263190 19351 80.91.229.3 (29 Aug 2012 17:59:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2012 17:59:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1796-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 29 19:59:52 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 1T6mYL-0006Ab-4b for gllmg-musl@plane.gmane.org; Wed, 29 Aug 2012 19:59:45 +0200 Original-Received: (qmail 1812 invoked by uid 550); 29 Aug 2012 17:59:42 -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 1804 invoked from network); 29 Aug 2012 17:59:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=AHQx0tttGZKSwtSLpX6xvZoRArzR0mA5VvtdW3TOWn15Xmg4x9CofZaHyUTsTDFySz9dPedVwWgCBLcNA3BnxP/RDVes4kf5RQe2H/NEFObgac6bIggcDDtS93e0azEw9HPHx+YThv/PASyZwSzb0cXLsf2aAjiou3PmIkYQH40=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <503E20B9.7060705@purdue.edu> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:1795 Archived-At: On Wed, 29 Aug 2012 10:01:29 -0400 Gregor Richards wrote: > On 08/29/2012 09:49 AM, Rich Felker wrote: > > On Wed, Aug 29, 2012 at 07:34:42AM +0200, philomath wrote: > >> On Fri, 24 Aug 2012 17:41:38 -0400 > >> Rich Felker wrote: > >> > >> > >>> 1. Leaving everything as it is. > >>> 2. Making the kitchen sink (_GNU_SOURCE) available by default. > >>> 3. Making only some limited subset (e.g. POSIX base) available by > >>> default. > >> The bikeshed should definitely not be colored black. > >> > >> I'd lean towards 3, 1 is fine too. but please not 2, musl's > >> correctness is one of it's unique features... Agreed..._GNU_SOURCE is the kitchen sink _and_ the garbage can as well. > _XOPEN_SOURCE=700 has the advantage that it does include lots of > things, and is a standard, so it's not an arbitrary moving target. > It's probably not sufficient, but I'm not wholly convinced of that. I said _XOPEN_SOURCE=600, with musl's behavior (equivalent to _XOPEN_SOURCE=700 + obsolete extensions). There are a few extensions that occasionally pop up. > _BSD_SOURCE (which on musl apparently implies _XOPEN_SOURCE, which > makes sense since it's not like they're not trying) is better, the > only reason I don't like it is that it's not a standard, so there's > no clear demarcation of what it could imply, and arbitrary new things > from the BSDs could be added at any point. When I prepared the patch, I followed _NETBSD_SOURCE on current-ish NetBSD. It does (did?) not _necessarily_ imply _XOPEN_SOURCE, but there are few places where NetBSD does not make X/Open 700 functionality available. HTH, Isaac Dunham