home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#) poll.h 1.1 88/05/18
- *
- * Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
- * Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
- * This Module contains Proprietary Information of
- * The Santa Cruz Operation, Microsoft Corporation
- * and AT&T, and should be treated as Confidential.
- */
-
- /*
- * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
- * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
- * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
- * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
- */
-
- /*
- * Structure of file descriptor/event pairs supplied in
- * the poll arrays.
- */
- struct 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 POLLIN 01 /* fd is readable */
- #define POLLPRI 02 /* priority info at fd */
- #define 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 POLLERR 010 /* fd has error condition */
- #define POLLHUP 020 /* fd has been hung up on */
- #define POLLNVAL 040 /* invalid pollfd entry */
-
- /*
- * Number of pollfd entries to read in at a time in poll.
- * The larger the value the better the performance, up to the
- * maximum number of open files allowed. Large numbers will
- * use excessive amounts of kernel stack space.
- */
- #define NPOLLFILE 20
-
-