linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
To: Martin Doucha <mdoucha@suse.cz>
Cc: linux-man@vger.kernel.org, mtk.manpages@gmail.com
Subject: Re: semctl(2): data type for SEM_STAT_ANY
Date: Sat, 16 Jan 2021 01:56:45 +0100	[thread overview]
Message-ID: <51ff866c-fac2-fd13-1ac4-0b9537b8a1e4@gmail.com> (raw)
In-Reply-To: <14010457-560b-5c2f-d840-782be5f0aeb8@suse.cz>

On 1/15/21 4:35 PM, Martin Doucha wrote:
> Hello,
> there's a minor error in the semctl(2) man page, the correct data type
> for SEM_STAT_ANY return buffer is "struct semid_ds" because the kernel
> code path is the same as for IPC_STAT and SEM_STAT:
> 
> https://github.com/torvalds/linux/blob/5ee88057889bbca5f5bb96031b62b3756b33e164/ipc/sem.c#L1789
> 
> The man page currently says that the data type for IPC_STAT and SEM_STAT
> is "struct semid_ds" (correct) but then it says the data type for
> SEM_STAT_ANY is "struct seminfo" (wrong).
> 
> https://man7.org/linux/man-pages/man2/semctl.2.html
> 

Hello Martin,

This was fixed a few days ago.
Please, check commit 43ebbd192571b221b975c0d94bda3bcf0d633338.

Thanks,

Alex


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/

      reply	other threads:[~2021-01-16  0:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 15:35 semctl(2): data type for SEM_STAT_ANY Martin Doucha
2021-01-16  0:56 ` Alejandro Colomar (man-pages) [this message]

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=51ff866c-fac2-fd13-1ac4-0b9537b8a1e4@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mdoucha@suse.cz \
    --cc=mtk.manpages@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).