summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt.c
AgeCommit message (Expand)Author
2014-06-05Bring getopt(3) inline with getopt_long(3): recognize option:: as an optionalchristos
2009-03-20ANSIfy. Remove conditional macros around __RCSID.joerg
2005-11-29WARNS=4christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-01-20Fix lib/17248 properlydsl
2002-06-21Undo last two, until I have time to take a good look at the problems.wiz
2002-06-13According to POSIX, "-" (the string) is an exception and should notwiz
2002-06-13Fix '-' handling. POSIX only recognizes "--" as end-of-options.wiz
2001-04-24don't claim that options are illegal, cf lib/12715joda
2001-02-19nuke a ref to __progname that somehow crept incgd
2001-02-19convert from __progname to getprogname()cgd
2000-12-20fix nested externchristos
2000-01-22Delint.mycroft
1999-12-02Change the declaration of the argv argument to getopt(3) from "char * const *"kleink
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
1999-01-091003.2-92 specifies the string "--" to be recognized as the option listkleink
1998-02-03include <unistd.h> instead of <stdlib.h> to fix a compile error causedperry
1998-01-30update to lite-2perry
1997-07-21If port provides __weak_alias(), provide an Standard C and POSIX purejtc
1997-07-13Add local.h for local prototypes.christos
1995-12-28New-style RCS ids.thorpej
1994-05-06merge back in our changes (mostly POSIX.2 pedanticism)jtc
1994-05-06sync with 44litejtc
1993-10-12POSIX.2 requires special behavior if the first character of the optstringjtc
1993-09-14POSIX.2 has changed getopt to return -1 instead of EOF (to decouple getopt()jtc
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd