mailing list of musl libc
 help / color / mirror / code / Atom feed
* getopt_long incompatibility
@ 2015-04-27  6:24 Michael Forney
  2015-04-27 16:18 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Forney @ 2015-04-27  6:24 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

Hi,

I noticed when building gzip with musl that gnulib is still replacing
getopt and getopt_long. After some investigation, it looks to be because
it expects getopt_long to accept ambiguous options with the same
has_arg, flag, and val values[0].

The code responsible for this seems to only do this for getopt_long and
not getopt_long_only[1]. I have no idea why, but since musl aims to
conform to glibc's getopt_long behavior, we should probably do the same.

[0] http://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/getopt.m4#n313
[1] http://sourceware.org/git/?p=glibc.git;a=blob;f=posix/getopt.c;hb=HEAD#l562

-- 
Michael Forney <mforney@mforney.org>

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-27 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27  6:24 getopt_long incompatibility Michael Forney
2015-04-27 16:18 ` Rich Felker
2015-04-27 16:56   ` Michael Forney
2015-04-27 17:08     ` Rich Felker

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