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