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>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
*** customize.h.orig Sat Jan 21 22:22:14 2006
|
|
--- customize.h Sat Jan 21 22:24:41 2006
|
|
***************
|
|
*** 7,22 ****
|
|
*/
|
|
|
|
#define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */
|
|
/*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */
|
|
|
|
! #define NAMELEN 512 /* max size of a full pathname */
|
|
|
|
#ifdef BSD
|
|
! # include <sys/dir.h>
|
|
# define OPEN DIR
|
|
! # define READ struct direct
|
|
# define NAME(x) ((x).d_name)
|
|
#else
|
|
#ifdef SYS_V
|
|
/* Customize this. This is part of Doug Gwyn's package for */
|
|
/* reading directories. If you've put this file somewhere */
|
|
--- 7,22 ----
|
|
*/
|
|
|
|
#define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */
|
|
/*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */
|
|
|
|
! #define NAMELEN 1024 /* max size of a full pathname */
|
|
|
|
#ifdef BSD
|
|
! # include <dirent.h>
|
|
# define OPEN DIR
|
|
! # define READ struct dirent
|
|
# define NAME(x) ((x).d_name)
|
|
#else
|
|
#ifdef SYS_V
|
|
/* Customize this. This is part of Doug Gwyn's package for */
|
|
/* reading directories. If you've put this file somewhere */
|