rust/src/libstd/sys
bors 7b482cdf7c Auto merge of #66835 - AviKozokin:master, r=alexcrichton
std:win: avoid WSA_FLAG_NO_INHERIT flag and don't use SetHandleInformation on UWP

This flag is not supported on Windows 7 before SP1, and on windows server 2008 SP2. This breaks Socket creation & duplication.
This was fixed in a previous PR. cc #26658

This PR: cc #60260 reuses this flag to support UWP, and makes an attempt to handle the potential error.
This version still fails to create a socket, as the error returned by WSA on this case is WSAEINVAL (invalid argument). and not WSAEPROTOTYPE.

MSDN page for WSASocketW (that states the platform support for WSA_FLAG_NO_HANDLE_INHERIT): https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketw

CC #26543
CC #26518
2019-12-06 04:30:51 +00:00
..
cloudabi Format libstd/sys with rustfmt 2019-11-29 18:37:58 -08:00
hermit Format libstd/sys with rustfmt 2019-11-29 18:37:58 -08:00
sgx Format libstd/sys with rustfmt 2019-11-29 18:37:58 -08:00
unix Rollup merge of #66346 - linkmauve:try-in-docstring, r=Dylan-DPC 2019-12-02 04:08:55 +01:00
vxworks Format libstd/sys with rustfmt 2019-11-29 18:37:58 -08:00
wasi Update the wasi crate for wasm32-wasi 2019-12-03 07:03:06 -08:00
wasm Rollup merge of #66705 - pitdicker:atomic_mut_ptr, r=KodrAus 2019-11-30 16:56:47 +01:00
windows added correct error code for WSASocketW failure fallback 2019-12-02 20:12:51 +02:00
mod.rs rename cfg(rustdoc) into cfg(doc) 2019-11-06 18:32:51 +01:00