Re: semctl(2): data type for SEM_STAT_ANY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux