mbind.2: Fix prototype for mbind(2)

The nmask argument is const. The return type in numaif.h is long.
(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@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Rasmus Villemoes 2014-04-30 21:42:39 +02:00 committed by Michael Kerrisk
parent 24313b880d
commit b93d8ccadc
1 changed files with 3 additions and 3 deletions

View File

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