poll.h 698 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * include/asm-xtensa/poll.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General
  5. * Public License. See the file "COPYING" in the main directory of
  6. * this archive for more details.
  7. *
  8. * Copyright (C) 2001 - 2005 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_POLL_H
  11. #define _XTENSA_POLL_H
  12. #define POLLIN 0x0001
  13. #define POLLPRI 0x0002
  14. #define POLLOUT 0x0004
  15. #define POLLERR 0x0008
  16. #define POLLHUP 0x0010
  17. #define POLLNVAL 0x0020
  18. #define POLLRDNORM 0x0040
  19. #define POLLRDBAND 0x0080
  20. #define POLLWRNORM POLLOUT
  21. #define POLLWRBAND 0x0100
  22. #define POLLMSG 0x0400
  23. #define POLLREMOVE 0x0800
  24. struct pollfd {
  25. int fd;
  26. short events;
  27. short revents;
  28. };
  29. #endif /* _XTENSA_POLL_H */