small corrections to a few man pages
PATCH 1/1 small corrections to a few man pages
Hi,
Attached first patch corrects "fistt" to "first" in the help text of cal, and seizes the opportunity to clarify the text and add uppercase where needed. The second patch corrects the short option for --timeout (from -t to -w) in the man page of findmnt, and then fixes some markup and spacing issues.
Most utilities use -V as the short option for --version, only a few use -v instead; several use -v for --verbose. The third patch makes wipefs conform to the majority now that the option is still fresh, and adds it to the man page.
The other five patches correct typos, grammar, markup and spacing in five other man pages.
Regards,
Benno
Signature · 1 line
http://www.fastmail.fm - mmm... Fastmail...
From b3aabeff75e4185ebeaefdf832bf86acb69ef58d Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Mon, 1 Aug 2011 20:41:12 +0200
Subject: [PATCH 1/8] cal.c: fix typo ("fistt day") in help text, seize chance to improve it
--- misc-utils/cal.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
misc-utils/cal.c +8 -8
@@ -787,14 +787,14 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) program_invocation_short_name);fprintf (out,_ ("\nOptions:\n" -" -1, --one single month\n" -" -3, --three previous, current and next month\n" -" -s, --sunday sunday as first day\n" -" -m, --monday monday as fistt day\n" -" -j, --julian julian dates\n" -" -y, --year current year\n" -" -V, --version output version information and exit\n" -" -h, --help display this help and exit\n\n" )); +" -1, --one show only current month (default)\n" +" -3, --three show previous, current and next month\n" +" -s, --sunday Sunday as first day of week\n" +" -m, --monday Monday as first day of week\n" +" -j, --julian output Julian dates\n" +" -y, --year show whole current year\n" +" -V, --version display version information and exit\n" +" -h, --help display this help text and exit\n\n" ));exit (out == stderr ?EXIT_FAILURE :EXIT_SUCCESS ); }
Signature · 1 line
1.7.0.4
From e987f5e7ca22c7b368ce2486e2dc770af3ec0daa Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Mon, 1 Aug 2011 21:31:35 +0200
Subject: [PATCH 2/8] findmnt: (man page) short option for --timeout is not -t but -w
Additionally make some formatting and spacing tweaks.
--- misc-utils/findmnt.8 | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-)
misc-utils/findmnt.8 +14 -14
@@ -80,7 +80,7 @@ and .BR LABEL columns. This option disables text truncation also in all other columns. .IP "\fB\-O, \-\-options \fIlist\fP" -Used to limit the set of printed filesystems. More than one option +Limit the set of printed filesystems. More than one option may be specified in a comma-separated list. The .B \-t and
@@ -97,10 +97,10 @@ Define output columns. Currently supported are .BR ACTION, .BR SOURCE , .BR TARGET , -.RB OLD-TARGET, +.BR OLD-TARGET, .BR FSTYPE , .BR OPTIONS , -.RB OLD-OPTIONS, +.BR OLD-OPTIONS, .BR VFS-OPTIONS , .BR FS-OPTIONS , .BR LABEL
@@ -113,12 +113,12 @@ column contains tree formatting if the or .B \-\-raw options are not specified. -.IP "\fB\-p, \-\-poll[=list]\fP" +.IP "\fB\-p, \-\-poll\fR[\fI=list\fR]\fP" Monitor changes in the /proc/self/mountinfo file. Supported actions are: mount, umount, remount and move. More than one action may be specified in a comma-separated list. All actions are monitored by default. -The time for which --poll will block could be restricted by \fB\-\-timeout\fP +The time for which \fB--poll\fR will block can be restricted with the \fB\-\-timeout\fP or \fB\-\-first-only\fP options. The standard columns always use the new version of the information from the
@@ -129,7 +129,7 @@ The poll mode allows to use extra columns: .RS .TP .B ACTION -mount, umount, move or remount action name. This column is enabled by default. +mount, umount, move or remount action name; this column is enabled by default .TP .B OLD-TARGET available for umount and move actions
@@ -142,7 +142,7 @@ Use raw output format. .IP "\fB\-a, \-\-ascii\fP" Use ascii characters for tree formatting. .IP "\fB\-t, \-\-types \fIlist\fP" -Used to limit the set of printed filesystems. More than one type may be +Limit the set of printed filesystems. More than one type may be specified in a comma-separated list. The list of filesystem types can be prefixed with .I no
@@ -150,17 +150,17 @@ to specify the filesystem types on which no action should be taken. For more details see .BR mount (8). .IP "\fB\-R, \-\-submounts\fP" -Print recursively all submounts for the selected filesystems. The restrictions +Print recursively all submounts for the selected filesystems. The restrictions defined by options \fB\-t\fP, \fB\-O\fP, \fB\-S\fP, \fB\-T\fP and -\fB\--direction\fP are not applied to submounts. All submounts are always -printed in tree-like order. The option enables the tree-like output format by -default. This option has no effect for \fB\-\-mtab\fP or \fB\-\-fstab\fP. +\fB\--direction\fP are not applied to submounts. All submounts are always +printed in tree-like order. The option enables the tree-like output format by +default. This option has no effect for \fB\-\-mtab\fP or \fB\-\-fstab\fP. .IP "\fB\-S, \-\-source \fIspec\fP" -Explicitly define the mount source. Supported are device, LABEL= or UUID=. -.IP "\fB\-t, \-\-timeout \fImilliseconds\fP" -Specifies an upper limit on the time for which --poll will block, in milliseconds. +Explicitly define the mount source. Supported are \fIdevice\fR, \fILABEL=\fR and \fIUUID=\fR. .IP "\fB\-T, \-\-target \fIdir\fP" Explicitly define the mount target (mountpoint directory). +.IP "\fB\-w, \-\-timeout \fImilliseconds\fP" +Specify an upper limit on the time for which \fB--poll\fR will block, in milliseconds. .SH EXAMPLES .IP "\fBfindmnt \-\-fstab \-t nfs\fP" Prints all nfs filesystems defined in
Signature · 1 line
1.7.0.4
From 1b6b702166bbf65c442a80de3c1d2f9432f29595 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 10:23:08 +0200
Subject: [PATCH 3/8] wipefs: change option -v to -V for --version; add it to man page
--- misc-utils/wipefs.8 | 6 ++++-- misc-utils/wipefs.c | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-)
misc-utils/wipefs.8 +4 -2
@@ -7,7 +7,7 @@ wipefs \- wipe a filesystem signature from a device .SH SYNOPSIS .B wipefs -.RB [ \-ahnp ] +.RB [ \-ahnpV ] .RB [ \-o .IR offset ] .I device
@@ -36,8 +36,10 @@ The \fIoffset\fR argument may be followed by binary (2^N) suffixes KiB, MiB, GiB, TiB, PiB and EiB (the "iB" is optional, e.g. "K" has the same meaning as "KiB") or decimal (10^N) suffixes KB, MB, GB, PB and EB. .IP "\fB\-p, \-\-parsable\fP" -Print out in parsable instead of printable format. Encode all potentially unsafe +Print out in parsable instead of printable format. Encode all potentially unsafe characters of a string to the corresponding hex value prefixed by '\\x'. +.IP "\fB\-V, \-\-version\fP" +Output version information and exit. .SH AUTHOR Karel Zak <[email protected]>. .SH AVAILABILITY
misc-utils/wipefs.c +4 -4
@@ -308,7 +308,7 @@ usage(FILE *out)" -n, --no-act do everything except the actual write() call\n" " -o, --offset <num> offset to erase, in bytes\n" " -p, --parsable print out in parsable instead of printable format\n" - " -v, --version output version information and exit\n")); + " -V, --version output version information and exit\n"));fprintf (out,_ ("\nFor more information see wipefs(8).\n" ));
@@ -329,7 +329,7 @@ main(int argc, char **argv) { "no-act", 0, 0, 'n' }, { "offset", 1, 0, 'o' }, { "parsable", 0, 0, 'p' }, - { "version", 0, 0, 'v' }, + { "version", 0, 0, 'V' }, { NULL, 0, 0, 0 } };
@@ -337,7 +337,7 @@ main(int argc, char **argv)bindtextdomain (PACKAGE ,LOCALEDIR );textdomain (PACKAGE ); -while ((c =getopt_long (argc, argv,"ahno:pv" , longopts,NULL )) !=-1 ) { +while ((c =getopt_long (argc, argv,"ahno:pV" , longopts,NULL )) !=-1 ) {switch (c) {case 'a' : all++;
@@ -355,7 +355,7 @@ main(int argc, char **argv)case 'p' : mode =WP_MODE_PARSABLE ;break ; -case 'v' : +case 'V' :printf (_ ("%s from %s\n" ), program_invocation_short_name,PACKAGE_STRING );return EXIT_SUCCESS ;
Signature · 1 line
1.7.0.4
From 995720e730cf2152fcba3d23aab61b55a70019f3 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 11:17:11 +0200
Subject: [PATCH 4/8] chrt: adjust style of man page, alphabetize option -p
--- schedutils/chrt.1 | 60 ++++++++++++++++++++++++++++------------------------ 1 files changed, 32 insertions(+), 28 deletions(-)
schedutils/chrt.1 +32 -28
114 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From ca505a8c745763c7d354536842c7fc7d68038ce8 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 11:17:47 +0200
Subject: [PATCH 5/8] taskset: adjust style of man page
--- schedutils/taskset.1 | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
schedutils/taskset.1 +7 -7
@@ -64,7 +64,7 @@ is processor #0 is processors #0 and #1 .TP .BR 0xFFFFFFFF -is all processors (#0 through #31) +is all processors (#0 through #31). .PP When .BR taskset
@@ -73,21 +73,21 @@ CPU. .SH OPTIONS .TP .BR \-a ,\ \-\-all-tasks -set or retrieve the CPU affinity of all the tasks (threads) for a given PID. +Set or retrieve the CPU affinity of all the tasks (threads) for a given PID. .TP .BR \-p ,\ \-\-pid -operate on an existing PID and not launch a new task +Operate on an existing PID and do not launch a new task. .TP .BR \-c ,\ \-\-cpu-list -specify a numerical list of processors instead of a bitmask. The list may -contain multiple items, separated by comma, and ranges. For example, +Specify a numerical list of processors instead of a bitmask. The numbers +are separated by commas and may include ranges. For example: .BR 0,5,7,9-11 . .TP .BR \-h ,\ \-\-help -display usage information and exit +Display usage information and exit. .TP .BR \-V ,\ \-\-version -output version information and exit +Display version information and exit. .SH USAGE .TP The default behavior is to run a new command with a given affinity mask:
Signature · 1 line
1.7.0.4
From bcfd9f9899d4e9537287a2e7834d15a357bc08a0 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 15:35:23 +0200
Subject: [PATCH 6/8] ionice: slightly improve grammar, spacing and consistency of man page
--- schedutils/ionice.1 | 72 ++++++++++++++++++++++++-------------------------- 1 files changed, 35 insertions(+), 37 deletions(-)
schedutils/ionice.1 +35 -37
121 lines not on this page · raw message
Signature · 1 line
1.7.0.4
From 0af45fcdb972c2f77052e6109f9316961a0f867e Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 15:51:02 +0200
Subject: [PATCH 7/8] isosize: improve style, grammar and spacing of man page
--- disk-utils/isosize.8 | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-)
disk-utils/isosize.8 +14 -14
@@ -1,6 +1,6 @@ .TH ISOSIZE "8" "June 2011" "util-linux" "System Administration Utilities" .SH NAME -isosize \- outputs the length of an iso9660 file system +isosize \- outputs the length of an iso9660 filesystem .SH SYNOPSIS .B isosize [\fIoptions\fR] \fIiso9660_image_file\fR
@@ -8,28 +8,28 @@ isosize \- outputs the length of an iso9660 file system .\" Add any additional description here .PP This command outputs the length of an iso9660 file system that -is contained in given file. That file may be a normal file or -a block device (e.g. /dev/hdd or /dev/sr0). In the absence of -any switches (or errors) it will output the size of the iso9660 -file system in bytes. This can now be a large number (>> 4 GB). +is contained in the given file. That file may be a normal file or +a block device (e.g. /dev/hdd or /dev/sr0). In the absence of +any switches (and errors) it will output the size of the iso9660 +filesystem in bytes. This can now be a large number (>> 4 GB). .SH OPTIONS .TP \fB\-x\fR, \fB\-\-sectors\fR -output in humanly readable form the block count and the block -size. Output uses the term "sectors" for "blocks". +Show the block count and block size in human-readable form. +The output uses the term "sectors" for "blocks". .TP \fB\-d\fR, \fB\-\-divisor\fR=\fINUM\fR -only has affect when +Only has an effect when .B \-x -is not given. The number output (if no errors) +is not given. The number shown (if no errors) is the iso9660 file size in bytes divided by .IR NUM . So if .I NUM -is the block size then the output number will be the block count. +is the block size then the shown number will be the block count. .PP -The size of the file (or block device) holding a iso9660 file -system can be marginally larger than the actual size of the -iso9660 file system. One reason for this is that cd writers -are allowed to add "run out" sectors at the end of a iso9660 +The size of the file (or block device) holding an iso9660 +filesystem can be marginally larger than the actual size of the +iso9660 filesystem. One reason for this is that cd writers +are allowed to add "run out" sectors at the end of an iso9660 image.
Signature · 1 line
1.7.0.4
From 7ea4920faebb7e58ee43f268dc9e9d969ec0dc3c Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[email protected]>
Date: Wed, 3 Aug 2011 16:10:13 +0200
Subject: [PATCH 8/8] mkfs: fix small formatting issues in man page
Also spell "filesystem" consistently as one word -- this makes things clearer when the word is used as an adjective.
--- disk-utils/mkfs.8 | 53 +++++++++++++++++++++++++---------------------------- 1 files changed, 25 insertions(+), 28 deletions(-)
disk-utils/mkfs.8 +25 -28
108 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Quoted 6 lines · Benno Schulenberg
Attached first patch corrects "fistt" to "first" in the help text of cal, and seizes the opportunity to clarify the text and add uppercase where needed. The second patch corrects the short option for --timeout (from -t to -w) in the man page of findmnt, and then fixes some markup and spacing issues.
Quoted 7 lines
Most utilities use -V as the short option for --version, only a few use -v instead; several use -v for --verbose. The third patch makes wipefs conform to the majority now that the option is still fresh, and adds it to the man page.
The other five patches correct typos, grammar, markup and spacing in five other man pages.
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com