Deleted Added
full compact
function.c (8874) function.c (9987)
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>
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>
57#include <unistd.h>
58
59#include "find.h"
60
61#define COMPARE(a, b) { \
62 switch (plan->flags) { \
63 case F_EQUAL: \
64 return (a == b); \

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

135int
136f_atime(plan, entry)
137 PLAN *plan;
138 FTSENT *entry;
139{
140 extern time_t now;
141
142 COMPARE((now - entry->fts_statp->st_atime +
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);
144}
145
146PLAN *
147c_atime(arg)
148 char *arg;
149{
150 PLAN *new;
151

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

165int
166f_ctime(plan, entry)
167 PLAN *plan;
168 FTSENT *entry;
169{
170 extern time_t now;
171
172 COMPARE((now - entry->fts_statp->st_ctime +
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);
174}
175
176PLAN *
177c_ctime(arg)
178 char *arg;
179{
180 PLAN *new;
181

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

572 */
573int
574f_mtime(plan, entry)
575 PLAN *plan;
576 FTSENT *entry;
577{
578 extern time_t now;
579
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);
582}
583
584PLAN *
585c_mtime(arg)
586 char *arg;
587{
588 PLAN *new;
589

--- 504 unchanged lines hidden ---
581}
582
583PLAN *
584c_mtime(arg)
585 char *arg;
586{
587 PLAN *new;
588

--- 504 unchanged lines hidden ---