82    return select(nfds, (fd_set *) rfds, (fd_set *) wfds, (fd_set *) efds, tvp);
 
   86        struct timeval tv, tvstart, tvend, tvlen;
 
   90        gettimeofday(&tvstart, 
NULL);
 
   91        res = select(nfds, (fd_set *) rfds, (fd_set *) wfds, (fd_set *) efds, tvp);
 
   93        gettimeofday(&tvend, 
NULL);
 
   96        if (tvp->tv_sec < 0 || (tvp->tv_sec == 0 && tvp->tv_usec < 0)) {
 
  104        return select(nfds, (fd_set *) rfds, (fd_set *) wfds, (fd_set *) efds, 
NULL);
 
 
static int ast_select(int nfds, ast_fdset *rfds, ast_fdset *wfds, ast_fdset *efds, struct timeval *tvp)
Waits for activity on a group of channels.