add new prctl command PR_SET_MM_MAP to sys/prctl.h
authorSzabolcs Nagy <nsz@port70.net>
Tue, 16 Dec 2014 01:37:33 +0000 (02:37 +0100)
committerRich Felker <dalias@aerifal.cx>
Tue, 23 Dec 2014 06:46:22 +0000 (01:46 -0500)
commit11ac2a6e811ff0860c7d3b3daf035dc6748fb4d4
treeddbe83cc8a26722de875309ba11fbd38be2df267
parentf90fafea3c5f1acd7b9bc8e720b417e2dba1d92d
add new prctl command PR_SET_MM_MAP to sys/prctl.h

PR_SET_MM_MAP was introduced as a subcommand for PR_SET_MM in
linux v3.18 commit f606b77f1a9e362451aca8f81d8f36a3a112139e

the associated struct type is replicated in sys/prctl.h using
libc types.

example usage:

 struct prctl_mm_map *p;
 ...
 prctl(PR_SET_MM, PR_SET_MM_MAP, p, sizeof *p);

the kernel side supported struct size may be queried with
the PR_SET_MM_MAP_SIZE subcommand.
include/sys/prctl.h