The flags variable in shmat was not actually used. We need UVM_FLAG_*
authormillert <millert@openbsd.org>
Thu, 15 Jan 2015 20:36:17 +0000 (20:36 +0000)
committermillert <millert@openbsd.org>
Thu, 15 Jan 2015 20:36:17 +0000 (20:36 +0000)
commitfee401c55dedc3ba69047c4539b89b9c3b51e3b0
tree9becf6ecb51ed01b9f0dc791464fe2d8759fe557
parentaf4f502b8bf6823323964c31db90d47d7892a45d
The flags variable in shmat was not actually used.  We need UVM_FLAG_*
flags, not mmap-style flags for UVM_MAPFLAG().  Remove the nonsensical
MAP_ANON|MAP_SHARED value and convert MAP_FIXED to UVM_FLAG_FIXED.
OK guenther@
sys/kern/sysv_shm.c