[PATCH] getopt,argp - reentrant getopt interface, argp fixes

Ulrich Drepper drepper@redhat.com
Wed Mar 3 22:48:00 GMT 2004


-----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-----



More information about the Libc-alpha mailing list