Previously this was documented as only making a difference on Windows. However, we can support this on all platform for symmetry. Although the semantics differ slightly, the important part (i.e. the file should no longer exist after the descriptor is closed) is supportable everywhere. On Windows we do this with FILE_FLAG_DELETE_ON_CLOSE, as we always have. On Unixy platforms, we do this by simply unlinking the file after it has been opened.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
FWIW turns out this doesn't work as nicely as I thought it did. So I'm going to bench this one for now. createUniqueFile uses this flag, and there are several places in the codebase that assume they can refer to the path afterwords, which breaks here as this effectively makes an open unliked file on posix platforms. I'll think about the best way to handle this in the future, but it's not high priority right now.