aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/include/sys
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-08-11 12:51:47 +0000
committerCorinna Vinschen <corinna@vinschen.de>2000-08-11 12:51:47 +0000
commite82d75cc2be978b31f6a605309cb94e93743a1aa (patch)
treef3ae9410292ff482f9eeadf049bdca29775b3cc9 /winsup/cygwin/include/sys
parent7b972f5da521138a551a40ed44fd7714ec9b37ef (diff)
downloadnewlib-e82d75cc2be978b31f6a605309cb94e93743a1aa.zip
newlib-e82d75cc2be978b31f6a605309cb94e93743a1aa.tar.gz
newlib-e82d75cc2be978b31f6a605309cb94e93743a1aa.tar.bz2
* poll.cc: Add bounds checking for file descriptors. Return POLLNVAL
if fd is invalid. Return POLLERR for each valid fd if cygwin_select returned with error. include/sys/poll.h: Change POLLERR comment according to above change.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r--winsup/cygwin/include/sys/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h
index c33639e..9f9f05d 100644
--- a/winsup/cygwin/include/sys/poll.h
+++ b/winsup/cygwin/include/sys/poll.h
@@ -18,7 +18,7 @@ __BEGIN_DECLS
#define POLLIN 1 /* Set if data to read. */
#define POLLPRI 2 /* Set if urgent data to read. */
#define POLLOUT 4 /* Set if writing data wouldn't block. */
-#define POLLERR 8 /* An error occured, not used by Cygwin. */
+#define POLLERR 8 /* An error occured. */
#define POLLHUP 16 /* Shutdown or close happened. */
#define POLLNVAL 32 /* Invalid file descriptor. */