* Re: Man-page example code correction: sched_getcpu(3)
[not found] <CAKcKaNR1yGZrkHbdxr=iATzXftPe=eVm4W2cz2ROmEj3=izTiA@mail.gmail.com>
@ 2024-01-01 12:11 ` Alejandro Colomar
0 siblings, 0 replies; only message in thread
From: Alejandro Colomar @ 2024-01-01 12:11 UTC (permalink / raw)
To: Shahab Ouraie; +Cc: linux-man
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] only message in thread