[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.4 and 1.5

version 1.4, 1996/06/26 05:33:10 version 1.5, 1996/08/31 22:40:21
Line 544 
Line 544 
 }  }
   
 /*  /*
    * - 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

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5