You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2018/03/19 21:05:00 UTC
[jira] [Created] (MESOS-8692) Replace _chsize_s with SetEndOfFile
on Windows
Andrew Schwartzmeyer created MESOS-8692:
-------------------------------------------
Summary: Replace _chsize_s with SetEndOfFile on Windows
Key: MESOS-8692
URL: https://issues.apache.org/jira/browse/MESOS-8692
Project: Mesos
Issue Type: Task
Reporter: Andrew Schwartzmeyer
Assignee: Andrew Schwartzmeyer
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)