Linux-man Archive mirror
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Shahab Ouraie <shahabouraie@gmail.com>
Cc: linux-man@vger.kernel.org
Subject: Re: Man-page example code correction: sched_getcpu(3)
Date: Mon, 1 Jan 2024 13:11:11 +0100	[thread overview]
Message-ID: <ZZKr37Qu6U2340x8@debian> (raw)
In-Reply-To: <CAKcKaNR1yGZrkHbdxr=iATzXftPe=eVm4W2cz2ROmEj3=izTiA@mail.gmail.com>

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

           reply	other threads:[~2024-01-01 12:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAKcKaNR1yGZrkHbdxr=iATzXftPe=eVm4W2cz2ROmEj3=izTiA@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZZKr37Qu6U2340x8@debian \
    --to=alx@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=shahabouraie@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).