Alfred Perlstein wrote:
> 
> * Farooq Mela <[EMAIL PROTECTED]> [020312 13:01] wrote:
> >
> > Rather than the usual recv() to a fixed size buffer, write() to the
> > file descriptor, loop, etc.  However when I try to do this recv gives
> > me back an EFAULT (bad address).  Is there a limitation of the
> > architecture which does not allows us to recv() to an mmap'ed area of
> > a file, or is it just something which hasn't been implemented?
> 
> You may not extend a file using mmap(2), you must use ftuncate(2)
> or write(2).
> 
> -Alfred

I am aware of this, this is why I stated:

> /* file_fd points to a regular file which is filled with SIZE nul
> bytes */

The file is already the required size.

--
Farooq <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to