11 references to LockOperations
System.Private.CoreLib (11)
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 (9)
147
Interop.Sys.FLock(handle, Interop.Sys.
LockOperations
.LOCK_UN); // ignore any errors
348
Interop.Sys.
LockOperations
lockOperation = (share == FileShare.None) ? Interop.Sys.
LockOperations
.LOCK_EX : Interop.Sys.
LockOperations
.LOCK_SH;
349
if (CanLockTheFile(lockOperation, access) && !(_isLocked = Interop.Sys.FLock(this, lockOperation | Interop.Sys.
LockOperations
.LOCK_NB) >= 0))
454
private bool CanLockTheFile(Interop.Sys.
LockOperations
lockOperation, FileAccess access)
456
Debug.Assert(lockOperation == Interop.Sys.
LockOperations
.LOCK_EX || lockOperation == Interop.Sys.
LockOperations
.LOCK_SH);
462
else if (lockOperation == Interop.Sys.
LockOperations
.LOCK_EX)