Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611443 > unrolled thread
| Started by | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| First post | 2017-03-29 01:50 +0200 |
| Last post | 2017-03-29 01:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag Andrew Morton <akpm@linux-foundation.org> - 2017-03-29 01:50 +0200
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2017-03-29 01:50 +0200 |
| Subject | Re: [PATCH] selftests/vm: Set mmap()'s fd as -1 for MAP_ANONYMOUS flag |
| Message-ID | <tq92a-6KA-23@gated-at.bofh.it> |
On Fri, 24 Mar 2017 10:47:55 -0600 Shuah Khan <shuah@kernel.org> wrote: > > On Wed, Mar 15, 2017 at 10:19 PM, SeongJae Park <sj38.park@gmail.com> wrote: > >> Man page of mmap() says that portable applications should ensure fd > >> argument to be -1 if MAP_ANONYMOUS flag is set as below: > >> ``` > >> The mapping is not backed by any file; its contents are initialized to > >> zero. The fd and offset arguments are ignored; however, some > >> implementations require fd to be -1 if MAP_ANONYMOUS (or > >> MAP_ANON) is specified, and portable applications > >> should ensure this. > >> ``` > >> > >> However, few mmap() calls under selftests/vm/ uses 0 as fd though they > >> use MAP_ANONYMOUS flag. This commit changes the argument to be -1 as > >> recommended. > > Hi Andrew, > > Do you have comments on this patch? Please Ack it if you would > like me to take it thorugh ksefltest tree. Acked-by: Andrew Morton <akpm@linux-foundation.org>
Back to top | Article view | linux.kernel
csiph-web