From: Joachim Schmitz Date: Sat, 07 Feb 2015 19:14:06 GMT Subject: Re: read() MAX_IO_SIZE bytes, more than SSIZE_MAX? Message-ID: In-Reply-To: Joachim Schmitz schmitz-digital.de> writes: > 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