Subject: Re: loaning for read() of regular files
To: Chuck Silvers <chuq@chuq.com>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 02/16/2005 09:31:49
On Feb 16, 2005, at 9:15 AM, Chuck Silvers wrote:

> solaris and the BSDs do not allow access to a file past EOF via 
> mappings,
> they generate signals (SIGBUS or SIGSEGV, depending on the 
> implementation).

They generate signals if the access is regular access.  But if the 
mmap'd-past-EOF area is pass as a buffer to e.g. write(), then we 
correctly return EFAULT.

-- thorpej