OSDN Git Service

* fhandler.h (class fhandler_socket): Declare new method
authorcorinna <corinna>
Mon, 28 Feb 2005 13:11:47 +0000 (13:11 +0000)
committercorinna <corinna>
Mon, 28 Feb 2005 13:11:47 +0000 (13:11 +0000)
commite4d21f05e34dbba970fd1947e8987d1824bf9b0c
tree5a16164cf4d452c77c038e667851bcac77dc78ad
parent3ad80352b437d45a132766cbad70f5313bbe8ba7
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/net.cc
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h