[Issue 2429] std.stream.File incorrect flag parsing and sharing mode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 24 04:39:49 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2429


jason at spashett.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #5 from jason at spashett.com  2009-01-24 06:39 -------
Please see my patch above.

For Windows:

The share mode should always be READ and WRITE, otherwise it's impossible to
open the same file for read and write in two (dmd compiled) processes. Examples
where this is desirable is databases/bloom filters other shared data. Behavior
to conform as other compilers/std libraries on this platform.

For Linux:

The permissions, or (share) variable should alwyas be set to 666. File mode
(i.e. read or write) should have no bearing whatsoever on file permissions.
unix umask should be used instead to change these properties. Behavior to
conform as other compilers/libries on this platform.


-- 



More information about the Digitalmars-d-bugs mailing list