All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: Sami Kerola <kerolasa@iki.fi>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH 3/4] docs: improve setarch(8) manual page
Date: Sun, 3 Dec 2017 16:29:09 +0300	[thread overview]
Message-ID: <20171203132909.GA1559@altlinux.org> (raw)
In-Reply-To: <20171203125117.28159-3-kerolasa@iki.fi>

[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]

On Sun, Dec 03, 2017 at 12:51:16PM +0000, Sami Kerola wrote:
> Add more information when and why one might want to use various options.
> 
> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
> ---
>  sys-utils/setarch.8 | 51 +++++++++++++++++++++++++++++++++++++++++----------
>  1 file changed, 41 insertions(+), 10 deletions(-)
> 
> diff --git a/sys-utils/setarch.8 b/sys-utils/setarch.8
> index 73874c8b6..ce7ba97ac 100644
> --- a/sys-utils/setarch.8
> +++ b/sys-utils/setarch.8
[...]
>  .TP
>  \fB\-\-4gb\fR
> -Ignored (for backward compatibility only).
> +Ignored for backward compatibility only.

The new wording is more confusing than the old one.

[...]
>  .TP
>  \fB\-F\fR, \fB\-\-fdpic\-funcptrs\fR
> -Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS).
> +User-space function pointers to signal handlers point.  Use when kernel does
> +not have MMU.  Supported on ARM, Blackfin, Fujitsu FR-V, and SuperH (as of
> +2017-12-02).  Turns on FDPIC_FUNCPTRS.

The new wording is more confusing than the old one.

[...]
>  .TP
>  \fB\-T\fR, \fB\-\-sticky\-timeouts\fR
> +This makes
> +.BR select (2),
> +.BR pselect (2),
> +and
> +.BR ppoll (2)
> +system calls preserve the timeout value instead of storing the unslept time
> +when interrupted by a signal handler.  Use when
> +.I program
> +depends on this behavior, and the source code is not available to be fixed.
>  Turns on STICKY_TIMEOUTS.

The use of word "fixed" is not appropriate here.  According to select(2),

"On Linux, select() modifies timeout to reflect the amount of time not
slept; most other implementations do not do this.  (POSIX.1 permits either
behavior.)  This causes problems both when Linux code which reads timeout
is ported to other operating systems, and when code is ported to Linux
that reuses a struct timeval for multiple select()s in a loop without
reinitializing it.  Consider timeout to be undefined after select()
returns."


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-12-03 13:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-03 12:51 [PATCH 1/4] vipw: do not let editor to inherit open file descriptors Sami Kerola
2017-12-03 12:51 ` [PATCH 2/4] rename: use access(3) to check if a file exists Sami Kerola
2017-12-04 12:05   ` Karel Zak
2017-12-03 12:51 ` [PATCH 3/4] docs: improve setarch(8) manual page Sami Kerola
2017-12-03 13:29   ` Dmitry V. Levin [this message]
2017-12-04 12:04   ` Karel Zak
2017-12-04 13:20     ` Sami Kerola
2017-12-09  1:29       ` Dmitry V. Levin
2017-12-10 10:54         ` Sami Kerola
2017-12-11 15:06           ` Karel Zak
2017-12-11 13:46         ` Karel Zak
2017-12-03 12:51 ` [PATCH 4/4] setarch: minor code clean up Sami Kerola
2017-12-04 12:06   ` Karel Zak
2017-12-04 12:05 ` [PATCH 1/4] vipw: do not let editor to inherit open file descriptors 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=20171203132909.GA1559@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=kerolasa@iki.fi \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.