diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-02-28 13:11:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-02-28 13:11:50 +0000 |
commit | 496337c9a58d7b107ab2a6dfdd25347479cfaa37 (patch) | |
tree | bc27563b72a99bfcbe1ae73621c08c220a58ee00 /winsup/cygwin/wincap.h | |
parent | 882a0c85075ac08baff8d04bad904a88388a02f0 (diff) | |
download | cygnal-496337c9a58d7b107ab2a6dfdd25347479cfaa37.tar.gz cygnal-496337c9a58d7b107ab2a6dfdd25347479cfaa37.tar.bz2 cygnal-496337c9a58d7b107ab2a6dfdd25347479cfaa37.zip |
* fhandler.h (class fhandler_socket): Declare new method
set_socketpair_eids.
* fhandler_socket.cc (fhandler_socket::set_socketpair_eids): New method.
(fhandler_socket::dup): Duplicate sec_pipe if necessary.
(fhandler_socket::listen): Only create sec_pipe if named pipes are
available. Initialized sec_peer_pid to 0 as on Linux.
(fhandler_socket::connect): Only run eid credential transaction if
named pipes are available. Fake otherwise. Initialized sec_peer_pid
to 0 as on Linux.
(fhandler_socket::accept): Ditto.
(fhandler_socket::close): Move closing sec_pipe handle from here...
(fhandler_socket::~fhandler_socket): ... to here.
* net.cc (socketpair): Set eid credentials by calling
fhandler_socket::set_socketpair_eids() on both socket ends.
* wincap.h (wincaps::has_named_pipes): New element.
* wincap.cc: Implement above element throughout.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index c6c54b0c1..6d7d63ec9 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -43,6 +43,7 @@ struct wincaps unsigned has_move_file_ex : 1; unsigned has_negative_pids : 1; unsigned has_unreliable_pipes : 1; + unsigned has_named_pipes : 1; unsigned has_try_enter_critical_section : 1; unsigned has_raw_devices : 1; unsigned has_valid_processorlevel : 1; @@ -105,6 +106,7 @@ public: bool IMPLEMENT (has_move_file_ex) bool IMPLEMENT (has_negative_pids) bool IMPLEMENT (has_unreliable_pipes) + bool IMPLEMENT (has_named_pipes) bool IMPLEMENT (has_try_enter_critical_section) bool IMPLEMENT (has_raw_devices) bool IMPLEMENT (has_valid_processorlevel) |