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)
commit0daa63e9ed40323b6f248ded8959530ea94f19aa
tree5a3883da8feb86f2be27240d9baa387ca6a5a22d
parent0abb98f1dc88845c82722bd48b4127ed1c728534
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.
src/mscorlib/System.Private.CoreLib.csproj
src/mscorlib/corefx/System/IO/FileStream.Linux.cs [new file with mode: 0644]
src/mscorlib/corefx/System/IO/FileStream.OSX.cs [new file with mode: 0644]
src/mscorlib/corefx/System/IO/FileStream.Unix.cs
src/mscorlib/src/System.Private.CoreLib.txt