Drop has_sendmsg flag
This commit is contained in:
parent
aacc4f63d0
commit
222e412f8d
|
@ -1979,8 +1979,7 @@ fhandler_socket::sendmsg (const struct msghdr *msg, int flags)
|
||||||
}
|
}
|
||||||
/* Disappointing but true: Even if WSASendMsg is supported, it's only
|
/* Disappointing but true: Even if WSASendMsg is supported, it's only
|
||||||
supported for datagram and raw sockets. */
|
supported for datagram and raw sockets. */
|
||||||
DWORD controllen = (DWORD) (!wincap.has_sendmsg ()
|
DWORD controllen = (DWORD) (get_socket_type () == SOCK_STREAM
|
||||||
|| get_socket_type () == SOCK_STREAM
|
|
||||||
|| get_addr_family () == AF_LOCAL
|
|| get_addr_family () == AF_LOCAL
|
||||||
? 0 : msg->msg_controllen);
|
? 0 : msg->msg_controllen);
|
||||||
WSAMSG wsamsg = { msg->msg_name ? (struct sockaddr *) &sst : NULL, len,
|
WSAMSG wsamsg = { msg->msg_name ? (struct sockaddr *) &sst : NULL, len,
|
||||||
|
|
|
@ -24,7 +24,6 @@ wincaps wincap_xpsp2 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:false,
|
has_gaa_largeaddress_bug:false,
|
||||||
has_transactions:false,
|
has_transactions:false,
|
||||||
has_sendmsg:false,
|
|
||||||
has_broken_udf:true,
|
has_broken_udf:true,
|
||||||
has_broken_alloc_console:false,
|
has_broken_alloc_console:false,
|
||||||
has_always_all_codepages:false,
|
has_always_all_codepages:false,
|
||||||
|
@ -54,7 +53,6 @@ wincaps wincap_2003 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:false,
|
has_gaa_largeaddress_bug:false,
|
||||||
has_transactions:false,
|
has_transactions:false,
|
||||||
has_sendmsg:false,
|
|
||||||
has_broken_udf:true,
|
has_broken_udf:true,
|
||||||
has_broken_alloc_console:false,
|
has_broken_alloc_console:false,
|
||||||
has_always_all_codepages:false,
|
has_always_all_codepages:false,
|
||||||
|
@ -84,7 +82,6 @@ wincaps wincap_vista __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:true,
|
needs_count_in_si_lpres2:true,
|
||||||
has_gaa_largeaddress_bug:true,
|
has_gaa_largeaddress_bug:true,
|
||||||
has_transactions:true,
|
has_transactions:true,
|
||||||
has_sendmsg:true,
|
|
||||||
has_broken_udf:false,
|
has_broken_udf:false,
|
||||||
has_broken_alloc_console:false,
|
has_broken_alloc_console:false,
|
||||||
has_always_all_codepages:true,
|
has_always_all_codepages:true,
|
||||||
|
@ -114,7 +111,6 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:true,
|
has_gaa_largeaddress_bug:true,
|
||||||
has_transactions:true,
|
has_transactions:true,
|
||||||
has_sendmsg:true,
|
|
||||||
has_broken_udf:false,
|
has_broken_udf:false,
|
||||||
has_broken_alloc_console:true,
|
has_broken_alloc_console:true,
|
||||||
has_always_all_codepages:true,
|
has_always_all_codepages:true,
|
||||||
|
@ -144,7 +140,6 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:false,
|
has_gaa_largeaddress_bug:false,
|
||||||
has_transactions:true,
|
has_transactions:true,
|
||||||
has_sendmsg:true,
|
|
||||||
has_broken_udf:false,
|
has_broken_udf:false,
|
||||||
has_broken_alloc_console:true,
|
has_broken_alloc_console:true,
|
||||||
has_always_all_codepages:true,
|
has_always_all_codepages:true,
|
||||||
|
@ -174,7 +169,6 @@ wincaps wincap_10 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:false,
|
has_gaa_largeaddress_bug:false,
|
||||||
has_transactions:true,
|
has_transactions:true,
|
||||||
has_sendmsg:true,
|
|
||||||
has_broken_udf:false,
|
has_broken_udf:false,
|
||||||
has_broken_alloc_console:true,
|
has_broken_alloc_console:true,
|
||||||
has_always_all_codepages:true,
|
has_always_all_codepages:true,
|
||||||
|
@ -204,7 +198,6 @@ wincaps wincap_10_1511 __attribute__((section (".cygwin_dll_common"), shared)) =
|
||||||
needs_count_in_si_lpres2:false,
|
needs_count_in_si_lpres2:false,
|
||||||
has_gaa_largeaddress_bug:false,
|
has_gaa_largeaddress_bug:false,
|
||||||
has_transactions:true,
|
has_transactions:true,
|
||||||
has_sendmsg:true,
|
|
||||||
has_broken_udf:false,
|
has_broken_udf:false,
|
||||||
has_broken_alloc_console:true,
|
has_broken_alloc_console:true,
|
||||||
has_always_all_codepages:true,
|
has_always_all_codepages:true,
|
||||||
|
|
|
@ -17,7 +17,6 @@ struct wincaps
|
||||||
unsigned needs_count_in_si_lpres2 : 1;
|
unsigned needs_count_in_si_lpres2 : 1;
|
||||||
unsigned has_gaa_largeaddress_bug : 1;
|
unsigned has_gaa_largeaddress_bug : 1;
|
||||||
unsigned has_transactions : 1;
|
unsigned has_transactions : 1;
|
||||||
unsigned has_sendmsg : 1;
|
|
||||||
unsigned has_broken_udf : 1;
|
unsigned has_broken_udf : 1;
|
||||||
unsigned has_broken_alloc_console : 1;
|
unsigned has_broken_alloc_console : 1;
|
||||||
unsigned has_always_all_codepages : 1;
|
unsigned has_always_all_codepages : 1;
|
||||||
|
@ -72,7 +71,6 @@ public:
|
||||||
bool IMPLEMENT (needs_count_in_si_lpres2)
|
bool IMPLEMENT (needs_count_in_si_lpres2)
|
||||||
bool IMPLEMENT (has_gaa_largeaddress_bug)
|
bool IMPLEMENT (has_gaa_largeaddress_bug)
|
||||||
bool IMPLEMENT (has_transactions)
|
bool IMPLEMENT (has_transactions)
|
||||||
bool IMPLEMENT (has_sendmsg)
|
|
||||||
bool IMPLEMENT (has_broken_udf)
|
bool IMPLEMENT (has_broken_udf)
|
||||||
bool IMPLEMENT (has_broken_alloc_console)
|
bool IMPLEMENT (has_broken_alloc_console)
|
||||||
bool IMPLEMENT (has_always_all_codepages)
|
bool IMPLEMENT (has_always_all_codepages)
|
||||||
|
|
Loading…
Reference in New Issue