poll.h 632 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _ASM_IA64_POLL_H
  2. #define _ASM_IA64_POLL_H
  3. /*
  4. * poll(2) bit definitions. Based on <asm-i386/poll.h>.
  5. *
  6. * Modified 1998, 1999, 2002
  7. * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
  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. #define POLLRDHUP 0x2000
  22. struct pollfd {
  23. int fd;
  24. short events;
  25. short revents;
  26. };
  27. #endif /* _ASM_IA64_POLL_H */