Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-01-29 15:23:44 +0300
committerCorinna Vinschen <corinna@vinschen.de>2006-01-29 15:23:44 +0300
commit5369605f4f7a8275f47e695856d42dc39bcbd3e3 (patch)
treeb09aa426d96850b857d08f5ba13069c60e473101 /winsup/cygwin/wincap.h
parent74d3f96faa7a547c4b9ebcfab3d3a850b0389202 (diff)
* fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag.
* fhandler_socket.cc (fhandler_socket::bind): Set socket to SO_EXCLUSIVEADDRUSE if application didn't explicitely set SO_REUSEADDR socket option, on systems supporting SO_EXCLUSIVEADDRUSE. * net.cc (cygwin_setsockopt): Set fhandler's saw_reuseaddr status flag if SO_REUSEADDR socket option has been successsfully set. * wincap.h (wincaps::has_exclusiveaddruse): New element. * wincap.cc: Implement above element throughout.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r--winsup/cygwin/wincap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h
index 5738850e0..d4edfd3da 100644
--- a/winsup/cygwin/wincap.h
+++ b/winsup/cygwin/wincap.h
@@ -66,6 +66,7 @@ struct wincaps
unsigned has_working_virtual_lock : 1;
unsigned has_disabled_user_tos_setting : 1;
unsigned has_fileid_dirinfo : 1;
+ unsigned has_exclusiveaddruse : 1;
};
class wincapc
@@ -138,6 +139,7 @@ public:
bool IMPLEMENT (has_working_virtual_lock)
bool IMPLEMENT (has_disabled_user_tos_setting)
bool IMPLEMENT (has_fileid_dirinfo)
+ bool IMPLEMENT (has_exclusiveaddruse)
#undef IMPLEMENT
};