Searched refs:logcnt (Results 1 – 1 of 1) sorted by relevance
1689 int dir_fd, i, logcnt, max_logcnt; in delete_oldest_timelog() local1697 logcnt = 0; in delete_oldest_timelog()1729 if ((oldlogs[logcnt].t = timegm(&tm)) == -1) in delete_oldest_timelog()1731 if ((oldlogs[logcnt].fname = strdup(dp->d_name)) == NULL) in delete_oldest_timelog()1733 logcnt++; in delete_oldest_timelog()1740 if (logcnt >= max_logcnt) { in delete_oldest_timelog()1743 if (max_logcnt < logcnt) in delete_oldest_timelog()1753 if (logcnt > 0 && logcnt >= ent->numlogs && ent->numlogs > 1) { in delete_oldest_timelog()1754 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1764 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()[all …]