home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / asm / poll.h < prev    next >
C/C++ Source or Header  |  2002-04-26  |  570b  |  28 lines

  1. /* $Id: poll.h,v 1.2 2002/04/26 23:09:20 smilcke Exp $ */
  2.  
  3. #ifndef __i386_POLL_H
  4. #define __i386_POLL_H
  5.  
  6. /* These are specified by iBCS2 */
  7. #define POLLIN        0x0001
  8. #define POLLPRI        0x0002
  9. #define POLLOUT        0x0004
  10. #define POLLERR        0x0008
  11. #define POLLHUP        0x0010
  12. #define POLLNVAL    0x0020
  13.  
  14. /* The rest seem to be more-or-less nonstandard. Check them! */
  15. #define POLLRDNORM    0x0040
  16. #define POLLRDBAND    0x0080
  17. #define POLLWRNORM    0x0100
  18. #define POLLWRBAND    0x0200
  19. #define POLLMSG        0x0400
  20.  
  21. struct pollfd {
  22.     int fd;
  23.     short events;
  24.     short revents;
  25. };
  26.  
  27. #endif
  28.