Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* Re: bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int
       [not found] <1f443971-a9c2-214e-5daf-0e03fbb769c2@inode.at>
@ 2020-01-21 23:58 ` Michael Kerrisk (man-pages)
  2020-01-22  9:19   ` Jakub Wilk
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-21 23:58 UTC (permalink / raw)
  To: Aaron; +Cc: linux-man

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


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int
  2020-01-21 23:58 ` bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int Michael Kerrisk (man-pages)
@ 2020-01-22  9:19   ` Jakub Wilk
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Wilk @ 2020-01-22  9:19 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: Aaron, linux-man

I think Aaron's point is that if you tried to compile the example 
program, you would get:

   pkeys.c: In function ‘pkey_set’:
   pkeys.c:22:12: error: void value not ignored as it ought to be
      22 |     return wrpkru(pkru);
         |            ^~~~~~~~~~~~

-- 
Jakub Wilk

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1f443971-a9c2-214e-5daf-0e03fbb769c2@inode.at>
2020-01-21 23:58 ` bug in example in http://man7.org/linux/man-pages/man7/pkeys.7.html void -> int Michael Kerrisk (man-pages)
2020-01-22  9:19   ` Jakub Wilk

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git