Util-Linux package development
 help / color / mirror / Atom feed
From: Benno Schulenberg <bensberg@telfort.nl>
To: util-linux@vger.kernel.org
Subject: [PATCH 1/8] setarch: (man) remove a synopsis line that mistakenly mentions `arch`
Date: Mon,  7 Apr 2025 17:14:32 +0200	[thread overview]
Message-ID: <20250407151503.23394-1-bensberg@telfort.nl> (raw)

Bug existed since commit 0554182555 from seven years ago.

Also, correct the markup for --show and --pid, improve the wording,
and reduce redundancy by reshuffling the --pid option.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
---
 sys-utils/setarch.8.adoc | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/sys-utils/setarch.8.adoc b/sys-utils/setarch.8.adoc
index 1d8c390b3..7ad710dff 100644
--- a/sys-utils/setarch.8.adoc
+++ b/sys-utils/setarch.8.adoc
@@ -16,8 +16,6 @@ setarch - change reported architecture in new program environment and/or set per
 
 *setarch* *--list*|*-h*|*-V*
 
-*arch* [options] [_program_ [_argument_...]]
-
 == DESCRIPTION
 
 *setarch* modifies execution domains and process personality flags.
@@ -31,28 +29,26 @@ Since version 2.33 the _arch_ command line argument is optional and *setarch* ma
 *--list*::
 List the architectures that *setarch* knows about. Whether *setarch* can actually set each of these architectures depends on the running kernel.
 
-*--show[=personality]*::
+*--show*[**=**_personality_]::
 Show the currently active personality and flags.
-If the *personality* argument is provided, it is shown instead of the current one.
-*personality* is a hexadecimal number with values was described in *sys/personality.h*.
-+
-If *--pid=pid* option is provided, show them of the specifies process.
+If the _personality_ argument is provided, that personality is shown instead of the current one.
+_personality_ is a hexadecimal number whose possible values are described in *sys/personality.h*.
+
+*-p*, **--pid=**_pid_::
+When used with *--show*, show the personality and flags of the specified process.
 
 *--uname-2.6*::
-Causes the _program_ to see a kernel version number beginning with 2.6. Turns on *UNAME26*.
+Causes the specified _program_ to see a kernel version number beginning with 2.6. Turns on *UNAME26*.
 
 *-v*, *--verbose*::
 Be verbose.
 
 *-3*, *--3gb*::
-Specifies _program_ should use a maximum of 3GB of address space. Supported on x86. Turns on *ADDR_LIMIT_3GB*.
+The specified _program_ should use a maximum of 3GB of address space. Supported on x86. Turns on *ADDR_LIMIT_3GB*.
 
 *--4gb*::
 This option has no effect. It is retained for backward compatibility only, and may be removed in future releases.
 
-*-p*, *--pid=pid*::
-With *--show* option, show the currently active personality and flags of the specifies process.
-
 *-B*, *--32bit*::
 Limit the address space to 32 bits to emulate hardware. Supported on ARM and Alpha. Turns on *ADDR_LIMIT_32BIT*.
 
@@ -82,7 +78,7 @@ SVr4 bug emulation that will set *mmap*(2) page zero as read-only. Use when _pro
 
 include::man-common/help-version.adoc[]
 
-== EXAMPLE
+== EXAMPLES
 
 ....
 setarch --addr-no-randomize mytestprog
-- 
2.48.1


             reply	other threads:[~2025-04-07 15:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 15:14 Benno Schulenberg [this message]
2025-04-07 15:14 ` [PATCH 2/8] choom: (man) add the missing SYNOPSIS section header, and improve wording Benno Schulenberg
2025-04-07 15:14 ` [PATCH 3/8] hexdump: (man) normalize the synopsis, and shrink a list and two tables Benno Schulenberg
2025-04-07 15:14 ` [PATCH 4/8] blkzone: (man) reduce two overblown tables to legible proportions Benno Schulenberg
2025-04-07 15:14 ` [PATCH 5/8] eject: (man) add the missing SYNOPSIS header Benno Schulenberg
2025-04-07 15:14 ` [PATCH 6/8] mount: (man) fix some indentation issues, and improve a few wordings Benno Schulenberg
2025-04-07 15:14 ` [PATCH 7/8] mount: (man) shorten an overlong line, and improve some markup Benno Schulenberg
2025-04-07 15:14 ` [PATCH 8/8] column: (man) fix broken markup, and improve other markup and wordings Benno Schulenberg
2025-04-08 10:33 ` [PATCH 1/8] setarch: (man) remove a synopsis line that mistakenly mentions `arch` Karel Zak
2025-04-08 12:35   ` Chris Hofstaedtler
2025-04-08 13:24     ` Karel Zak
2025-04-09  9:36   ` Benno Schulenberg
2025-04-08 10:47 ` 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=20250407151503.23394-1-bensberg@telfort.nl \
    --to=bensberg@telfort.nl \
    --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