25 references to LockOperations
System.Private.CoreLib (25)
LibraryImports.g.cs (6)
6149internal static partial bool FileSystemSupportsLocking(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::Interop.Sys.LockOperations lockOperation, bool accessWrite) 6180static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __lockOperation_native, int __accessWrite_native); 6189internal static partial int FLock(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::Interop.Sys.LockOperations operation) 6218static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native); 6227internal static partial int FLock(nint fd, global::Interop.Sys.LockOperations operation) 6241static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.FileSystemSupportsLocking.cs (1)
13internal static partial bool FileSystemSupportsLocking(SafeFileHandle fd, LockOperations lockOperation, [MarshalAs(UnmanagedType.Bool)] bool accessWrite);
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 (8)
166Interop.Sys.FLock(handle, Interop.Sys.LockOperations.LOCK_UN); // ignore any errors 416Interop.Sys.LockOperations lockOperation = (share == FileShare.None) ? Interop.Sys.LockOperations.LOCK_EX : Interop.Sys.LockOperations.LOCK_SH; 417if (CanLockTheFile(lockOperation, access) && !(_isLocked = Interop.Sys.FLock(this, lockOperation | Interop.Sys.LockOperations.LOCK_NB) >= 0)) 522private bool CanLockTheFile(Interop.Sys.LockOperations lockOperation, FileAccess access) 524Debug.Assert(lockOperation == Interop.Sys.LockOperations.LOCK_EX || lockOperation == Interop.Sys.LockOperations.LOCK_SH);
src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (7)
209Interop.Sys.FLock(fileHandle, Interop.Sys.LockOperations.LOCK_UN); 339Interop.Sys.FLock(_fileHandle, Interop.Sys.LockOperations.LOCK_UN); 670Interop.Sys.LockOperations lockOperation = exclusive ? Interop.Sys.LockOperations.LOCK_EX : Interop.Sys.LockOperations.LOCK_SH; 673lockOperation |= Interop.Sys.LockOperations.LOCK_NB; 727Interop.Sys.FLock(FileHandle, Interop.Sys.LockOperations.LOCK_UN);
src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (1)
451Interop.Sys.FLock(_sharedLockFileHandle, Interop.Sys.LockOperations.LOCK_UN);