mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Schwartzmeyer (JIRA)" <>
Subject [jira] [Commented] (MESOS-8692) Replace _chsize_s with SetEndOfFile on Windows
Date Wed, 04 Apr 2018 06:04:00 GMT


Andrew Schwartzmeyer commented on MESOS-8692:

This is actually tied up in [here|], but it needs to be
split out.

> Replace _chsize_s with SetEndOfFile on Windows
> ----------------------------------------------
>                 Key: MESOS-8692
>                 URL:
>             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

View raw message