<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/stdlib/getopt_long.c, branch OPENBSD_3_4_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_3_4_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_3_4_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2003-06-17T21:56:24+00:00</updated>
<entry>
<title>Sync with share/misc/license.template and add missing DARPA credit</title>
<updated>2003-06-17T21:56:24+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2003-06-17T21:56:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=032d9a965adfb74e42b18dc939b34fcda2cf740e'/>
<id>urn:sha1:032d9a965adfb74e42b18dc939b34fcda2cf740e</id>
<content type='text'>
where applicable.
</content>
</entry>
<entry>
<title>Use an ISC-tyle license for all my code; it is simpler and more permissive.</title>
<updated>2003-06-03T01:52:40+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2003-06-03T01:52:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=69d7edf2eca5a74bd88f4a6f7df9eb0e51ddf54f'/>
<id>urn:sha1:69d7edf2eca5a74bd88f4a6f7df9eb0e51ddf54f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the getopt() in getopt_long.c which supports some GNU extensions.</title>
<updated>2003-06-02T03:46:43+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2003-06-02T03:46:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=811c6edb6cd0cf5b921627c5c094ed11ed3851df'/>
<id>urn:sha1:811c6edb6cd0cf5b921627c5c094ed11ed3851df</id>
<content type='text'>
getopt.c is no longer compiled and will eventually be removed.
</content>
</entry>
<entry>
<title>When doing permutation, only treat "-" as an option if it was specified</title>
<updated>2002-12-10T17:51:42+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-10T17:51:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2304367f418c4d1085e25e4f99c9afd1951bf1d2'/>
<id>urn:sha1:2304367f418c4d1085e25e4f99c9afd1951bf1d2</id>
<content type='text'>
in optstring.  Problem noticed by Theo.
</content>
</entry>
<entry>
<title>SUS (and apparently 1003.1-2001) say to check optstring for NULL</title>
<updated>2002-12-08T17:52:26+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-08T17:52:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=10cd0723992abc87bfc4d250cd0db10dabf9cf75'/>
<id>urn:sha1:10cd0723992abc87bfc4d250cd0db10dabf9cf75</id>
<content type='text'>
</content>
</entry>
<entry>
<title>If we are passed "-" in argv and the user didn't specify '-' in optstring,</title>
<updated>2002-12-08T17:07:46+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-08T17:07:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9821bb306fe183f16cc79fa833e5bc33c7285584'/>
<id>urn:sha1:9821bb306fe183f16cc79fa833e5bc33c7285584</id>
<content type='text'>
return -1 like POSIX requires.
</content>
</entry>
<entry>
<title>BSD getopt() supports '-' in the optstring so we should too.</title>
<updated>2002-12-08T07:23:09+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-08T07:23:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4dd944fe0af3fd52ded537cb0346f79b05ec9c04'/>
<id>urn:sha1:4dd944fe0af3fd52ded537cb0346f79b05ec9c04</id>
<content type='text'>
This is used by a few programs such as man and su.
</content>
</entry>
<entry>
<title>Fix pasto in last commit.</title>
<updated>2002-12-07T19:48:32+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-07T19:48:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7e5971005fab07ef2db960f8da4f61cae4f73db5'/>
<id>urn:sha1:7e5971005fab07ef2db960f8da4f61cae4f73db5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>For getopt_long_only() we *do* want to match single-character options</title>
<updated>2002-12-07T19:15:59+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-07T19:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5d713eb7eefea34a181f3908d1d6677902617067'/>
<id>urn:sha1:5d713eb7eefea34a181f3908d1d6677902617067</id>
<content type='text'>
as shortcuts for long ones, but only if this would not conflict with
a short option in optstring.  Now binutils gas works.
</content>
</entry>
<entry>
<title>Fix two compatibility issues with our getopt_long_only() vs. the GNU version:</title>
<updated>2002-12-06T16:03:29+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2002-12-06T16:03:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=25071cb01d98bb08f0c7db1ead925c76f842e478'/>
<id>urn:sha1:25071cb01d98bb08f0c7db1ead925c76f842e478</id>
<content type='text'>
o Check for long options even when not at the beginning of an option.
  For instance, if -a is a short option w/o an arg and -static is a
  boolean long option then -astatic is valid for getopt_long_only().
o If a potential long argument does not match longopts and the first
  character is not a short option, print a warning and skip the rest
  of the argument.

Also clean up some trailing whitespace and change return value of
parse_long_options() from -2 to -1 when unmatched and in long_only mode.

With these fixes the binutils ld seems happy with our getopt_long_only()
</content>
</entry>
</feed>
