select.pxd 546 B

12345678910111213141516171819
  1. from .types cimport sigset_t
  2. from .time cimport timeval, timespec
  3. cdef extern from "<sys/select.h>" nogil:
  4. ctypedef struct fd_set:
  5. pass
  6. int FD_SETSIZE
  7. void FD_SET(int, fd_set*)
  8. void FD_CLR(int, fd_set*)
  9. bint FD_ISSET(int, fd_set*)
  10. void FD_ZERO(fd_set*)
  11. int select(int nfds, fd_set *readfds, fd_set *writefds,
  12. fd_set *exceptfds, const timeval *timeout)
  13. int pselect(int nfds, fd_set *readfds, fd_set *writefds,
  14. fd_set *exceptfds, const timespec *timeout,
  15. const sigset_t *sigmask)