John Baldwin 5fd3f8b3b6 Add stricter checking of some mmap() arguments:
- Fail with EINVAL if an invalid protection mask is passed to mmap().
- Fail with EINVAL if an unknown flag is passed to mmap().
- Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to mmap().
- Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
  mappings.

Reviewed by:	alc, kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D698
2014-09-15 17:20:13 +00:00
..
2014-06-26 10:21:00 +00:00
2013-01-15 14:09:08 +00:00
2014-06-26 10:21:00 +00:00
2013-08-16 13:16:27 +00:00
2011-11-10 06:20:18 +00:00
2014-09-09 14:34:54 +00:00
2012-05-08 18:56:21 +00:00
2014-05-30 02:16:28 +00:00
2012-05-08 18:56:21 +00:00
2012-05-08 18:56:21 +00:00
2014-07-09 01:33:35 +00:00
2009-06-15 21:52:27 +00:00
2012-01-15 20:14:52 +00:00
2010-12-18 10:09:07 +00:00
2014-06-24 20:23:18 +00:00
2010-10-13 16:57:06 +00:00
2012-06-02 10:50:25 +00:00
2012-05-08 18:56:21 +00:00
2012-05-08 18:56:21 +00:00
2012-05-08 18:56:21 +00:00
2013-12-06 21:22:33 +00:00