Files
semi-libc/src/misc
Rich Felker 786fda875a fix getopt[_long] clobbering of optopt on success
getopt is only specified to modify optopt on error, and some software
apparently infers an error from optopt!=0.

getopt_long is changed analogously. the resulting behavior differs
slightly from the behavior of the GNU implementation of getopt_long,
which keeps an internal shadow copy of optopt and copies it to the
public one on return, but since the GNU implementation also exhibits
this shadow-copy behavior for plain getopt where is is non-conforming,
I think this can reasonably be considered a bug rather than an
intentional behavior that merits mimicing.
2017-01-04 19:43:59 -05:00
..
2012-08-23 14:38:34 -04:00
2014-07-31 02:38:23 -04:00
2014-07-31 02:38:23 -04:00
2014-06-21 19:24:15 -04:00
2011-02-12 00:22:29 -05:00
2014-12-20 20:13:27 -05:00
2016-10-20 01:20:27 -04:00
2014-02-01 14:33:33 -05:00
2014-03-17 00:25:23 -04:00