11 references to LockOperations
System.Private.CoreLib (11)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.FLock.cs (2)
21internal static partial int FLock(SafeFileHandle fd, LockOperations operation); 28internal static partial int FLock(IntPtr fd, LockOperations operation);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (9)
147Interop.Sys.FLock(handle, Interop.Sys.LockOperations.LOCK_UN); // ignore any errors 348Interop.Sys.LockOperations lockOperation = (share == FileShare.None) ? Interop.Sys.LockOperations.LOCK_EX : Interop.Sys.LockOperations.LOCK_SH; 349if (CanLockTheFile(lockOperation, access) && !(_isLocked = Interop.Sys.FLock(this, lockOperation | Interop.Sys.LockOperations.LOCK_NB) >= 0)) 454private bool CanLockTheFile(Interop.Sys.LockOperations lockOperation, FileAccess access) 456Debug.Assert(lockOperation == Interop.Sys.LockOperations.LOCK_EX || lockOperation == Interop.Sys.LockOperations.LOCK_SH); 462else if (lockOperation == Interop.Sys.LockOperations.LOCK_EX)