Re: mremap() proposal (was Re: malloc and joe)

Matti E Aarnio (mea@mea.cc.utu.fi)
Sun, 24 Mar 1996 23:56:32 +0200 (EET)


...
> for the initial mapping, and then when the process notices that the file
> has grown (or shrunk), it does a
>
> mremap(addr, old_size, st.st_size)
>
> to be able to read the new pages. A very logical interface, in fact.

Don't forget that mmap() has a ``start offset within the file'',
that is, we might not want to care about first 5 GB of some file,
and want to skip it with that offset...

> Linus

/Matti Aarnio <mea@utu.fi>