Compare commits

...
2 Commits
Author SHA1 Message Date
Karoy Lorentey 025bcb1165 Merge pull request #93 from apple/revert-89-sb/resize-windows
Revert "FileOperations: Add Windows implementation for FileDescriptor.resize(to:)"
2022-06-11 12:57:28 -07:00
Karoy Lorentey f5e4aac51b Revert "FileOperations: Add Windows implementation for FileDescriptor.resize(to:) (#89)"
This reverts commit 94fa6bd2ff.
2022-06-11 12:54:19 -07:00
2 changed files with 2 additions and 7 deletions

No files matched your search

+2
View File
@@ -401,6 +401,7 @@ extension FileDescriptor {
}
#endif
#if !os(Windows)
/*System 1.2.0, @available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)*/
extension FileDescriptor {
/// Truncate or extend the file referenced by this file descriptor.
@@ -446,3 +447,4 @@ extension FileDescriptor {
}
}
}
#endif
@@ -105,11 +105,4 @@ internal func pwrite(
return Int(nNumberOfBytesWritten)
}
@inline(__always)
internal func ftruncate(
_ fd: Int32,
_ length: off_t
) -> Int32 {
_chsize_s(fd, numericCast(length))
}
#endif