Lines Matching refs:oldlogs
1551 struct oldlog_entry *oldlogs;
1556 oldlogs = malloc(MAX_OLDLOGS * sizeof(struct oldlog_entry));
1590 if ((oldlogs[logcnt].t = timegm(&tm)) == -1)
1592 if ((oldlogs[logcnt].fname = strdup(dp->d_name)) == NULL)
1606 oldlogs = realloc(oldlogs,
1608 if (oldlogs == NULL)
1615 oldlogs = realloc(oldlogs, logcnt *
1617 if (oldlogs == NULL)
1625 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry),
1630 oldlogs[i].fname);
1631 else if (unlinkat(dir_fd, oldlogs[i].fname, 0) != 0) {
1634 oldlogs[i].fname);
1644 assert(oldlogs[i].fname != NULL);
1645 free(oldlogs[i].fname);
1647 free(oldlogs);