Deleted Added
full compact
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Cimarron D. Taylor of the University of California, Berkeley.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 39 unchanged lines hidden (view full) ---

48#include <errno.h>
49#include <fnmatch.h>
50#include <fts.h>
51#include <grp.h>
52#include <pwd.h>
53#include <stdio.h>
54#include <stdlib.h>
55#include <string.h>
56#include <tzfile.h>
56#include <unistd.h>
57
58#include "find.h"
59
60#define COMPARE(a, b) { \
61 switch (plan->flags) { \
62 case F_EQUAL: \
63 return (a == b); \

--- 70 unchanged lines hidden (view full) ---

134int
135f_atime(plan, entry)
136 PLAN *plan;
137 FTSENT *entry;
138{
139 extern time_t now;
140
141 COMPARE((now - entry->fts_statp->st_atime +
143 SECSPERDAY - 1) / SECSPERDAY, plan->t_data);
142 86400 - 1) / 86400, plan->t_data);
143}
144
145PLAN *
146c_atime(arg)
147 char *arg;
148{
149 PLAN *new;
150

--- 13 unchanged lines hidden (view full) ---

164int
165f_ctime(plan, entry)
166 PLAN *plan;
167 FTSENT *entry;
168{
169 extern time_t now;
170
171 COMPARE((now - entry->fts_statp->st_ctime +
173 SECSPERDAY - 1) / SECSPERDAY, plan->t_data);
172 86400 - 1) / 86400, plan->t_data);
173}
174
175PLAN *
176c_ctime(arg)
177 char *arg;
178{
179 PLAN *new;
180

--- 390 unchanged lines hidden (view full) ---

571 */
572int
573f_mtime(plan, entry)
574 PLAN *plan;
575 FTSENT *entry;
576{
577 extern time_t now;
578
580 COMPARE((now - entry->fts_statp->st_mtime + SECSPERDAY - 1) /
581 SECSPERDAY, plan->t_data);
579 COMPARE((now - entry->fts_statp->st_mtime + 86400 - 1) /
580 86400, plan->t_data);
581}
582
583PLAN *
584c_mtime(arg)
585 char *arg;
586{
587 PLAN *new;
588

--- 504 unchanged lines hidden ---