13 #ifndef __STOUT_OS_WINDOWS_FTRUNCATE_HPP__ 14 #define __STOUT_OS_WINDOWS_FTRUNCATE_HPP__ 27 FILE_END_OF_FILE_INFO info;
28 info.EndOfFile.QuadPart = length;
29 if (::SetFileInformationByHandle(
30 fd, FileEndOfFileInfo, &info,
sizeof(info)) == FALSE) {
39 #endif // __STOUT_OS_WINDOWS_FTRUNCATE_HPP__ Definition: nothing.hpp:16
Definition: error.hpp:108
Definition: posix_signalhandler.hpp:23
int int_fd
Definition: int_fd.hpp:35
Try< Nothing > ftruncate(int fd, off_t length)
Definition: ftruncate.hpp:26