Subject: Re: mmap (was Re: bin/10625: /usr/bin/cmp)
To: None <tech-userlevel@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 07/28/2000 16:46:39
[ On , July 28, 2000 at 13:12:54 (-0700), Wolfgang Rupprecht wrote: ]
> Subject: mmap (was Re: bin/10625: /usr/bin/cmp)
>
> Currently mmap() doesn't know how to extend a file.  So even if one
> mmaps in extra space at the end of a file, one gets a SIGBUS if one
> tries to write to it.  

Perhaps mmap() shouldn't be used to write to files.  Indeed this is yet
another reason why use of mmap() should normally be hidden away in a
more generic library interface where its idiosyncracies can be carefully
coded around once.

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>