* Use FreeAddrInfoExW instead of FreeAddrInfoEx in Dns
We should be using the W version to match the GetAddrInfoExW version we're using explicitly.
* Fix other minor issues
Unnecessary SetLastError, using named const for library, removing
unnecessary static field, etc.
Commit migrated from https://github.com/dotnet/corefx/commit/80ecc7f57aacb643ca788495ff65823bf566d1c0
* Clean dead code in System.Net
* More cleaning
* Clean dead code for HttpListener
* Clean dead code for Mail
* Clean dead code in Http
* Clean dead code for NetworkInformation
* Clean more dead code
* Various fixes
* Build fix
* Restore field
* var -> string
Commit migrated from https://github.com/dotnet/corefx/commit/71cc1ae8ba02b7b71878cb69a50c667c8ed0f50f
This test assumed that the host name can always be resolved, which isn't guaranteed on Unix.
In the interest of "testing as much as we can" this change enables the test, but passes it if we get the specific error that indicates we haven't been able to resolve the localhost on Unix. That way we'll hopefully still see failures if things go wrong somewhere else.
Fixes: dotnet/corefx#20245
Commit migrated from https://github.com/dotnet/corefx/commit/69ba7ef78b1d9a924f09863c8571cc2a210f5124
* Build uapaot System.Numerics.Vectors
With `Vector<T>` now residing in System.Private.CoreLib, directly reference System.Private.Corelib instead of contracts just like netcoreapp does.
Add uapaot flavor since System.Private.CoreLib has a different strong name key on that platform.
* Make EnsureExtendedPrefixOverMaxPath available to UAP
Add the helper method `System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath` to Common\src\System\IO\PathInternal.Windows.cs. It was previously not visible to UAP since Common\src\CoreLib\System\IO\PathInternal.Windows.cs is not included in UAP compilation.
* Keep SocketsHttpHandler out of UAP builds
SocketsHttpHandler is not supported in uap and is currently leaking into UAP builds since they've been disabled for a few weeks. Adjust the contract so it's not available to UAP, and clean the implementation assembly so SocketsHttpHandler internals don't leak out into HttpClientHandler.Core.cs.
* Fix GetAddrInfoExSupportsOverlapped UAP build break
`System.Net.NameResolutionPal.GetAddrInfoExSupportsOverlapped` uses LoadLibraryExW which is not compatible with UAP (which only supports LoadLibrary of DLLs within a container). Refactor the helper so UAP returns false.
* Revert "Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)"
This reverts commit dotnet/corefx@120dce456a.
* Revert "Disable UAP configurations in all configurations build"
This reverts commit dotnet/corefx@2202b4fd49.
* Revert "Disable UAP official builds (dotnet/corefx#26871)"
This reverts commit dotnet/corefx@ef79caf14c.
- Baseline the ApiCompat and GenFacades failures in System.Runtime.Extensions and System.Threading.ThreadPool.
- Adjust naming of files to match branch conventions
- Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.
- ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.
Commit migrated from https://github.com/dotnet/corefx/commit/c9cdfba45e62eeac28ef554d8bbdfdd620a0fd15
* Clear initlocals in a bunch of assemblies
Sets
```XML
<ILLinkClearInitLocals>true</ILLinkClearInitLocals>
```
for the assemblies:
- System.IO.FileSystem
- System.IO.Pipes
- System.Memory
- System.Net.Http
- System.Net.Http.WinHttpHandler
- System.Net.NameResolution
- System.Net.NetworkInformation
- System.Net.Primitives
- System.Net.Requests
- System.Net.Security
- System.Net.Sockets
- System.Net.WebSockets
- System.Net.WebSockets.Client
- System.Net.WebSockets.WebSocketsProtocol
- System.Private.Uri
- System.Runtime
- System.Runtime.Extensions
Eventually we'd ideally set the flag for the whole repo; these are just the ones I audited thus far. In a few cases I had to make code changes to adapt, where the code was expecting stackallocs to be cleared. I also looked at a few other projects (System.Collections, System.Runtime.Numerics) where there were more significant dependencies on clearing and I decided to leave those for later.
* Disable ILLinkClearInitLocals running on Unix until it works there
Commit migrated from https://github.com/dotnet/corefx/commit/f0a032e4a1c8a848574a5db3e69e8a6fa0aae91e
These were disabled a few days ago, but it looks like the issue may have been caused by problematic test infrastructure. One of the offending machines has been re-imaged, and the others have been rebooted.
Re-enabling the tests should allow us to determine if it was an infrastructure issue, or if there is a real problem here.
Fixes: dotnet/corefx#26789
Commit migrated from https://github.com/dotnet/corefx/commit/b60618197972da445ff5e675d425459fc9c0d3ae
* Move System.Native/pal_maphardwaretype.cpp to C
* Switch C compiler from C11 to C99
* Move System.Native/pal_errno.cpp to C
* Move System.Native/pal_tcpstate.cpp to C
* Move System.Native/pal_networkstatistics.cpp to C
* Move System.Native/pal_memory.cpp to C
* Move System.Native/pal_io.cpp to C
* Move System.Native/pal_networking.cpp to C
* Define c_static_assert for compiler that don't support static_assert
Commit migrated from https://github.com/dotnet/corefx/commit/6a9f579209491ae9041f208bfe34b89085c0279e
On Windows, passing an empty string to gethostbyname/GetAddrInfoW results in the host's information being used; that behavior then bubble's up through (and is documented for) the Dns.GetHost* APIs in .NET. On Unix, the native functions being used don't provide that same behavior, instead returning an error.
This just special-cases empty string in the Unix implementation.
Commit migrated from https://github.com/dotnet/corefx/commit/e9bd4c87e5032184c51ba03b81ef74328bbdfb1a