linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* get_mempolicy(2) type mismatch
@ 2016-05-03  0:58 Jörn Engel
  2016-06-03  2:19 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Jörn Engel @ 2016-05-03  0:58 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man, linux-fsdevel

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

--
The more any quantitative social indicator is used for social decision-making,
the more subject it will be to corruption pressures and the more apt it will
be to distort and corrupt the social processes it is intended to monitor.
-- Campbell's law

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

* Re: get_mempolicy(2) type mismatch
  2016-05-03  0:58 get_mempolicy(2) type mismatch Jörn Engel
@ 2016-06-03  2:19 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-06-03  2:19 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: mtk.manpages, linux-man, linux-fsdevel

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/

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

end of thread, other threads:[~2016-06-03  2:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03  0:58 get_mempolicy(2) type mismatch Jörn Engel
2016-06-03  2:19 ` Michael Kerrisk (man-pages)

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