home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume32 / pol / part01 / pol.h < prev    next >
C/C++ Source or Header  |  1992-10-18  |  521b  |  26 lines

  1. /* sys/pol.h */
  2.  
  3. #define POL_FDS    0x1234dcba
  4.  
  5. struct polfd {
  6.     int rfds, wfds;                /* file desc to poll */
  7.     int timeout;            /* events of interest on fd */
  8. };
  9.  
  10. #define NPOLFILE    20
  11.  
  12. /*#define DONT_HAVE_POLL  /* uncomment this out if you don't have poll.h */
  13.  
  14. #ifdef DONT_HAVE_POLL
  15. /*
  16.  * Structure of file descriptor/event pairs supplied in
  17.  * the poll arrays.
  18.  */
  19. struct pollfd {
  20.     int fd;                    /* file desc to poll */
  21.     short events;            /* events of interest on fd */
  22.     short revents;            /* events that occurred on fd */
  23. };
  24. #endif
  25.  
  26.