poll.h 448 B

1234567891011121314151617181920212223
  1. #ifndef _ASM_POWERPC_POLL_H
  2. #define _ASM_POWERPC_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 0x0100
  12. #define POLLWRBAND 0x0200
  13. #define POLLMSG 0x0400
  14. #define POLLREMOVE 0x1000
  15. struct pollfd {
  16. int fd;
  17. short events;
  18. short revents;
  19. };
  20. #endif /* _ASM_POWERPC_POLL_H */