6 instantiations of SafePipeHandle
System.Diagnostics.Process (1)
System\Diagnostics\Process.Unix.cs (1)
849return new AnonymousPipeClientStream(direction, new SafePipeHandle((IntPtr)fd, ownsHandle: true));
System.IO.Pipes (5)
System\IO\Pipes\AnonymousPipeClientStream.cs (1)
37SafePipeHandle safePipeHandle = new SafePipeHandle((nint)result, true);
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
43clientHandle = new SafePipeHandle(socket);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
103var serverHandle = new SafePipeHandle(acceptedSocket);
System\IO\Pipes\PipeStream.Unix.cs (2)
444reader = new SafePipeHandle(); 445writer = new SafePipeHandle();
30 references to SafePipeHandle
netstandard (1)
netstandard.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafePipeHandle))]
System.Core (1)
System.Core.cs (1)
10[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafePipeHandle))]
System.IO.Pipes (28)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Fcntl.Pipe.cs (2)
17internal static partial int GetPipeSz(SafePipeHandle fd); 20internal static partial int SetPipeSz(SafePipeHandle fd, int size);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Read.Pipe.cs (1)
22internal static unsafe partial int Read(SafePipeHandle fd, byte* buffer, int count);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Pipe.cs (1)
13internal static partial int FStat(SafePipeHandle fd, out FileStatus output);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Write.Pipe.cs (1)
21internal static unsafe partial int Write(SafePipeHandle fd, byte* buffer, int bufferSize);
System\IO\Pipes\AnonymousPipeClientStream.cs (3)
37SafePipeHandle safePipeHandle = new SafePipeHandle((nint)result, true); 47public AnonymousPipeClientStream(PipeDirection direction, SafePipeHandle safePipeHandle) 63private void Init(PipeDirection direction, SafePipeHandle safePipeHandle)
System\IO\Pipes\AnonymousPipeServerStream.cs (4)
13private SafePipeHandle _clientHandle = null!; 33public AnonymousPipeServerStream(PipeDirection direction, SafePipeHandle serverSafePipeHandle, SafePipeHandle clientSafePipeHandle) 93public SafePipeHandle ClientSafePipeHandle
System\IO\Pipes\AnonymousPipeServerStream.Unix.cs (1)
20SafePipeHandle? serverHandle = null, clientHandle = null;
System\IO\Pipes\NamedPipeClientStream.cs (1)
92public NamedPipeClientStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle)
System\IO\Pipes\NamedPipeClientStream.Unix.cs (2)
39SafePipeHandle? clientHandle = null; 111private void ValidateRemotePipeUser(SafePipeHandle handle)
System\IO\Pipes\NamedPipeServerStream.cs (1)
133public NamedPipeServerStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
103var serverHandle = new SafePipeHandle(acceptedSocket);
System\IO\Pipes\PipeStream.cs (5)
17private SafePipeHandle? _handle; 89protected void InitializeHandle(SafePipeHandle? handle, bool isExposed, bool isAsync) 105private static void DebugAssertHandleValid(SafePipeHandle handle) 230public SafePipeHandle SafePipeHandle 248internal SafePipeHandle? InternalHandle
System\IO\Pipes\PipeStream.Unix.cs (5)
232internal void ValidateHandleIsPipe(SafePipeHandle safePipeHandle) 249partial void InitializeAsyncHandle(SafePipeHandle handle); 441internal static unsafe void CreateAnonymousPipe(out SafePipeHandle reader, out SafePipeHandle writer) 489Socket s, SafePipeHandle _,