poll.h 809 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __ASM_SH64_POLL_H
  2. #define __ASM_SH64_POLL_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/poll.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. *
  12. */
  13. /* These are specified by iBCS2 */
  14. #define POLLIN 0x0001
  15. #define POLLPRI 0x0002
  16. #define POLLOUT 0x0004
  17. #define POLLERR 0x0008
  18. #define POLLHUP 0x0010
  19. #define POLLNVAL 0x0020
  20. /* The rest seem to be more-or-less nonstandard. Check them! */
  21. #define POLLRDNORM 0x0040
  22. #define POLLRDBAND 0x0080
  23. #define POLLWRNORM 0x0100
  24. #define POLLWRBAND 0x0200
  25. #define POLLMSG 0x0400
  26. #define POLLRDHUP 0x2000
  27. struct pollfd {
  28. int fd;
  29. short events;
  30. short revents;
  31. };
  32. #endif /* __ASM_SH64_POLL_H */