aboutsummaryrefslogtreecommitdiffstats
path: root/misc-utils/getopt.c
AgeCommit message (Expand)AuthorFilesLines
2025-09-23getopt: (usage) make the description of -U fit within 80 columnsBenno Schulenberg1-1/+1
2025-08-27getopt: add member posixly_correct to struct getopt_controlChristian Goeschel Ndjomouo1-2/+5
2025-08-27getopt: add feature to ignore unknown optionsChristian Goeschel Ndjomouo1-4/+18
2025-08-22getopt: document special symbols that should not be used as option characterscgoesche1-0/+4
2025-06-30lib/strutils: add ul_ prefix to strconcat() functionsKarel Zak1-1/+1
2025-06-06treewide: replace postal address in license specifier with a terse URLBenno Schulenberg1-3/+2
2024-11-20Drop pointless bitfieldsZbigniew Jędrzejewski-Szmek1-5/+5
2024-05-02getopt: remove free-before-exitKarel Zak1-1/+0
2023-10-25Make the ways of using output stream consistent in usage()Masatake YAMATO1-2/+2
2023-09-22treewide: use (x)reallocarray() when applicableThomas Weißschuh1-3/+3
2021-08-05lib/strutils: rename strappend() to strconcat()Karel Zak1-1/+1
2021-01-06getopt: explicitly ask for POSIX mode on POSIXLY_CORRECTĐoàn Trần Công Danh1-3/+15
2020-04-20[clang-tidy] do not use else after returnRosen Penev1-2/+2
2019-04-16misc: consolidate version printing and close_stdout()Karel Zak1-5/+5
2017-06-29misc: consolidate macro style USAGE_HELP_OPTIONSRuediger Meier1-1/+1
2017-06-27misc: introduce print_usage_help_options()Ruediger Meier1-2/+1
2017-06-26flock, getopt: write --help to stdout and return 0Ruediger Meier1-25/+23
2017-02-20misc: add static keyword to where needed [smatch scan]Sami Kerola1-2/+2
2016-10-21getopt: be sure that options array is terminatedKarel Zak1-8/+11
2016-08-16include/closestream: define exit codesKarel Zak1-0/+1
2016-04-22getopt: keep pointer to 'name' in control structKarel Zak1-10/+7
2016-04-20getopt: fix memory leaks and integer overflows [ASAN & valgrind]Sami Kerola1-7/+18
2016-04-04getopt: make sure setprogname provided by non-Linux systemKarel Zak1-1/+1
2016-03-07getopt: fix -n name for BSDRuediger Meier1-2/+9
2015-01-06textual: add a docstring to most of the utilitiesBenno Schulenberg1-0/+3
2014-12-19textual: do not start option descriptions with a capitalBenno Schulenberg1-14/+14
2014-12-09getopt: cleanup add_log_options()Karel Zak1-6/+9
2014-12-09getopt: rename function to keep code readableKarel Zak1-6/+6
2014-12-09getopt: fix compiler warningKarel Zak1-1/+1
2014-12-08getopt: avoid re-terminating long_option list at every updateSami Kerola1-11/+10
2014-12-08getopt: change --shell argument parsing functionSami Kerola1-12/+10
2014-12-08getopt: prefer switch-case rather than long if statementSami Kerola1-27/+37
2014-12-08getopt: remove unnecessary codeSami Kerola1-9/+1
2014-12-08getopt: make normalize() print stringsSami Kerola1-14/+12
2014-12-08getopt: use xstrdup rather than malloc + strcpySami Kerola1-12/+5
2014-12-08getopt: add struct getopt_control and remove global variablesSami Kerola1-81/+83
2014-12-08getopt: remove function prototypesSami Kerola1-10/+0
2014-12-08getopt: make nonoptions optstring comment correctSami Kerola1-2/+2
2014-12-08getopt: sync with 1.1.6 releaseSami Kerola1-4/+17
2014-10-01textual: use usage() text element macrosSami Kerola1-7/+5
2014-10-01textual: use manual tail usage() macroSami Kerola1-0/+1
2013-04-05getopt: fix usage() typo unquote -> unquotedKarel Zak1-1/+1
2013-03-27getopt: fix normalize() usage [coverity scan]Karel Zak1-1/+1
2013-02-06textual: spell and encode the name of Arkadiusz Miśkiewicz correctlyBenno Schulenberg1-1/+1
2013-01-25textual: use UTIL_LINUX_VERSION everywhereKarel Zak1-3/+1
2012-09-07getopt: make the code more readable for analysersKarel Zak1-1/+1
2012-06-26build-sys: move getopt to misc-utils/Karel Zak1-0/+458