home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / DELETE / SSOL2 / DELETE. next >
Encoding:
Text File  |  1998-07-24  |  1.5 KB  |  55 lines

  1. --- Makefile.rtr    Tue Feb  4 13:46:29 1997
  2. +++ Makefile    Tue Feb  4 13:47:18 1997
  3. @@ -29,7 +29,7 @@
  4.  COMPILE_ET=     ../com_err/compile_et
  5.  LINT=         lint
  6.  MALLOC=
  7. -DEFINES=    $(MALLOC)
  8. +DEFINES=    $(MALLOC) -DPOSIX
  9.  
  10.  
  11.  # These variables apply only if you want this program to recognize
  12. --- directories.c.rtr    Tue Feb  4 13:46:26 1997
  13. +++ directories.c    Tue Feb  4 14:16:59 1997
  14. @@ -236,7 +236,7 @@
  15.       specs->st_ino = realspecs.st_ino;
  16.       specs->st_mode = realspecs.st_mode;
  17.       specs->st_size = realspecs.st_size;
  18. -     specs->st_ctime = realspecs.st_ctime;
  19. +     specs->st_ctime_local = realspecs.st_ctime;
  20.  #ifdef USE_BLOCKS
  21.       specs->st_blocks = realspecs.st_blocks;
  22.  #endif
  23. --- delete.c.rtr    Tue Feb  4 13:46:26 1997
  24. +++ delete.c    Tue Feb  4 13:58:42 1997
  25. @@ -16,6 +16,7 @@
  26.  
  27.  #include <sys/types.h>
  28.  #include <stdio.h>
  29. +#include <unistd.h>
  30.  #ifdef POSIX
  31.  #include <dirent.h>
  32.  #define direct dirent
  33. --- util.c.rtr    Tue Feb  4 13:46:27 1997
  34. +++ util.c    Tue Feb  4 14:17:20 1997
  35. @@ -244,7 +244,7 @@
  36.  filerec *file_ent;
  37.  time_t current_time, min_days;
  38.  {
  39. -     if ((current_time - file_ent->specs.st_ctime) / 86400 >= min_days)
  40. +     if ((current_time - file_ent->specs.st_ctime_local) / 86400 >= min_days)
  41.        return(1);
  42.       else
  43.        return(0);
  44. --- directories.h.rtr    Tue Feb  4 13:46:21 1997
  45. +++ directories.h    Tue Feb  4 14:16:13 1997
  46. @@ -39,7 +39,7 @@
  47.       ino_t st_ino;
  48.       unsigned short st_mode;
  49.       off_t st_size;
  50. -     time_t st_ctime;
  51. +     time_t st_ctime_local;
  52.  #ifdef USE_BLOCKS
  53.       long st_blocks;
  54.  #endif
  55.