]> sourceware.org Git - newlib-cygwin.git/commit
* fhandler.h (enum conn_state): Add connect_failed state.
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 18 Apr 2005 18:56:52 +0000 (18:56 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 18 Apr 2005 18:56:52 +0000 (18:56 +0000)
commit04843bf4a05314c57cf2036917a0e52d95b79ade
treebbca4a0ea3133a0d6fbee71d9ff7e6057e2ee8d0
parent2180b9627dbb4ef05b6205b678b36376511967e6
* fhandler.h (enum conn_state): Add connect_failed state.
* fhandler_socket.cc (fhandler_socket::connect): Set connect_state to
connect_failed when connect failed.
* poll.cc (poll): Change errno to EINVAL if allocating memory fails,
according to SUSv3. Add socket descriptors always to except_fds. Test
for failed connect and set revents flags appropriately.
* select.cc (set_bits): Set connect_state to connect_failed when
select indicates failed nonblocking connect.
(fhandler_dev_null::select_except): Set except_ready to false so that
/dev/null is not always in except state.
(peek_socket): Fix bogus conditional.
(fhandler_socket::select_write): Treat all connect_states except
unconnected equivalent to return consistent results.
(fhandler_windows::select_except): Set except_ready to false so that
/dev/windows is not always in except state.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/poll.cc
winsup/cygwin/select.cc
This page took 0.030583 seconds and 5 git commands to generate.