Re: your mail

Tim Smith (tzs@tzs.net)
Sun, 27 Sep 1998 13:19:08 -0700 (PDT)


On Sun, 27 Sep 1998, Matthew Wilcox wrote:
> > > > Would it work if you create a scratch file, open it, unlink it, fill it
> > > > to the right size with zeros and then map it with a shared mapping?
...
> That's not what O'Reilly's POSIX.4 book tells me. in the January 1995
> edition, page 117:
>
> `ftruncate actually works on all files ... ftruncate works both ways ...
> Whatever size you pass in to ftruncate becomes the size of the shared
> memory object.'

We're talking about files, though, not shared memory objects. Michael Johnson
and Erik Troan say in their book that for files, POSIX only requires it to
work if length is not larger than the current file size. That agrees with
what the POSIX.1 book I have says.

--Tim Smith

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/