summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt_long.3
AgeCommit message (Collapse)Author
2025-04-29getopt_long.3: Use "optstring" consistentlyEd Maste
The SYNOPSIS uses "optstring" as the argument name but the body text used a mixture of "optstr" and "optstring." Sponsored by: The FreeBSD Foundation
2023-11-26lib: Remove ancient SCCS tags.Warner Losh
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: one-line nroff patternWarner Losh
Remove /^\.\\"\s*\$FreeBSD\$$\n/
2023-02-10getopt_long(3): note an inconsistency with getopt(3) in BUGSKyle Evans
getopt_long(3) will not allow an `optind` setting of 0 to be bug-for-bug compatible with the GNU implementation, as some software does rely on it. Document it as a BUG, since it affects previous declarations of compatibility with getopt(3). Reviewed by: pauamma (markup) Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37867
2020-05-19Fix a typo: argments -> argumentsBenedict Reuschling
PR: 243294 Submitted by: Igor Ostapenko MFC after: 5 days Notes: svn path=/head/; revision=361249
2018-08-12getopt_long(3): Document behavior of leading characters in optstringKyle Evans
Leading '+', '-', and ':' in optstring have special meaning. We briefly mention that the first two have special meaning in that we say POSIXLY_CORRECT turns them off, but we don't actually document their meaning. Add a paragraph to RETURN VALUES explaining how they control the treatment of non-option arguments. A leading ':' has no mention; add a note that it suppresses warnings about missing arguments. Reviewed by: jilles MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14142 Notes: svn path=/head/; revision=337666
2013-12-13getopt_long.3: wording quibblesEitan Adler
- Make wording more clear: "is expect" vs "is expected" [1] - Remove extraneous trailing period.. Reported by: dim [1] Notes: svn path=/head/; revision=259340
2011-12-26Add missing opening and closing brackets in getopt_long.3 and getsubopt.3Glen Barber
to make the examples reflect reality more closely. MFC after: 1 week X-MFC-After: 9.0-RELEASE Notes: svn path=/head/; revision=228885
2010-08-16Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whileJoel Dahl
translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> Notes: svn path=/head/; revision=211397
2005-01-20Sort sections.Ruslan Ermilov
Notes: svn path=/head/; revision=140505
2005-01-14Markup fixes.Ruslan Ermilov
Notes: svn path=/head/; revision=140262
2004-03-06Fix typo, was 'W'; instead of `W;'Andrey A. Chernov
Notes: svn path=/head/; revision=126693
2004-03-06Make GNU-compatible following case:Andrey A. Chernov
single '-' in command line and '-' (non-first) in options Notes: svn path=/head/; revision=126692
2004-03-03Make return code in noarg case GNU-compatibleAndrey A. Chernov
Notes: svn path=/head/; revision=126535
2004-03-01Improve GNU compatibility in several places, use internal GNU_COMPATIBLEAndrey A. Chernov
define for it. Don't catch POSIXLY_CORRECT env. into static variable, it can be changed on the fly by program. Use P1003.2 standartized illoptchar[] Notes: svn path=/head/; revision=126452
2004-03-01Comment out things related to getopt() replacement we not useAndrey A. Chernov
Notes: svn path=/head/; revision=126440
2004-03-01Change "-"-started options when POSIX_CORRECTLY is set handlingAndrey A. Chernov
in favour of GNU instead of NetBSD, because configure's use us and expect GNU. Notes: svn path=/head/; revision=126439
2004-02-24Add getopt_long_only() from OpenBSD and other OpenBSD cleanupsAndrey A. Chernov
PR: 63173 Submitted by: Marius Strobl <marius@alchemy.franken.de> Notes: svn path=/head/; revision=126189
2004-02-23Add optarg, optind, opterr, optopt, optreset to SYNOPSYSAndrey A. Chernov
Notes: svn path=/head/; revision=126143
2002-12-18mdoc(7) police: "The .Fn function".Ruslan Ermilov
Notes: svn path=/head/; revision=108037
2002-12-09mdoc(7) police: overhaul.Ruslan Ermilov
Approved by: re Notes: svn path=/head/; revision=107705
2002-09-29Add getopt_long(3).Eric Melville
Obtained from: NetBSD Sponsored by: Apple Notes: svn path=/head/; revision=104128