/*
Copyright (c) 1993 Xerox Corporation. All rights reserved.
*/
/*
*/
#ifndef ←←XR←poll←h
#define ←←XR←poll←h
#include <config/PCR←OS.h>
#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*/