* 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, other threads:[~2020-01-22 9:26 UTC | newest] 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
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).