From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Daniel Borkmann <daniel@iogearbox.net>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: get_mempolicy(2) type mismatch
Date: Thu, 2 Jun 2016 21:19:32 -0500 [thread overview]
Message-ID: <d8350bd1-943f-37d6-4f1e-3571e8801380@gmail.com> (raw)
In-Reply-To: <20160503005821.GC9613@cork>
On 05/02/2016 07:58 PM, J�rn Engel wrote:
> The manpage seems to have the wrong type for "addr".
>
> Manpage:
> int get_mempolicy(int *mode, unsigned long *nodemask,
> unsigned long maxnode, unsigned long addr,
> unsigned long flags);
>
> /usr/include/numaif.h:
> extern long get_mempolicy(int *policy, const unsigned long *nmask,
> unsigned long maxnode, void *addr, int flags);
>
> J�rn
Hmmm -- it seems that the numactl package headers differ from the
kernel headers (where the man page is accurate). But, it seems like
the man page should reflect what's in the user-space header file, so
I fixed it to be
void *addr
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2016-06-03 2:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 0:58 get_mempolicy(2) type mismatch Jörn Engel
2016-06-03 2:19 ` Michael Kerrisk (man-pages) [this message]
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=d8350bd1-943f-37d6-4f1e-3571e8801380@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=daniel@iogearbox.net \
--cc=linux-fsdevel@vger.kernel.org \
--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).