[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: |
Roland McGrath |
Subject: |
[Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes |
Date: |
Wed, 3 Mar 2004 14:53:26 -0800 |
> 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 latter I think is a bad idea because it is prone to
errors arising in the form of divergence between getopt and argp vis a vis
command line syntax details, as well as just being undesireable duplication
of code.
- [Bug-gnulib] [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Marcus Brinkmann, 2004/03/06
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Ulrich Drepper, 2004/03/06
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Roland McGrath, 2004/03/06
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Ulrich Drepper, 2004/03/06
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes,
Roland McGrath <=
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Marcus Brinkmann, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Marcus Brinkmann, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Marcus Brinkmann, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Roland McGrath, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Ulrich Drepper, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Marcus Brinkmann, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Paul Eggert, 2004/03/10
- [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, Ulrich Drepper, 2004/03/10
Re: [Bug-gnulib] Re: [PATCH] getopt, argp - reentrant getopt interface, argp fixes, James Youngman, 2004/03/10