home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume17 / delete / patch13 < prev    next >
Encoding:
Internet Message Format  |  1991-03-12  |  52.0 KB

  1. From: jik@pit-manager.MIT.EDU (Jonathan I. Kamens)
  2. Newsgroups: comp.sources.misc
  3. Subject: v17i037:  delete - MIT Athena delete/undelete programs, Patch13
  4. Message-ID: <1991Mar12.033646.10195@sparky.IMD.Sterling.COM>
  5. Date: 12 Mar 91 03:36:46 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: fef9bfc8 d748132a 42a26c1e e8c3da13
  8.  
  9. Submitted-by: Jonathan I. Kamens <jik@Athena.MIT.EDU>
  10. Posting-number: Volume 17, Issue 37
  11. Archive-name: delete/patch13
  12. Patch-To: delete: Volume 17, Issue 23-26
  13.  
  14.   This patch brings the "delete" package from patchlevel 12 to
  15. patchlevel 13.  Use "patch -p0" in your delete source directory to
  16. apply it.  However, before applying it, you should rename the file
  17. "mit-copyright.h" in your source directory to "mit-copying.h"; this
  18. change is to accomodate systems that are restricted to 14-character
  19. filenames.
  20.  
  21.   This patch accomplishes the following:
  22.  
  23. 1. I think I've finally got all of the RCS headers in sync, so after
  24.    this patch, I shouldn't have to send out any more patches that
  25.    change the RCS strings in files without changing anything else.
  26.  
  27. 2. I've added a new compile-time configuration option, USE_BLOCKS.
  28.    See the description in the Makefile and README files for more
  29.    information.  When this option is enabled, delete is a little bit
  30.    smarter about figuring out how much space files actually take up on
  31.    the disk.
  32.  
  33. 3. A new file, block-test.sh, is included to help determine whether or
  34.    not to enable USE_BLOCKS.  This file should be created
  35.    automatically by the patch.
  36.  
  37. 4. I've added BUGS, BETA-TESTERS and ARCHIVE SITE sections to the
  38.    README file  (please read them).
  39.  
  40. Jonathan Kamens                          USnail:
  41. MIT Project Athena                11 Ashford Terrace
  42. jik@Athena.MIT.EDU                Allston, MA  02134
  43. Office: 617-253-8085                  Home: 617-782-0710
  44. ----------------------------
  45.  
  46. *** /tmp/delete/PATCHLEVEL    Mon Mar 11 19:03:41 1991
  47. --- PATCHLEVEL    Mon Mar 11 19:22:12 1991
  48. ***************
  49. *** 1 ****
  50. ! 12
  51. --- 1 ----
  52. ! 13
  53. *** /tmp/delete/README    Mon Mar 11 20:08:03 1991
  54. --- README    Mon Mar 11 20:07:35 1991
  55. ***************
  56. *** 63,69 ****
  57. --- 63,73 ----
  58.      to you, then uncomment the variables starting with "AFS" and set
  59.      them appropriately.
  60.   
  61. + 6. See the comment in the Makefile about USE_BLOCKS.  If you do not
  62. +    know whether or not you have st_blocks or if it represents 512-byte
  63. +    blocks, run "make block-test" and you should be told what to do.
  64.   
  65.                  COM_ERR LIBRARY
  66.   
  67.   In order to compile delete, you need to get your hands on the com_err
  68. ***************
  69. *** 79,84 ****
  70. --- 83,116 ----
  71.   them separately from delete.
  72.   
  73.   
  74. +                  BUGS
  75. + It is not clear to me that the USE_BLOCKS code is going to do the
  76. + right thing on all systems.  If you define USE_BLOCKS and discover
  77. + that lsdel, expunge or purge gives you bogus values for file sizes or
  78. + total amount of space, please let me know, because it will help me to
  79. + tighten up the code to work on a variety of different systems.
  80. +              I'M LOOKING FOR BETA-TESTERS
  81. + I try to make this package run on as many different platforms as
  82. + possible.  However, I do not have access to a large variety of
  83. + platforms, so I can't effectively test all of the changes I make.  I'm
  84. + therefore looking for people who are willing to beta-test changes
  85. + before I release them to the general public.  If you are interested in
  86. + doing this, please let me know.
  87. +                  ARCHIVE SITE
  88. + The most recent version of the delete package and patches to get from
  89. + previous versions to the most recent version are archived on
  90. + pit-manager.mit.edu (18.72.1.58).  You can retrieve them via anonymous
  91. + ftp in the directory /pub/delete, or via mail-server (send a message
  92. + with the subject "help" to "mail-server@pit-manager.mit.edu").
  93.                    FINAL NOTES
  94.   
  95.   As usual, suggestions and bug fixes are always welcomed.
  96. ***************
  97. *** 90,95 ****
  98.   jik@Athena.MIT.EDU                Allston, MA  02134
  99.   Office: 617-253-8085                  Home: 617-782-0710
  100.   
  101. ! P.S. Please see the file "mit-copyright.h" for copying and
  102.   redistribution information.  Copyright 1991 Massachusetts Institute of
  103.   Technology.  All Rights Reserved.  Etc.
  104. --- 122,127 ----
  105.   jik@Athena.MIT.EDU                Allston, MA  02134
  106.   Office: 617-253-8085                  Home: 617-782-0710
  107.   
  108. ! P.S. Please see the file "mit-copying.h" for copying and
  109.   redistribution information.  Copyright 1991 Massachusetts Institute of
  110.   Technology.  All Rights Reserved.  Etc.
  111. *** /tmp/delete/col.c    Mon Mar 11 19:03:43 1991
  112. --- col.c    Mon Mar 11 19:12:29 1991
  113. ***************
  114. *** 1,5 ****
  115.   /*
  116. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/col.c,v $
  117.    * $Author: jik $
  118.    *
  119.    * This program is part of a package including delete, undelete,
  120. --- 1,5 ----
  121.   /*
  122. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/col.c,v $
  123.    * $Author: jik $
  124.    *
  125.    * This program is part of a package including delete, undelete,
  126. ***************
  127. *** 7,17 ****
  128.    * replacement for rm which allows for file recovery.
  129.    * 
  130.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  131. !  * For copying and distribution information, see the file "mit-copyright.h."
  132.    */
  133.   
  134.   #if (!defined(lint) && !defined(SABER))
  135. !      static char rcsid_col_c[] = "$Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/col.c,v 1.7 90/06/06 19:05:56 jik Exp $";
  136.   #endif
  137.   
  138.   /*
  139. --- 7,17 ----
  140.    * replacement for rm which allows for file recovery.
  141.    * 
  142.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  143. !  * For copying and distribution information, see the file "mit-copying.h."
  144.    */
  145.   
  146.   #if (!defined(lint) && !defined(SABER))
  147. !      static char rcsid_col_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/col.c,v 1.8 91/02/28 18:42:09 jik Exp $";
  148.   #endif
  149.   
  150.   /*
  151. ***************
  152. *** 31,37 ****
  153.   #include "errors.h"
  154.   #include "delete_errs.h"
  155.   #include "col.h"
  156. ! #include "mit-copyright.h"
  157.   
  158.   
  159.   static int calc_string_width(), calc_widths(), num_width();
  160. --- 31,37 ----
  161.   #include "errors.h"
  162.   #include "delete_errs.h"
  163.   #include "col.h"
  164. ! #include "mit-copying.h"
  165.   
  166.   
  167.   static int calc_string_width(), calc_widths(), num_width();
  168. *** /tmp/delete/col.h    Mon Mar 11 19:03:44 1991
  169. --- col.h    Mon Mar 11 19:12:29 1991
  170. ***************
  171. *** 1,5 ****
  172.   /*
  173. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/col.h,v $
  174.    * $Author: jik $
  175.    *
  176.    * This header file is part of a package including delete, undelete,
  177. --- 1,5 ----
  178.   /*
  179. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/col.h,v $
  180.    * $Author: jik $
  181.    *
  182.    * This header file is part of a package including delete, undelete,
  183. ***************
  184. *** 7,15 ****
  185.    * replacement for rm which allows for file recovery.
  186.    * 
  187.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  188. !  * For copying and distribution information, see the file "mit-copyright.h."
  189.    */
  190. ! #include "mit-copyright.h"
  191.   
  192.   /*
  193.    * DEF_COL_WIDTH: the column with to try to use if none is specified.
  194. --- 7,15 ----
  195.    * replacement for rm which allows for file recovery.
  196.    * 
  197.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  198. !  * For copying and distribution information, see the file "mit-copying.h."
  199.    */
  200. ! #include "mit-copying.h"
  201.   
  202.   /*
  203.    * DEF_COL_WIDTH: the column with to try to use if none is specified.
  204. *** /tmp/delete/delete.h    Mon Mar 11 19:03:45 1991
  205. --- delete.h    Mon Mar 11 19:12:31 1991
  206. ***************
  207. *** 1,7 ****
  208.   /*
  209. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/delete.h,v $
  210.    * $Author: jik $
  211. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/delete.h,v 1.4 89/10/23 13:43:22 jik Exp $
  212.    * 
  213.    * This file is part of a package including delete, undelete,
  214.    * lsdel, expunge and purge.  The software suite is meant as a
  215. --- 1,7 ----
  216.   /*
  217. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete.h,v $
  218.    * $Author: jik $
  219. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete.h,v 1.5 91/02/28 18:42:22 jik Exp $
  220.    * 
  221.    * This file is part of a package including delete, undelete,
  222.    * lsdel, expunge and purge.  The software suite is meant as a
  223. ***************
  224. *** 8,14 ****
  225.    * replacement for rm which allows for file recovery.
  226.    * 
  227.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  228. !  * For copying and distribution information, see the file "mit-copyright.h."
  229.    */
  230.   
  231. ! #include "mit-copyright.h"
  232. --- 8,14 ----
  233.    * replacement for rm which allows for file recovery.
  234.    * 
  235.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  236. !  * For copying and distribution information, see the file "mit-copying.h."
  237.    */
  238.   
  239. ! #include "mit-copying.h"
  240. *** /tmp/delete/delete_errs.et    Mon Mar 11 19:03:46 1991
  241. --- delete_errs.et    Mon Mar 11 19:12:32 1991
  242. ***************
  243. *** 1,11 ****
  244.   #     Copyright 1988 Massachusetts Institute of Technology.
  245.   #
  246.   #     For copying and distribution information, see the file
  247. ! #     "mit-copyright.h".
  248.   #
  249. ! #     $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/delete_errs.et,v $
  250.   #     $Author: jik $
  251. ! #     $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/delete_errs.et,v 1.3 89/12/28 14:44:22 jik Exp $
  252.   #
  253.   
  254.       et    del
  255. --- 1,11 ----
  256.   #     Copyright 1988 Massachusetts Institute of Technology.
  257.   #
  258.   #     For copying and distribution information, see the file
  259. ! #     "mit-copying.h".
  260.   #
  261. ! #     $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete_errs.et,v $
  262.   #     $Author: jik $
  263. ! #     $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete_errs.et,v 1.4 91/02/28 18:42:24 jik Exp $
  264.   #
  265.   
  266.       et    del
  267. *** /tmp/delete/directories.h    Mon Mar 11 19:03:46 1991
  268. --- directories.h    Mon Mar 11 19:12:35 1991
  269. ***************
  270. *** 1,7 ****
  271.   /*
  272. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/directories.h,v $
  273.    * $Author: jik $
  274. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/directories.h,v 1.10 91/02/22 06:33:34 jik Exp $
  275.    * 
  276.    * This file is part of a package including delete, undelete,
  277.    * lsdel, expunge and purge.  The software suite is meant as a
  278. --- 1,7 ----
  279.   /*
  280. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/directories.h,v $
  281.    * $Author: jik $
  282. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/directories.h,v 1.12 91/03/11 18:41:30 jik Exp $
  283.    * 
  284.    * This file is part of a package including delete, undelete,
  285.    * lsdel, expunge and purge.  The software suite is meant as a
  286. ***************
  287. *** 8,17 ****
  288.    * replacement for rm which allows for file recovery.
  289.    * 
  290.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  291. !  * For copying and distribution information, see the file "mit-copyright.h."
  292.    */
  293.   
  294. ! #include "mit-copyright.h"
  295.   
  296.   typedef short Boolean;
  297.   #define True            (Boolean) 1
  298. --- 8,17 ----
  299.    * replacement for rm which allows for file recovery.
  300.    * 
  301.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  302. !  * For copying and distribution information, see the file "mit-copying.h."
  303.    */
  304.   
  305. ! #include "mit-copying.h"
  306.   
  307.   typedef short Boolean;
  308.   #define True            (Boolean) 1
  309. ***************
  310. *** 18,24 ****
  311.   #define False            (Boolean) 0
  312.   
  313.   
  314. ! #define size_to_k(x)        ((x) / 1024 + (((x) % 1024) ? 1 : 0))
  315.   
  316.   #define FOLLOW_LINKS        1
  317.   #define DONT_FOLLOW_LINKS    0
  318. --- 18,32 ----
  319.   #define False            (Boolean) 0
  320.   
  321.   
  322. ! #ifdef USE_BLOCKS
  323. ! #define specs_to_space(x)    ((x).st_blocks)
  324. ! #define space_to_k(x)        ((x) / 2 + (((x) % 2) ? 1 : 0))
  325. ! #define specs_to_k(x)        space_to_k((x).st_blocks)
  326. ! #else
  327. ! #define specs_to_space(x)    ((x).st_size)
  328. ! #define space_to_k(x)        ((x) / 1024 + (((x) % 1024) ? 1 : 0))
  329. ! #define specs_to_k(x)        space_to_k((x).st_size)
  330. ! #endif
  331.   
  332.   #define FOLLOW_LINKS        1
  333.   #define DONT_FOLLOW_LINKS    0
  334. ***************
  335. *** 32,67 ****
  336.        unsigned short st_mode;
  337.        off_t st_size;
  338.        time_t st_ctime;
  339. ! #ifdef notdef
  340. !      /*
  341. !       * I've tried, unsuccessfully, to figure out exactly what this
  342. !       * field means and how I can use it.  Supposedly, it indicates
  343. !       * the number of blocks the file actually occupies, i.e. the size
  344. !       * of the file minus any holes in it there may be.  The question,
  345. !       * however, is this: what's a "block?"
  346. !       *
  347. !       * At first, I thought that a block is as big as f_bsize returned
  348. !       * by a statfs on the file.  But that doesn't prove to be the
  349. !       * case, because my home directory in AFS has f_bsize of 8192,
  350. !       * st_size of 8192, and st_blocks of 16 (!!), indicating that a
  351. !       * block size of 512 bytes is being used.  Where does that size
  352. !       * come from, and why isn't it consistent with the f_bsize
  353. !       * retrieved from statfs?
  354. !       *
  355. !       * Until someone can answer these questions for me enough that
  356. !       * I'm willing to trust the value in this field, I can't use it.
  357. !       * Besides that, it doesn't even exist in the POSIX stat
  358. !       * structure, so I'm not even sure it's worth trying to use it.
  359. !       *
  360. !       * Here's another dilemma: When I do a statfs on my home
  361. !       * directory in AFS, it tells me that the f_bsize is 8192.  If
  362. !       * that's the case, then when I create a one-character file in my
  363. !       * home directory, my quota usage should go up by 8k.  But it
  364. !       * doesn't, it goes up by just 1k.  Which means that the f_bsize
  365. !       * I'm getting from statfs has nothing to do with the minimum
  366. !       * block size of the filesystem.  So what *does* it have to do
  367. !       * with?
  368. !       */
  369.        long st_blocks;
  370.   #endif
  371.   } mystat;
  372. --- 40,46 ----
  373.        unsigned short st_mode;
  374.        off_t st_size;
  375.        time_t st_ctime;
  376. ! #ifdef USE_BLOCKS
  377.        long st_blocks;
  378.   #endif
  379.   } mystat;
  380. *** /tmp/delete/errors.c    Mon Mar 11 19:03:47 1991
  381. --- errors.c    Mon Mar 11 19:12:36 1991
  382. ***************
  383. *** 7,23 ****
  384.    * replacement for rm which allows for file recovery.
  385.    * 
  386.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  387. !  * For copying and distribution information, see the file "mit-copyright.h."
  388.    */
  389.   
  390.   #if (!defined(lint) && !defined(SABER))
  391. !      static char rcsid_errors_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/errors.c,v 1.3 90/11/12 02:28:28 jik Exp $";
  392.   #endif
  393.   
  394.   #include <com_err.h>
  395.   #include <stdio.h>
  396.   #include "delete_errs.h"
  397. ! #include "mit-copyright.h"
  398.   
  399.   char *whoami;
  400.   int error_reported = 1;
  401. --- 7,23 ----
  402.    * replacement for rm which allows for file recovery.
  403.    * 
  404.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  405. !  * For copying and distribution information, see the file "mit-copying.h."
  406.    */
  407.   
  408.   #if (!defined(lint) && !defined(SABER))
  409. !      static char rcsid_errors_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/errors.c,v 1.4 91/02/28 18:42:40 jik Exp $";
  410.   #endif
  411.   
  412.   #include <com_err.h>
  413.   #include <stdio.h>
  414.   #include "delete_errs.h"
  415. ! #include "mit-copying.h"
  416.   
  417.   char *whoami;
  418.   int error_reported = 1;
  419. *** /tmp/delete/errors.h    Mon Mar 11 19:03:48 1991
  420. --- errors.h    Mon Mar 11 19:12:36 1991
  421. ***************
  422. *** 1,7 ****
  423.   /*
  424. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/errors.h,v $
  425.    * $Author: jik $
  426. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/errors.h,v 1.2 89/11/06 21:27:23 jik Exp $
  427.    * 
  428.    * This file is part of a package including delete, undelete,
  429.    * lsdel, expunge and purge.  The software suite is meant as a
  430. --- 1,7 ----
  431.   /*
  432. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/errors.h,v $
  433.    * $Author: jik $
  434. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/errors.h,v 1.3 91/02/28 18:42:52 jik Exp $
  435.    * 
  436.    * This file is part of a package including delete, undelete,
  437.    * lsdel, expunge and purge.  The software suite is meant as a
  438. ***************
  439. *** 8,16 ****
  440.    * replacement for rm which allows for file recovery.
  441.    * 
  442.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  443. !  * For copying and distribution information, see the file "mit-copyright.h."
  444.    */
  445. ! #include "mit-copyright.h"
  446.   
  447.   extern char *whoami;
  448.   extern int error_reported;
  449. --- 8,16 ----
  450.    * replacement for rm which allows for file recovery.
  451.    * 
  452.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  453. !  * For copying and distribution information, see the file "mit-copying.h."
  454.    */
  455. ! #include "mit-copying.h"
  456.   
  457.   extern char *whoami;
  458.   extern int error_reported;
  459. *** /tmp/delete/expunge.h    Mon Mar 11 19:03:48 1991
  460. --- expunge.h    Mon Mar 11 19:12:38 1991
  461. ***************
  462. *** 1,7 ****
  463.   /*
  464. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/expunge.h,v $
  465.    * $Author: jik $
  466. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/expunge.h,v 1.4 89/10/23 13:37:05 jik Exp $
  467.    * 
  468.    * This file is part of a package including delete, undelete,
  469.    * lsdel, expunge and purge.  The software suite is meant as a
  470. --- 1,7 ----
  471.   /*
  472. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/expunge.h,v $
  473.    * $Author: jik $
  474. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/expunge.h,v 1.5 91/02/28 18:43:02 jik Exp $
  475.    * 
  476.    * This file is part of a package including delete, undelete,
  477.    * lsdel, expunge and purge.  The software suite is meant as a
  478. ***************
  479. *** 8,16 ****
  480.    * replacement for rm which allows for file recovery.
  481.    * 
  482.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  483. !  * For copying and distribution information, see the file "mit-copyright.h."
  484.    */
  485. ! #include "mit-copyright.h"
  486.   
  487.   #define ERROR_MASK        1
  488.   #define NO_DELETE_MASK        2
  489. --- 8,16 ----
  490.    * replacement for rm which allows for file recovery.
  491.    * 
  492.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  493. !  * For copying and distribution information, see the file "mit-copying.h."
  494.    */
  495. ! #include "mit-copying.h"
  496.   
  497.   #define ERROR_MASK        1
  498.   #define NO_DELETE_MASK        2
  499. *** /tmp/delete/lsdel.h    Mon Mar 11 19:03:49 1991
  500. --- lsdel.h    Mon Mar 11 19:12:41 1991
  501. ***************
  502. *** 1,7 ****
  503.   /*
  504. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/lsdel.h,v $
  505.    * $Author: jik $
  506. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/lsdel.h,v 1.4 89/10/23 13:33:51 jik Exp $
  507.    * 
  508.    * This file is part of a package including delete, undelete,
  509.    * lsdel, expunge and purge.  The software suite is meant as a
  510. --- 1,7 ----
  511.   /*
  512. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/lsdel.h,v $
  513.    * $Author: jik $
  514. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/lsdel.h,v 1.5 91/02/28 18:43:08 jik Exp $
  515.    * 
  516.    * This file is part of a package including delete, undelete,
  517.    * lsdel, expunge and purge.  The software suite is meant as a
  518. ***************
  519. *** 8,16 ****
  520.    * replacement for rm which allows for file recovery.
  521.    * 
  522.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  523. !  * For copying and distribution information, see the file "mit-copyright.h."
  524.    */
  525. ! #include "mit-copyright.h"
  526.   
  527.   #define ERROR_MASK 1
  528.   #define NO_DELETE_MASK 2
  529. --- 8,16 ----
  530.    * replacement for rm which allows for file recovery.
  531.    * 
  532.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  533. !  * For copying and distribution information, see the file "mit-copying.h."
  534.    */
  535. ! #include "mit-copying.h"
  536.   
  537.   #define ERROR_MASK 1
  538.   #define NO_DELETE_MASK 2
  539. *** /tmp/delete/man1/delete.1    Mon Mar 11 19:03:51 1991
  540. --- man1/delete.1    Mon Mar 11 19:12:54 1991
  541. ***************
  542. *** 1,6 ****
  543. ! .\"    $Source: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/delete.1,v $
  544.   .\"    $Author: jik $
  545. ! .\"    $Header: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/delete.1,v 1.5 89/09/14 03:42:51 jik Exp $
  546.   .\"
  547.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  548.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  549. --- 1,6 ----
  550. ! .\"    $Source: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/delete.1,v $
  551.   .\"    $Author: jik $
  552. ! .\"    $Header: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/delete.1,v 1.5 89/09/14 03:42:51 jik Exp $
  553.   .\"
  554.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  555.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  556. *** /tmp/delete/man1/expunge.1    Mon Mar 11 19:03:53 1991
  557. --- man1/expunge.1    Mon Mar 11 19:12:54 1991
  558. ***************
  559. *** 1,6 ****
  560. ! .\"    $Source: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/expunge.1,v $
  561.   .\"    $Author: jik $
  562. ! .\"    $Header: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/expunge.1,v 1.9 91/01/01 05:09:52 jik Exp $
  563.   .\"
  564.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  565.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  566. --- 1,6 ----
  567. ! .\"    $Source: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/expunge.1,v $
  568.   .\"    $Author: jik $
  569. ! .\"    $Header: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/expunge.1,v 1.9 91/01/01 05:09:52 jik Exp $
  570.   .\"
  571.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  572.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  573. *** /tmp/delete/man1/lsdel.1    Mon Mar 11 19:03:54 1991
  574. --- man1/lsdel.1    Mon Mar 11 19:12:55 1991
  575. ***************
  576. *** 1,6 ****
  577. ! .\"    $Source: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/lsdel.1,v $
  578.   .\"    $Author: jik $
  579. ! .\"    $Header: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/lsdel.1,v 1.6 90/09/26 03:49:35 jik Exp $
  580.   .\"
  581.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  582.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  583. --- 1,6 ----
  584. ! .\"    $Source: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/lsdel.1,v $
  585.   .\"    $Author: jik $
  586. ! .\"    $Header: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/lsdel.1,v 1.6 90/09/26 03:49:35 jik Exp $
  587.   .\"
  588.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  589.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  590. *** /tmp/delete/man1/purge.1    Mon Mar 11 19:03:54 1991
  591. --- man1/purge.1    Mon Mar 11 19:12:56 1991
  592. ***************
  593. *** 1,6 ****
  594. ! .\"    $Source: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/purge.1,v $
  595.   .\"    $Author: jik $
  596. ! .\"    $Header: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/purge.1,v 1.1 89/01/27 04:50:13 jik Exp $
  597.   .\"
  598.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  599.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  600. --- 1,6 ----
  601. ! .\"    $Source: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/purge.1,v $
  602.   .\"    $Author: jik $
  603. ! .\"    $Header: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/purge.1,v 1.1 89/01/27 04:50:13 jik Exp $
  604.   .\"
  605.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  606.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  607. *** /tmp/delete/man1/undelete.1    Mon Mar 11 19:03:55 1991
  608. --- man1/undelete.1    Mon Mar 11 19:12:56 1991
  609. ***************
  610. *** 1,6 ****
  611. ! .\"    $Source: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/undelete.1,v $
  612.   .\"    $Author: jik $
  613. ! .\"    $Header: /afs/athena.mit.edu/user/j/jik/delete/src/man1/RCS/undelete.1,v 1.5 89/11/02 07:13:26 jik Exp $
  614.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  615.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  616.   .\" the terms and conditions for redistribution.
  617. --- 1,6 ----
  618. ! .\"    $Source: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/undelete.1,v $
  619.   .\"    $Author: jik $
  620. ! .\"    $Header: /afs/athena.mit.edu/astaff/project/delete/src/man1/RCS/undelete.1,v 1.5 89/11/02 07:13:26 jik Exp $
  621.   .\" Copyright 1989 by the Massachusetts Institute of Technology.  All
  622.   .\" rights reserved.  The file /usr/include/mit-copyright.h specifies
  623.   .\" the terms and conditions for redistribution.
  624. *** /tmp/delete/pattern.h    Mon Mar 11 19:03:56 1991
  625. --- pattern.h    Mon Mar 11 19:12:43 1991
  626. ***************
  627. *** 1,7 ****
  628.   /*
  629. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/pattern.h,v $
  630.    * $Author: jik $
  631. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/pattern.h,v 1.5 89/11/06 19:54:32 jik Exp $
  632.    * 
  633.    * This program is part of a package including delete, undelete,
  634.    * lsdel, expunge and purge.  The software suite is meant as a
  635. --- 1,7 ----
  636.   /*
  637. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/pattern.h,v $
  638.    * $Author: jik $
  639. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/pattern.h,v 1.6 91/02/28 18:43:19 jik Exp $
  640.    * 
  641.    * This program is part of a package including delete, undelete,
  642.    * lsdel, expunge and purge.  The software suite is meant as a
  643. ***************
  644. *** 8,16 ****
  645.    * replacement for rm which allows for file recovery.
  646.    * 
  647.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  648. !  * For copying and distribution information, see the file "mit-copyright.h."
  649.    */
  650. ! #include "mit-copyright.h"
  651.   
  652.   int add_str();
  653.   int add_arrays();
  654. --- 8,16 ----
  655.    * replacement for rm which allows for file recovery.
  656.    * 
  657.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  658. !  * For copying and distribution information, see the file "mit-copying.h."
  659.    */
  660. ! #include "mit-copying.h"
  661.   
  662.   int add_str();
  663.   int add_arrays();
  664. *** /tmp/delete/shell_regexp.c    Mon Mar 11 19:03:57 1991
  665. --- shell_regexp.c    Mon Mar 11 19:12:44 1991
  666. ***************
  667. *** 1,5 ****
  668.   /*
  669. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/shell_regexp.c,v $
  670.    * $Author: jik $
  671.    *
  672.    * This program is part of a package including delete, undelete,
  673. --- 1,5 ----
  674.   /*
  675. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/shell_regexp.c,v $
  676.    * $Author: jik $
  677.    *
  678.    * This program is part of a package including delete, undelete,
  679. ***************
  680. *** 7,17 ****
  681.    * replacement for rm which allows for file recovery.
  682.    * 
  683.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  684. !  * For copying and distribution information, see the file "mit-copyright.h."
  685.    */
  686.   
  687.   #if (!defined(lint) && !defined(SABER))
  688. !      static char rcsid_shell_regexp_c[] = "$Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/shell_regexp.c,v 1.2 89/11/06 21:27:16 jik Exp $";
  689.   #endif
  690.   
  691.   #include <com_err.h>
  692. --- 7,17 ----
  693.    * replacement for rm which allows for file recovery.
  694.    * 
  695.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  696. !  * For copying and distribution information, see the file "mit-copying.h."
  697.    */
  698.   
  699.   #if (!defined(lint) && !defined(SABER))
  700. !      static char rcsid_shell_regexp_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/shell_regexp.c,v 1.3 91/02/28 18:43:43 jik Exp $";
  701.   #endif
  702.   
  703.   #include <com_err.h>
  704. ***************
  705. *** 18,24 ****
  706.   #include "shell_regexp.h"
  707.   #include "delete_errs.h"
  708.   #include "errors.h"
  709. ! #include "mit-copyright.h"
  710.   
  711.   static int real_cmp();
  712.   
  713. --- 18,24 ----
  714.   #include "shell_regexp.h"
  715.   #include "delete_errs.h"
  716.   #include "errors.h"
  717. ! #include "mit-copying.h"
  718.   
  719.   static int real_cmp();
  720.   
  721. *** /tmp/delete/shell_regexp.h    Mon Mar 11 19:03:58 1991
  722. --- shell_regexp.h    Mon Mar 11 19:12:44 1991
  723. ***************
  724. *** 1,5 ****
  725.   /*
  726. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/shell_regexp.h,v $
  727.    * $Author: jik $
  728.    *
  729.    * This program is part of a package including delete, undelete,
  730. --- 1,5 ----
  731.   /*
  732. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/shell_regexp.h,v $
  733.    * $Author: jik $
  734.    *
  735.    * This program is part of a package including delete, undelete,
  736. ***************
  737. *** 7,15 ****
  738.    * replacement for rm which allows for file recovery.
  739.    * 
  740.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  741. !  * For copying and distribution information, see the file "mit-copyright.h."
  742.    */
  743. ! #include "mit-copyright.h"
  744.   
  745.   extern int reg_cmp();
  746.   
  747. --- 7,15 ----
  748.    * replacement for rm which allows for file recovery.
  749.    * 
  750.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  751. !  * For copying and distribution information, see the file "mit-copying.h."
  752.    */
  753. ! #include "mit-copying.h"
  754.   
  755.   extern int reg_cmp();
  756.   
  757. *** /tmp/delete/stack.c    Mon Mar 11 19:03:59 1991
  758. --- stack.c    Mon Mar 11 19:12:45 1991
  759. ***************
  760. *** 1,5 ****
  761.   /*
  762. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/stack.c,v $
  763.    * $Author: jik $
  764.    *
  765.    * This program is part of a package including delete, undelete,
  766. --- 1,5 ----
  767.   /*
  768. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/stack.c,v $
  769.    * $Author: jik $
  770.    *
  771.    * This program is part of a package including delete, undelete,
  772. ***************
  773. *** 7,17 ****
  774.    * replacement for rm which allows for file recovery.
  775.    * 
  776.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  777. !  * For copying and distribution information, see the file "mit-copyright.h."
  778.    */
  779.   
  780.   #if (!defined(lint) && !defined(SABER))
  781. !      static char rcsid_stack_c[] = "$Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/stack.c,v 1.8 90/09/26 03:45:37 jik Exp $";
  782.   #endif
  783.   
  784.   #include <sys/types.h>
  785. --- 7,17 ----
  786.    * replacement for rm which allows for file recovery.
  787.    * 
  788.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  789. !  * For copying and distribution information, see the file "mit-copying.h."
  790.    */
  791.   
  792.   #if (!defined(lint) && !defined(SABER))
  793. !      static char rcsid_stack_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/stack.c,v 1.9 91/02/28 18:43:49 jik Exp $";
  794.   #endif
  795.   
  796.   #include <sys/types.h>
  797. ***************
  798. *** 20,26 ****
  799.   #include "stack.h"
  800.   #include "delete_errs.h"
  801.   #include "errors.h"
  802. ! #include "mit-copyright.h"
  803.   #include "util.h"
  804.   
  805.   extern char *realloc();
  806. --- 20,26 ----
  807.   #include "stack.h"
  808.   #include "delete_errs.h"
  809.   #include "errors.h"
  810. ! #include "mit-copying.h"
  811.   #include "util.h"
  812.   
  813.   extern char *realloc();
  814. *** /tmp/delete/stack.h    Mon Mar 11 19:03:59 1991
  815. --- stack.h    Mon Mar 11 19:12:45 1991
  816. ***************
  817. *** 1,7 ****
  818.   /*
  819. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/stack.h,v $
  820.    * $Author: jik $
  821. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/stack.h,v 1.2 89/11/06 21:26:50 jik Exp $
  822.    * 
  823.    * This file is part of a package including delete, undelete,
  824.    * lsdel, expunge and purge.  The software suite is meant as a
  825. --- 1,7 ----
  826.   /*
  827. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/stack.h,v $
  828.    * $Author: jik $
  829. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/stack.h,v 1.3 91/02/28 18:43:52 jik Exp $
  830.    * 
  831.    * This file is part of a package including delete, undelete,
  832.    * lsdel, expunge and purge.  The software suite is meant as a
  833. ***************
  834. *** 8,16 ****
  835.    * replacement for rm which allows for file recovery.
  836.    * 
  837.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  838. !  * For copying and distribution information, see the file "mit-copyright.h."
  839.    */
  840. ! #include "mit-copyright.h"
  841.   
  842.   #define STACK_PUSH     0
  843.   #define STACK_POP    1
  844. --- 8,16 ----
  845.    * replacement for rm which allows for file recovery.
  846.    * 
  847.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  848. !  * For copying and distribution information, see the file "mit-copying.h."
  849.    */
  850. ! #include "mit-copying.h"
  851.   
  852.   #define STACK_PUSH     0
  853.   #define STACK_POP    1
  854. *** /tmp/delete/undelete.h    Mon Mar 11 19:04:00 1991
  855. --- undelete.h    Mon Mar 11 19:12:47 1991
  856. ***************
  857. *** 1,7 ****
  858.   /*
  859. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/undelete.h,v $
  860.    * $Author: jik $
  861. !  * $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/undelete.h,v 1.4 89/10/23 13:09:09 jik Exp $
  862.    * 
  863.    * This program is part of a package including delete, undelete,
  864.    * lsdel, expunge and purge.  The software suite is meant as a
  865. --- 1,7 ----
  866.   /*
  867. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/undelete.h,v $
  868.    * $Author: jik $
  869. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/undelete.h,v 1.5 91/02/28 18:44:06 jik Exp $
  870.    * 
  871.    * This program is part of a package including delete, undelete,
  872.    * lsdel, expunge and purge.  The software suite is meant as a
  873. ***************
  874. *** 8,16 ****
  875.    * replacement for rm which allows for file recovery.
  876.    * 
  877.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  878. !  * For copying and distribution information, see the file "mit-copyright.h."
  879.    */
  880. ! #include "mit-copyright.h"
  881.   
  882.   #define DELETEPREFIX ".#"
  883.   #define DELETEREPREFIX "\\.#"
  884. --- 8,16 ----
  885.    * replacement for rm which allows for file recovery.
  886.    * 
  887.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  888. !  * For copying and distribution information, see the file "mit-copying.h."
  889.    */
  890. ! #include "mit-copying.h"
  891.   
  892.   #define DELETEPREFIX ".#"
  893.   #define DELETEREPREFIX "\\.#"
  894. *** /tmp/delete/util.h    Mon Mar 11 19:04:01 1991
  895. --- util.h    Mon Mar 11 19:12:49 1991
  896. ***************
  897. *** 1,7 ****
  898.   /*
  899.    * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v $
  900.    * $Author: jik $
  901. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v 1.11 91/02/20 17:28:33 jik Exp $
  902.    * 
  903.    * This file is part of a package including delete, undelete,
  904.    * lsdel, expunge and purge.  The software suite is meant as a
  905. --- 1,7 ----
  906.   /*
  907.    * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v $
  908.    * $Author: jik $
  909. !  * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v 1.12 91/02/28 18:44:15 jik Exp $
  910.    * 
  911.    * This file is part of a package including delete, undelete,
  912.    * lsdel, expunge and purge.  The software suite is meant as a
  913. ***************
  914. *** 8,16 ****
  915.    * replacement for rm which allows for file recovery.
  916.    * 
  917.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  918. !  * For copying and distribution information, see the file "mit-copyright.h."
  919.    */
  920. ! #include "mit-copyright.h"
  921.   
  922.   #include <sys/stat.h>
  923.   #ifndef S_IFLNK
  924. --- 8,16 ----
  925.    * replacement for rm which allows for file recovery.
  926.    * 
  927.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  928. !  * For copying and distribution information, see the file "mit-copying.h."
  929.    */
  930. ! #include "mit-copying.h"
  931.   
  932.   #include <sys/stat.h>
  933.   #ifndef S_IFLNK
  934. *** /tmp/delete/Makefile    Mon Mar 11 19:04:07 1991
  935. --- Makefile    Mon Mar 11 19:12:26 1991
  936. ***************
  937. *** 1,17 ****
  938.   #     Copyright 1988 Massachusetts Institute of Technology.
  939.   #
  940.   #     For copying and distribution information, see the file
  941. ! #     "mit-copyright.h".
  942.   #
  943. ! #     $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/Makefile,v $
  944.   #     $Author: jik $
  945. ! #     $Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/Makefile,v 1.28 91/02/22 07:35:51 jik Exp $
  946.   #
  947.   
  948.   DESTDIR=
  949.   TARGETS=     delete undelete expunge purge lsdel
  950.   INSTALLDIR=     /usr/bin
  951.   MANDIR=        /usr/man
  952.   MANSECT=    1
  953.   CC=         cc
  954.   DEPEND=        /usr/bin/X11/makedepend
  955. --- 1,24 ----
  956.   #     Copyright 1988 Massachusetts Institute of Technology.
  957.   #
  958.   #     For copying and distribution information, see the file
  959. ! #     "mit-copying.h".
  960.   #
  961. ! #     $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/Makefile,v $
  962.   #     $Author: jik $
  963. ! #     $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/Makefile,v 1.30 91/03/11 18:40:59 jik Exp $
  964.   #
  965.   
  966. + # If you are compiling on a system that has an st_blocks field in
  967. + # the stat structure whose value represents the number of 512-byte
  968. + # blocks taken up by the file, add -DUSE_BLOCKS to the DEFINES
  969. + # variable below.  If you don't know whether or not to define it, run
  970. + # "make block-test".
  971.   DESTDIR=
  972.   TARGETS=     delete undelete expunge purge lsdel
  973.   INSTALLDIR=     /usr/bin
  974.   MANDIR=        /usr/man
  975. + TMPDIR=        /tmp
  976.   MANSECT=    1
  977.   CC=         cc
  978.   DEPEND=        /usr/bin/X11/makedepend
  979. ***************
  980. *** 63,69 ****
  981.           expunge.c lsdel.c col.c shell_regexp.c\
  982.           errors.c stack.c
  983.   INCS=         col.h delete.h directories.h expunge.h lsdel.h\
  984. !         mit-copyright.h pattern.h undelete.h util.h\
  985.           shell_regexp.h errors.h stack.h
  986.   ETS=        delete_errs.h delete_errs.c
  987.   ETSRCS=        delete_errs.et
  988. --- 70,76 ----
  989.           expunge.c lsdel.c col.c shell_regexp.c\
  990.           errors.c stack.c
  991.   INCS=         col.h delete.h directories.h expunge.h lsdel.h\
  992. !         mit-copying.h pattern.h undelete.h util.h\
  993.           shell_regexp.h errors.h stack.h
  994.   ETS=        delete_errs.h delete_errs.c
  995.   ETSRCS=        delete_errs.et
  996. ***************
  997. *** 72,78 ****
  998.           man1/undelete.1
  999.   
  1000.   ARCHIVE=    README Makefile PATCHLEVEL $(SRCS) $(INCS) $(MANS)\
  1001. !         $(ETSRCS)
  1002.   ARCHIVEDIRS=     man1
  1003.   
  1004.   DELETEOBJS=     delete.o util.o delete_errs.o errors.o
  1005. --- 79,85 ----
  1006.           man1/undelete.1
  1007.   
  1008.   ARCHIVE=    README Makefile PATCHLEVEL $(SRCS) $(INCS) $(MANS)\
  1009. !         $(ETSRCS) block-test.sh
  1010.   ARCHIVEDIRS=     man1
  1011.   
  1012.   DELETEOBJS=     delete.o util.o delete_errs.o errors.o
  1013. ***************
  1014. *** 180,187 ****
  1015.       -rm -f *~ *.bak *.o delete undelete lsdel expunge purge\
  1016.           delete_errs.h delete_errs.c
  1017.   
  1018. ! depend: $(SRCS) $(INCS) $(ETS)
  1019.       $(DEPEND) -v $(CFLAGS) -s'# DO NOT DELETE' $(SRCS)
  1020.   
  1021.   $(DELETEOBJS): delete_errs.h
  1022.   $(EXPUNGEOBJS): delete_errs.h
  1023. --- 187,197 ----
  1024.       -rm -f *~ *.bak *.o delete undelete lsdel expunge purge\
  1025.           delete_errs.h delete_errs.c
  1026.   
  1027. ! depend:: $(SRCS) $(INCS) $(ETS)
  1028.       $(DEPEND) -v $(CFLAGS) -s'# DO NOT DELETE' $(SRCS)
  1029. + block-test: block-test.sh
  1030. +     CC=$(CC); TMPDIR=$(TMPDIR); export CC TMPDIR; . block-test.sh
  1031.   
  1032.   $(DELETEOBJS): delete_errs.h
  1033.   $(EXPUNGEOBJS): delete_errs.h
  1034. *** /tmp/delete/expunge.c    Mon Mar 11 19:04:08 1991
  1035. --- expunge.c    Mon Mar 11 19:12:37 1991
  1036. ***************
  1037. *** 7,17 ****
  1038.    * replacement for rm which allows for file recovery.
  1039.    * 
  1040.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1041. !  * For copying and distribution information, see the file "mit-copyright.h."
  1042.    */
  1043.   
  1044.   #if (!defined(lint) && !defined(SABER))
  1045. !      static char rcsid_expunge_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/expunge.c,v 1.17 91/02/20 17:42:15 jik Exp $";
  1046.   #endif
  1047.   
  1048.   #include <stdio.h>
  1049. --- 7,17 ----
  1050.    * replacement for rm which allows for file recovery.
  1051.    * 
  1052.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1053. !  * For copying and distribution information, see the file "mit-copying.h."
  1054.    */
  1055.   
  1056.   #if (!defined(lint) && !defined(SABER))
  1057. !      static char rcsid_expunge_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/expunge.c,v 1.19 91/03/11 18:43:51 jik Exp $";
  1058.   #endif
  1059.   
  1060.   #include <stdio.h>
  1061. ***************
  1062. *** 34,40 ****
  1063.   #include "pattern.h"
  1064.   #include "expunge.h"
  1065.   #include "shell_regexp.h"
  1066. ! #include "mit-copyright.h"
  1067.   #include "delete_errs.h"
  1068.   #include "errors.h"
  1069.   
  1070. --- 34,40 ----
  1071.   #include "pattern.h"
  1072.   #include "expunge.h"
  1073.   #include "shell_regexp.h"
  1074. ! #include "mit-copying.h"
  1075.   #include "delete_errs.h"
  1076.   #include "errors.h"
  1077.   
  1078. ***************
  1079. *** 56,62 ****
  1080.        f_links,        /* follow symbolic links */
  1081.        f_mounts;        /* follow mount points */
  1082.   
  1083. ! int bytes_removed = 0;
  1084.   
  1085.   
  1086.   
  1087. --- 56,62 ----
  1088.        f_links,        /* follow symbolic links */
  1089.        f_mounts;        /* follow mount points */
  1090.   
  1091. ! int space_removed = 0;
  1092.   
  1093.   
  1094.   
  1095. ***************
  1096. *** 270,278 ****
  1097.        if (yield) {
  1098.         if (noop)
  1099.              printf("Total that would be expunged: %dk\n",
  1100. !               size_to_k(bytes_removed));
  1101.         else
  1102. !            printf("Total expunged: %dk\n", size_to_k(bytes_removed));
  1103.        }
  1104.        return status;
  1105.   }
  1106. --- 270,278 ----
  1107.        if (yield) {
  1108.         if (noop)
  1109.              printf("Total that would be expunged: %dk\n",
  1110. !               space_to_k(space_removed));
  1111.         else
  1112. !            printf("Total expunged: %dk\n", space_to_k(space_removed));
  1113.        }
  1114.        return status;
  1115.   }
  1116. ***************
  1117. *** 377,383 ****
  1118.   
  1119.        if (interactive) {
  1120.         printf ("%s: Expunge %s (%dk)? ", whoami, user,
  1121. !           size_to_k(file_ent->specs.st_size));
  1122.         if (! yes()) {
  1123.              set_status(EXPUNGE_NOT_EXPUNGED);
  1124.              return error_code;
  1125. --- 377,383 ----
  1126.   
  1127.        if (interactive) {
  1128.         printf ("%s: Expunge %s (%dk)? ", whoami, user,
  1129. !           specs_to_k(file_ent->specs));
  1130.         if (! yes()) {
  1131.              set_status(EXPUNGE_NOT_EXPUNGED);
  1132.              return error_code;
  1133. ***************
  1134. *** 385,394 ****
  1135.        }
  1136.   
  1137.        if (noop) {
  1138. !       bytes_removed += file_ent->specs.st_size;
  1139.         printf("%s: %s (%dk) would be expunged (%dk total)\n", whoami, user,
  1140. !          size_to_k(file_ent->specs.st_size),
  1141. !          size_to_k(bytes_removed));
  1142.         return 0;
  1143.        }
  1144.   
  1145. --- 385,394 ----
  1146.        }
  1147.   
  1148.        if (noop) {
  1149. !       space_removed += specs_to_space(file_ent->specs);
  1150.         printf("%s: %s (%dk) would be expunged (%dk total)\n", whoami, user,
  1151. !          specs_to_k(file_ent->specs),
  1152. !          space_to_k(space_removed));
  1153.         return 0;
  1154.        }
  1155.   
  1156. ***************
  1157. *** 397,407 ****
  1158.        else
  1159.         status = unlink(real);
  1160.        if (! status) {
  1161. !       bytes_removed += file_ent->specs.st_size;
  1162.         if (verbose)
  1163.              printf("%s: %s (%dk) expunged (%dk total)\n", whoami, user,
  1164. !               size_to_k(file_ent->specs.st_size),
  1165. !               size_to_k(bytes_removed));
  1166.         return 0;
  1167.        }
  1168.        else {
  1169. --- 397,407 ----
  1170.        else
  1171.         status = unlink(real);
  1172.        if (! status) {
  1173. !       space_removed += specs_to_space(file_ent->specs);
  1174.         if (verbose)
  1175.              printf("%s: %s (%dk) expunged (%dk total)\n", whoami, user,
  1176. !               specs_to_k(file_ent->specs),
  1177. !               space_to_k(space_removed));
  1178.         return 0;
  1179.        }
  1180.        else {
  1181. *** /tmp/delete/lsdel.c    Mon Mar 11 19:04:10 1991
  1182. --- lsdel.c    Mon Mar 11 19:12:40 1991
  1183. ***************
  1184. *** 7,17 ****
  1185.    * prefix.
  1186.    *
  1187.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1188. !  * For copying and distribution information, see the file "mit-copyright.h."
  1189.    */
  1190.   
  1191.   #if (!defined(lint) && !defined(SABER))
  1192. !      static char rcsid_lsdel_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/lsdel.c,v 1.14 91/02/20 17:36:11 jik Exp $";
  1193.   #endif
  1194.   
  1195.   #include <stdio.h>
  1196. --- 7,17 ----
  1197.    * prefix.
  1198.    *
  1199.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1200. !  * For copying and distribution information, see the file "mit-copying.h."
  1201.    */
  1202.   
  1203.   #if (!defined(lint) && !defined(SABER))
  1204. !      static char rcsid_lsdel_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/lsdel.c,v 1.16 91/03/11 18:43:29 jik Exp $";
  1205.   #endif
  1206.   
  1207.   #include <stdio.h>
  1208. ***************
  1209. *** 36,42 ****
  1210.   #include "pattern.h"
  1211.   #include "lsdel.h"
  1212.   #include "shell_regexp.h"
  1213. ! #include "mit-copyright.h"
  1214.   #include "delete_errs.h"
  1215.   #include "errors.h"
  1216.   
  1217. --- 36,42 ----
  1218.   #include "pattern.h"
  1219.   #include "lsdel.h"
  1220.   #include "shell_regexp.h"
  1221. ! #include "mit-copying.h"
  1222.   #include "delete_errs.h"
  1223.   #include "errors.h"
  1224.   
  1225. ***************
  1226. *** 44,50 ****
  1227.   extern time_t current_time;
  1228.   extern int errno;
  1229.   
  1230. ! int byte_total = 0;
  1231.   int dirsonly, recursive, yield, f_links, f_mounts;
  1232.   time_t timev;
  1233.   
  1234. --- 44,50 ----
  1235.   extern time_t current_time;
  1236.   extern int errno;
  1237.   
  1238. ! int space_total = 0;
  1239.   int dirsonly, recursive, yield, f_links, f_mounts;
  1240.   time_t timev;
  1241.   
  1242. ***************
  1243. *** 188,194 ****
  1244.        }
  1245.        if (yield)
  1246.         printf("\nTotal space taken up by file%s: %dk\n",
  1247. !          (total == 1 ? "" : "s"), size_to_k(byte_total));
  1248.   
  1249.        return status;
  1250.   }
  1251. --- 188,194 ----
  1252.        }
  1253.        if (yield)
  1254.         printf("\nTotal space taken up by file%s: %dk\n",
  1255. !          (total == 1 ? "" : "s"), space_to_k(space_total));
  1256.   
  1257.        return status;
  1258.   }
  1259. ***************
  1260. *** 246,252 ****
  1261.              skipped++;
  1262.              continue;
  1263.         }
  1264. !       byte_total += leaf->specs.st_size;
  1265.        }
  1266.        free((char *) files);
  1267.        return(num-skipped);
  1268. --- 246,252 ----
  1269.              skipped++;
  1270.              continue;
  1271.         }
  1272. !       space_total += specs_to_space(leaf->specs);
  1273.        }
  1274.        free((char *) files);
  1275.        return(num-skipped);
  1276. *** /tmp/delete/undelete.c    Mon Mar 11 19:04:12 1991
  1277. --- undelete.c    Mon Mar 11 19:12:46 1991
  1278. ***************
  1279. *** 7,17 ****
  1280.    * replacement for rm which allows for file recovery.
  1281.    * 
  1282.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1283. !  * For copying and distribution information, see the file "mit-copyright.h."
  1284.    */
  1285.   
  1286.   #if (!defined(lint) && !defined(SABER))
  1287. !      static char rcsid_undelete_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/undelete.c,v 1.22 91/02/20 17:27:38 jik Exp $";
  1288.   #endif
  1289.   
  1290.   #include <stdio.h>
  1291. --- 7,17 ----
  1292.    * replacement for rm which allows for file recovery.
  1293.    * 
  1294.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1295. !  * For copying and distribution information, see the file "mit-copying.h."
  1296.    */
  1297.   
  1298.   #if (!defined(lint) && !defined(SABER))
  1299. !      static char rcsid_undelete_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/undelete.c,v 1.23 91/02/28 18:44:00 jik Exp $";
  1300.   #endif
  1301.   
  1302.   #include <stdio.h>
  1303. ***************
  1304. *** 33,39 ****
  1305.   #include "directories.h"
  1306.   #include "undelete.h"
  1307.   #include "shell_regexp.h"
  1308. ! #include "mit-copyright.h"
  1309.   #include "errors.h"
  1310.   
  1311.   extern char *realloc();
  1312. --- 33,39 ----
  1313.   #include "directories.h"
  1314.   #include "undelete.h"
  1315.   #include "shell_regexp.h"
  1316. ! #include "mit-copying.h"
  1317.   #include "errors.h"
  1318.   
  1319.   extern char *realloc();
  1320. *** /tmp/delete/util.c    Mon Mar 11 19:04:13 1991
  1321. --- util.c    Mon Mar 11 19:12:48 1991
  1322. ***************
  1323. *** 7,17 ****
  1324.    * prefix.
  1325.    *
  1326.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1327. !  * For copying and distribution information, see the file "mit-copyright.h."
  1328.    */
  1329.   
  1330.   #if (!defined(lint) && !defined(SABER))
  1331. !      static char rcsid_util_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.c,v 1.21 91/02/20 17:28:11 jik Exp $";
  1332.   #endif
  1333.   
  1334.   #include <stdio.h>
  1335. --- 7,17 ----
  1336.    * prefix.
  1337.    *
  1338.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1339. !  * For copying and distribution information, see the file "mit-copying.h."
  1340.    */
  1341.   
  1342.   #if (!defined(lint) && !defined(SABER))
  1343. !      static char rcsid_util_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.c,v 1.22 91/02/28 18:44:11 jik Exp $";
  1344.   #endif
  1345.   
  1346.   #include <stdio.h>
  1347. ***************
  1348. *** 39,45 ****
  1349.   #include "delete_errs.h"
  1350.   #include "util.h"
  1351.   #include "directories.h"
  1352. ! #include "mit-copyright.h"
  1353.   #include "errors.h"
  1354.   
  1355.   extern char *getenv();
  1356. --- 39,45 ----
  1357.   #include "delete_errs.h"
  1358.   #include "util.h"
  1359.   #include "directories.h"
  1360. ! #include "mit-copying.h"
  1361.   #include "errors.h"
  1362.   
  1363.   extern char *getenv();
  1364. *** /tmp/delete/delete.c    Mon Mar 11 19:04:18 1991
  1365. --- delete.c    Mon Mar 11 19:12:30 1991
  1366. ***************
  1367. *** 7,17 ****
  1368.    * prefix.
  1369.    *
  1370.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1371. !  * For copying and distribution information, see the file "mit-copyright.h."
  1372.    */
  1373.   
  1374.   #if (!defined(lint) && !defined(SABER))
  1375. !      static char rcsid_delete_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete.c,v 1.24 91/02/20 17:24:51 jik Exp $";
  1376.   #endif
  1377.   
  1378.   #include <sys/types.h>
  1379. --- 7,17 ----
  1380.    * prefix.
  1381.    *
  1382.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1383. !  * For copying and distribution information, see the file "mit-copying.h."
  1384.    */
  1385.   
  1386.   #if (!defined(lint) && !defined(SABER))
  1387. !      static char rcsid_delete_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/delete.c,v 1.25 91/02/28 18:42:16 jik Exp $";
  1388.   #endif
  1389.   
  1390.   #include <sys/types.h>
  1391. ***************
  1392. *** 31,37 ****
  1393.   #include "delete_errs.h"
  1394.   #include "util.h"
  1395.   #include "delete.h"
  1396. ! #include "mit-copyright.h"
  1397.   
  1398.   
  1399.   
  1400. --- 31,37 ----
  1401.   #include "delete_errs.h"
  1402.   #include "util.h"
  1403.   #include "delete.h"
  1404. ! #include "mit-copying.h"
  1405.   
  1406.   
  1407.   
  1408. *** /tmp/delete/directories.c    Mon Mar 11 19:04:20 1991
  1409. --- directories.c    Mon Mar 11 19:12:33 1991
  1410. ***************
  1411. *** 1,5 ****
  1412.   /*
  1413. !  * $Source: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/directories.c,v $
  1414.    * $Author: jik $
  1415.    * 
  1416.    * This program is part of a package including delete, undelete,
  1417. --- 1,5 ----
  1418.   /*
  1419. !  * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/directories.c,v $
  1420.    * $Author: jik $
  1421.    * 
  1422.    * This program is part of a package including delete, undelete,
  1423. ***************
  1424. *** 7,17 ****
  1425.    * replacement for rm which allows for file recovery.
  1426.    * 
  1427.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1428. !  * For copying and distribution information, see the file "mit-copyright.h."
  1429.    */
  1430.   
  1431.   #if !defined(lint) && !defined(SABER)
  1432. !      static char rcsid_directories_c[] = "$Header: /afs/athena.mit.edu/user/j/jik/delete/src/RCS/directories.c,v 1.18 91/02/22 06:32:25 jik Exp $";
  1433.   #endif
  1434.   
  1435.   #include <stdio.h>
  1436. --- 7,17 ----
  1437.    * replacement for rm which allows for file recovery.
  1438.    * 
  1439.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1440. !  * For copying and distribution information, see the file "mit-copying.h."
  1441.    */
  1442.   
  1443.   #if !defined(lint) && !defined(SABER)
  1444. !      static char rcsid_directories_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/directories.c,v 1.20 91/03/11 18:42:56 jik Exp $";
  1445.   #endif
  1446.   
  1447.   #include <stdio.h>
  1448. ***************
  1449. *** 30,36 ****
  1450.   #include "delete_errs.h"
  1451.   #include "util.h"
  1452.   #include "directories.h"
  1453. ! #include "mit-copyright.h"
  1454.   #include "errors.h"
  1455.   
  1456.   extern char *realloc();
  1457. --- 30,36 ----
  1458.   #include "delete_errs.h"
  1459.   #include "util.h"
  1460.   #include "directories.h"
  1461. ! #include "mit-copying.h"
  1462.   #include "errors.h"
  1463.   
  1464.   extern char *realloc();
  1465. ***************
  1466. *** 232,242 ****
  1467.        specs->st_mode = realspecs.st_mode;
  1468.        specs->st_size = realspecs.st_size;
  1469.        specs->st_ctime = realspecs.st_ctime;
  1470. ! #ifdef notdef
  1471. !      /*
  1472. !       * See comment in directories.h to understand why this is
  1473. !       * disabled.
  1474. !       */
  1475.        specs->st_blocks = realspecs.st_blocks;
  1476.   #endif
  1477.   
  1478. --- 232,238 ----
  1479.        specs->st_mode = realspecs.st_mode;
  1480.        specs->st_size = realspecs.st_size;
  1481.        specs->st_ctime = realspecs.st_ctime;
  1482. ! #ifdef USE_BLOCKS
  1483.        specs->st_blocks = realspecs.st_blocks;
  1484.   #endif
  1485.   
  1486. *** /tmp/delete/pattern.c    Mon Mar 11 19:04:27 1991
  1487. --- pattern.c    Mon Mar 11 19:12:43 1991
  1488. ***************
  1489. *** 7,17 ****
  1490.    * replacement for rm which allows for file recovery.
  1491.    * 
  1492.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1493. !  * For copying and distribution information, see the file "mit-copyright.h."
  1494.    */
  1495.   
  1496.   #if (!defined(lint) && !defined(SABER))
  1497. !      static char rcsid_pattern_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/pattern.c,v 1.21 91/02/20 17:27:03 jik Exp $";
  1498.   #endif
  1499.   
  1500.   #include <stdio.h>
  1501. --- 7,17 ----
  1502.    * replacement for rm which allows for file recovery.
  1503.    * 
  1504.    * Copyright (c) 1989 by the Massachusetts Institute of Technology.
  1505. !  * For copying and distribution information, see the file "mit-copying.h."
  1506.    */
  1507.   
  1508.   #if (!defined(lint) && !defined(SABER))
  1509. !      static char rcsid_pattern_c[] = "$Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/pattern.c,v 1.22 91/02/28 18:43:11 jik Exp $";
  1510.   #endif
  1511.   
  1512.   #include <stdio.h>
  1513. ***************
  1514. *** 32,38 ****
  1515.   #include "directories.h"
  1516.   #include "undelete.h"
  1517.   #include "shell_regexp.h"
  1518. ! #include "mit-copyright.h"
  1519.   #include "delete_errs.h"
  1520.   #include "errors.h"
  1521.   #include "stack.h"
  1522. --- 32,38 ----
  1523.   #include "directories.h"
  1524.   #include "undelete.h"
  1525.   #include "shell_regexp.h"
  1526. ! #include "mit-copying.h"
  1527.   #include "delete_errs.h"
  1528.   #include "errors.h"
  1529.   #include "stack.h"
  1530. *** /dev/null    Mon Mar 11 19:23:48 1991
  1531. --- block-test.sh    Mon Mar 11 19:12:28 1991
  1532. ***************
  1533. *** 0 ****
  1534. --- 1,65 ----
  1535. + cd ${TMPDIR-/tmp}
  1536. + cat >test$$.c <<PROGRAM_IS_DONE
  1537. + #include <sys/types.h>
  1538. + #include <sys/stat.h>
  1539. + #include <sys/file.h>
  1540. + #include <stdio.h>
  1541. + main()
  1542. + {
  1543. +      struct stat statbuf;
  1544. +      char buf[1024];
  1545. +      int testfile;
  1546. +      char filename[20];
  1547. +      sprintf(filename, "test%d.out", getppid());
  1548. +      testfile = open(filename, O_CREAT | O_RDWR | O_TRUNC, 0644);
  1549. +      if (testfile < 0) {
  1550. +       fprintf(stderr, "Could not open temporary file \"%s\".\n", filename);
  1551. +       exit(1);
  1552. +      }
  1553. +      if (write(testfile, buf, sizeof(buf)) != sizeof(buf)) {
  1554. +       fprintf(stderr, "Could not write all data to file \"%s\".\n",
  1555. +           filename);
  1556. +       exit(1);
  1557. +      }
  1558. +      if (close(testfile) < 0) {
  1559. +       fprintf(stderr, "Error closing \"%s\".\n", filename);
  1560. +       exit(1);
  1561. +      }
  1562. +      if (stat(filename, &statbuf) < 0) {
  1563. +       fprintf(stderr, "Could not stat file \"%s\".\n", filename);
  1564. +       exit(1);
  1565. +      }
  1566. +      if (statbuf.st_blocks == 2) {
  1567. +       printf("You SHOULD define USE_BLOCKS.\n");
  1568. +      }
  1569. +      else {
  1570. +       printf("You SHOULD NOT define USE_BLOCKS.\n");
  1571. +       printf("However, you have an interesting machine that delete might be made to work\nbetter with.  Please contact the author (see the README file for an address)\nand tell him what kind of machine you have and what operating system it is\nrunning.");
  1572. +      }
  1573. +      exit(0);
  1574. + }
  1575. + PROGRAM_IS_DONE
  1576. + if ${CC-cc} -o test$$ test$$.c 2>&1 >/dev/null; then
  1577. +     if ./test$$; then : ;
  1578. +     else
  1579. +         echo "Test program did not succeed."
  1580. +         echo "This means you probably shouldn't define USE_BLOCKS."
  1581. +     fi
  1582. + else
  1583. +     echo "Could not compile test program."
  1584. +     echo "This means you probably shouldn't define USE_BLOCKS."
  1585. + fi
  1586. + rm test$$*
  1587. + exit 0
  1588.  
  1589. exit 0 # Just in case...
  1590. -- 
  1591. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  1592. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  1593. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  1594. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  1595.