diff options
author | 2014-11-16 12:30:52 +0000 | |
---|---|---|
committer | 2014-11-16 12:30:52 +0000 | |
commit | 1e8cdc2e593c4e9ec7f4bdac2fbf48a4ad29f5b8 (patch) | |
tree | 739083100a383196b1776cb84f65da8812dc079b /sys/kern/kern_physio.c | |
parent | Read your compiler output even when it succeeds. Add missing variable to (diff) | |
download | wireguard-openbsd-1e8cdc2e593c4e9ec7f4bdac2fbf48a4ad29f5b8.tar.xz wireguard-openbsd-1e8cdc2e593c4e9ec7f4bdac2fbf48a4ad29f5b8.zip |
Replace a plethora of historical protection options with just
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index bcb84149439..338a4fba936 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_physio.c,v 1.41 2014/09/14 14:17:25 jsg Exp $ */ +/* $OpenBSD: kern_physio.c,v 1.42 2014/11/16 12:31:00 deraadt Exp $ */ /* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */ /*- @@ -139,7 +139,7 @@ physio(void (*strategy)(struct buf *), dev_t dev, int flags, */ error = uvm_vslock_device(p, iovp->iov_base, todo, (flags & B_READ) ? - VM_PROT_READ | VM_PROT_WRITE : VM_PROT_READ, &map); + PROT_READ | PROT_WRITE : PROT_READ, &map); if (error) goto done; if (map) { |