Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156715492
D23843.id68845.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23843.id68845.diff
View Options
Index: lib/libc/sys/mmap.2
===================================================================
--- lib/libc/sys/mmap.2
+++ lib/libc/sys/mmap.2
@@ -431,7 +431,7 @@
An invalid value was passed in the
.Fa prot
argument.
-.It Bq Er EINVAL
+.It Bq Er ENOTSUP
The
.Fa prot
argument contains permissions which are not a subset of the specified
Index: lib/libc/sys/mprotect.2
===================================================================
--- lib/libc/sys/mprotect.2
+++ lib/libc/sys/mprotect.2
@@ -98,7 +98,7 @@
The
.Fa prot
argument contains unhandled bits.
-.It Bq Er EINVAL
+.It Bq Er ENOTSUP
The
.Fa prot
argument contains permissions which are not a subset of the specified
Index: sys/vm/vm_mmap.c
===================================================================
--- sys/vm/vm_mmap.c
+++ sys/vm/vm_mmap.c
@@ -225,7 +225,7 @@
max_prot = PROT_MAX_EXTRACT(prot);
prot = PROT_EXTRACT(prot);
if (max_prot != 0 && (max_prot & prot) != prot)
- return (EINVAL);
+ return (ENOTSUP);
p = td->td_proc;
@@ -668,7 +668,7 @@
vm_error = KERN_SUCCESS;
if (max_prot != 0) {
if ((max_prot & prot) != prot)
- return (EINVAL);
+ return (ENOTSUP);
vm_error = vm_map_protect(&td->td_proc->p_vmspace->vm_map,
addr, addr + size, max_prot, TRUE);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 8:55 PM (11 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33152505
Default Alt Text
D23843.id68845.diff (1 KB)
Attached To
Mode
D23843: Return ENOTSUP for mmap/mprotect with prot not subset of prot_max
Attached
Detach File
Event Timeline
Log In to Comment