From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5e45f3b77fd2da34 X-Google-Attributes: gidfee84,public From: Patrick O'Rourke USG Subject: Re: Digital Unix mmap usage Date: 1996/06/28 Message-ID: <31D3D71D.41C6@zk3.dec.com>#1/1 X-Deja-AN: 162563152 references: <31D29D9F.41C6@geodepth.com> content-type: text/plain; charset=us-ascii organization: CTG mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 V4.0 alpha) 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