From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/679 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: Fix function definitions. Date: Thu, 5 Apr 2012 14:06:00 -0700 Message-ID: <20120405140600.7ef5c1fc@newbook> References: <1331280854-9080-1-git-send-email-gf@unixsol.org> <4F59BD70.9020105@unixsol.org> <20120309083358.GA184@brightrain.aerifal.cx> <4F59CA50.5060407@unixsol.org> <4F5A1D89.9090304@landley.net> <20120309163853.GF184@brightrain.aerifal.cx> <20120316120542.82a478fe.idunham@lavabit.com> <20120316224855.GA22075@brightrain.aerifal.cx> 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 1333659979 1853 80.91.229.3 (5 Apr 2012 21:06:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2012 21:06:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-680-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 05 23:06:18 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 1SFtsn-0003CR-GH for gllmg-musl@plane.gmane.org; Thu, 05 Apr 2012 23:06:17 +0200 Original-Received: (qmail 15434 invoked by uid 550); 5 Apr 2012 21:06:16 -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 15426 invoked from network); 5 Apr 2012 21:06:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=V2tFOa09dSBsC0zpR1R4kQoQnJECIwpyHM+KoTsrXUNlWglW+w4Mp3WBAJH4Dds1dRbfO5uRggLw2FMLdREk4nXsUEGgb2uIHuPBe6al1n7bSSjGxv/9HyjHPIrK95k/Of0dVctF5/bJSlrmcLsYn0Qh4IZue8XuiynHqItYwPQ=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20120316224855.GA22075@brightrain.aerifal.cx> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:679 Archived-At: On Fri, 16 Mar 2012 18:48:55 -0400 Rich Felker wrote: .. > Perhaps including features.h without defining any feature test macros > at all could be construed as "asking for the kitchen sink", but I find > that interpretation a bit doubtful since the behavior (on glibc) is > unchanged from what they would have gotten without including it. > It's at least asking for BSD-style stuff, instead of straight ANSI. It certainly isn't asking for the full _GNU_SOURCE. > Could you give a summary of what the differences in _BSD_SOURCE and > _GNU_SOURCE are? My impression (possibly wrong) is that on glibc it's > pretty close to _GNU_SOURCE but without the nasty intentional GNU > incompatibilities (like GNU basename) and with some/most of the GNU or > Linux-specific extensions missing. ... > In any case I'm interested in adding _BSD_SOURCE if you or someone > else will help with getting it right. I started on , and noticed a namespace issue: ualarm, usleep, and a few other functions should actually NOT be defined on _GNU_SOURCE (per the glibc headers and manpages), but only on _BSD_SOURCE or _XOPEN_SOURCE >= 500 Instead, they are defined only on _GNU_SOURCE. (There's also the L_SET & co. aliases for SEEK_* to do, but that's trivial). I'll have a patch once unistd.h is ready. There are a few more functions to move around, though--I have to locate all the problem ones. Should be ready in a day or two. Isaac Dunham