linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* semctl(2): data type for SEM_STAT_ANY
@ 2021-01-15 15:35 Martin Doucha
  2021-01-16  0:56 ` Alejandro Colomar (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Doucha @ 2021-01-15 15:35 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

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

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-16  0:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).