Skip to content

Commit

Permalink
Add support for named pipes on Windows (case 1420995)
Browse files Browse the repository at this point in the history
In #1192 we added support
for named pipes on Windows previously. This support failed to work with
the unityaot-win32 profile after the most recent Mono upgrade.

With this change, we will also add tests to IL2CPP to ensure that this
does not break again.
  • Loading branch information
Josh Peterson authored and achavakula-rythmos committed May 11, 2022
1 parent 88268f9 commit 3f4f535
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
../../../external/corefx/src/Common/src/Interop/Unix/System.Native/Interop.GetDomainSocketSizes.cs
../../../external/corefx/src/Common/src/Interop/Unix/Interop.Libraries.cs
../../../external/corefx/src/System.Linq/src/System/Linq/*.cs

System.IO.Pipes/AnonymousPipeServerStream.NotSupported.cs
System.IO.Pipes/NamedPipeClientStream.NotSupported.cs
System.IO.Pipes/NamedPipeServerStream.NotSupported.cs
System.IO.Pipes/PipeStream.NotSupported.cs
System.IO.Pipes/SafePipeHandle.NotSupported.cs
46 changes: 46 additions & 0 deletions mcs/class/System.Core/win32_unityaot_System.Core.dll.sources
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,49 @@
../../../external/corefx/src/System.Net.Sockets/src/System/Net/Sockets/UnixDomainSocketEndPoint.Windows.cs
../referencesource/System.Core/System/Linq/Enumerable.cs
corefx/SR.cs

System.IO.Pipes/NamedPipeClientStream.Windows.cs
System.IO.Pipes/NamedPipeServerStream.Windows.cs
System.IO.Pipes/AnonymousPipeServerStream.Windows.cs
../../../external/corefx/src/Common/src/Interop/Windows/Interop.Libraries.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CloseHandle.cs
../../../external/corefx/src/Common/src/Interop/Windows/Interop.Errors.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.FormatMessage.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.SecurityOptions.cs
../../../external/corefx/src/Common/src/Interop/Windows/Interop.BOOL.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.SECURITY_ATTRIBUTES.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GenericOperations.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.HandleOptions.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.PipeOptions.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.FileOperations.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.FileTypes.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GetCurrentProcess_IntPtr.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.DuplicateHandle_IntPtr.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GetFileType_SafeHandle.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CreatePipe_SafePipeHandle.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.ConnectNamedPipe.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.WaitNamedPipe.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GetNamedPipeHandleState.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.GetNamedPipeInfo.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CreateNamedPipeClient.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.SetNamedPipeHandleState.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CancelIoEx.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.FlushFileBuffers.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.ReadFile_SafeHandle_IntPtr.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.ReadFile_SafeHandle_NativeOverlapped.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.WriteFile_SafeHandle_IntPtr.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.WriteFile_SafeHandle_NativeOverlapped.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.DisconnectNamedPipe.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.CreateNamedPipe.cs
../../../external/corefx/src/Common/src/Interop/Windows/kernel32/Interop.MaxLengths.cs
../../../external/corefx/src/Common/src/Interop/Windows/advapi32/Interop.RevertToSelf.cs
../../../external/corefx/src/Common/src/Interop/Windows/advapi32/Interop.ImpersonateNamedPipeClient.cs

../../../external/corefx/src/System.IO.Pipes/src/Microsoft/Win32/SafeHandles/SafePipeHandle.Windows.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/AnonymousPipeServerStream.Windows.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/ConnectionCompletionSource.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/NamedPipeClientStream.Windows.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/NamedPipeServerStream.Windows.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/PipeCompletionSource.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/PipeStream.Windows.cs
../../../external/corefx/src/System.IO.Pipes/src/System/IO/Pipes/ReadWriteCompletionSource.cs

0 comments on commit 3f4f535

Please sign in to comment.