diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-03-26 08:43:35 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-03-26 08:43:35 +0000 |
commit | f3e4aab1c715da8604d0a2d20aadf53414facd67 (patch) | |
tree | a308e46ca2a6bcd69ef5e2e86200afd4c89774d0 /sys/uvm/uvm_mmap.c | |
parent | 1bff2693343e573573147ca06422bdece9097b4f (diff) |
Rip out the KERN_ error codes.
ok otto@
Diffstat (limited to 'sys/uvm/uvm_mmap.c')
-rw-r--r-- | sys/uvm/uvm_mmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 13e361eeca1..5a4a751cfc0 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.65 2007/03/25 11:31:07 art Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.66 2007/03/26 08:43:34 art Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -831,7 +831,7 @@ sys_mprotect(p, v, retval) if (rv == 0) return (0); - if (rv == KERN_PROTECTION_FAILURE) + if (rv == EACCES) return (EACCES); return (EINVAL); } @@ -870,7 +870,7 @@ sys_minherit(p, v, retval) inherit)) { case 0: return (0); - case KERN_PROTECTION_FAILURE: + case EACCES: return (EACCES); } return (EINVAL); @@ -1090,7 +1090,7 @@ sys_mlockall(p, v, retval) error = 0; break; - case KERN_NO_SPACE: /* XXX overloaded */ + case ENOMEM: error = ENOMEM; break; @@ -1292,7 +1292,7 @@ uvm_mmap(map, addr, size, prot, maxprot, flags, handle, foff, locklimit, p) locklimit) #endif ) { - retval = KERN_RESOURCE_SHORTAGE; + retval = ENOMEM; vm_map_unlock(map); /* unmap the region! */ uvm_unmap(map, *addr, *addr + size); |