Home | History | Annotate | Download | only in src

Lines Matching defs:oldest

972    when the oldest in-use record will expire. Impose an absolute
976 struct frec *f, *oldest, *target;
982 for (f = daemon->frec_list, oldest = NULL, target = NULL, count = 0; f; f = f->next, count++)
993 if (!oldest || difftime(f->time, oldest->time) <= 0)
994 oldest = f;
1003 /* can't find empty one, use oldest if there is one
1005 if (oldest && ((int)difftime(now, oldest->time)) >= TIMEOUT)
1009 if (difftime(now, oldest->time) < 2*TIMEOUT &&
1016 free_frec(oldest);
1017 oldest->time = now;
1019 return oldest;
1022 /* none available, calculate time 'till oldest record expires */
1025 if (oldest && wait)
1026 *wait = oldest->time + (time_t)TIMEOUT - now;