Message184056
| Author |
sbt |
| Recipients |
brian.curtin, dabrahams, davide.rizzo, dlenski, eric.araujo, eric.smith, jaraco, ncoghlan, piotr.dobrogost, pitrou, r.david.murray, sbt, tim.golden |
| Date |
2013年03月12日.22:49:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1363128551.23.0.752630446949.issue14243@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|