Searched refs:logcnt (Results 1 – 1 of 1) sorted by relevance
1662 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local1670 logcnt = 0; in delete_oldest_timelog()1702 if ((oldlogs[logcnt].t = timegm(&tm)) == -1) in delete_oldest_timelog()1704 if ((oldlogs[logcnt].fname = strdup(dp->d_name)) == NULL) in delete_oldest_timelog()1706 logcnt++; in delete_oldest_timelog()1713 if (logcnt >= max_logcnt) { in delete_oldest_timelog()1716 if (max_logcnt < logcnt) in delete_oldest_timelog()1726 if (logcnt > 0 && logcnt >= ent->numlogs && ent->numlogs > 1) { in delete_oldest_timelog()1727 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1737 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()[all …]