From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4042 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: GLOB_BRACE Date: Mon, 16 Sep 2013 08:50:49 -0400 Message-ID: <20130916125049.GG20515@brightrain.aerifal.cx> References: 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 1379335863 22517 80.91.229.3 (16 Sep 2013 12:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2013 12:51:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4046-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 16 14:51:07 2013 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 1VLYGe-0002pA-82 for gllmg-musl@plane.gmane.org; Mon, 16 Sep 2013 14:51:04 +0200 Original-Received: (qmail 19522 invoked by uid 550); 16 Sep 2013 12:51:02 -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 19514 invoked from network); 16 Sep 2013 12:51:02 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4042 Archived-At: On Sun, Sep 15, 2013 at 10:57:20PM +0200, Paul Schutte wrote: > Hi, > > I have hit the next stumbling block (show stopper): > > src/shared/util.c: In function 'glob_exists': > src/shared/util.c:4376:36: error: 'GLOB_BRACE' undeclared (first use in > this function) > src/shared/util.c:4376:36: note: each undeclared identifier is reported > only once for each function it appears in > > > I see this is and non-standard posix extension. I guess that is it for > systemd for now then. The correct action for programs that need GNU functionality like this is to include their own copy of the GNU function (usually as part of gnulib) and use it if the system does not have it. In the case of GLOB_BRACE and the other GNU extensions to glob/fnmatch, it's not clear to me that they admit an efficient in-place implementation, and I doubt they do. That's why musl does not support them. Rich