version 1.4, 1996/06/26 05:33:10 |
version 1.5, 1996/08/31 22:40:21 |
|
|
} |
} |
|
|
/* |
/* |
|
* - maxdepth n functions -- |
|
* |
|
* True if the current search depth is less than or equal to the |
|
* maximum depth specified |
|
*/ |
|
int |
|
f_mdepth(plan, entry) |
|
PLAN *plan; |
|
FTSENT *entry; |
|
{ |
|
extern FTS *tree; |
|
|
|
if (entry->fts_level >= plan->d_data) |
|
fts_set(tree, entry, FTS_SKIP); |
|
return (entry->fts_level <= plan->d_data); |
|
} |
|
|
|
PLAN * |
|
c_mdepth(arg) |
|
char *arg; |
|
{ |
|
PLAN *new; |
|
|
|
new = palloc(N_MDEPTH, f_mdepth); |
|
new->d_data = atoi(arg); |
|
return (new); |
|
} |
|
|
|
/* |
* -mtime n functions -- |
* -mtime n functions -- |
* |
* |
* True if the difference between the file modification time and the |
* True if the difference between the file modification time and the |