[ultrix] Re: Top under the DS5000? Bash memory leak?

Elliot_Jaffe at TRANSARC.COM Elliot_Jaffe at TRANSARC.COM
Tue Jun 5 01:29:26 AEST 1990


Archive-name: top/04-Jun-90
Original-posting-by: Elliot_Jaffe at TRANSARC.COM
Original-subject: Re: Top under the DS5000? Bash memory leak?
Reposted-by: emv at math.lsa.umich.edu (Edward Vielmetti)

[This is a patch to  from comp.unix.ultrix.]


Here are the diffs for a version of top that works on ultrix.  I started with
a version of top2.5 from ics.uci.edu in unix/top-2.5-sequent.tar.Z.

Enjoy,
Elliot Jaffe
Jaffe at transarc.com

------------------------------------------------------------------------------
diff -r top2.5.sequent/display.c top2.5/display.c
41a42,45
> #ifdef mips
> #include <sys/fixpoint.h>
> #endif
>
99a104,106
> #if defined(mips)
> fix *avenrun;
> #else
101c108,109
< #endif sun
---
> #endif
> #endif
117a126,128
> #if defined(mips)
>           FIX_TO_DBL(avenrun[i]));
> #else
119a131
> #endif
129a142,144
> #if defined(mips)
> fix *avenrun;
> #else
131c146,147
< #endif sun
---
> #endif
> #endif
150a167,169
> #if defined(mips)
>           FIX_TO_DBL(avenrun[i]));
> #else
152a172
> #endif
519a540,542
> #if defined(mips)
> #define percent_cpu(pp) (FIX_TO_DBL((pp)->p_pctcpu))
> #else
520a544
> #endif
diff -r top2.5.sequent/top.c top2.5/top.c
72a73,76
> #ifdef mips
> #include <sys/fixpoint.h>
> #endif
>
211a216,219
> #if defined(mips)
> fix ccpu;
> fix avenrun[3];
> #else
214a223
> #endif
566a576,578
> #if defined(mips)
>     logcpu = log(FIX_TO_DBL(ccpu));
> #else
568a581
> #endif
991a1005,1007
> #if defined(mips)
>                            if (FIX_TO_DBL(avenrun[0]) > LoadMax)
> #else
993a1010
> #endif
1257c1274
< #if !defined(sun) && !defined(sequent)
---
> #if !defined(sun) && !defined(sequent) && !defined(mips)
1266c1283
< #if defined(sun) || defined(sequent)
---
> #if defined(sun) || defined(sequent) || defined(mips)
1280c1297
<              if ((result = p2->p_pri - p1->p_pri) == 0)
---
>              if ((result = p1->p_pri - p2->p_pri) == 0)
1318c1335
< #if !defined(sun) && !defined(sequent)
---
> #if !defined(sun) && !defined(sequent) && !defined(mips)



More information about the Alt.sources.patches mailing list