Home
last modified time | relevance | path

Searched refs:oldlogs (Results 1 – 1 of 1) sorted by relevance

/freebsd/usr.sbin/newsyslog/
H A Dnewsyslog.c1663 struct oldlog_entry *oldlogs; in delete_oldest_timelog() local
1668 oldlogs = malloc(MAX_OLDLOGS * sizeof(struct oldlog_entry)); 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()
1718 oldlogs = realloc(oldlogs, in delete_oldest_timelog()
1720 if (oldlogs == NULL) in delete_oldest_timelog()
1727 oldlogs = realloc(oldlogs, logcnt * in delete_oldest_timelog()
1729 if (oldlogs == NULL) in delete_oldest_timelog()
1737 qsort(oldlogs, logcnt, sizeof(struct oldlog_entry), in delete_oldest_timelog()
1742 oldlogs[i].fname); in delete_oldest_timelog()
[all …]