poll.h 484 B

123456789101112131415161718192021222324252627
  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. struct pollfd {
  17. int fd;
  18. short events;
  19. short revents;
  20. };
  21. #endif /* __ASM_POLL_H */