From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 07/10] Fix prototype for mbind(2)
Date: Thu, 08 May 2014 11:44:21 +0200 [thread overview]
Message-ID: <536B51F5.5000602@gmail.com> (raw)
In-Reply-To: <1398886962-10633-8-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
On 04/30/2014 09:42 PM, Rasmus Villemoes wrote:
> The nmask argument is const. The return type in numaif.h is long.
Thanks. Applied!
Cheers,
Michael
> ---
> Well, at least <numaif.h> says nmask is const. The current kernel does
> not define it as a const argument, but sys_mbind() only passes it to
> get_nodes(), which does treat it as const.
>
> Signed-off-by: Rasmus Villemoes <rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
> ---
> man2/mbind.2 | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/man2/mbind.2 b/man2/mbind.2
> index 2a690e6..6cff10a 100644
> --- a/man2/mbind.2
> +++ b/man2/mbind.2
> @@ -49,9 +49,9 @@ mbind \- set memory policy for a memory range
> .nf
> .B "#include <numaif.h>"
> .sp
> -.BI "int mbind(void *" addr ", unsigned long " len ", int " mode ,
> -.BI " unsigned long *" nodemask ", unsigned long " maxnode ,
> -.BI " unsigned " flags );
> +.BI "long mbind(void *" addr ", unsigned long " len ", int " mode ,
> +.BI " const unsigned long *" nodemask ", unsigned long " maxnode ,
> +.BI " unsigned " flags );
> .sp
> Link with \fI\-lnuma\fP.
> .fi
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-05-08 9:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 19:42 [PATCH 00/10] Fix various inconsistencies Rasmus Villemoes
[not found] ` <1398886962-10633-1-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-04-30 19:42 ` [PATCH 01/10] Fix return type of readlinkat() Rasmus Villemoes
[not found] ` <1398886962-10633-2-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:43 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 02/10] Fix prototype for stime() Rasmus Villemoes
[not found] ` <1398886962-10633-3-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:43 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 03/10] Fix prototypes for semop() and semtimedop() Rasmus Villemoes
[not found] ` <1398886962-10633-4-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 04/10] Fix prototypes for [sg]etpriority() Rasmus Villemoes
[not found] ` <1398886962-10633-5-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 05/10] Fix prototype for sched_setaffinity() Rasmus Villemoes
[not found] ` <1398886962-10633-6-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 06/10] Add <sys/types.h> to synopsis of get_robust_list() Rasmus Villemoes
[not found] ` <1398886962-10633-7-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 07/10] Fix prototype for mbind(2) Rasmus Villemoes
[not found] ` <1398886962-10633-8-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages) [this message]
2014-04-30 19:42 ` [PATCH 08/10] Add <signal.h> to synopsis for ppoll() Rasmus Villemoes
[not found] ` <1398886962-10633-9-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 09/10] Fix prototype for set_mempolicy(2) Rasmus Villemoes
[not found] ` <1398886962-10633-10-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-04-30 19:42 ` [PATCH 10/10] Fix prototype for syscall(2) Rasmus Villemoes
[not found] ` <1398886962-10633-11-git-send-email-rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.org>
2014-05-08 9:44 ` Michael Kerrisk (man-pages)
2014-05-08 9:43 ` [PATCH 00/10] Fix various inconsistencies Michael Kerrisk (man-pages)
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=536B51F5.5000602@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rv-qQsb+v5E8BnlAoU/VqSP6n9LOBIZ5rWg@public.gmane.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).