Details
-
Task
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
The function os::ftruncate on Windows uses the CRT API _chsize_s which requires an integer file descriptor. We can replace this with the semantically similar if not equivalent logic of SetFilePointer followed by SetEndOfFile. Major different is that it doesn't write null bytes when extending the file; it leaves the data uninitialized.
Attachments
Issue Links
- blocks
-
MESOS-8675 Remove FD_CRT from WindowsFD
- Resolved