Remove OSX FileStream Lock/Unlock
authorIan Hays <ianha@microsoft.com>
Thu, 23 Feb 2017 22:46:15 +0000 (14:46 -0800)
committerIan Hays <ianha@microsoft.com>
Fri, 24 Feb 2017 18:44:02 +0000 (10:44 -0800)
commit6025aa2d86498a9d2e97ed3d83c538a60fff31d5
tree176a6aafc6af43e0628ff8141f04127bcd6bf023
parent7caa1090b9975e6e44f0ab72382d97633b10f1e0
Remove OSX FileStream Lock/Unlock

OSX doesn't support usage of both fcntl and flock. Since we're already using one in FileShare for the entire file, we cannot enable partial file locking like we do on other Unix platforms. The alternative is to throw a PNSE and suggest using FileShare on the whole file instead.

Commit migrated from https://github.com/dotnet/coreclr/commit/0daa63e9ed40323b6f248ded8959530ea94f19aa
src/coreclr/src/mscorlib/System.Private.CoreLib.csproj
src/coreclr/src/mscorlib/corefx/System/IO/FileStream.Linux.cs [new file with mode: 0644]
src/coreclr/src/mscorlib/corefx/System/IO/FileStream.OSX.cs [new file with mode: 0644]
src/coreclr/src/mscorlib/corefx/System/IO/FileStream.Unix.cs
src/coreclr/src/mscorlib/src/System.Private.CoreLib.txt