GNU getopt resets itself partially when the application sets optind to 0.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 29 Mar 2005 20:03:06 +0000 (20:03 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 29 Mar 2005 20:03:06 +0000 (20:03 +0000)
commit61344b4b38cb6bc73f4a35e8dfac38b43fd8eeae
treee77b4010bda201a523455253b4fc9bf789980a65
parenta025257ab7d96d9a586bf5b747d763f02e2b619b
GNU getopt resets itself partially when the application sets optind to 0.
A good example in our tree is CVS. Copy this behaviour and put optind into
BSS.
lib/libc/stdlib/getopt.c