From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/684 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Namespace issues, missing functions, _BSD_SOURCE for unistd.h Date: Thu, 5 Apr 2012 21:52:59 -0400 Message-ID: <20120406015259.GB8803@brightrain.aerifal.cx> References: <20120405155508.0f782675@newbook> <20120406001049.GA8803@brightrain.aerifal.cx> <20120405180307.38e2b00f@newbook> 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: dough.gmane.org 1333677086 16629 80.91.229.3 (6 Apr 2012 01:51:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 01:51:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-685-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 06 03:51:25 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 1SFyKj-0000Kf-5G for gllmg-musl@plane.gmane.org; Fri, 06 Apr 2012 03:51:25 +0200 Original-Received: (qmail 16377 invoked by uid 550); 6 Apr 2012 01:51:24 -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 16369 invoked from network); 6 Apr 2012 01:51:24 -0000 Content-Disposition: inline In-Reply-To: <20120405180307.38e2b00f@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:684 Archived-At: On Thu, Apr 05, 2012 at 06:03:07PM -0700, Isaac Dunham wrote: > > There is no "ANSI" namespace in unistd.h because it's not a standard C > > header but a POSIX header. It's definitely correct for POSIX 2008 base > > as-is without any patching. > Should have checked that. > I guess it will be a rewrite then. > > Which profiles are you aiming to support? Latest versions only for > POSIX, ISO, and X/Open? Or only versions in the past decade? > I don't see any signs of version checks, so I assume you want POSIX2008 > and XOPEN2008 (_XOPEN_SOURCE >= 700) only, and no support for SUSv3. > This will make the patch a lot smaller and cleaner. My aim has always been the minimum set of profiles that will meet real-world needs. Latest-version seems to be fine for that. The only possible issue is interfaces that have been removed, but code that's old enough to still be using interfaces that were marked obsolescent 11 years ago and removed 4 years ago probably needs _GNU_SOURCE or similar anyway.. > > > AFAIK most of these do not exist in musl at the moment. > Guessed that. It was meant as a comment on the status. OK. > > > +#if defined(_BSD_SOURCE) && !defined(L_SET) > > > +#define L_SET > > > +#define L_INCR > > > +#define L_XTND > > > +#endif > Forgot to add the SEEK_SET, etc. here. > Should be > #define L_SET SEEK_SET > ... > hence the placement. OK. Rich