Re: Man-page example code correction: sched_getcpu(3)

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

 



Hi Shahab,

On Sun, Dec 31, 2023 at 06:41:43PM +0330, Shahab Ouraie wrote:
> This example code here
> <https://man7.org/linux/man-pages/man3/sched_getcpu.3.html#NOTES> (under
> *sched_getcpu(3)* man-page) used *getcpu(2)* with extra param:
> >
> > getcpu(&c, NULL, NULL);
> >
> > man-page for getcpu(2)
> <https://man7.org/linux/man-pages/man2/getcpu.2.html#SYNOPSIS> defines only
> 2 args and gcc throws error on gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0 build.
> Thanks for your time and effort <3

Thanks for your report!

Fixed:
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=f9816831010228c5306584df6880533f33547ecd>

Have a lovely year,
Alex

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

Attachment: signature.asc
Description: PGP signature


[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