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

Alejandro Colomar
2024-01-01T12:11:14Z

[-- 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 --]