/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* */ #ifndef __XR_poll_h #define __XR_poll_h #include #if defined(PCR_OS_SUNOS4) || defined(PCR_OS_SUNOS5) /* * Structure of file descriptor/event pairs supplied in * the poll arrays. */ struct XR_pollfd { int fd; /* file desc to poll */ short events; /* events of interest on fd */ short revents; /* events that occurred on fd */ }; /* * Testable select events */ #define XR_POLLIN 01 /* fd is readable */ #define XR_POLLPRI 02 /* priority info at fd */ #define XR_POLLOUT 04 /* fd is writeable (won't block) */ /* * Non-testable poll events (may not be specified in events field, * but may be returned in revents field). */ #define XR_POLLERR 010 /* fd has error condition */ #define XR_POLLHUP 020 /* fd has been hung up on */ #define XR_POLLNVAL 040 /* invalid pollfd entry */ #endif /* PCR_OS_XXXXX */ #endif /*!__XR_poll_h*/