Page MenuHomeFreeBSD

getopt_long(3): note an inconsistency with getopt(3) in BUGS
ClosedPublic

Authored by kevans on Dec 24 2022, 6:48 AM.
Tags
None
Referenced Files
F171284646: D37867.id116977.diff
Thu, Sep 10, 3:31 AM
Unknown Object (File)
Sat, Sep 5, 5:23 PM
Unknown Object (File)
Sat, Sep 5, 5:22 PM
Unknown Object (File)
Sat, Sep 5, 2:40 PM
Unknown Object (File)
Sat, Sep 5, 7:16 AM
Unknown Object (File)
Fri, Sep 4, 2:08 AM
Unknown Object (File)
Thu, Sep 3, 10:01 AM
Unknown Object (File)
Thu, Sep 3, 6:24 AM

Details

Summary

getopt_long(3) will not allow an optind setting of 0 to be bug-for-bug
compatible with the GNU implementation, as some software does rely on
it. Document it as a BUG, since it affects previous declarations of
compatibility with getopt(3).

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48879
Build 45768: arc lint + arc unit