[
https://issues.apache.org/jira/browse/MESOS-8692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425059#comment-16425059
]
Andrew Schwartzmeyer edited comment on MESOS-8692 at 4/4/18 7:23 PM:
---------------------------------------------------------------------
https://reviews.apache.org/r/66455/
was (Author: andschwa):
https://reviews.apache.org/r/66431/
(Needs to be split.)
> 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
> Priority: Major
> Labels: stout, windows
>
> 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)