25 references to LockOperations
System.Private.CoreLib (25)
_generated\2\LibraryImports.g.cs (6)
2600internal static partial bool FileSystemSupportsLocking(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::Interop.Sys.LockOperations lockOperation, bool accessWrite) 2633static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __lockOperation_native, int __accessWrite_native); 2643internal static partial int FLock(global::Microsoft.Win32.SafeHandles.SafeFileHandle fd, global::Interop.Sys.LockOperations operation) 2674static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native); 2684internal static partial int FLock(nint fd, global::Interop.Sys.LockOperations operation) 2700static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.LockOperations __operation_native);
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (8)
163Interop.Sys.FLock(handle, Interop.Sys.LockOperations.LOCK_UN); // ignore any errors 413Interop.Sys.LockOperations lockOperation = (share == FileShare.None) ? Interop.Sys.LockOperations.LOCK_EX : Interop.Sys.LockOperations.LOCK_SH; 414if (CanLockTheFile(lockOperation, access) && !(_isLocked = Interop.Sys.FLock(this, lockOperation | Interop.Sys.LockOperations.LOCK_NB) >= 0)) 519private bool CanLockTheFile(Interop.Sys.LockOperations lockOperation, FileAccess access) 521Debug.Assert(lockOperation == Interop.Sys.LockOperations.LOCK_EX || lockOperation == Interop.Sys.LockOperations.LOCK_SH);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (7)
210Interop.Sys.FLock(fileHandle, Interop.Sys.LockOperations.LOCK_UN); 340Interop.Sys.FLock(_fileHandle, Interop.Sys.LockOperations.LOCK_UN); 730Interop.Sys.LockOperations lockOperation = exclusive ? Interop.Sys.LockOperations.LOCK_EX : Interop.Sys.LockOperations.LOCK_SH; 733lockOperation |= Interop.Sys.LockOperations.LOCK_NB; 787Interop.Sys.FLock(FileHandle, Interop.Sys.LockOperations.LOCK_UN);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\NamedMutex.Unix.cs (1)
453Interop.Sys.FLock(_sharedLockFileHandle, Interop.Sys.LockOperations.LOCK_UN);