Message184056
Sorry, I was not very clear.
If you use the O_TEMPORARY flag with open() to get a file handle, then the share mode used with the underlying CreateFile() function is
X = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
whereas, if you don't use O_TEMPORARY then the share mode is
Y = FILE_SHARE_READ | FILE_SHARE_WRITE
While a handle is open with share mode X, you can only reopen the file if you also use share mode X. Therefore (using the msvcrt) you can only reopen it using O_TEMPORARY.*
* sopen() does give some extra control over the share mode, but you still can't use it to get share mode X without also using O_TEMPORARY. |
|
Date |
User |
Action |
Args |
2013-03-12 22:49:11 | sbt | set | recipients:
+ sbt, jaraco, ncoghlan, pitrou, eric.smith, tim.golden, eric.araujo, r.david.murray, brian.curtin, dabrahams, davide.rizzo, piotr.dobrogost, dlenski |
2013-03-12 22:49:11 | sbt | set | messageid: <1363128551.23.0.752630446949.issue14243@psf.upfronthosting.co.za> |
2013-03-12 22:49:11 | sbt | link | issue14243 messages |
2013-03-12 22:49:11 | sbt | create | |
|