poll.h 708 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __ASM_GENERIC_POLL_H
  2. #define __ASM_GENERIC_POLL_H
  3. /* These are specified by iBCS2 */
  4. #define POLLIN 0x0001
  5. #define POLLPRI 0x0002
  6. #define POLLOUT 0x0004
  7. #define POLLERR 0x0008
  8. #define POLLHUP 0x0010
  9. #define POLLNVAL 0x0020
  10. /* The rest seem to be more-or-less nonstandard. Check them! */
  11. #define POLLRDNORM 0x0040
  12. #define POLLRDBAND 0x0080
  13. #ifndef POLLWRNORM
  14. #define POLLWRNORM 0x0100
  15. #endif
  16. #ifndef POLLWRBAND
  17. #define POLLWRBAND 0x0200
  18. #endif
  19. #ifndef POLLMSG
  20. #define POLLMSG 0x0400
  21. #endif
  22. #ifndef POLLREMOVE
  23. #define POLLREMOVE 0x1000
  24. #endif
  25. #ifndef POLLRDHUP
  26. #define POLLRDHUP 0x2000
  27. #endif
  28. struct pollfd {
  29. int fd;
  30. short events;
  31. short revents;
  32. };
  33. #endif /* __ASM_GENERIC_POLL_H */