Thread (16 messages) flat view 16 messages, 5 authors, 2016-06-15

Re: read() MAX_IO_SIZE bytes, more than SSIZE_MAX?

From: Joachim Schmitz <hidden>
Date: 2016-06-15 23:03:45

Joachim Schmitz <jojo <at> schmitz-digital.de> writes:

<snip>
and as a (rather strange) 
consequence mmap() (from compat/mmap.c) fails with EACCESS (why 
EACCESS?), 
because xpread() returns something > 0.
Seems mmap() should either set errno to EINVAL or not set it at all an 
just 'forward' whatever xpread() has set.

As per http://man7.org/linux/man-pages/man2/mmap.2.html mmap() sets EINVAL 
if (amongst other things) it doesn't like the value of len, exactly the 
case here.

bye, Jojo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help