-/** \brief socket poll wrapper using select
- */
-int yaz_poll_select(struct yaz_poll_fd *fds, int num_fds, int timeout);
-
-/** \brief socket poll using poll */
-int yaz_poll_poll(struct yaz_poll_fd *fds, int num_fds, int timeout);
+/** \brief poll wrapper for poll or select
+ \param fds array of sockets to be polled
+ \param num_fds size of fds array (number of sockets)
+ \param sec number of seconds to wait (-1 for no timeout)
+ \param nsec nano seconds to wait
+ \retval -1 error
+ \retval 0 timeout
+ \retval >0 event occur on one or more sockets