summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt.3 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If a command or interface first appeared in PWB/UNIX, UNIX System III orjsg2022-07-251-3/+5
| | | | | | | | | | | | UNIX System V mention it. Only do so in manual pages with a pre-existing HISTORY section. Prompted by the comparison of System V and BSD commands and interfaces in Sun's "System V Enhancements Overview" document. checked against manuals on bitsavers, TUHS archive and CSRG archive CDs ok jmc@ schwarze@
* For open/openat, if the flags parameter does not contain O_CREAT, thederaadt2021-10-241-3/+3
| | | | | | | | | | | | | 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
* Follow style(9) and drop lint /* NOTREACHED */ annotations fromtb2016-01-041-3/+2
| | | | | | | | the examples. Diff from Juuso Lapinlampi < wub () partyvan ! eu >, thanks! ok schwarze@
* Don't fake a bulleted list by prefixing items with 'o'.bentley2015-11-241-8/+8
| | | | ok jmc@
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-051-3/+3
|
* Fix PR 6267: recheck POSIXLY_CORRECT each time getopt_long() starts a newguenther2011-03-051-11/+2
| | | | | | | | argv and don't suppress the handling of leading '-' in optstring when POSIXLY_CORRECT is set. Based on patch from Eric Blake. ok and manpage update from millert@, manpage ok jmc@
* document that no leading whitespace is permitted between the option andokan2009-04-121-3/+5
| | | | | | argument if the argument is deemed to be optional ('::'). feedback and ok jmc@ and millert@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* Support for optional args separated with whitespace was removedmillert2007-04-101-17/+1
| | | | some time ago--it caused too many problems.
* Removes extraneous variables from getopt(3). Inspired by one ofray2006-03-151-3/+1
| | | | | | David Hill's diffs. ok otto
* tidy up examplesjaredy2005-10-111-7/+4
| | | | | | | | - use err() for error handling - add lint hints - spacing nits and missing braces ok otto
* kill errant blank line;jmc2005-07-261-2/+1
|
* - typos, punctuation, layout, macro tweaksjaredy2005-07-261-2/+2
| | | | | | - break long lines ok jmc
* provide a description of the EXAMPLE; ok jmcjaredy2005-07-261-2/+11
|
* whitespace;jmc2005-07-011-4/+4
|
* More robust example of numeric argument handling. The old examplemillert2005-07-011-11/+23
| | | | | code would dereference NULL for mixed letter and number args. OK deraadt@
* Document that historic BSD getopt(3) set optopt for each char, not justmillert2005-03-261-1/+14
| | | | on error.
* tweaks from michael knudsen;jmc2004-12-221-6/+7
|
* Document why not to set optind = 0. Inspired by and OK jfb@millert2004-12-071-2/+20
|
* Document the optional argument support and as well as where we differ frommillert2003-09-221-32/+83
| | | | POSIX and/or GNU. deraadt@ and jmc@ OK
* typos from wiz@netbsd (including one from a PR from Quentin Garnier);jmc2003-09-181-10/+14
| | | | | | slight sync with NetBSD page; ok millert@
* escape punctuation;jmc2003-09-021-4/+4
| | | | ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Remove some liesmillert2003-06-021-7/+7
|
* - section reorderjmc2003-06-011-5/+5
| | | | | - merge COMPATIBILITY - kill whitespace at EOL
* typos;jmc2003-05-101-2/+2
|
* make the second example valid; ok millert@jsyn2003-04-101-3/+4
|
* In BUGS section, append a warning to not use '-' as the first charactermillert2002-12-081-3/+13
| | | | of optstring to avoid a semantic conflict with GNU getopt.
* Add "RETURN VALUES" sectionsmillert2002-12-041-1/+24
|
* .Xr getopt_longmillert2002-12-041-1/+2
|
* Suggest better types in examples; from NetBSDmiod2002-08-191-2/+2
|
* deraadt@ objects to the caveat remark, so remove it.miod2002-02-231-11/+1
|
* Add a caveat section pointing out that people affecting the return valuemiod2002-02-231-5/+13
| | | | | | | | of getopt() to char variables instead of int lose on arches where char is unsigned by default. Clean the example by not pasting parts of <unistd.h> into it, and by not using atoi(3).
* .Sh EXAMPLE -> .Sh EXAMPLES. Move this section before SEE ALSO where itaaron2000-12-151-28/+28
| | | | belongs. Closes PR/1554 from bk@rt.fm.
* Flesh out stdlib function man pages.aaron2000-04-201-20/+13
|
* In Unix land we prefer "whitespace" to "white space" or "white-space". Ataaron2000-03-041-2/+2
| | | | least, this is the impression I get from looking at a lot of Perl docs.
* repairderaadt2000-01-251-2/+2
|
* typoespie1999-09-071-2/+2
|
* first round of repairs on stdlibaaron1999-06-291-10/+13
|
* getopt(3) does not return -1 when encountering unrecognized optionsaaron1999-05-271-3/+2
|
* remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonaaron1999-05-231-2/+2
| | | | is used instead; kwesterback@home.com
* indent nicederaadt1998-05-051-2/+2
|
* indent; dimaderaadt1998-04-251-2/+3
|
* incorrect description; bgrayson@ece.utexas.eduderaadt1997-06-021-6/+6
|
* an -> a; soil@quick.netderaadt1997-04-031-2/+2
|
* Fix RCS idstholo1996-08-191-1/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+260