public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Eric Blake <eblake@redhat.com>
Cc: Thomas Orgis <thomas@orgis.org>, linux-man@vger.kernel.org
Subject: Status of SA_NOCLDWAIT in POSIX.1 (was: SA_RESTART and friends as XSI extensions to POSIX.1-2001 < XOPEN_SOURCE >= 600)
Date: Sun, 25 Feb 2024 12:41:18 +0100	[thread overview]
Message-ID: <ZdsnZcu1IRjkRyo5@debian> (raw)
In-Reply-To: <20240214095707.1824c25c@plasteblaster>

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

Hi Eric,

I received a bug report for the Linux man-pages' sigaction(2) HISTORY
section, regarding some constants being XSI extensions in POSIX.1-2001
while the manual page was silent about it (so the user didn't understand
why their feature test macros weren't being enough.

While trying to write correct HISTORY for those constants, I realized
about an inconsistency in POSIX.1-2008 (2017 revision), in
<https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html>.

The DESCRIPTION (normative) section of signal.h says SA_NOCLDWAIT is an
XSI extension:

        SA_NOCLDWAIT
	    [XSI] [Option Start] Causes implementations not to create
            zombie processes or status information on child termination.
            See sigaction.  [Option End]

But then, the CHANGE HISTORY (informative) section says about Issue 7:

	The SA_RESETHAND, SA_RESTART, SA_SIGINFO, SA_NOCLDWAIT, and
        SA_NODEFER constants are moved from the XSI option to the Base.

That seems like an accident, since 'SA_NOCLDWAIT' wasn't moved to base,
right?

Please forward this to the Austin group if you find it appropriate.


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

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

  reply	other threads:[~2024-02-25 11:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14  8:57 SA_RESTART and friends as XSI extensions to POSIX.1-2001 < XOPEN_SOURCE >= 600 Thomas Orgis
2024-02-25 11:41 ` Alejandro Colomar [this message]
2024-02-25 11:53 ` [PATCH 0/2] sigaction.2: HISTORY: Document history of POSIX constants more accurately Alejandro Colomar
2024-02-25 11:53   ` [PATCH 1/2] sigaction.2: HISTORY: SA_NOCLDSTOP wasn't added in POSIX.1-2001 Alejandro Colomar
2024-02-27 18:12     ` Thomas Orgis
2024-02-27 21:15       ` Alejandro Colomar
2024-02-25 11:53   ` [PATCH 2/2] sigaction.2: HISTORY: Some constants are or were XSI extensions Alejandro Colomar
2024-02-27 18:14     ` Thomas Orgis

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=ZdsnZcu1IRjkRyo5@debian \
    --to=alx@kernel.org \
    --cc=eblake@redhat.com \
    --cc=linux-man@vger.kernel.org \
    --cc=thomas@orgis.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