linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aaron <aaron_ng@inode.at>
To: linux-man@vger.kernel.org
Subject: Fwd: Re: bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int
Date: Wed, 22 Jan 2020 11:24:19 +0100	[thread overview]
Message-ID: <06fe4ab4-d903-3863-9cc6-12541e31a686@inode.at> (raw)
In-Reply-To: <188feb2f-d52e-1d35-1baa-3d8a3199647e@inode.at>

I replied to Michael, but missed to address the list. Jakubs 
interpretation is right. See my response below.


Hello!

Sorry, there is a typo on my side, and I have been less specific then 
desirable.

The problem is there:

static inline void
wrpkru(unsigned int pkru) ... <== returns void
...
int
pkey_set(int pkey, unsigned long rights, unsigned long flags) <== 
returns int
{
unsigned int pkru = (rights << (2 * pkey));
return wrpkru(pkru); <== here the V O I D I S R E T U R N E D A S I N T
}

Regards, Aaron


On 1/22/20 12:58 AM, Michael Kerrisk (man-pages) wrote:
> Hello Aaron,
>
> I'm sorry. I don't understand your bug report. As far as I can see,
> the manual page never looked like the text you quote. But, maybe I
> misunderstand you?
>
> Thanks,
>
> Michael
>
> On Wed, 3 Apr 2019 at 16:10, Aaron <aaron_ng@inode.at> wrote:
>> Hello!
>>
>> In http://man7.org/linux/man-pages/man7/pkeys.7.html
>>
>> We have
>>
>> void
>> ...       wrpkru(unsigned int pkru);
>>
>> ...
>>
>> int pkey_set(int pkey, unsigned long rights, unsigned long flags)
>>
>> ... returnwrpkru(...
>>
>> Regards, Aaron
>>
>>
>>
>


           reply	other threads:[~2020-01-22 10:24 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <188feb2f-d52e-1d35-1baa-3d8a3199647e@inode.at>]

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=06fe4ab4-d903-3863-9cc6-12541e31a686@inode.at \
    --to=aaron_ng@inode.at \
    --cc=linux-man@vger.kernel.org \
    /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 NNTP newsgroup(s).