Subject: Re: mmap (was Re: bin/10625: /usr/bin/cmp)
To: None <>
From: Greg A. Woods <>
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      <>      <robohack!woods>
Planix, Inc. <>; Secrets of the Weird <>