aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2014-05-07 08:38:02 +0000
committerPeter Holm <pho@FreeBSD.org>2014-05-07 08:38:02 +0000
commite103f5b1c0b3d9fbef37365cbb46f6bb3f958feb (patch)
treea5359d97e2aa4026b5be0df2a0ec46bf62f6c728 /sys/vm/vm_mmap.c
parentadd58488d2f31d61ebbe01c6d94df2dba49be0cb (diff)
downloadsrc-e103f5b1c0b3d9fbef37365cbb46f6bb3f958feb.tar.gz
src-e103f5b1c0b3d9fbef37365cbb46f6bb3f958feb.zip
msync(2) must return ENOMEM and not EINVAL when the address is outside the
allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Discussed with: attilio, Bruce Evans Reviewed by: alc, Garrett Cooper Reported by: ATF MFC after: 2 weeks Sponsored by: EMC / Isilon storage division
Notes
Notes: svn path=/head/; revision=265534
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 6a9f29b0ffbd..60aa6211981e 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -556,7 +556,7 @@ sys_msync(td, uap)
case KERN_SUCCESS:
return (0);
case KERN_INVALID_ADDRESS:
- return (EINVAL); /* Sun returns ENOMEM? */
+ return (ENOMEM);
case KERN_INVALID_ARGUMENT:
return (EBUSY);
case KERN_FAILURE: