poll.h 515 B

12345678910111213141516171819202122232425262728
  1. #ifndef __ASM_POLL_H
  2. #define __ASM_POLL_H
  3. #define POLLIN 0x0001
  4. #define POLLPRI 0x0002
  5. #define POLLOUT 0x0004
  6. #define POLLERR 0x0008
  7. #define POLLHUP 0x0010
  8. #define POLLNVAL 0x0020
  9. #define POLLRDNORM 0x0040
  10. #define POLLRDBAND 0x0080
  11. #define POLLWRNORM POLLOUT
  12. #define POLLWRBAND 0x0100
  13. /* These seem to be more or less nonstandard ... */
  14. #define POLLMSG 0x0400
  15. #define POLLREMOVE 0x1000
  16. #define POLLRDHUP 0x2000
  17. struct pollfd {
  18. int fd;
  19. short events;
  20. short revents;
  21. };
  22. #endif /* __ASM_POLL_H */