Boost logo

Boost Users :

From: Jose (jmalv04_at_[hidden])
Date: 2008-05-09 11:36:10


Hi Peter,

Have you looked at the iostreams mapped_file/ read_mapped_file ?

regards
jose

On Fri, May 2, 2008 at 12:38 AM, <peter_foelsche_at_[hidden]> wrote:

> Dear All,
>
>
>
> from what it looks like the memory mapped io classes in boost::interprocess
> cannot deal with readonly files.
>
> This is a big problem.
>
> I think opening readonly files should be possible but all write operations
> to the file should fail.
>
> Of course mapping a readonly file should be done with the matching flags so
> that the mapping can be shared and that the matching address space is
> readonly.
>
> Also another drawback is that at least on Windows disk-space is being
> allocated when growing a file.
>
> This is slow and it can be avoided by making the file sparse.
>
> On UNIXs this is the default.
>
>
>
> Thanks
>
> Peter
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net