Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Digital Unix mmap usage
@ 1996-06-27  4:00 Oleg Meshbey
  1996-06-28  4:00 ` Patrick O'Rourke USG
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Meshbey @ 1996-06-27  4:00 UTC (permalink / raw)


Hi,

Does anybody know, how to use mmap function with growing files?

Other Unix platforms permit to specify length of the new region (second
parameter of mmap) greater then physical file size. 

DEC mmap fails in this case.

Thanks.

_______________________________________________________________________

	Oleg Meshbey                       e-mail: oleg@geodepth.com
	Product Manager			   phone : (972)-9-589 323
	Paradigm Geophysical Ltd.          fax   : (972)-9-589 327



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Digital Unix mmap usage
  1996-06-27  4:00 Digital Unix mmap usage Oleg Meshbey
@ 1996-06-28  4:00 ` Patrick O'Rourke USG
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick O'Rourke USG @ 1996-06-28  4:00 UTC (permalink / raw)


Oleg Meshbey wrote:
> Does anybody know, how to use mmap function with growing files?
> 
> Other Unix platforms permit to specify length of the new region (second
> parameter of mmap) greater then physical file size.
> 
> DEC mmap fails in this case.
>

What version of the OS are you running on?  On version 4.0 you can give mmap(2)
a length greater than the size of the file.  On earlier versions mmap(2) would
not allow it (I believe this restriction was originally in place to adhere an
earlier standard).

Pat 

-- 
Patrick O'Rourke                                                 (603) 881-0124
orourke@zk3.dec.com                                            Office: ZK3/3S05



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-28  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-27  4:00 Digital Unix mmap usage Oleg Meshbey
1996-06-28  4:00 ` Patrick O'Rourke USG

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox