poll.h 577 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_M32R_POLL_H
  2. #define _ASM_M32R_POLL_H
  3. /*
  4. * poll(2) bit definitions. Based on <asm-i386/poll.h>.
  5. *
  6. * Modified 2004
  7. * Hirokazu Takata <takata at linux-m32r.org>
  8. */
  9. #define POLLIN 0x0001
  10. #define POLLPRI 0x0002
  11. #define POLLOUT 0x0004
  12. #define POLLERR 0x0008
  13. #define POLLHUP 0x0010
  14. #define POLLNVAL 0x0020
  15. #define POLLRDNORM 0x0040
  16. #define POLLRDBAND 0x0080
  17. #define POLLWRNORM 0x0100
  18. #define POLLWRBAND 0x0200
  19. #define POLLMSG 0x0400
  20. #define POLLREMOVE 0x1000
  21. struct pollfd {
  22. int fd;
  23. short events;
  24. short revents;
  25. };
  26. #endif /* _ASM_M32R_POLL_H */