home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume7 / top2 / patch1 < prev    next >
Encoding:
Internet Message Format  |  1986-12-04  |  3.5 KB

  1. Subject:  v07i081:  Update to TOP to change 2.0 to 2.1, Patch1
  2. Newsgroups: mod.sources
  3. Approved: mirror!rs
  4.  
  5. Submitted by: William LeFebvre <phil@rice.edu>
  6. Mod.sources: Volume 7, Issue 81
  7. Archive-name: top2/Patch1
  8.  
  9.  
  10. Two small bugs are corrected in top version 2.1.  I am enclosing
  11. context diffs to change four files in the distribution:  Changes,
  12. top.c, commands.c, and Makefile.  These changes fix these bugs,
  13. document the fixes, and update the version numbers.  These diffs can be
  14. applied with either "patch" or a little bit of patience.  Please
  15. distribute them as soon as possible.  Thank you.
  16.  
  17.             William LeFebvre
  18.  
  19. ------------------------- CUT HERE -------------------------
  20. *** Changes.old    Wed Oct  8 16:48:22 1986
  21. --- Changes    Mon Oct  6 14:39:47 1986
  22. ***************
  23. *** 1,3
  24.   Thu Sep  4 1986 - wnl (2.0, at last)
  25.       This is the version that will (hopefully) get released to the
  26.       world as top 2.0.
  27.  
  28. --- 1,10 -----
  29. + Mon Oct  6 1986 - wnl (2.1)
  30. +     A bug with the kill command was pointed out by "dciem!tim"---
  31. +     specifying a signal by name did not work correctly.  This bug has
  32. +     been fixed with a simple change to commands.c.  Another bug made
  33. +     the cpu state percentages incorrect the first time they were
  34. +     displayed.  This bug has also been fixed (changed top.c).
  35.   Thu Sep  4 1986 - wnl (2.0, at last)
  36.       This is the version that will (hopefully) get released to the
  37.       world as top 2.0.
  38. *** top.c.old    Mon Oct  6 13:32:57 1986
  39. --- top.c    Mon Oct  6 14:35:20 1986
  40. ***************
  41. *** 1,5
  42.   char *copyright =
  43. !     "Top, version 2.0, copyright (c) 1984, 1986, William LeFebvre";
  44.   
  45.   /*
  46.    *  Top users display for Berkeley Unix
  47.  
  48. --- 1,5 -----
  49.   char *copyright =
  50. !     "Top, version 2.1, copyright (c) 1984, 1986, William LeFebvre";
  51.   
  52.   /*
  53.    *  Top users display for Berkeley Unix
  54. ***************
  55. *** 3,9
  56.   
  57.   /*
  58.    *  Top users display for Berkeley Unix
  59. !  *  Version 2.0
  60.    *
  61.    *  This program may be freely redistributed to other Unix sites, but this
  62.    *  entire comment MUST remain intact.
  63.  
  64. --- 3,9 -----
  65.   
  66.   /*
  67.    *  Top users display for Berkeley Unix
  68. !  *  Version 2.1
  69.    *
  70.    *  This program may be freely redistributed to other Unix sites, but this
  71.    *  entire comment MUST remain intact.
  72. ***************
  73. *** 572,578
  74.           putchar('\n');
  75.           }
  76.           dostates = Yes;
  77. !         bzero(cp_old, sizeof(cp_old));
  78.       }
  79.   
  80.       /* display main memory statistics */
  81.  
  82. --- 572,580 -----
  83.           putchar('\n');
  84.           }
  85.           dostates = Yes;
  86. !         /* remember the current values as "old" values */
  87. !         bcopy(cp_time, cp_old, sizeof(cp_time));
  88.       }
  89.   
  90.       /* display main memory statistics */
  91. *** commands.c.old    Thu Sep 11 11:12:27 1986
  92. --- commands.c    Mon Oct  6 14:32:24 1986
  93. ***************
  94. *** 344,353
  95.       }
  96.       else 
  97.       {
  98. -         /* terminate the end of the signal name */
  99. -         while (*--optr == ' ');
  100. -         *++optr = '\0';
  101.           /* translate the name into a number */
  102.           for (sigp = sigdesc; sigp->name != NULL; sigp++)
  103.           {
  104.  
  105. --- 344,349 -----
  106.       }
  107.       else 
  108.       {
  109.           /* translate the name into a number */
  110.           for (sigp = sigdesc; sigp->name != NULL; sigp++)
  111.           {
  112. *** Makefile.old    Wed Oct  8 16:50:06 1986
  113. --- Makefile    Mon Oct  6 14:35:20 1986
  114. ***************
  115. *** 1,6
  116.   # Makefile for "top", a top 10 process display for Unix
  117.   #
  118. ! # This makefile is for top, version 2.0
  119.   #
  120.   # Written by William LeFebvre, Rice University graduate student
  121.   
  122.  
  123. --- 1,6 -----
  124.   # Makefile for "top", a top 10 process display for Unix
  125.   #
  126. ! # This makefile is for top, version 2.1
  127.   #
  128.   # Written by William LeFebvre, Rice University graduate student
  129.   
  130.  
  131.