6 instantiations of SafePipeHandle
System.Diagnostics.Process (1)
System\Diagnostics\Process.Unix.cs (1)
405SafePipeHandle safePipeHandle = new(handle.DangerousGetHandle(), 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();
56 references to SafePipeHandle
Microsoft.Diagnostics.NETCore.Client (1)
NativeMethods.cs (1)
17SafePipeHandle hNamedPipe,
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.Diagnostics.Process (14)
System\Diagnostics\Process.Multiplexing.cs (2)
638var outputHandle = GetSafeHandleFromStreamReader(_standardOutput!); 639var errorHandle = GetSafeHandleFromStreamReader(_standardError!);
System\Diagnostics\Process.Multiplexing.Unix.cs (9)
16private static SafePipeHandle GetSafeHandleFromStreamReader(StreamReader reader) => ((AnonymousPipeClientStream)reader.BaseStream).SafePipeHandle; 28SafePipeHandle outputHandle = GetSafeHandleFromStreamReader(_standardOutput!); 29SafePipeHandle errorHandle = GetSafeHandleFromStreamReader(_standardError!); 79SafePipeHandle currentHandle = isError ? errorHandle : outputHandle; 215SafePipeHandle handle, 265SafePipeHandle outputHandle, 266SafePipeHandle errorHandle, 300SafePipeHandle currentHandle = isError ? errorHandle : outputHandle; 329private static unsafe int ReadNonBlocking(SafePipeHandle handle, byte[] buffer, int offset)
System\Diagnostics\Process.Unix.cs (1)
405SafePipeHandle safePipeHandle = new(handle.DangerousGetHandle(), ownsHandle: true);
System\Diagnostics\ProcessStartInfo.cs (2)
233/// Only <see cref="SafeFileHandle"/> and <see cref="SafePipeHandle"/> are supported in this list. 483case SafePipeHandle:
System.IO.Pipes (39)
_generated\0\LibraryImports.g.cs (10)
56internal static partial int GetPipeSz(global::Microsoft.Win32.SafeHandles.SafePipeHandle fd) 62global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafePipeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new(); 97internal static partial int SetPipeSz(global::Microsoft.Win32.SafeHandles.SafePipeHandle fd, int size) 103global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafePipeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new(); 587internal static unsafe partial int Read(global::Microsoft.Win32.SafeHandles.SafePipeHandle fd, byte* buffer, int count) 593global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafePipeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new(); 663internal static unsafe partial int Write(global::Microsoft.Win32.SafeHandles.SafePipeHandle fd, byte* buffer, int bufferSize) 669global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafePipeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new(); 824internal static partial int FStat(global::Microsoft.Win32.SafeHandles.SafePipeHandle fd, out global::Interop.Sys.FileStatus output) 831global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafePipeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new();
src\runtime\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\runtime\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\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Pipe.cs (1)
13internal static partial int FStat(SafePipeHandle fd, out FileStatus output);
src\runtime\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 (2)
94public NamedPipeClientStream(PipeDirection direction, bool isAsync, bool isConnected, SafePipeHandle safePipeHandle) 99public NamedPipeClientStream(PipeDirection direction, bool isAsync, 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) 233public SafePipeHandle SafePipeHandle 251internal 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 _,