Subject: Re: [Boost-bugs] [Boost C++ Libraries] #579: boost.iostreams file_descriptor and sharing
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-30 04:22:15
#579: boost.iostreams file_descriptor and sharing
-------------------------------+--------------------------------------------
Reporter: nobody | Owner: turkanis
Type: Support Requests | Status: closed
Milestone: | Component: iostreams
Version: None | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------
Changes (by turkanis):
* status: assigned => closed
* resolution: None => fixed
Comment:
1. I don't remember why I originally set the share mode to 0; I think it
may have been that more permissive settings caused tests to fail on some
platforms. I have now set the mode to FILE_SHARE_READ | FILE_SHARE_WRITE,
following the microsoft implementation of fopen (see, e.g., "Microsoft
Visual Studio 8/VC/crt/src/fopen.c"), and the relevant tests pass on all
my compilers, so I am committing the change ([42357])
2. The third parameter to file_descriptor::open is for internal use only.
file_descriptors always open files in read-write mode; to open a file in
read-only mode, use file_descriptor_source. (I'm not sure this was a good
design choice, but changing it now will break existing code.)
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/579#comment:17>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC