__MAP_NOFAULT doesn't make sense with anon mappings, so return EINVAL if
authorguenther <guenther@openbsd.org>
Thu, 30 Nov 2017 00:36:10 +0000 (00:36 +0000)
committerguenther <guenther@openbsd.org>
Thu, 30 Nov 2017 00:36:10 +0000 (00:36 +0000)
commit769346273878ee87025928ee34bbba76f217f4be
tree437e0e489bd24602234e5fe35d102efabc27fa9c
parent65ef1213d27b0cdace5459407b019c8082a89666
__MAP_NOFAULT doesn't make sense with anon mappings, so return EINVAL if
that is attempted.
Minor cleanups:
 - Eliminate some always false and always true tests against MAP_ANON
 - We treat anon mappings with neither MAP_{SHARED,PRIVATE} as MAP_PRIVATE
   so explicitly indicate that

ok kettenis@ beck@
sys/uvm/uvm_map.c
sys/uvm/uvm_mmap.c