From: Benno Schulenberg <bensberg@justemail.net>
To: kerolasa@gmail.com
Cc: "Util-Linux" <util-linux@vger.kernel.org>
Subject: Re: [patch] ipcs (in git) produces too much output
Date: Sun, 27 Jan 2013 21:43:30 +0100 [thread overview]
Message-ID: <1359319410.12049.140661183045117.4500171E@webmail.messagingengine.com> (raw)
In-Reply-To: <CAG27Bk3C2duf6Oe0sZDpC6zNbw2q=obX9LsEuT9hZo37fFP0gQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
Hi Sami,
On Sun, Jan 27, 2013, at 21:27, Sami Kerola wrote:
> Both patches look pretty good. I just wonder would .SS make sense for
> second level option headers?
Yes, that looks nicer. Attached an updated patch for the man page.
It also makes a third subsection for --bytes and --human.
Regards,
Benno
--
http://www.fastmail.fm - Send your email first class
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-docs-improve-wording-formatting-and-accuracy-of-ipcs.patch --]
[-- Type: text/x-patch; name="0002-docs-improve-wording-formatting-and-accuracy-of-ipcs.patch", Size: 4229 bytes --]
From ed77954d18187fc8e4155c12c155d133c0a6a944 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Sun, 27 Jan 2013 14:40:19 +0100
Subject: [PATCH 2/2] docs: improve wording, formatting and accuracy of ipcs man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
sys-utils/ipcs.1 | 73 ++++++++++++++++++++++++++++-------------------------
1 files changed, 39 insertions(+), 34 deletions(-)
diff --git a/sys-utils/ipcs.1 b/sys-utils/ipcs.1
index 5fc3a81..c070d1a 100644
--- a/sys-utils/ipcs.1
+++ b/sys-utils/ipcs.1
@@ -1,76 +1,79 @@
.\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
.\" May be distributed under the GNU General Public License
-.TH IPCS "1" "September 2011" "util-linux" "User Commands"
+.TH IPCS "1" "January 2013" "util-linux" "User Commands"
.SH NAME
-ipcs \- provide information on ipc facilities
+ipcs \- provide information on IPC facilities
.SH SYNOPSIS
.B ipcs
-[resource] [...] [output\-format]
+.RB [ resource\-option "] [" output\-format ]
.br
.B ipcs
-[resource]
-.I \-i id
+.RB [ resource\-option ]
+.BI \-i " id"
.SH DESCRIPTION
.B ipcs
-provides information on the ipc facilities for which the calling process
-has read access.
+provides information on the inter-process communication facilities
+for which the calling process has read access.
.SH OPTIONS
.TP
\fB\-i\fR, \fB\-\-id\fR \fIid\fR
-Print details only on resource identified by
+Print details only on the resource identified by
.IR id .
.TP
\fB\-h\fR, \fB\-\-help\fR
-Display this help and exit.
+Display a help text and exit.
.TP
\fB\-V\fR, \fB\-\-version\fR
-Output version information and exit.
-.SH "RESOURCE OPTIONS"
-.TP
-\fB\-m\fR, \fB\-\-shmems\fR
-Write information about active shared memory segments.
+Display version information and exit.
+.SS "Resource options"
.TP
\fB\-q\fR, \fB\-\-queues\fR
Write information about active message queues.
.TP
+\fB\-m\fR, \fB\-\-shmems\fR
+Write information about active shared memory segments.
+.TP
\fB\-s\fR, \fB\-\-semaphores\fR
Write information about active semaphore sets.
.TP
\fB\-a\fR, \fB\-\-all\fR
-Write information about all resources (default).
-.SH "OUTPUT FORMATS"
+Write information about all three resources (default).
+.SS "Output formats"
+Of these options only one takes effect: the last one specified.
+.TP
+\fB\-c\fR, \fB\-\-creator\fR
+Show creator and owner.
+.TP
+\fB\-l\fR, \fB\-\-limits\fR
+Show resource limits.
+.TP
+\fB\-p\fR, \fB\-\-pid\fR
+Show PIDs of creator and last operator.
.TP
\fB\-t\fR, \fB\-\-time\fR
-Write time information. Time of the last control operation that changed the
-access permissions for all facilities, time of the last
+Write time information. The time of the last control operation that changed
+the access permissions for all facilities, the time of the last
.I msgsnd()
and
.I msgrcv()
-operations on message queues, time of the last
+operations on message queues, the time of the last
.I shmat()
and
.I shmdt()
-operations on shared memory, and time of the last
+operations on shared memory, and the time of the last
.I semop()
operation on semaphores.
.TP
-\fB\-p\fR, \fB\-\-pid\fR
-Show creator and last operations PIDs.
-.TP
-\fB\-c\fR, \fB\-\-creator\fR
-Show creator and owner.
-.TP
-\fB\-l\fR, \fB\-\-limits\fR
-Show resource limits.
-.TP
\fB\-u\fR, \fB\-\-summary\fR
Show status summary.
-.TP
-.B \-\-human
-Print sizes in human readable format.
+.SS "Representation"
+These affect only the \fB\-l\fR (\fB\-\-limits\fR) option.
.TP
\fB\-b\fR, \fB\-\-bytes\fR
Print sizes in bytes.
+.TP
+.B \-\-human
+Print sizes in human-readable format.
.SH SEE ALSO
.BR ipcrm (1),
.BR ipcmk (1),
@@ -83,7 +86,8 @@ Print sizes in bytes.
.BR shmget (2)
.SH CONFORMING TO
The Linux ipcs utility is not fully compatible to the POSIX ipcs utility.
-The Linux version does not support the
+The Linux version does not support the POSIX
+.BR \-a ,
.B \-b
and
.B \-o
@@ -91,7 +95,8 @@ options, but does support the
.B \-l
and
.B \-u
-options not defined by POSIX. The portable application shall not use the
+options not defined by POSIX. A portable application shall not use the
+.BR \-a ,
.BR \-b ,
.BR \-o ,
.BR \-l ,
--
1.7.0.4
next prev parent reply other threads:[~2013-01-27 20:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 13:51 [patch] ipcs (in git) produces too much output Benno Schulenberg
2013-01-27 20:27 ` Sami Kerola
2013-01-27 20:43 ` Benno Schulenberg [this message]
2013-02-06 10:35 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359319410.12049.140661183045117.4500171E@webmail.messagingengine.com \
--to=bensberg@justemail.net \
--cc=kerolasa@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox