summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/poll.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-07-31 14:27:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-07-31 14:27:56 +0000
commitb23bc8c33cfd5ca607bcc07deaee616f9dceff35 (patch)
treecfe39a0f9f66fb4b1b739674566bbea7570bdb5f /winsup/cygwin/include/sys/poll.h
parent1f7dbb011a3f08cac45fdda1b4a80d2abc262dcc (diff)
downloadcygnal-b23bc8c33cfd5ca607bcc07deaee616f9dceff35.tar.gz
cygnal-b23bc8c33cfd5ca607bcc07deaee616f9dceff35.tar.bz2
cygnal-b23bc8c33cfd5ca607bcc07deaee616f9dceff35.zip
* fhandler_socket.cc (fhandler_socket::recv_internal): Fix a problem
with poll(2) after shutdown(SHUT_RD) has been called on the local side. * poll.cc (poll): Use POSIX type nfds_t for second parameter. Drop special socket handling for POLLIN. Add comment to explain why. * include/sys/poll.h: Declare nfds_t. Use as type for second parameter in poll(2) declaration.
Diffstat (limited to 'winsup/cygwin/include/sys/poll.h')
-rw-r--r--winsup/cygwin/include/sys/poll.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h
index a5bd4bded..7fd1c6eb0 100644
--- a/winsup/cygwin/include/sys/poll.h
+++ b/winsup/cygwin/include/sys/poll.h
@@ -1,6 +1,6 @@
/* sys/poll.h
- Copyright 2000, 2001 Red Hat, Inc.
+ Copyright 2000, 2001, 2006 Red Hat, Inc.
This file is part of Cygwin.
@@ -36,7 +36,9 @@ struct pollfd {
short revents;
};
-extern int poll __P ((struct pollfd *fds, unsigned int nfds, int timeout));
+typedef unsigned int nfds_t;
+
+extern int poll __P ((struct pollfd *fds, nfds_t nfds, int timeout));
__END_DECLS