From e82d75cc2be978b31f6a605309cb94e93743a1aa Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 11 Aug 2000 12:51:47 +0000 Subject: * 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. --- winsup/cygwin/include/sys/poll.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/include/sys/poll.h') diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h index c33639ebb..9f9f05d7f 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. */ -- cgit v1.2.3