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