poll.h 729 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #define POLLRDHUP 0x2000
  25. struct pollfd {
  26. int fd;
  27. short events;
  28. short revents;
  29. };
  30. #endif /* _XTENSA_POLL_H */