poll.h 414 B

123456789101112131415161718192021222324
  1. #ifndef __SPARC64_POLL_H
  2. #define __SPARC64_POLL_H
  3. #define POLLIN 1
  4. #define POLLPRI 2
  5. #define POLLOUT 4
  6. #define POLLERR 8
  7. #define POLLHUP 16
  8. #define POLLNVAL 32
  9. #define POLLRDNORM 64
  10. #define POLLWRNORM POLLOUT
  11. #define POLLRDBAND 128
  12. #define POLLWRBAND 256
  13. #define POLLMSG 512
  14. #define POLLREMOVE 1024
  15. #define POLLRDHUP 2048
  16. struct pollfd {
  17. int fd;
  18. short events;
  19. short revents;
  20. };
  21. #endif