From 00e9bf2bb3f2220bcf84d4f449907bd1deb2827f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 15 Dec 2015 21:43:33 +0100 Subject: Fix various OS-related comments Signed-off-by: Corinna Vinschen --- winsup/cygwin/net.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 3641f96d7..bd3e0e342 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -608,7 +608,7 @@ fdsock (cygheap_fdmanip& fd, const device *dev, SOCKET soc) handle inheritance. An explanation for this weird behaviour would be nice, though. - NOTE 2. Testing on x86_64 (XP, Vista, 2008 R2, W8) indicates that + NOTE 2. Testing on x86_64 (Vista, 2008 R2, W8) indicates that this is no problem on 64 bit. So we set the default buffer size to the default values in current 3.x Linux versions. @@ -1821,8 +1821,8 @@ get_adapters_addresses (PIP_ADAPTER_ADDRESSES *pa_ret, ULONG family) DWORD ret; gaa_wa param = { family, pa_ret }; - if ((uintptr_t) ¶m >= (uintptr_t) 0x80000000L - && wincap.has_gaa_largeaddress_bug ()) + if (wincap.has_gaa_largeaddress_bug () + && (uintptr_t) ¶m >= (uintptr_t) 0x80000000L) { /* In Windows Vista and Windows 7 under WOW64, GetAdaptersAddresses fails if it's running in a thread with a stack located in the large address @@ -3371,8 +3371,8 @@ cygwin_getaddrinfo (const char *hostname, const char *servname, | AI_NUMERICSERV | AI_ADDRCONFIG | AI_V4MAPPED | AI_IDN_MASK))) return EAI_BADFLAGS; - /* AI_NUMERICSERV is not supported prior to Windows Vista. We just check - the servname parameter by ourselves here. */ + /* AI_NUMERICSERV is not supported "by Microsoft providers". We just + check the servname parameter by ourselves here. */ if (hints && (hints->ai_flags & AI_NUMERICSERV)) { char *p; -- cgit v1.2.3