This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] getopt,argp - reentrant getopt interface, argp fixes
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Marcus Brinkmann <marcus dot brinkmann at ruhr-uni-bochum dot de>, libc-alpha at sources dot redhat dot com, bug-gnulib at gnu dot org
- Date: Wed, 03 Mar 2004 14:48:21 -0800
- Subject: Re: [PATCH] getopt,argp - reentrant getopt interface, argp fixes
- Organization: Red Hat, Inc.
- References: <200403032245.i23MjHrZ009874@magilla.sf.frob.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roland McGrath wrote:
> argp is not only used for command-line arguments. It is used to parse
> options given by client requests at run time.
Then the interface is misused this way. getopt explicitly is not thread
safe in POSIX because of its restricted use.
- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFARmC12ijCOnn/RHQRAvY7AJ0V7S7xP47hcyb2QxfFI/vvyM8f5ACgjMSg
/57bBAKPkTEdHZ6ghSj5wk4=
=YqOL
-----END PGP SIGNATURE-----