poll.h 686 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * include/asm-s390/poll.h
  3. *
  4. * S390 version
  5. *
  6. * Derived from "include/asm-i386/poll.h"
  7. */
  8. #ifndef __S390_POLL_H
  9. #define __S390_POLL_H
  10. /* These are specified by iBCS2 */
  11. #define POLLIN 0x0001
  12. #define POLLPRI 0x0002
  13. #define POLLOUT 0x0004
  14. #define POLLERR 0x0008
  15. #define POLLHUP 0x0010
  16. #define POLLNVAL 0x0020
  17. /* The rest seem to be more-or-less nonstandard. Check them! */
  18. #define POLLRDNORM 0x0040
  19. #define POLLRDBAND 0x0080
  20. #define POLLWRNORM 0x0100
  21. #define POLLWRBAND 0x0200
  22. #define POLLMSG 0x0400
  23. #define POLLREMOVE 0x1000
  24. #define POLLRDHUP 0x2000
  25. struct pollfd {
  26. int fd;
  27. short events;
  28. short revents;
  29. };
  30. #endif