[BACK]Return to function.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / find

Diff for /src/usr.bin/find/function.c between version 1.10 and 1.11

version 1.10, 1997/09/01 02:44:19 version 1.11, 1997/11/13 08:30:33
Line 136 
Line 136 
                 ++((p)->t_data);                  ++((p)->t_data);
   
 /*  /*
    * -amin n functions --
    *
    *     True if the difference between the file access time and the
    *     current time is n min periods.
    */
   int
   f_amin(plan, entry)
           PLAN *plan;
           FTSENT *entry;
   {
           extern time_t now;
   
           COMPARE((now - entry->fts_statp->st_atime +
               60 - 1) / 60, plan->t_data);
   }
   
   PLAN *
   c_amin(arg)
           char *arg;
   {
           PLAN *new;
   
           ftsoptions &= ~FTS_NOSTAT;
   
           new = palloc(N_AMIN, f_amin);
           new->t_data = find_parsenum(new, "-amin", arg, NULL);
           TIME_CORRECT(new, N_AMIN);
           return (new);
   }
   
   /*
  * -atime n functions --   * -atime n functions --
  *   *
  *      True if the difference between the file access time and the   *      True if the difference between the file access time and the
Line 164 
Line 195 
         TIME_CORRECT(new, N_ATIME);          TIME_CORRECT(new, N_ATIME);
         return (new);          return (new);
 }  }
   
 /*  /*
    * -cmin n functions --
    *
    *     True if the difference between the last change of file
    *     status information and the current time is n min periods.
    */
   int
   f_cmin(plan, entry)
           PLAN *plan;
           FTSENT *entry;
   {
           extern time_t now;
   
           COMPARE((now - entry->fts_statp->st_ctime +
               60 - 1) / 60, plan->t_data);
   }
   
   PLAN *
   c_cmin(arg)
           char *arg;
   {
           PLAN *new;
   
           ftsoptions &= ~FTS_NOSTAT;
   
           new = palloc(N_CMIN, f_cmin);
           new->t_data = find_parsenum(new, "-cmin", arg, NULL);
           TIME_CORRECT(new, N_CMIN);
           return (new);
   }
   
   /*
  * -ctime n functions --   * -ctime n functions --
  *   *
  *      True if the difference between the last change of file   *      True if the difference between the last change of file
Line 766 
Line 829 
         new = palloc(N_MTIME, f_mtime);          new = palloc(N_MTIME, f_mtime);
         new->t_data = find_parsenum(new, "-mtime", arg, NULL);          new->t_data = find_parsenum(new, "-mtime", arg, NULL);
         TIME_CORRECT(new, N_MTIME);          TIME_CORRECT(new, N_MTIME);
           return (new);
   }
   
   /*
    * -mmin n functions --
    *
    *     True if the difference between the file modification time and the
    *     current time is n min periods.
    */
   int
   f_mmin(plan, entry)
           PLAN *plan;
           FTSENT *entry;
   {
           extern time_t now;
   
           COMPARE((now - entry->fts_statp->st_mtime + 60 - 1) /
               60, plan->t_data);
   }
   
   PLAN *
   c_mmin(arg)
           char *arg;
   {
           PLAN *new;
   
           ftsoptions &= ~FTS_NOSTAT;
   
           new = palloc(N_MMIN, f_mmin);
           new->t_data = find_parsenum(new, "-mmin", arg, NULL);
           TIME_CORRECT(new, N_MMIN);
         return (new);          return (new);
 }  }
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11