Home | History | Annotate | Download | only in src

Lines Matching refs:oldest

959    when the oldest in-use record will expire. Impose an absolute
963 struct frec *f, *oldest, *target;
969 for (f = daemon->frec_list, oldest = NULL, target = NULL, count = 0; f; f = f->next, count++)
980 if (!oldest || difftime(f->time, oldest->time) <= 0)
981 oldest = f;
990 /* can't find empty one, use oldest if there is one
992 if (oldest && ((int)difftime(now, oldest->time)) >= TIMEOUT)
996 if (difftime(now, oldest->time) < 2*TIMEOUT &&
1003 free_frec(oldest);
1004 oldest->time = now;
1006 return oldest;
1009 /* none available, calculate time 'till oldest record expires */
1012 if (oldest && wait)
1013 *wait = oldest->time + (time_t)TIMEOUT - now;