Searched refs:oldlogs (Results 1 – 1 of 1) sorted by relevance
1690 struct oldlog_entry *oldlogs; in delete_oldest_timelog() local1695 oldlogs = malloc(MAX_OLDLOGS * sizeof(struct oldlog_entry)); 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()1745 oldlogs = realloc(oldlogs, in delete_oldest_timelog()1747 if (oldlogs == NULL) in delete_oldest_timelog()1754 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()1756 if (oldlogs == NULL) in delete_oldest_timelog()1764 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()1769 oldlogs[i].fname); in delete_oldest_timelog()[all …]