diff options
author | alc <alc@FreeBSD.org> | 2003-11-14 06:55:11 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-11-14 06:55:11 +0000 |
commit | 58630d7148f6f0dc26029ef3a6eaf3f3cd351b16 (patch) | |
tree | 9a92610f3323a5ce4ef11b542fdb2e423e74ad93 /sys/vm/vm_mmap.c | |
parent | 93bd478591791379f9bee3e11e3ff58f5c6ddd83 (diff) | |
download | FreeBSD-src-58630d7148f6f0dc26029ef3a6eaf3f3cd351b16.zip FreeBSD-src-58630d7148f6f0dc26029ef3a6eaf3f3cd351b16.tar.gz |
Changes to msync(2)
- Return EBUSY if the region was wired by mlock(2) and MS_INVALIDATE
is specified to msync(2). This is required by the Open Group Base
Specifications Issue 6.
- vm_map_sync() doesn't return KERN_FAILURE. Thus, msync(2) can't
possibly return EIO.
- The second major loop in vm_map_sync() handles sub maps. Thus,
failing on sub maps in the first major loop isn't necessary.
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r-- | sys/vm/vm_mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index 9025c46..6356910 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -558,8 +558,8 @@ msync(td, uap) return (0); case KERN_INVALID_ADDRESS: return (EINVAL); /* Sun returns ENOMEM? */ - case KERN_FAILURE: - return (EIO); + case KERN_INVALID_ARGUMENT: + return (EBUSY); default: return (EINVAL); } |