mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: GLOB_BRACE
Date: Mon, 16 Sep 2013 08:50:49 -0400	[thread overview]
Message-ID: <20130916125049.GG20515@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAKHv7pi7ZGHZJ_J-+M8mNd-QBJKKRNw3_zB_0SnP5brWj7HfPA@mail.gmail.com>

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


  reply	other threads:[~2013-09-16 12:50 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-15 20:57 GLOB_BRACE Paul Schutte
2013-09-16 12:50 ` Rich Felker [this message]
2013-09-16 13:40   ` GLOB_BRACE Paul Schutte
2013-09-16 13:47     ` GLOB_BRACE Justin Cormack
2013-09-16 13:51     ` GLOB_BRACE Luca Barbato
2013-09-16 14:18       ` GLOB_BRACE Paul Schutte
2013-09-23 14:08     ` GLOB_BRACE Rob Landley
2013-09-23 14:35       ` GLOB_BRACE Luca Barbato
2013-09-23 15:03         ` GLOB_BRACE Rich Felker
2013-09-23 15:21           ` GLOB_BRACE Kurt H Maier
2013-09-23 15:27           ` GLOB_BRACE Luca Barbato
2013-09-25 22:46           ` GLOB_BRACE Paul Schutte
2013-09-26  0:02             ` GLOB_BRACE Rich Felker
2013-09-26  3:35             ` GLOB_BRACE Luca Barbato
2013-09-26  4:48               ` GLOB_BRACE Daniel Cegiełka
2013-09-26 18:23               ` GLOB_BRACE Rich Felker
2013-09-26 18:30                 ` GLOB_BRACE Daniel Cegiełka
2013-09-26 18:38                   ` GLOB_BRACE Rich Felker
2013-09-26 18:50                     ` GLOB_BRACE Daniel Cegiełka
2013-09-26 18:59                       ` GLOB_BRACE Rich Felker
2013-09-26 19:10                         ` GLOB_BRACE Daniel Cegiełka
2013-09-26 19:13                           ` GLOB_BRACE Rich Felker
2013-09-26 19:24                             ` GLOB_BRACE Daniel Cegiełka
2013-09-26 19:06                       ` GLOB_BRACE John Spencer
2013-09-26 20:21                         ` GLOB_BRACE Daniel Cegiełka
2013-09-26 20:41                           ` GLOB_BRACE Daniel Cegiełka
2013-09-27 12:23                             ` GLOB_BRACE Anthony G. Basile
2013-09-27 12:53                               ` GLOB_BRACE Daniel Cegiełka
2013-09-27 13:06                               ` GLOB_BRACE Daniel Cegiełka
2013-09-29 21:51                                 ` GLOB_BRACE Anthony G. Basile
2013-09-29 21:57                                   ` GLOB_BRACE Rich Felker
2013-09-26 19:16                 ` GLOB_BRACE Christian Neukirchen
2013-09-23 15:18         ` GLOB_BRACE Rob Landley
2013-09-23 15:31           ` GLOB_BRACE Kurt H Maier
2013-09-23 15:54           ` GLOB_BRACE Rich Felker
2013-09-23 17:22             ` GLOB_BRACE Rob Landley
2013-09-23 19:55               ` GLOB_BRACE Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130916125049.GG20515@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).