poll.h 739 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __PPC64_POLL_H
  2. #define __PPC64_POLL_H
  3. /*
  4. * Copyright (C) 2001 PPC64 Team, IBM Corp
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  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. #define POLLRDNORM 0x0040
  18. #define POLLRDBAND 0x0080
  19. #define POLLWRNORM 0x0100
  20. #define POLLWRBAND 0x0200
  21. #define POLLMSG 0x0400
  22. #define POLLREMOVE 0x1000
  23. struct pollfd {
  24. int fd;
  25. short events;
  26. short revents;
  27. };
  28. #endif /* __PPC64_POLL_H */