select.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef _SYS_SELECT_H
  2. #include <misc/sys/select.h>
  3. #ifndef _ISOMAC
  4. /* Now define the internal interfaces. */
  5. #include <bits/select-decl.h>
  6. libc_hidden_proto (__fdelt_chk)
  7. # if __TIMESIZE == 64
  8. # define __pselect64 __pselect
  9. # define __select64 __select
  10. #else
  11. # include <struct___timespec64.h>
  12. # include <struct___timeval64.h>
  13. extern int __pselect64 (int __nfds, fd_set *__readfds,
  14. fd_set *__writefds, fd_set *__exceptfds,
  15. const struct __timespec64 *__timeout,
  16. const __sigset_t *__sigmask);
  17. libc_hidden_proto (__pselect64)
  18. extern int __pselect32 (int __nfds, fd_set *__readfds,
  19. fd_set *__writefds, fd_set *__exceptfds,
  20. const struct __timespec64 *__timeout,
  21. const __sigset_t *__sigmask)
  22. attribute_hidden;
  23. extern int __select32 (int __nfds, fd_set *__readfds,
  24. fd_set *__writefds, fd_set *__exceptfds,
  25. const struct __timespec64 *ts64,
  26. struct __timeval64 *timeout)
  27. attribute_hidden;
  28. extern int __select64 (int __nfds, fd_set *__readfds,
  29. fd_set *__writefds, fd_set *__exceptfds,
  30. struct __timeval64 *__timeout);
  31. libc_hidden_proto (__select64)
  32. #endif
  33. extern int __pselect (int __nfds, fd_set *__readfds,
  34. fd_set *__writefds, fd_set *__exceptfds,
  35. const struct timespec *__timeout,
  36. const __sigset_t *__sigmask);
  37. extern int __select (int __nfds, fd_set *__restrict __readfds,
  38. fd_set *__restrict __writefds,
  39. fd_set *__restrict __exceptfds,
  40. struct timeval *__restrict __timeout);
  41. libc_hidden_proto (__select)
  42. #endif
  43. #endif