summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt_long.c
Commit message (Collapse)AuthorAgeFilesLines
* Keep compatible parts in sync with OpenBSD v1.21, add some comments.ache2006-09-231-15/+7
| | | | No functional changes.
* Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSDache2006-09-221-12/+0
| | | | v1.21 which just do that.
* Be more GNU compatible:ache2006-09-221-2/+5
| | | | | | don't be greedy on the GNU "::" extension when arg separated by whitespace and POSIX_CORRECTLY is set. From POSIX point of view this is unclear situation, so minimal assumption looks right.
* Keep it sync with OpenBSD:ache2004-07-061-3/+4
| | | | | | | An optional argument cannot start with '-', even if permutation is disabled. Obtained from: OpenBSD getopt_long.c v1.17
* Simplify one condition in prev. commit:ache2004-04-011-2/+1
| | | | short_too already assumes FLAG_LONGONLY
* Fix parsing of ambiguous options, whole loop must be processedache2004-04-011-17/+27
|
* Make GNU-compatible following case:ache2004-03-061-0/+4
| | | | single '-' in command line and '-' (non-first) in options
* Make return code in noarg case GNU-compatibleache2004-03-031-0/+4
|
* Be more GNU-compatible in diagnosticsache2004-03-031-11/+61
|
* Improve GNU compatibility in several places, use internal GNU_COMPATIBLEache2004-03-011-10/+30
| | | | | | | define for it. Don't catch POSIXLY_CORRECT env. into static variable, it can be changed on the fly by program. Use P1003.2 standartized illoptchar[]
* Change "-"-started options when POSIX_CORRECTLY is set handlingache2004-03-011-1/+5
| | | | | in favour of GNU instead of NetBSD, because configure's use us and expect GNU.
* Add getopt_long_only() from OpenBSD and other OpenBSD cleanupsache2004-02-241-237/+295
| | | | | PR: 63173 Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Unbreak the upgrade path from 4.9 after removal of GNU getopt andru2004-02-201-2/+0
| | | | <gnuregex.h>.
* de-__P()alfred2002-10-161-3/+3
|
* Add getopt_long(3).eric2002-09-291-0/+494
Obtained from: NetBSD Sponsored by: Apple
OpenPOWER on IntegriCloud