mm: Ignore the FD on MAP_ANON mmaps
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Feb 2018 16:46:51 +0000 (11:46 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commit3de82fed3218f8933d0d74ad5a33cc2149a6d6f2
treeb2d95a7445ccd12d5961d891c4043b0153bf8b83
parent1a26383535b7f859012d695c88b9e14676bf0d67
mm: Ignore the FD on MAP_ANON mmaps

Linux lets you do this.  Portable apps should set FD to -1 when they don't
have a file, i.e. anonymous maps, but we can be liberal in what we receive.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/mm.c