[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp

From: Marcus Brinkmann
Subject: [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes
Date: Sat, 06 Mar 2004 21:19:25 +0100
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Wed, 3 Mar 2004 14:53:26 -0800,
Roland McGrath wrote:
> > Then the interface is misused this way.  getopt explicitly is not thread
> > safe in POSIX because of its restricted use.
> We are talking about argp here, really.  I hope you won't claim such uses
> were not part of the original intent of argp, because they most certainly
> were.  The reason for changing getopt is to make it a suitable subroutine
> for a cleaned-up argp.  The other alternatives are to make such new entry
> points wholly internal, just to be used by argp, or rewrite argp not to use
> getopt at all.

The attached patch does make the new entry point wholly internal.
It's a replacement for the original three patches.  The same
considerations as in my original mail (except for the discussion of
the external getopt interface of course) still apply.


Attachment: libc-argp2.diff
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]