be65b7f1c1
AGE-F, for "age files") program, which was initially posted to net.sources March 2, 1987. This version of the program can age by inode change time (-c), file modification time (-m), or time of last access (-a). This program is useful for cleaning up disks and maintaining large collections of small files, such as mail or news spools. PR: ports/92130 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
29 lines
825 B
C
29 lines
825 B
C
*** agef.c.orig Sat Jan 21 22:23:18 2006
|
|
--- agef.c Sat Jan 21 22:23:36 2006
|
|
***************
|
|
*** 75,86 ****
|
|
unsigned ages[MAXAGES]; /* age categories */
|
|
int inodes[MAXAGES];/* inode count */
|
|
long sizes[MAXAGES]; /* block count */
|
|
|
|
char topdir[NAMELEN];/* our starting directory */
|
|
! long today,
|
|
! time(); /* today's date */
|
|
|
|
|
|
|
|
main(argc, argv)
|
|
int argc;
|
|
--- 75,86 ----
|
|
unsigned ages[MAXAGES]; /* age categories */
|
|
int inodes[MAXAGES];/* inode count */
|
|
long sizes[MAXAGES]; /* block count */
|
|
|
|
char topdir[NAMELEN];/* our starting directory */
|
|
! long today;
|
|
! time_t time(); /* today's date */
|
|
|
|
|
|
|
|
main(argc, argv)
|
|
int argc;
|