summaryrefslogtreecommitdiff
path: root/getopt
AgeCommit message (Collapse)AuthorFilesLines
2012-06-26build-sys: move getopt to misc-utils/Karel Zak7-1043/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-11build: fix redundant redeclaration warningsSami Kerola1-1/+0
env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-06-02docs: clean up getopt.1 manualSami Kerola1-244/+228
* Add lightness to synopsis. * Add spaces after dots (English spacing). * Replace backticks by ticks. * Reformat text to be 70 characters wide. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-23Fix typos found by misspellingsBernhard Voelker1-2/+2
The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * isosize: Fix typo in usage string. * configure.ac: Fix typo in help string of --enable-most-builds option. * fdisk: Fix typo in man page. * libblkid, blkid, mount: Likewise. * Fix various typos in docs and in source code comments. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-04-04getopt: verify writing to streams was successfulSami Kerola1-0/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-24docs: corrections to FSF license files, and postal addressSami Kerola1-3/+3
The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-31docs: use .LGPL extension for file with GNU Lesser LicenseKarel Zak1-0/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-31Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak4-461/+0
* 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
2011-08-22docs: uniformize the header and footer lines in man pagesBenno Schulenberg1-1/+1
Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-16getopt: use <var> in usage()Karel Zak1-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16getopt: indent usage()Karel Zak1-15/+20
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-16getopt: do not bundle help text lines into a single unwieldy chunkBenno Schulenberg1-13/+13
This undoes part of commit 283f8f0256655b73071290b92c58d998e883260a. Help text lines are best gettextized separately, or in small chunks of three to five lines, which are easily managed by translators. Bundling text lines when nothing in those texts changed is discarding translators' work unnecessarily. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2011-08-12docs: Documentation directory addedSami Kerola4-461/+0
Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25getopt: fix coding styleSami Kerola1-178/+186
This patch is purely reindentation, spacing, tabing, comment line lenght and so on style fix. The only potential cause of havok is two fixed ambiguous assignments which very likely did not break. indent: getopt.c:147: Warning:old style assignment ambiguity in "=*". Assuming "= *" indent: getopt.c:151: Warning:old style assignment ambiguity in "=*". Assuming "= *" Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25getopt: options struct, usage and version outputsSami Kerola1-35/+39
Move commands own option structure from global scope into main(), and make it as read-only. The usage() ouput mechanims is made to look more like other commands. Misleading old version string `getopt (enhanced) 1.1.4' is replaced to look like the other util-linux version outputs. If anyone is relying on identifying the command by that string he should use -T option instead. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25build-sys: remove unnecessary files from getoptSami Kerola4-31/+1
The Linux Software Map (lsm) file is not maintained, and the test scripts where more confusing than advicing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25getopt: make user getopt_long parsing to use function pointerSami Kerola1-5/+7
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25getopt: remove unnecessary free()Sami Kerola1-2/+0
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-06-25getopt: use xalloc.hSami Kerola1-47/+29
The xalloc fix requires exit codes to symbolical refrences to overwrite default value on error. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-04-19getopt: fix gcc warningKarel Zak1-1/+0
getopt.c:80:13: warning: ‘set_initial_shell’ declared ‘static’ but never defined Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-06getopt: add static qualifiersOlivier Mengué1-27/+27
Signed-off-by: Olivier Mengué <dolmen@cpan.org>
2011-02-21getopt: fix '--unqote' typo in usage textFrancesco Cosoleto1-1/+1
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-11-30rename util-linux-ng back to util-linuxKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17getopt.1: formattingPeter Breitenlohner1-159/+181
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2009-07-04build-sys: rename to _execdirKarel Zak1-1/+1
The variable name "usrlibexecdir" is very confusing (because we have /usr/libexec). The "exec" prefix is required for user-defined directories, see http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install This patch renames all usr*execdir variables to usr*_execdir. Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-24getopt: remove useless if-before-free testsKarel Zak1-6/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26getopt: remove unnecessary ifdefsKarel Zak2-11/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-14build-sys: ignore a bunch of generated files, mostly binariesJames Youngman1-0/+1
Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-17build-sys: use dist_man_MANS instead of man_MANSStepan Kasal1-1/+1
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-11-28getopt: fix path to examples in getopt.1Karel Zak1-3/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-26getopt: install example scripts as SCRIPTS, not DATAPeter Breitenlohner1-1/+1
The example scripts should be installed with execute permissions, as for util-linux-2.12r and earlier, i.e., as SCRIPTS and not as DATA Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
2007-07-24manpage typosLaMont Jones1-8/+8
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
2007-07-03man pages: add "AVAILABILITY" sectionKarel Zak1-1/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-14getopt: remove old unused filesKarel Zak4-1376/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-16build-sys: make the getopt example directory relative to datadirStepan Kasal1-1/+1
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16build-sys: move -D flags to *_CPPFLAGSStepan Kasal1-1/+1
Preprocessor options belong to *_CPPFLAGS; add $(AM_CPPFLAGS) as we want to amend it, not override. Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-05-16build-sys: use dist_example_DATAStepan Kasal1-2/+2
"dist_" prefix is more elegant than EXTRA_DIST. Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-01-04build-sys: add missing filesKarel Zak1-0/+3
This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03build-sys: remove generated autotools stuff from gitKarel Zak1-584/+0
The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.13-pre6 tarball.Karel Zak5-8/+15
2006-12-07Imported from util-linux-2.13-pre4 tarball.Karel Zak1-0/+2
2006-12-07Imported from util-linux-2.13-pre3 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.13-pre2 tarball.Karel Zak2-101/+40
2006-12-07Imported from util-linux-2.13-pre1 tarball.Karel Zak4-55/+655
2006-12-07Imported from util-linux-2.12k tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.12 tarball.Karel Zak15-0/+2945
2006-12-07Imported from util-linux-2.9i tarball.Karel Zak14-2875/+0
2006-12-07Imported from util-linux-2.8 tarball.Karel Zak14-0/+2875