home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: part09
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 46 72 |.sources|.unix.Fr|
|00000020| 6f 6d 3a 20 70 68 69 6c | 40 65 65 63 73 2e 6e 77 |om: phil|@eecs.nw|
|00000030| 75 2e 65 64 75 20 28 57 | 69 6c 6c 69 61 6d 20 4c |u.edu (W|illiam L|
|00000040| 65 46 65 62 76 72 65 29 | 0a 53 75 62 6a 65 63 74 |eFebvre)|.Subject|
|00000050| 3a 20 76 32 37 69 30 30 | 39 3a 20 74 6f 70 20 2d |: v27i00|9: top -|
|00000060| 20 61 20 74 6f 70 20 70 | 72 6f 63 65 73 73 20 64 | a top p|rocess d|
|00000070| 69 73 70 6c 61 79 2c 20 | 76 65 72 73 69 6f 6e 20 |isplay, |version |
|00000080| 33 2e 32 2c 20 50 61 72 | 74 30 39 2f 31 33 0a 52 |3.2, Par|t09/13.R|
|00000090| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 31 2e 37 34 |eference|s: <1.74|
|000000a0| 34 38 34 33 31 33 36 2e | 34 37 34 34 40 67 77 2e |4843136.|4744@gw.|
|000000b0| 68 6f 6d 65 2e 76 69 78 | 2e 63 6f 6d 3e 0a 53 65 |home.vix|.com>.Se|
|000000c0| 6e 64 65 72 3a 20 75 6e | 69 78 2d 73 6f 75 72 63 |nder: un|ix-sourc|
|000000d0| 65 73 2d 6d 6f 64 65 72 | 61 74 6f 72 40 67 77 2e |es-moder|ator@gw.|
|000000e0| 68 6f 6d 65 2e 76 69 78 | 2e 63 6f 6d 0a 41 70 70 |home.vix|.com.App|
|000000f0| 72 6f 76 65 64 3a 20 76 | 69 78 69 65 40 67 77 2e |roved: v|ixie@gw.|
|00000100| 68 6f 6d 65 2e 76 69 78 | 2e 63 6f 6d 0a 0a 53 75 |home.vix|.com..Su|
|00000110| 62 6d 69 74 74 65 64 2d | 42 79 3a 20 70 68 69 6c |bmitted-|By: phil|
|00000120| 40 65 65 63 73 2e 6e 77 | 75 2e 65 64 75 20 28 57 |@eecs.nw|u.edu (W|
|00000130| 69 6c 6c 69 61 6d 20 4c | 65 46 65 62 76 72 65 29 |illiam L|eFebvre)|
|00000140| 0a 50 6f 73 74 69 6e 67 | 2d 4e 75 6d 62 65 72 3a |.Posting|-Number:|
|00000150| 20 56 6f 6c 75 6d 65 20 | 32 37 2c 20 49 73 73 75 | Volume |27, Issu|
|00000160| 65 20 39 0a 41 72 63 68 | 69 76 65 2d 4e 61 6d 65 |e 9.Arch|ive-Name|
|00000170| 3a 20 74 6f 70 2d 33 2e | 32 2f 70 61 72 74 30 39 |: top-3.|2/part09|
|00000180| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|00000190| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|000001a0| 72 63 68 69 76 65 2e 20 | 20 52 65 6d 6f 76 65 20 |rchive. | Remove |
|000001b0| 61 6e 79 74 68 69 6e 67 | 20 62 65 66 6f 72 65 20 |anything| before |
|000001c0| 74 68 69 73 20 6c 69 6e | 65 2c 20 74 68 65 6e 20 |this lin|e, then |
|000001d0| 75 6e 70 61 63 6b 0a 23 | 20 69 74 20 62 79 20 73 |unpack.#| it by s|
|000001e0| 61 76 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 61 20 |aving it| into a |
|000001f0| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|00000200| 22 73 68 20 66 69 6c 65 | 22 2e 20 20 54 6f 20 6f |"sh file|". To o|
|00000210| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|00000220| 67 0a 23 20 66 69 6c 65 | 73 2c 20 74 79 70 65 20 |g.# file|s, type |
|00000230| 22 73 68 20 66 69 6c 65 | 20 2d 63 22 2e 20 20 59 |"sh file| -c". Y|
|00000240| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 66 65 65 64 |ou can a|lso feed|
|00000250| 20 74 68 69 73 20 61 73 | 20 73 74 61 6e 64 61 72 | this as| standar|
|00000260| 64 20 69 6e 70 75 74 20 | 76 69 61 0a 23 20 75 6e |d input |via.# un|
|00000270| 73 68 61 72 2c 20 6f 72 | 20 62 79 20 74 79 70 69 |shar, or| by typi|
|00000280| 6e 67 20 22 73 68 20 3c | 66 69 6c 65 22 2c 20 65 |ng "sh <|file", e|
|00000290| 2e 67 2e 2e 20 20 49 66 | 20 74 68 69 73 20 61 72 |.g.. If| this ar|
|000002a0| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|000002b0| 65 2c 20 79 6f 75 0a 23 | 20 77 69 6c 6c 20 73 65 |e, you.#| will se|
|000002c0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|000002d0| 6d 65 73 73 61 67 65 20 | 61 74 20 74 68 65 20 65 |message |at the e|
|000002e0| 6e 64 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 61 |nd:.#.."|End of a|
|000002f0| 72 63 68 69 76 65 20 39 | 20 28 6f 66 20 31 33 29 |rchive 9| (of 13)|
|00000300| 2e 22 0a 23 20 43 6f 6e | 74 65 6e 74 73 3a 20 20 |.".# Con|tents: |
|00000310| 43 68 61 6e 67 65 73 20 | 6d 61 63 68 69 6e 65 2f |Changes |machine/|
|00000320| 6d 5f 75 6c 74 72 69 78 | 34 2e 63 0a 23 20 57 72 |m_ultrix|4.c.# Wr|
|00000330| 61 70 70 65 64 20 62 79 | 20 70 68 69 6c 40 70 65 |apped by| phil@pe|
|00000340| 78 20 6f 6e 20 57 65 64 | 20 41 75 67 20 20 34 20 |x on Wed| Aug 4 |
|00000350| 31 34 3a 32 32 3a 34 34 | 20 31 39 39 33 0a 50 41 |14:22:44| 1993.PA|
|00000360| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|00000370| 3a 2f 75 73 72 2f 75 63 | 62 20 3b 20 65 78 70 6f |:/usr/uc|b ; expo|
|00000380| 72 74 20 50 41 54 48 0a | 69 66 20 74 65 73 74 20 |rt PATH.|if test |
|00000390| 2d 66 20 27 43 68 61 6e | 67 65 73 27 20 2d 61 20 |-f 'Chan|ges' -a |
|000003a0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|000003b0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|000003c0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000003d0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000003e0| 6c 65 20 5c 22 27 43 68 | 61 6e 67 65 73 27 5c 22 |le \"'Ch|anges'\"|
|000003f0| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00000400| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 43 | Extract|ing \"'C|
|00000410| 68 61 6e 67 65 73 27 5c | 22 20 5c 28 31 38 39 39 |hanges'\|" \(1899|
|00000420| 31 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |1 charac|ters\).s|
|00000430| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 43 68 |ed "s/^X|//" >'Ch|
|00000440| 61 6e 67 65 73 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |anges' <|<'END_OF|
|00000450| 5f 46 49 4c 45 27 0a 58 | 54 75 65 20 4a 75 6c 20 |_FILE'.X|Tue Jul |
|00000460| 31 33 20 31 39 39 33 20 | 2d 20 77 6e 6c 20 28 33 |13 1993 |- wnl (3|
|00000470| 2e 31 20 72 65 6c 65 61 | 73 65 29 0a 58 09 4d 6f |.1 relea|se).X.Mo|
|00000480| 72 65 20 73 6d 61 6c 6c | 20 63 68 61 6e 67 65 73 |re small| changes|
|00000490| 20 61 6e 64 20 6d 69 6e | 6f 72 20 62 75 67 20 66 | and min|or bug f|
|000004a0| 69 78 65 73 2e 20 20 42 | 72 6f 75 67 68 74 20 62 |ixes. B|rought b|
|000004b0| 73 64 34 34 20 75 70 20 | 74 6f 20 64 61 74 65 0a |sd44 up |to date.|
|000004c0| 58 09 61 6e 64 20 61 64 | 64 65 64 20 6d 6f 64 75 |X.and ad|ded modu|
|000004d0| 6c 65 73 20 66 6f 72 20 | 73 76 72 34 2e 32 20 61 |les for |svr4.2 a|
|000004e0| 6e 64 20 49 52 49 58 2e | 20 20 43 68 61 6e 67 65 |nd IRIX.| Change|
|000004f0| 64 20 73 68 61 72 20 70 | 61 63 6b 61 67 69 6e 67 |d shar p|ackaging|
|00000500| 20 74 6f 0a 58 09 75 73 | 65 20 52 69 63 68 20 53 | to.X.us|e Rich S|
|00000510| 61 6c 7a 27 73 20 63 73 | 68 61 72 20 73 74 75 66 |alz's cs|har stuf|
|00000520| 66 2e 0a 58 0a 58 57 65 | 64 20 4a 75 6c 20 20 37 |f..X.XWe|d Jul 7|
|00000530| 20 31 39 39 33 20 2d 20 | 77 6e 6c 20 28 33 2e 31 | 1993 - |wnl (3.1|
|00000540| 42 45 54 41 29 0a 58 09 | 4d 6f 72 65 20 63 68 61 |BETA).X.|More cha|
|00000550| 6e 67 65 73 20 61 6e 64 | 20 62 75 67 20 66 69 78 |nges and| bug fix|
|00000560| 65 73 20 74 6f 20 43 6f | 6e 66 69 67 75 72 65 2e |es to Co|nfigure.|
|00000570| 20 20 41 70 70 6c 69 65 | 64 20 73 6f 6d 65 20 6f | Applie|d some o|
|00000580| 74 68 65 72 0a 58 09 6d | 69 6e 6f 72 20 62 75 67 |ther.X.m|inor bug|
|00000590| 20 66 69 78 65 73 20 61 | 6e 64 20 73 75 67 67 65 | fixes a|nd sugge|
|000005a0| 73 74 69 6f 6e 73 20 66 | 72 6f 6d 20 74 68 65 20 |stions f|rom the |
|000005b0| 62 65 74 61 20 74 65 73 | 74 65 72 73 2e 20 20 41 |beta tes|ters. A|
|000005c0| 64 64 65 64 0a 58 09 74 | 68 65 20 22 6d 65 74 61 |dded.X.t|he "meta|
|000005d0| 74 6f 70 22 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |top" she|ll scrip|
|000005e0| 74 20 61 6e 64 20 74 68 | 65 20 22 69 6e 73 74 61 |t and th|e "insta|
|000005f0| 6c 6c 6d 65 74 61 22 20 | 72 75 6c 65 20 74 6f 20 |llmeta" |rule to |
|00000600| 74 68 65 0a 58 09 4d 61 | 6b 65 66 69 6c 65 20 74 |the.X.Ma|kefile t|
|00000610| 6f 20 6d 61 6b 65 20 68 | 61 6e 64 6c 69 6e 67 20 |o make h|andling |
|00000620| 6d 75 6c 74 69 70 6c 65 | 20 6d 61 63 68 69 6e 65 |multiple| machine|
|00000630| 20 6d 6f 64 65 6c 73 20 | 61 6e 64 20 4f 53 20 76 | models |and OS v|
|00000640| 65 72 73 69 6f 6e 73 0a | 58 09 65 61 73 69 65 72 |ersions.|X.easier|
|00000650| 2e 20 20 41 64 64 65 64 | 20 49 4e 53 54 41 4c 4c |. Added| INSTALL|
|00000660| 20 61 6e 64 20 46 41 51 | 20 66 69 6c 65 73 2e 0a | and FAQ| files..|
|00000670| 58 0a 58 54 75 65 20 4d | 61 79 20 31 38 20 31 39 |X.XTue M|ay 18 19|
|00000680| 39 33 20 2d 20 77 6e 6c | 20 28 33 2e 31 42 45 54 |93 - wnl| (3.1BET|
|00000690| 41 29 0a 58 09 43 68 61 | 6e 67 65 64 20 43 6f 6e |A).X.Cha|nged Con|
|000006a0| 66 69 67 75 72 65 20 74 | 6f 20 62 65 20 63 6f 6d |figure t|o be com|
|000006b0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 6d 6f 73 |patible |with mos|
|000006c0| 74 20 53 56 52 34 20 65 | 6e 76 69 72 6f 6e 6d 65 |t SVR4 e|nvironme|
|000006d0| 6e 74 73 0a 58 09 28 64 | 69 66 66 65 72 69 6e 67 |nts.X.(d|iffering|
|000006e0| 20 6f 75 74 70 75 74 20 | 66 72 6f 6d 20 22 6c 73 | output |from "ls|
|000006f0| 20 2d 6c 67 22 29 2e 20 | 20 41 6c 73 6f 20 63 68 | -lg"). | Also ch|
|00000700| 61 6e 67 65 64 20 43 6f | 6e 66 69 67 75 72 65 2c |anged Co|nfigure,|
|00000710| 0a 58 09 4d 61 6b 65 66 | 69 6c 65 2e 58 2c 20 65 |.X.Makef|ile.X, e|
|00000720| 74 63 2e 2c 20 74 6f 20 | 6c 6f 6f 6b 20 66 6f 72 |tc., to |look for|
|00000730| 20 6d 6f 64 75 6c 65 20 | 66 69 6c 65 73 20 69 6e | module |files in|
|00000740| 20 74 68 65 20 73 75 62 | 64 69 72 65 63 74 6f 72 | the sub|director|
|00000750| 79 0a 58 09 22 6d 61 63 | 68 69 6e 65 22 20 28 74 |y.X."mac|hine" (t|
|00000760| 68 61 6e 6b 73 20 74 6f | 20 43 68 72 69 73 74 6f |hanks to| Christo|
|00000770| 73 20 5a 6f 75 6c 61 73 | 29 2e 0a 58 0a 58 54 75 |s Zoulas|)..X.XTu|
|00000780| 65 20 41 70 72 20 32 30 | 20 31 39 39 33 20 2d 20 |e Apr 20| 1993 - |
|00000790| 77 6e 6c 20 28 33 2e 31 | 42 45 54 41 29 0a 58 09 |wnl (3.1|BETA).X.|
|000007a0| 43 68 61 6e 67 65 64 20 | 62 6f 74 68 20 6f 63 63 |Changed |both occ|
|000007b0| 75 72 65 6e 63 65 73 20 | 6f 66 20 22 6c 73 20 2d |urences |of "ls -|
|000007c0| 31 22 20 69 6e 20 43 6f | 6e 66 69 67 75 72 65 20 |1" in Co|nfigure |
|000007d0| 74 6f 20 22 6c 73 22 2e | 20 20 54 68 69 73 0a 58 |to "ls".| This.X|
|000007e0| 09 53 48 4f 55 4c 44 20 | 70 72 6f 64 75 63 65 20 |.SHOULD |produce |
|000007f0| 74 68 65 20 73 61 6d 65 | 20 72 65 73 75 6c 74 2c |the same| result,|
|00000800| 20 61 6e 64 20 68 61 73 | 20 74 68 65 20 61 64 76 | and has| the adv|
|00000810| 61 6e 74 61 67 65 20 74 | 68 61 74 20 69 74 0a 58 |antage t|hat it.X|
|00000820| 09 64 6f 65 73 6e 27 74 | 20 70 72 6f 64 75 63 65 |.doesn't| produce|
|00000830| 20 61 6e 20 65 72 72 6f | 72 20 6f 6e 20 61 20 73 | an erro|r on a s|
|00000840| 79 73 74 65 6d 20 35 20 | 6d 61 63 68 69 6e 65 2e |ystem 5 |machine.|
|00000850| 20 20 49 6e 74 65 67 72 | 61 74 65 64 20 6f 74 68 | Integr|ated oth|
|00000860| 65 72 0a 58 09 63 68 61 | 6e 67 65 73 20 72 65 63 |er.X.cha|nges rec|
|00000870| 6f 6d 6d 65 6e 64 65 64 | 20 69 6e 20 74 68 65 20 |ommended| in the |
|00000880| 66 69 72 73 74 20 72 6f | 75 6e 64 20 6f 66 20 62 |first ro|und of b|
|00000890| 65 74 61 20 74 65 73 74 | 69 6e 67 2e 0a 58 0a 58 |eta test|ing..X.X|
|000008a0| 57 65 64 20 4d 61 72 20 | 31 30 20 31 39 39 33 20 |Wed Mar |10 1993 |
|000008b0| 2d 20 77 6e 6c 20 28 33 | 2e 31 42 45 54 41 29 0a |- wnl (3|.1BETA).|
|000008c0| 58 09 4d 41 4a 4f 52 20 | 43 48 41 4e 47 45 3a 20 |X.MAJOR |CHANGE: |
|000008d0| 20 49 20 68 61 76 65 20 | 61 64 64 65 64 20 61 20 | I have |added a |
|000008e0| 72 65 71 75 69 72 65 64 | 20 66 75 6e 63 74 69 6f |required| functio|
|000008f0| 6e 20 74 6f 20 61 6c 6c | 20 6d 61 63 68 69 6e 65 |n to all| machine|
|00000900| 0a 58 09 64 65 70 65 6e | 64 65 6e 74 20 6d 6f 64 |.X.depen|dent mod|
|00000910| 75 6c 65 73 2c 20 63 61 | 6c 6c 65 64 20 70 72 6f |ules, ca|lled pro|
|00000920| 63 5f 6f 77 6e 65 72 2e | 20 20 49 74 20 74 61 6b |c_owner.| It tak|
|00000930| 65 73 20 61 20 70 69 64 | 20 61 73 20 61 6e 20 61 |es a pid| as an a|
|00000940| 72 67 75 6d 65 6e 74 0a | 58 09 61 6e 64 20 72 65 |rgument.|X.and re|
|00000950| 74 75 72 6e 73 20 74 68 | 65 20 75 69 64 20 6f 66 |turns th|e uid of|
|00000960| 20 74 68 65 20 70 72 6f | 63 65 73 73 27 73 20 6f | the pro|cess's o|
|00000970| 77 6e 65 72 2e 20 20 53 | 75 63 68 20 63 61 70 61 |wner. S|uch capa|
|00000980| 62 69 6c 69 74 79 20 69 | 73 20 0a 58 09 6e 65 63 |bility i|s .X.nec|
|00000990| 65 73 73 61 72 79 20 66 | 6f 72 20 74 6f 70 20 74 |essary f|or top t|
|000009a0| 6f 20 72 75 6e 20 73 65 | 63 75 72 65 6c 79 20 61 |o run se|curely a|
|000009b0| 73 20 61 20 73 65 74 2d | 75 69 64 20 70 72 6f 67 |s a set-|uid prog|
|000009c0| 72 61 6d 2c 20 73 6f 6d | 65 74 68 69 6e 67 0a 58 |ram, som|ething.X|
|000009d0| 09 74 68 61 74 20 69 73 | 20 6e 65 65 64 65 64 20 |.that is| needed |
|000009e0| 66 6f 72 20 53 56 52 34 | 20 69 6d 70 6c 65 6d 65 |for SVR4| impleme|
|000009f0| 6e 74 61 74 69 6f 6e 73 | 20 74 6f 20 72 65 61 64 |ntations| to read|
|00000a00| 20 2f 70 72 6f 63 2e 20 | 20 49 20 68 61 76 65 0a | /proc. | I have.|
|00000a10| 58 09 72 65 74 72 6f 66 | 69 74 74 65 64 20 61 6c |X.retrof|itted al|
|00000a20| 6c 20 6d 6f 64 75 6c 65 | 73 20 65 78 63 65 70 74 |l module|s except|
|00000a30| 20 64 67 75 78 20 77 69 | 74 68 20 74 68 69 73 20 | dgux wi|th this |
|00000a40| 66 75 6e 63 74 69 6f 6e | 2c 20 62 75 74 20 77 61 |function|, but wa|
|00000a50| 73 0a 58 09 6e 6f 74 20 | 61 62 6c 65 20 74 6f 20 |s.X.not |able to |
|00000a60| 74 65 73 74 20 6d 6f 73 | 74 20 6f 66 20 74 68 65 |test mos|t of the|
|00000a70| 6d 2e 20 20 54 6f 70 20 | 73 68 6f 75 6c 64 20 6e |m. Top |should n|
|00000a80| 6f 77 20 72 75 6e 20 73 | 65 63 75 72 65 6c 79 20 |ow run s|ecurely |
|00000a90| 61 73 0a 58 09 61 20 73 | 65 74 75 69 64 20 70 72 |as.X.a s|etuid pr|
|00000aa0| 6f 67 72 61 6d 2e 20 20 | 41 64 64 65 64 20 33 38 |ogram. |Added 38|
|00000ab0| 36 62 73 64 20 61 6e 64 | 20 73 75 6e 6f 73 35 20 |6bsd and| sunos5 |
|00000ac0| 6d 6f 64 75 6c 65 73 2e | 20 20 41 64 64 65 64 20 |modules.| Added |
|00000ad0| 73 75 6e 6f 73 34 6d 70 | 0a 58 09 6d 6f 64 75 6c |sunos4mp|.X.modul|
|00000ae0| 65 20 66 6f 72 20 4d 50 | 20 53 75 6e 73 2e 0a 58 |e for MP| Suns..X|
|00000af0| 0a 58 53 61 74 20 46 65 | 62 20 32 30 20 31 39 39 |.XSat Fe|b 20 199|
|00000b00| 33 20 2d 20 77 6e 6c 20 | 28 33 2e 31 41 4c 50 48 |3 - wnl |(3.1ALPH|
|00000b10| 41 29 0a 58 09 4d 6f 64 | 69 66 69 65 64 20 74 6f |A).X.Mod|ified to|
|00000b20| 70 2e 63 20 61 6e 64 20 | 63 6f 6d 6d 61 6e 64 73 |p.c and |commands|
|00000b30| 2e 63 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 63 6f |.c to co|mpile co|
|00000b40| 72 72 65 63 74 6c 79 20 | 6f 6e 20 53 79 73 74 65 |rrectly |on Syste|
|00000b50| 6d 20 56 0a 58 09 64 65 | 72 69 76 65 64 20 55 6e |m V.X.de|rived Un|
|00000b60| 69 78 65 73 20 28 65 73 | 70 65 63 69 61 6c 6c 79 |ixes (es|pecially|
|00000b70| 20 53 56 52 34 29 2c 20 | 62 75 74 20 69 6e 20 61 | SVR4), |but in a|
|00000b80| 20 77 61 79 20 74 68 61 | 74 20 64 6f 65 73 6e 27 | way tha|t doesn'|
|00000b90| 74 20 72 65 6c 79 0a 58 | 09 6f 6e 20 61 6e 20 6f |t rely.X|.on an o|
|00000ba0| 72 61 63 6c 65 2d 6c 69 | 6b 65 20 64 65 63 6c 61 |racle-li|ke decla|
|00000bb0| 72 61 74 69 6f 6e 20 28 | 74 68 61 74 20 69 73 2c |ration (|that is,|
|00000bc0| 20 49 20 64 6f 6e 27 74 | 20 75 73 65 20 22 69 66 | I don't| use "if|
|00000bd0| 64 65 66 20 53 59 53 56 | 22 29 2e 0a 58 09 46 69 |def SYSV|")..X.Fi|
|00000be0| 78 65 64 20 73 6f 6d 65 | 20 62 75 67 73 20 69 6e |xed some| bugs in|
|00000bf0| 20 22 43 6f 6e 66 69 67 | 75 72 65 22 20 61 6e 64 | "Config|ure" and|
|00000c00| 20 22 67 65 74 61 6e 73 | 22 2e 20 20 41 64 64 65 | "getans|". Adde|
|00000c10| 64 20 69 6e 73 70 65 63 | 74 69 6f 6e 20 6f 66 0a |d inspec|tion of.|
|00000c20| 58 09 65 6e 76 20 76 61 | 72 69 61 62 6c 65 20 22 |X.env va|riable "|
|00000c30| 54 4f 50 22 20 66 6f 72 | 20 6f 70 74 69 6f 6e 73 |TOP" for| options|
|00000c40| 2c 20 61 6e 64 20 6d 61 | 64 65 20 2d 49 20 64 65 |, and ma|de -I de|
|00000c50| 66 61 75 6c 74 20 74 6f | 20 73 68 6f 77 69 6e 67 |fault to| showing|
|00000c60| 0a 58 09 69 64 6c 65 20 | 70 72 6f 63 65 73 73 65 |.X.idle |processe|
|00000c70| 73 2e 20 20 41 64 64 65 | 64 20 22 75 22 20 63 6f |s. Adde|d "u" co|
|00000c80| 6d 6d 61 6e 64 20 74 6f | 20 63 68 61 6e 67 65 20 |mmand to| change |
|00000c90| 75 73 65 72 6e 61 6d 65 | 20 72 65 73 74 72 69 63 |username| restric|
|00000ca0| 74 69 6f 6e 0a 58 09 6f | 6e 20 74 68 65 20 66 6c |tion.X.o|n the fl|
|00000cb0| 79 2e 20 20 43 72 65 61 | 74 65 64 20 73 68 65 6c |y. Crea|ted shel|
|00000cc0| 6c 20 73 63 72 69 70 74 | 20 22 73 75 6e 74 6f 70 |l script| "suntop|
|00000cd0| 22 20 66 6f 72 20 70 6f | 6f 72 20 6d 75 6c 74 69 |" for po|or multi|
|00000ce0| 2d 76 65 72 73 69 6f 6e | 0a 58 09 53 75 6e 4f 53 |-version|.X.SunOS|
|00000cf0| 20 66 6f 6c 6b 73 20 28 | 6c 69 6b 65 20 6d 79 73 | folks (|like mys|
|00000d00| 65 6c 66 29 2e 0a 58 0a | 58 57 65 64 20 4a 75 6e |elf)..X.|XWed Jun|
|00000d10| 20 20 33 20 31 39 39 32 | 20 2d 20 77 6e 6c 20 28 | 3 1992| - wnl (|
|00000d20| 33 2e 30 29 0a 58 09 22 | 6d 61 78 5f 74 6f 70 6e |3.0).X."|max_topn|
|00000d30| 22 20 77 61 73 6e 27 74 | 20 62 65 69 6e 67 20 75 |" wasn't| being u|
|00000d40| 73 65 64 20 65 76 65 72 | 79 77 68 65 72 65 20 69 |sed ever|ywhere i|
|00000d50| 74 20 77 61 73 20 73 75 | 70 70 6f 73 65 64 20 74 |t was su|pposed t|
|00000d60| 6f 20 62 65 0a 58 09 69 | 6e 20 74 6f 70 2e 63 2e |o be.X.i|n top.c.|
|00000d70| 20 20 4d 61 6e 79 20 63 | 6f 73 6d 65 74 69 63 20 | Many c|osmetic |
|00000d80| 63 68 61 6e 67 65 73 2c | 20 69 6e 63 6c 75 64 69 |changes,| includi|
|00000d90| 6e 67 20 63 6f 70 79 72 | 69 67 68 74 20 6e 6f 74 |ng copyr|ight not|
|00000da0| 69 63 65 73 20 69 6e 0a | 58 09 61 6c 6c 20 74 68 |ices in.|X.all th|
|00000db0| 65 20 2e 63 20 66 69 6c | 65 73 2e 20 20 56 65 72 |e .c fil|es. Ver|
|00000dc0| 73 69 6f 6e 20 6e 75 6d | 62 65 72 20 69 73 20 6e |sion num|ber is n|
|00000dd0| 6f 77 20 68 61 6e 64 6c | 65 64 20 62 79 20 76 65 |ow handl|ed by ve|
|00000de0| 72 73 69 6f 6e 2e 63 20 | 61 6e 64 0a 58 09 72 65 |rsion.c |and.X.re|
|00000df0| 66 6c 65 63 74 73 20 74 | 68 65 20 63 75 72 72 65 |flects t|he curre|
|00000e00| 6e 74 20 70 61 74 63 68 | 6c 65 76 65 6c 20 28 77 |nt patch|level (w|
|00000e10| 68 69 63 68 20 69 73 20 | 69 6e 69 74 69 61 6c 6c |hich is |initiall|
|00000e20| 79 20 73 65 74 20 74 6f | 20 30 29 2e 0a 58 09 43 |y set to| 0)..X.C|
|00000e30| 68 61 6e 67 65 64 20 43 | 6f 6e 66 69 67 75 72 65 |hanged C|onfigure|
|00000e40| 20 61 6e 64 20 4d 61 6b | 65 66 69 6c 65 20 74 6f | and Mak|efile to|
|00000e50| 20 61 6c 6c 6f 77 20 63 | 6f 6e 66 69 67 75 72 61 | allow c|onfigura|
|00000e60| 62 6c 65 20 76 61 72 69 | 61 62 6c 65 73 20 66 6f |ble vari|ables fo|
|00000e70| 72 0a 58 09 63 65 72 74 | 61 69 6e 20 63 6f 6d 6d |r.X.cert|ain comm|
|00000e80| 61 6e 64 73 3a 20 20 73 | 68 65 6c 6c 2c 20 63 63 |ands: s|hell, cc|
|00000e90| 2c 20 61 77 6b 2c 20 69 | 6e 73 74 61 6c 6c 2e 20 |, awk, i|nstall. |
|00000ea0| 20 55 70 64 61 74 65 64 | 20 52 45 41 44 4d 45 20 | Updated| README |
|00000eb0| 61 6e 64 0a 58 09 50 6f | 72 74 69 6e 67 2e 20 20 |and.X.Po|rting. |
|00000ec0| 52 65 61 64 79 20 74 6f | 20 72 65 6c 65 61 73 65 |Ready to| release|
|00000ed0| 20 74 6f 20 74 68 65 20 | 77 6f 72 6c 64 21 0a 58 | to the |world!.X|
|00000ee0| 0a 58 4d 6f 6e 20 4d 61 | 79 20 31 38 20 31 39 39 |.XMon Ma|y 18 199|
|00000ef0| 32 20 2d 20 77 6e 6c 20 | 28 32 2e 39 42 45 54 41 |2 - wnl |(2.9BETA|
|00000f00| 29 0a 58 09 41 64 64 65 | 64 20 6d 6f 64 75 6c 65 |).X.Adde|d module|
|00000f10| 73 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 43 68 |s provid|ed by Ch|
|00000f20| 72 69 73 74 6f 73 20 5a | 6f 75 6c 61 73 2e 20 20 |ristos Z|oulas. |
|00000f30| 52 65 70 6c 61 63 65 64 | 20 73 63 72 65 65 6e 2e |Replaced| screen.|
|00000f40| 63 0a 58 09 77 69 74 68 | 20 6f 6e 65 20 6d 6f 64 |c.X.with| one mod|
|00000f50| 69 66 69 65 64 20 62 79 | 20 43 68 72 69 73 74 6f |ified by| Christo|
|00000f60| 73 20 61 6e 64 20 74 68 | 61 74 20 77 69 6c 6c 20 |s and th|at will |
|00000f70| 61 70 70 72 6f 70 72 69 | 61 74 65 6c 79 20 73 65 |appropri|ately se|
|00000f80| 6c 65 63 74 0a 58 09 61 | 6e 64 20 68 61 6e 64 6c |lect.X.a|nd handl|
|00000f90| 65 20 74 68 65 20 73 67 | 74 74 79 2c 20 74 65 72 |e the sg|tty, ter|
|00000fa0| 6d 69 6f 2c 20 6f 72 20 | 74 65 72 6d 69 6f 73 20 |mio, or |termios |
|00000fb0| 73 79 73 74 65 6d 2e 20 | 20 49 6e 74 65 67 72 61 |system. | Integra|
|00000fc0| 74 65 64 20 6d 61 6e 79 | 0a 58 09 6f 74 68 65 72 |ted many|.X.other|
|00000fd0| 20 63 68 61 6e 67 65 73 | 20 72 65 63 6f 6d 6d 65 | changes| recomme|
|00000fe0| 6e 64 65 64 20 62 79 20 | 43 68 72 69 73 74 6f 73 |nded by |Christos|
|00000ff0| 2e 20 20 46 69 78 65 64 | 20 28 49 20 68 6f 70 65 |. Fixed| (I hope|
|00001000| 29 20 74 68 65 20 22 2d | 62 22 0a 58 09 62 61 74 |) the "-|b".X.bat|
|00001010| 63 68 20 6d 6f 64 65 20 | 64 69 73 70 6c 61 79 20 |ch mode |display |
|00001020| 62 75 67 2e 20 20 48 61 | 64 20 74 6f 20 63 68 61 |bug. Ha|d to cha|
|00001030| 6e 67 65 20 6c 6f 61 64 | 61 76 67 20 74 6f 20 6c |nge load|avg to l|
|00001040| 6f 61 64 5f 61 76 67 20 | 74 6f 20 61 76 6f 69 64 |oad_avg |to avoid|
|00001050| 0a 58 09 61 20 63 6f 6e | 66 6c 69 63 74 20 77 69 |.X.a con|flict wi|
|00001060| 74 68 20 34 2e 34 42 53 | 44 2e 20 20 0a 58 0a 58 |th 4.4BS|D. .X.X|
|00001070| 4d 6f 6e 20 41 70 72 20 | 32 37 20 31 39 39 32 20 |Mon Apr |27 1992 |
|00001080| 2d 20 77 6e 6c 20 28 32 | 2e 38 42 45 54 41 29 0a |- wnl (2|.8BETA).|
|00001090| 58 09 41 64 64 65 64 20 | 6d 6f 64 75 6c 65 73 20 |X.Added |modules |
|000010a0| 70 72 6f 76 69 64 65 64 | 20 62 79 20 44 61 6e 69 |provided| by Dani|
|000010b0| 65 6c 20 54 72 69 6e 6b | 6c 65 2e 20 20 41 64 64 |el Trink|le. Add|
|000010c0| 65 64 20 70 61 74 63 68 | 6c 65 76 65 6c 2e 68 2c |ed patch|level.h,|
|000010d0| 0a 58 09 62 75 74 20 74 | 68 65 20 70 61 74 63 68 |.X.but t|he patch|
|000010e0| 20 6c 65 76 65 6c 20 69 | 73 20 6e 6f 74 20 79 65 | level i|s not ye|
|000010f0| 74 20 72 65 66 6c 65 63 | 74 65 64 20 69 6e 20 74 |t reflec|ted in t|
|00001100| 68 65 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |he versi|on numbe|
|00001110| 72 2e 0a 58 09 43 6c 65 | 61 6e 65 64 20 75 70 20 |r..X.Cle|aned up |
|00001120| 6d 5f 73 75 6e 6f 73 34 | 2e 63 20 61 20 6c 69 74 |m_sunos4|.c a lit|
|00001130| 74 6c 65 2e 0a 58 0a 58 | 57 65 64 20 41 70 72 20 |tle..X.X|Wed Apr |
|00001140| 32 32 20 31 39 39 32 20 | 2d 20 77 6e 6c 20 28 32 |22 1992 |- wnl (2|
|00001150| 2e 38 42 45 54 41 29 0a | 58 09 4d 61 6a 6f 72 20 |.8BETA).|X.Major |
|00001160| 69 6e 74 65 72 6e 61 6c | 20 72 65 6f 72 67 61 6e |internal| reorgan|
|00001170| 69 7a 61 74 69 6f 6e 2e | 20 20 41 6c 6c 20 6f 66 |ization.| All of|
|00001180| 20 74 68 65 20 73 79 73 | 74 65 6d 20 64 65 70 65 | the sys|tem depe|
|00001190| 6e 64 65 6e 74 20 73 74 | 75 66 66 0a 58 09 69 73 |ndent st|uff.X.is|
|000011a0| 20 6e 6f 77 20 72 65 61 | 6c 6c 79 20 61 6e 64 20 | now rea|lly and |
|000011b0| 74 72 75 6c 79 20 73 65 | 70 61 72 61 74 65 64 20 |truly se|parated |
|000011c0| 66 72 6f 6d 20 65 76 65 | 72 79 74 68 69 6e 67 20 |from eve|rything |
|000011d0| 65 6c 73 65 2e 20 20 54 | 68 65 0a 58 09 73 79 73 |else. T|he.X.sys|
|000011e0| 74 65 6d 20 64 65 70 65 | 6e 64 65 6e 74 20 66 75 |tem depe|ndent fu|
|000011f0| 6e 63 74 69 6f 6e 73 20 | 61 72 65 20 63 6f 6e 74 |nctions |are cont|
|00001200| 61 69 6e 65 64 20 69 6e | 20 61 20 73 65 70 61 72 |ained in| a separ|
|00001210| 61 74 65 20 2e 63 20 66 | 69 6c 65 0a 58 09 63 61 |ate .c f|ile.X.ca|
|00001220| 6c 6c 65 64 20 61 20 22 | 6d 6f 64 75 6c 65 22 2e |lled a "|module".|
|00001230| 20 20 54 68 65 20 43 6f | 6e 66 69 67 75 72 65 20 | The Co|nfigure |
|00001240| 73 63 72 69 70 74 20 6b | 6e 6f 77 73 20 68 6f 77 |script k|nows how|
|00001250| 20 74 6f 20 66 69 6e 64 | 20 61 6e 64 0a 58 09 73 | to find| and.X.s|
|00001260| 65 74 20 75 70 20 74 68 | 65 73 65 20 6d 6f 64 75 |et up th|ese modu|
|00001270| 6c 65 73 2c 20 62 75 74 | 20 74 68 65 20 68 75 6d |les, but| the hum|
|00001280| 61 6e 20 69 6e 73 74 61 | 6c 6c 65 72 20 73 74 69 |an insta|ller sti|
|00001290| 6c 6c 20 6e 65 65 64 73 | 20 74 6f 20 74 65 6c 6c |ll needs| to tell|
|000012a0| 0a 58 09 43 6f 6e 66 69 | 67 75 72 65 20 77 68 69 |.X.Confi|gure whi|
|000012b0| 63 68 20 6d 6f 64 75 6c | 65 20 74 6f 20 75 73 65 |ch modul|e to use|
|000012c0| 20 28 6e 6f 20 61 75 74 | 6f 6d 61 67 69 63 20 64 | (no aut|omagic d|
|000012d0| 65 74 65 72 6d 69 6e 61 | 74 69 6f 6e 20 6f 66 20 |etermina|tion of |
|000012e0| 0a 58 09 6d 61 63 68 69 | 6e 65 20 74 79 70 65 2d |.X.machi|ne type-|
|000012f0| 2d 2d 73 6f 72 72 79 29 | 2e 20 20 41 64 64 65 64 |--sorry)|. Added|
|00001300| 20 2d 55 20 6f 70 74 69 | 6f 6e 20 74 6f 20 73 70 | -U opti|on to sp|
|00001310| 65 63 69 66 79 20 6f 6e | 65 20 75 73 65 72 27 73 |ecify on|e user's|
|00001320| 0a 58 09 70 72 6f 63 65 | 73 73 65 73 2c 20 62 75 |.X.proce|sses, bu|
|00001330| 74 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 63 6f |t there |is no co|
|00001340| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 63 6f 6d 6d |rrespond|ing comm|
|00001350| 61 6e 64 2e 2e 2e 79 65 | 74 2e 20 20 4f 74 68 65 |and...ye|t. Othe|
|00001360| 72 0a 58 09 63 68 61 6e | 67 65 73 20 61 6e 64 20 |r.X.chan|ges and |
|00001370| 69 6d 70 72 6f 76 65 6d | 65 6e 74 73 20 74 6f 6f |improvem|ents too|
|00001380| 20 6e 75 6d 65 72 6f 75 | 73 20 74 6f 20 6d 65 6e | numerou|s to men|
|00001390| 74 69 6f 6e 20 68 65 72 | 65 2e 20 20 43 75 72 72 |tion her|e. Curr|
|000013a0| 65 6e 74 6c 79 0a 58 09 | 74 68 65 72 65 20 61 72 |ently.X.|there ar|
|000013b0| 65 20 6f 6e 6c 79 20 74 | 77 6f 20 6d 6f 64 75 6c |e only t|wo modul|
|000013c0| 65 73 3a 20 20 73 75 6e | 6f 73 34 20 61 6e 64 20 |es: sun|os4 and |
|000013d0| 75 6d 61 78 2e 20 20 42 | 75 74 20 61 66 74 65 72 |umax. B|ut after|
|000013e0| 20 74 68 69 73 20 62 65 | 74 61 0a 58 09 72 65 6c | this be|ta.X.rel|
|000013f0| 65 61 73 65 20 69 73 20 | 73 65 6e 74 20 61 72 6f |ease is |sent aro|
|00001400| 75 6e 64 2c 20 49 20 65 | 78 70 65 63 74 20 6d 6f |und, I e|xpect mo|
|00001410| 72 65 20 74 6f 20 62 65 | 20 77 72 69 74 74 65 6e |re to be| written|
|00001420| 2e 20 20 49 20 6a 75 73 | 74 20 68 6f 70 65 0a 58 |. I jus|t hope.X|
|00001430| 09 74 68 61 74 20 74 68 | 65 20 6d 61 63 68 69 6e |.that th|e machin|
|00001440| 65 2d 64 65 70 65 6e 64 | 65 6e 74 20 61 62 73 74 |e-depend|ent abst|
|00001450| 72 61 63 74 69 6f 6e 73 | 20 64 6f 6e 27 74 20 6e |ractions| don't n|
|00001460| 65 65 64 20 74 6f 20 63 | 68 61 6e 67 65 20 69 6e |eed to c|hange in|
|00001470| 0a 58 09 74 68 65 20 70 | 72 6f 63 65 73 73 2e 0a |.X.the p|rocess..|
|00001480| 58 0a 58 54 68 75 20 4d | 61 72 20 32 36 20 31 39 |X.XThu M|ar 26 19|
|00001490| 39 32 20 2d 20 77 6e 6c | 20 28 32 2e 37 42 45 54 |92 - wnl| (2.7BET|
|000014a0| 41 29 0a 58 09 42 65 74 | 61 20 72 65 6c 65 61 73 |A).X.Bet|a releas|
|000014b0| 65 20 77 69 74 68 20 6d | 69 6e 69 6d 61 6c 20 61 |e with m|inimal a|
|000014c0| 72 63 68 69 74 65 63 74 | 75 72 65 20 73 75 70 70 |rchitect|ure supp|
|000014d0| 6f 72 74 2e 20 20 55 70 | 64 61 74 65 64 20 52 45 |ort. Up|dated RE|
|000014e0| 41 44 4d 45 0a 58 09 61 | 6e 64 20 61 64 64 65 64 |ADME.X.a|nd added|
|000014f0| 20 61 20 66 69 72 73 74 | 20 63 75 74 20 61 74 20 | a first| cut at |
|00001500| 61 20 50 6f 72 74 69 6e | 67 20 67 75 69 64 65 2e |a Portin|g guide.|
|00001510| 20 20 41 64 64 65 64 20 | 69 6f 63 74 6c 20 54 49 | Added |ioctl TI|
|00001520| 4f 43 47 57 49 4e 53 5a | 0a 58 09 63 6f 64 65 20 |OCGWINSZ|.X.code |
|00001530| 66 72 6f 6d 20 74 6f 70 | 32 2e 35 2b 20 28 63 6f |from top|2.5+ (co|
|00001540| 75 72 74 65 73 79 20 6f | 66 20 44 61 76 69 64 20 |urtesy o|f David |
|00001550| 4d 61 63 4b 65 6e 7a 69 | 65 29 2e 20 20 49 20 64 |MacKenzi|e). I d|
|00001560| 69 64 6e 27 74 20 65 76 | 65 6e 0a 58 09 74 72 79 |idn't ev|en.X.try|
|00001570| 20 70 6f 72 74 69 6e 67 | 20 74 68 65 20 55 6c 74 | porting| the Ult|
|00001580| 72 69 78 20 73 75 70 70 | 6f 72 74 20 73 69 6e 63 |rix supp|ort sinc|
|00001590| 65 20 49 20 64 6f 6e 27 | 74 20 68 61 76 65 20 61 |e I don'|t have a|
|000015a0| 63 63 65 73 73 20 74 6f | 20 61 6e 0a 58 09 55 6c |ccess to| an.X.Ul|
|000015b0| 74 72 69 78 20 6d 61 63 | 68 69 6e 65 2e 0a 58 0a |trix mac|hine..X.|
|000015c0| 58 46 72 69 20 4f 63 74 | 20 31 31 20 31 39 39 31 |XFri Oct| 11 1991|
|000015d0| 20 2d 20 77 6e 6c 20 28 | 32 2e 36 29 0a 58 09 54 | - wnl (|2.6).X.T|
|000015e0| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 77 61 73 20 |his vers|ion was |
|000015f0| 6e 6f 74 20 77 69 64 65 | 6c 79 20 72 65 6c 65 61 |not wide|ly relea|
|00001600| 73 65 64 2e 20 20 49 74 | 20 63 6f 6e 74 61 69 6e |sed. It| contain|
|00001610| 65 64 20 6d 61 6e 79 20 | 63 68 61 6e 67 65 73 2e |ed many |changes.|
|00001620| 0a 58 09 48 65 72 65 20 | 61 72 65 20 74 68 65 20 |.X.Here |are the |
|00001630| 6d 61 6a 6f 72 20 6f 6e | 65 73 3a 0a 58 0a 58 09 |major on|es:.X.X.|
|00001640| 50 75 74 20 69 6e 20 56 | 69 78 69 65 27 73 20 69 |Put in V|ixie's i|
|00001650| 64 6c 65 20 70 72 6f 63 | 65 73 73 20 68 61 63 6b |dle proc|ess hack|
|00001660| 2e 0a 58 0a 58 09 45 6e | 68 61 6e 63 65 64 20 74 |..X.X.En|hanced t|
|00001670| 79 70 65 20 66 69 65 6c | 64 20 69 6e 20 6e 65 77 |ype fiel|d in new|
|00001680| 5f 6d 65 73 73 61 67 65 | 20 74 6f 20 68 61 6e 64 |_message| to hand|
|00001690| 6c 65 20 64 65 6c 61 79 | 65 64 20 6d 65 73 73 61 |le delay|ed messa|
|000016a0| 67 65 73 2e 0a 58 0a 58 | 09 43 68 61 6e 67 65 64 |ges..X.X|.Changed|
|000016b0| 20 75 5f 70 72 6f 63 65 | 73 73 20 74 6f 20 61 75 | u_proce|ss to au|
|000016c0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 61 64 6a 75 |tomatica|lly adju|
|000016d0| 73 74 20 66 6f 72 20 76 | 61 72 79 69 6e 67 20 6c |st for v|arying l|
|000016e0| 69 6e 65 73 20 6f 66 0a | 58 09 6f 75 74 70 75 74 |ines of.|X.output|
|000016f0| 2e 20 20 4d 61 6e 61 67 | 65 6d 65 6e 74 20 6f 66 |. Manag|ement of|
|00001700| 20 73 63 72 65 65 6e 62 | 75 66 20 73 68 6f 75 6c | screenb|uf shoul|
|00001710| 64 20 6e 6f 77 20 62 65 | 20 63 6f 6d 70 6c 65 74 |d now be| complet|
|00001720| 65 6c 79 20 63 6f 6e 74 | 61 69 6e 65 64 0a 58 09 |ely cont|ained.X.|
|00001730| 69 6e 20 64 69 73 70 6c | 61 79 2e 63 2e 20 20 52 |in displ|ay.c. R|
|00001740| 65 6d 6f 76 65 64 20 6e | 6f 77 20 65 78 74 72 61 |emoved n|ow extra|
|00001750| 6e 65 6f 75 73 20 63 6f | 64 65 20 66 72 6f 6d 20 |neous co|de from |
|00001760| 43 4d 44 5f 6e 75 6d 62 | 65 72 5b 31 32 5d 0a 58 |CMD_numb|er[12].X|
|00001770| 09 70 6f 72 74 69 6f 6e | 20 6f 66 20 63 6f 6d 6d |.portion| of comm|
|00001780| 61 6e 64 20 73 77 69 74 | 63 68 20 69 6e 20 74 6f |and swit|ch in to|
|00001790| 70 2e 63 2e 20 20 54 68 | 69 73 20 77 61 73 20 74 |p.c. Th|is was t|
|000017a0| 68 65 20 73 74 75 66 66 | 20 74 68 61 74 20 64 65 |he stuff| that de|
|000017b0| 61 6c 74 0a 58 09 77 69 | 74 68 20 7a 65 72 6f 69 |alt.X.wi|th zeroi|
|000017c0| 6e 67 20 6f 75 74 20 6c | 69 6e 65 73 20 69 6e 20 |ng out l|ines in |
|000017d0| 73 63 72 65 65 6e 62 75 | 66 2e 0a 58 0a 58 09 46 |screenbu|f..X.X.F|
|000017e0| 69 6e 61 6c 6c 79 20 6d | 61 64 65 20 69 74 20 61 |inally m|ade it a|
|000017f0| 6c 6c 20 77 6f 72 6b 20 | 63 6f 72 72 65 63 74 6c |ll work |correctl|
|00001800| 79 20 6f 6e 20 61 20 33 | 38 36 69 2e 20 20 50 72 |y on a 3|86i. Pr|
|00001810| 6f 62 6c 65 6d 73 20 49 | 20 68 61 64 20 74 6f 0a |oblems I| had to.|
|00001820| 58 09 6f 76 65 72 63 6f | 6d 65 3a 20 6b 76 6d 5f |X.overco|me: kvm_|
|00001830| 6e 6c 69 73 74 20 64 6f | 65 73 6e 27 74 20 72 65 |nlist do|esn't re|
|00001840| 74 75 72 6e 20 30 20 6f | 6e 20 73 75 63 63 65 73 |turn 0 o|n succes|
|00001850| 73 20 61 73 20 61 64 76 | 65 72 74 69 73 65 64 20 |s as adv|ertised |
|00001860| 28 69 74 0a 58 09 72 65 | 74 75 72 6e 73 20 31 20 |(it.X.re|turns 1 |
|00001870| 69 6e 73 74 65 61 64 29 | 3b 20 74 68 65 20 72 65 |instead)|; the re|
|00001880| 73 75 6c 74 73 20 6f 66 | 20 61 20 6b 76 6d 5f 6e |sults of| a kvm_n|
|00001890| 6c 69 73 74 20 61 72 65 | 20 64 69 66 66 65 72 65 |list are| differe|
|000018a0| 6e 74 0a 58 09 28 6e 5f | 74 79 70 65 20 63 61 6e |nt.X.(n_|type can|
|000018b0| 20 62 65 20 7a 65 72 6f | 20 65 76 65 6e 20 66 6f | be zero| even fo|
|000018c0| 72 20 61 20 73 79 6d 62 | 6f 6c 20 74 68 61 74 20 |r a symb|ol that |
|000018d0| 65 78 69 73 74 73 29 2e | 0a 58 0a 58 09 53 65 72 |exists).|.X.X.Ser|
|000018e0| 69 6f 75 73 20 72 65 61 | 72 72 61 6e 67 65 6d 65 |ious rea|rrangeme|
|000018f0| 6e 74 20 66 6f 72 20 70 | 72 6f 63 65 73 73 6f 72 |nt for p|rocessor|
|00001900| 20 64 65 70 65 6e 64 65 | 6e 74 20 73 74 75 66 66 | depende|nt stuff|
|00001910| 2e 20 20 41 6c 6c 20 6e | 6c 69 73 74 73 0a 58 09 |. All n|lists.X.|
|00001920| 61 72 65 20 6e 6f 77 20 | 69 6e 20 73 65 70 61 72 |are now |in separ|
|00001930| 61 74 65 20 66 69 6c 65 | 73 20 77 69 74 68 20 74 |ate file|s with t|
|00001940| 68 65 20 73 75 66 66 69 | 78 20 22 2e 6e 6c 69 73 |he suffi|x ".nlis|
|00001950| 74 22 2e 20 20 4d 6f 73 | 74 20 6d 61 63 68 69 6e |t". Mos|t machin|
|00001960| 65 0a 58 09 73 70 65 63 | 69 66 69 63 20 63 6f 64 |e.X.spec|ific cod|
|00001970| 65 20 69 73 20 69 6e 20 | 22 6d 61 63 68 69 6e 65 |e is in |"machine|
|00001980| 2e 63 22 20 73 75 72 72 | 6f 75 6e 64 65 64 20 62 |.c" surr|ounded b|
|00001990| 79 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 69 66 |y approp|riate if|
|000019a0| 64 65 66 73 2d 2d 2d 0a | 58 09 74 68 65 20 67 6f |defs---.|X.the go|
|000019b0| 61 6c 20 69 73 20 74 6f | 20 65 76 65 6e 74 75 61 |al is to| eventua|
|000019c0| 6c 6c 79 20 68 61 76 65 | 20 61 6c 6c 20 6d 61 63 |lly have| all mac|
|000019d0| 68 69 6e 65 20 73 70 65 | 63 69 66 69 63 20 63 6f |hine spe|cific co|
|000019e0| 64 65 20 69 6e 20 74 68 | 69 73 0a 58 09 66 69 6c |de in th|is.X.fil|
|000019f0| 65 2e 20 20 4d 61 6e 61 | 67 65 64 20 74 6f 20 66 |e. Mana|ged to f|
|00001a00| 69 6e 64 20 61 20 77 61 | 79 20 74 6f 20 64 65 74 |ind a wa|y to det|
|00001a10| 65 63 74 20 53 75 6e 4f | 53 20 34 2e 78 20 61 74 |ect SunO|S 4.x at|
|00001a20| 20 63 6f 6d 70 69 6c 65 | 2d 74 69 6d 65 3a 0a 58 | compile|-time:.X|
|00001a30| 09 74 68 69 73 20 69 73 | 20 63 6f 6e 74 61 69 6e |.this is| contain|
|00001a40| 65 64 20 69 6e 20 74 68 | 65 20 69 6e 63 6c 75 64 |ed in th|e includ|
|00001a50| 65 20 66 69 6c 65 20 22 | 73 75 6e 2e 68 22 2e 20 |e file "|sun.h". |
|00001a60| 20 43 6f 6d 70 6c 65 74 | 65 6c 79 20 63 68 61 6e | Complet|ely chan|
|00001a70| 67 65 64 0a 58 09 74 68 | 65 20 6d 65 6d 6f 72 79 |ged.X.th|e memory|
|00001a80| 20 64 69 73 70 6c 61 79 | 20 6c 69 6e 65 20 66 6f | display| line fo|
|00001a90| 72 20 53 75 6e 4f 53 20 | 34 2e 78 2d 2d 2d 69 74 |r SunOS |4.x---it|
|00001aa0| 20 6e 6f 77 20 64 69 73 | 70 6c 61 79 73 20 61 20 | now dis|plays a |
|00001ab0| 66 61 72 0a 58 09 6d 6f | 72 65 20 61 70 70 72 6f |far.X.mo|re appro|
|00001ac0| 70 72 69 61 74 65 20 72 | 65 70 6f 72 74 2e 0a 58 |priate r|eport..X|
|00001ad0| 0a 58 09 43 72 65 61 74 | 65 64 20 74 68 65 20 73 |.X.Creat|ed the s|
|00001ae0| 68 65 6c 6c 20 73 63 72 | 69 70 74 20 22 43 6f 6e |hell scr|ipt "Con|
|00001af0| 66 69 67 75 72 65 22 20 | 74 6f 20 61 69 64 20 69 |figure" |to aid i|
|00001b00| 6e 20 74 68 65 20 63 6f | 6e 66 69 67 75 72 61 74 |n the co|nfigurat|
|00001b10| 69 6f 6e 0a 58 09 73 74 | 65 70 2e 0a 58 0a 58 09 |ion.X.st|ep..X.X.|
|00001b20| 46 69 78 65 64 20 61 20 | 62 75 67 20 69 6e 20 69 |Fixed a |bug in i|
|00001b30| 6e 69 74 5f 74 65 72 6d | 63 61 70 3a 20 20 69 74 |nit_term|cap: it|
|00001b40| 20 77 69 6c 6c 20 6e 6f | 77 20 74 6f 6c 65 72 61 | will no|w tolera|
|00001b50| 74 65 20 61 6e 20 65 6e | 76 69 72 6f 6e 6d 65 6e |te an en|vironmen|
|00001b60| 74 0a 58 09 77 68 69 63 | 68 20 64 6f 65 73 20 6e |t.X.whic|h does n|
|00001b70| 6f 74 20 68 61 76 65 20 | 54 45 52 4d 20 64 65 66 |ot have |TERM def|
|00001b80| 69 6e 65 64 20 28 74 68 | 61 6e 6b 73 20 74 6f 20 |ined (th|anks to |
|00001b90| 53 61 6d 20 48 6f 72 72 | 6f 63 6b 73 20 66 6f 72 |Sam Horr|ocks for|
|00001ba0| 0a 58 09 70 6f 69 6e 74 | 69 6e 67 20 74 68 69 73 |.X.point|ing this|
|00001bb0| 20 6f 75 74 29 2e 0a 58 | 0a 58 54 75 65 20 41 75 | out)..X|.XTue Au|
|00001bc0| 67 20 20 39 20 31 39 38 | 38 20 2d 20 77 6e 6c 20 |g 9 198|8 - wnl |
|00001bd0| 28 32 2e 35 29 0a 58 09 | 41 64 64 65 64 20 63 68 |(2.5).X.|Added ch|
|00001be0| 61 6e 67 65 73 20 74 6f | 20 6d 61 6b 65 20 74 6f |anges to| make to|
|00001bf0| 70 20 77 6f 72 6b 20 75 | 6e 64 65 72 20 76 65 72 |p work u|nder ver|
|00001c00| 73 69 6f 6e 20 34 2e 30 | 20 6f 66 20 74 68 65 20 |sion 4.0| of the |
|00001c10| 53 75 6e 0a 58 09 6f 70 | 65 72 61 74 69 6e 67 20 |Sun.X.op|erating |
|00001c20| 73 79 73 74 65 6d 2e 20 | 20 43 68 61 6e 67 65 73 |system. | Changes|
|00001c30| 20 77 65 72 65 20 70 72 | 6f 76 69 64 65 64 20 62 | were pr|ovided b|
|00001c40| 79 20 53 63 6f 74 74 20 | 41 6c 65 78 61 6e 64 65 |y Scott |Alexande|
|00001c50| 72 20 6f 66 20 74 68 65 | 0a 58 09 55 6e 69 76 65 |r of the|.X.Unive|
|00001c60| 72 73 69 74 79 20 6f 66 | 20 50 65 6e 6e 73 79 6c |rsity of| Pennsyl|
|00001c70| 76 61 6e 69 61 2e 20 20 | 54 68 61 6e 6b 73 21 20 |vania. |Thanks! |
|00001c80| 20 43 6f 6d 70 69 6c 65 | 20 77 69 74 68 20 22 2d | Compile| with "-|
|00001c90| 44 73 75 6e 6f 73 34 22 | 20 74 6f 0a 58 09 67 65 |Dsunos4"| to.X.ge|
|00001ca0| 74 20 74 68 65 6d 2e 20 | 20 56 69 72 74 75 61 6c |t them. | Virtual|
|00001cb0| 20 6d 65 6d 6f 72 79 20 | 73 74 61 74 69 73 74 69 | memory |statisti|
|00001cc0| 63 73 20 61 72 65 20 6e | 6f 74 20 72 65 61 64 69 |cs are n|ot readi|
|00001cd0| 6c 79 20 61 63 63 65 73 | 73 69 62 6c 65 0a 58 09 |ly acces|sible.X.|
|00001ce0| 75 6e 64 65 72 20 34 2e | 30 2c 20 73 6f 20 74 68 |under 4.|0, so th|
|00001cf0| 65 79 20 64 6f 6e 27 74 | 20 73 68 6f 77 20 75 70 |ey don't| show up|
|00001d00| 20 69 6e 20 74 68 65 20 | 6f 75 74 70 75 74 2e 0a | in the |output..|
|00001d10| 58 0a 58 54 68 75 20 4a | 75 6c 20 33 31 20 31 39 |X.XThu J|ul 31 19|
|00001d20| 38 37 20 2d 20 77 6e 6c | 20 28 32 2e 34 29 0a 58 |87 - wnl| (2.4).X|
|00001d30| 09 46 69 78 65 64 20 61 | 20 70 72 6f 62 6c 65 6d |.Fixed a| problem|
|00001d40| 20 77 69 74 68 20 74 68 | 65 20 34 2e 30 20 50 79 | with th|e 4.0 Py|
|00001d50| 72 61 6d 69 64 20 63 6f | 64 65 2e 20 20 54 68 65 |ramid co|de. The|
|00001d60| 20 6c 61 62 65 6c 20 22 | 63 70 5f 74 69 6d 65 22 | label "|cp_time"|
|00001d70| 0a 58 09 64 6f 65 73 6e | 27 74 20 65 78 69 73 74 |.X.doesn|'t exist|
|00001d80| 20 69 6e 20 74 68 65 20 | 34 2e 30 20 6b 65 72 6e | in the |4.0 kern|
|00001d90| 65 6c 20 61 6e 79 6d 6f | 72 65 2e 20 20 49 20 74 |el anymo|re. I t|
|00001da0| 68 69 6e 6b 20 74 68 65 | 20 63 6f 64 65 20 43 61 |hink the| code Ca|
|00001db0| 72 6c 0a 58 09 73 65 6e | 74 20 6d 65 20 77 61 6e |rl.X.sen|t me wan|
|00001dc0| 74 73 20 22 70 65 72 63 | 70 75 22 20 69 6e 73 74 |ts "perc|pu" inst|
|00001dd0| 65 61 64 2e 20 20 54 68 | 61 74 20 69 73 20 77 68 |ead. Th|at is wh|
|00001de0| 61 74 20 49 20 61 6d 20 | 75 73 69 6e 67 20 61 6e |at I am |using an|
|00001df0| 64 20 69 74 0a 58 09 61 | 70 70 65 61 72 73 20 74 |d it.X.a|ppears t|
|00001e00| 6f 20 77 6f 72 6b 2e 20 | 20 33 37 35 20 63 6f 64 |o work. | 375 cod|
|00001e10| 65 20 69 73 20 73 74 69 | 6c 6c 20 75 6e 74 65 73 |e is sti|ll untes|
|00001e20| 74 65 64 20 28 61 74 20 | 6c 65 61 73 74 20 62 79 |ted (at |least by|
|00001e30| 20 6d 65 29 2e 0a 58 09 | 41 6c 73 6f 20 70 69 63 | me)..X.|Also pic|
|00001e40| 6b 65 64 20 61 20 67 72 | 65 61 74 20 64 65 61 6c |ked a gr|eat deal|
|00001e50| 20 6f 66 20 6c 69 6e 74 | 20 6f 75 74 20 6f 66 20 | of lint| out of |
|00001e60| 74 68 65 20 73 6f 75 72 | 63 65 2e 20 20 4c 69 6e |the sour|ce. Lin|
|00001e70| 74 20 6e 6f 77 20 6f 6e | 6c 79 0a 58 09 63 6f 6d |t now on|ly.X.com|
|00001e80| 70 6c 61 69 6e 73 20 61 | 62 6f 75 74 20 61 20 76 |plains a|bout a v|
|00001e90| 65 72 79 20 66 65 77 20 | 6e 69 74 70 69 63 6b 79 |ery few |nitpicky|
|00001ea0| 20 74 68 69 6e 67 73 20 | 28 74 68 65 72 65 20 61 | things |(there a|
|00001eb0| 72 65 20 66 61 72 20 74 | 6f 6f 20 6d 61 6e 79 0a |re far t|oo many.|
|00001ec0| 58 09 63 61 6c 6c 73 20 | 74 6f 20 22 70 72 69 6e |X.calls |to "prin|
|00001ed0| 74 66 22 20 74 6f 20 70 | 75 74 20 61 20 22 28 76 |tf" to p|ut a "(v|
|00001ee0| 6f 69 64 29 22 20 69 6e | 20 66 72 6f 6e 74 20 6f |oid)" in| front o|
|00001ef0| 66 21 29 2c 20 61 74 20 | 6c 65 61 73 74 20 75 6e |f!), at |least un|
|00001f00| 64 65 72 0a 58 09 53 75 | 6e 4f 53 2e 0a 58 0a 58 |der.X.Su|nOS..X.X|
|00001f10| 54 75 65 20 4a 75 6c 20 | 32 38 20 31 39 38 37 20 |Tue Jul |28 1987 |
|00001f20| 2d 20 77 6e 6c 20 28 32 | 2e 34 61 29 0a 58 09 41 |- wnl (2|.4a).X.A|
|00001f30| 64 64 65 64 20 63 68 61 | 6e 67 65 73 20 66 6f 72 |dded cha|nges for|
|00001f40| 20 61 20 53 79 6d 6d 65 | 74 72 69 63 73 20 43 6f | a Symme|trics Co|
|00001f50| 6d 70 75 74 65 72 20 53 | 79 73 74 65 6d 73 20 73 |mputer S|ystems s|
|00001f60| 2f 33 37 35 20 6d 61 63 | 68 69 6e 65 2e 0a 58 09 |/375 mac|hine..X.|
|00001f70| 43 68 61 6e 67 65 73 20 | 77 65 72 65 20 70 72 6f |Changes |were pro|
|00001f80| 76 69 64 65 64 20 62 79 | 20 50 61 75 6c 20 56 69 |vided by| Paul Vi|
|00001f90| 78 69 65 2e 20 20 54 68 | 61 6e 6b 73 21 20 20 41 |xie. Th|anks! A|
|00001fa0| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 4d 72 2e 0a |ccording| to Mr..|
|00001fb0| 58 09 56 69 78 69 65 3a | 20 20 22 54 68 65 73 65 |X.Vixie:| "These|
|00001fc0| 20 63 68 61 6e 67 65 73 | 20 77 65 72 65 20 6e 6f | changes| were no|
|00001fd0| 74 20 6d 61 64 65 20 61 | 74 2c 20 62 79 2c 20 6f |t made a|t, by, o|
|00001fe0| 72 20 66 6f 72 20 53 43 | 53 20 70 72 6f 70 65 72 |r for SC|S proper|
|00001ff0| 2e 0a 58 09 53 43 53 20 | 77 6f 75 6c 64 20 70 72 |..X.SCS |would pr|
|00002000| 6f 62 61 62 6c 79 20 62 | 65 20 69 6e 74 65 72 65 |obably b|e intere|
|00002010| 73 74 65 64 20 69 6e 20 | 74 68 65 6d 2c 20 62 75 |sted in |them, bu|
|00002020| 74 20 73 6f 20 66 61 72 | 20 6f 6e 6c 79 20 74 68 |t so far| only th|
|00002030| 65 0a 58 09 75 73 65 72 | 73 27 20 67 72 6f 75 70 |e.X.user|s' group|
|00002040| 20 68 61 73 20 74 68 65 | 6d 2e 20 20 54 68 65 79 | has the|m. They|
|00002050| 20 77 65 72 65 20 6d 61 | 64 65 20 69 6e 20 46 65 | were ma|de in Fe|
|00002060| 62 72 75 61 72 79 2c 20 | 31 39 38 37 2c 20 74 6f |bruary, |1987, to|
|00002070| 0a 58 09 76 65 72 73 69 | 6f 6e 20 32 2e 31 20 6f |.X.versi|on 2.1 o|
|00002080| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 2c 20 62 |f the pr|ogram, b|
|00002090| 79 20 50 61 75 6c 20 56 | 69 78 69 65 0a 58 09 28 |y Paul V|ixie.X.(|
|000020a0| 64 75 61 6c 21 70 74 73 | 66 61 21 76 69 78 69 65 |dual!pts|fa!vixie|
|000020b0| 21 70 61 75 6c 40 75 63 | 62 76 61 78 2e 42 65 72 |!paul@uc|bvax.Ber|
|000020c0| 6b 65 6c 65 79 2e 45 44 | 55 29 2e 22 20 20 48 69 |keley.ED|U)." Hi|
|000020d0| 73 20 63 68 61 6e 67 65 | 73 20 77 65 72 65 0a 58 |s change|s were.X|
|000020e0| 09 69 6e 74 65 67 72 61 | 74 65 64 20 69 6e 74 6f |.integra|ted into|
|000020f0| 20 76 65 72 73 69 6f 6e | 20 32 2e 33 20 74 6f 20 | version| 2.3 to |
|00002100| 6d 61 6b 65 20 76 65 72 | 73 69 6f 6e 20 32 2e 34 |make ver|sion 2.4|
|00002110| 2e 0a 58 0a 58 09 54 68 | 65 20 53 43 53 20 70 65 |..X.X.Th|e SCS pe|
|00002120| 63 75 6c 69 61 72 69 74 | 69 65 73 20 61 72 65 20 |culiarit|ies are |
|00002130| 73 75 6d 6d 61 72 69 7a | 65 64 20 69 6e 20 43 68 |summariz|ed in Ch|
|00002140| 61 6e 67 65 73 2e 73 63 | 73 2e 0a 58 0a 58 54 75 |anges.sc|s..X.XTu|
|00002150| 65 20 4a 75 6e 20 20 39 | 20 31 39 38 37 20 2d 20 |e Jun 9| 1987 - |
|00002160| 77 6e 6c 20 28 32 2e 33 | 20 66 6f 72 20 72 65 61 |wnl (2.3| for rea|
|00002170| 6c 29 0a 58 09 43 68 61 | 6e 67 65 64 20 74 68 65 |l).X.Cha|nged the|
|00002180| 20 69 6e 63 6c 75 64 65 | 73 20 66 6f 72 20 74 68 | include|s for th|
|00002190| 65 20 65 78 74 72 61 20 | 63 6f 64 65 20 43 61 72 |e extra |code Car|
|000021a0| 6c 20 73 65 6e 74 20 6d | 65 20 74 6f 20 6f 6e 6c |l sent m|e to onl|
|000021b0| 79 0a 58 09 63 6f 6d 70 | 69 6c 65 20 6f 6e 20 56 |y.X.comp|ile on V|
|000021c0| 65 72 73 69 6f 6e 20 34 | 2e 30 20 50 79 72 61 6d |ersion 4|.0 Pyram|
|000021d0| 69 64 20 6d 61 63 68 69 | 6e 65 73 2e 20 20 54 68 |id machi|nes. Th|
|000021e0| 69 73 20 6d 61 6b 65 73 | 20 74 6f 70 20 73 74 69 |is makes| top sti|
|000021f0| 6c 6c 0a 58 09 63 6f 6d | 70 69 6c 61 62 6c 65 20 |ll.X.com|pilable |
|00002200| 6f 6e 20 70 72 65 2d 34 | 2e 30 20 50 79 72 61 6d |on pre-4|.0 Pyram|
|00002210| 69 64 73 2e 20 20 53 70 | 65 63 69 66 69 63 61 6c |ids. Sp|ecifical|
|00002220| 6c 79 2c 20 74 68 69 73 | 20 63 6f 64 65 20 69 73 |ly, this| code is|
|00002230| 20 6f 6e 6c 79 0a 58 09 | 63 6f 6d 70 69 6c 65 64 | only.X.|compiled|
|00002240| 20 77 68 65 6e 20 62 6f | 74 68 20 22 70 79 72 22 | when bo|th "pyr"|
|00002250| 20 61 6e 64 20 22 43 50 | 55 46 4f 55 4e 44 22 20 | and "CP|UFOUND" |
|00002260| 61 72 65 20 64 65 66 69 | 6e 65 64 2e 0a 58 0a 58 |are defi|ned..X.X|
|00002270| 57 65 64 20 4a 75 6e 20 | 20 33 20 31 39 38 37 20 |Wed Jun | 3 1987 |
|00002280| 2d 20 77 6e 6c 20 28 32 | 2e 33 20 77 69 74 68 20 |- wnl (2|.3 with |
|00002290| 50 79 72 61 6d 69 64 20 | 61 64 64 69 74 69 6f 6e |Pyramid |addition|
|000022a0| 73 29 0a 58 09 49 74 27 | 73 20 62 65 65 6e 20 61 |s).X.It'|s been a|
|000022b0| 20 6d 6f 6e 74 68 20 61 | 6e 64 20 49 20 73 74 69 | month a|nd I sti|
|000022c0| 6c 6c 20 68 61 76 65 6e | 27 74 20 64 6f 6e 65 20 |ll haven|'t done |
|000022d0| 61 6e 79 74 68 69 6e 67 | 20 61 62 6f 75 74 0a 58 |anything| about.X|
|000022e0| 09 64 69 73 74 72 69 62 | 75 74 69 6e 67 20 74 68 |.distrib|uting th|
|000022f0| 69 73 20 76 65 72 73 69 | 6f 6e 2e 20 20 48 6f 77 |is versi|on. How|
|00002300| 65 76 65 72 2c 20 43 61 | 72 6c 20 47 75 74 65 6b |ever, Ca|rl Gutek|
|00002310| 75 6e 73 74 20 66 72 6f | 6d 20 50 79 72 61 6d 69 |unst fro|m Pyrami|
|00002320| 64 0a 58 09 68 61 73 20 | 73 65 6e 74 20 6d 65 20 |d.X.has |sent me |
|00002330| 73 6f 6d 65 20 65 78 74 | 72 61 20 70 61 74 63 68 |some ext|ra patch|
|00002340| 65 73 20 66 6f 72 20 73 | 6f 6d 65 20 6f 66 20 74 |es for s|ome of t|
|00002350| 68 65 20 50 79 72 61 6d | 69 64 20 63 6f 64 65 2e |he Pyram|id code.|
|00002360| 20 20 49 0a 58 09 6a 75 | 73 74 20 61 64 64 65 64 | I.X.ju|st added|
|00002370| 20 74 68 6f 73 65 20 61 | 6e 64 20 77 69 6c 6c 20 | those a|nd will |
|00002380| 6d 61 6b 65 20 74 68 65 | 6d 20 70 61 72 74 20 6f |make the|m part o|
|00002390| 66 20 32 2e 33 2e 20 20 | 54 68 69 73 20 66 69 78 |f 2.3. |This fix|
|000023a0| 65 73 20 74 68 65 0a 58 | 09 66 6f 6c 6c 6f 77 69 |es the.X|.followi|
|000023b0| 6e 67 20 50 79 72 61 6d | 69 64 20 70 72 6f 62 6c |ng Pyram|id probl|
|000023c0| 65 6d 73 3a 20 20 61 64 | 64 73 20 74 68 65 20 69 |ems: ad|ds the i|
|000023d0| 6e 63 6c 75 73 69 6f 6e | 20 6f 66 20 3c 73 79 73 |nclusion| of <sys|
|000023e0| 2f 73 79 73 74 6d 2e 68 | 3e 2c 0a 58 09 75 73 65 |/systm.h|>,.X.use|
|000023f0| 73 20 74 68 65 20 63 6f | 72 72 65 63 74 20 73 69 |s the co|rrect si|
|00002400| 7a 65 20 66 6f 72 20 67 | 65 74 74 69 6e 67 20 74 |ze for g|etting t|
|00002410| 68 65 20 6b 65 72 6e 65 | 6c 20 76 61 6c 75 65 20 |he kerne|l value |
|00002420| 5f 63 63 70 75 20 28 74 | 68 69 73 20 62 75 67 0a |_ccpu (t|his bug.|
|00002430| 58 09 61 66 66 65 63 74 | 65 64 20 74 68 65 20 56 |X.affect|ed the V|
|00002440| 61 78 20 76 65 72 73 69 | 6f 6e 20 61 73 20 77 65 |ax versi|on as we|
|00002450| 6c 6c 29 2c 20 73 75 6d | 73 20 74 68 65 20 65 6c |ll), sum|s the el|
|00002460| 65 6d 65 6e 74 73 20 6f | 66 20 74 68 65 20 70 65 |ements o|f the pe|
|00002470| 72 63 70 75 0a 58 09 61 | 72 72 61 79 20 74 6f 20 |rcpu.X.a|rray to |
|00002480| 63 61 6c 63 75 6c 61 74 | 65 20 61 20 63 70 5f 74 |calculat|e a cp_t|
|00002490| 69 6d 65 20 76 61 6c 75 | 65 20 28 66 6f 72 20 4f |ime valu|e (for O|
|000024a0| 53 78 20 34 2e 30 29 2e | 0a 58 0a 58 46 72 69 20 |Sx 4.0).|.X.XFri |
|000024b0| 4d 61 79 20 20 31 20 31 | 39 38 37 20 2d 20 77 6e |May 1 1|987 - wn|
|000024c0| 6c 20 28 32 2e 33 29 0a | 58 09 49 20 68 61 76 65 |l (2.3).|X.I have|
|000024d0| 20 66 69 6e 61 6c 6c 79 | 20 66 69 6e 69 73 68 65 | finally| finishe|
|000024e0| 64 20 61 6c 6c 20 74 68 | 65 20 63 68 61 6e 67 65 |d all th|e change|
|000024f0| 73 20 66 6f 72 20 62 65 | 74 74 65 72 20 73 75 70 |s for be|tter sup|
|00002500| 70 6f 72 74 20 6f 66 0a | 58 09 6f 64 64 62 61 6c |port of.|X.oddbal|
|00002510| 20 74 65 72 6d 69 6e 61 | 6c 73 2e 20 20 41 64 64 | termina|ls. Add|
|00002520| 65 64 20 74 68 65 20 6c | 6f 77 2d 6c 65 76 65 6c |ed the l|ow-level|
|00002530| 20 72 6f 75 74 69 6e 65 | 20 22 63 6c 65 61 72 5f | routine| "clear_|
|00002540| 65 6f 6c 22 20 77 68 69 | 63 68 0a 58 09 6d 61 6b |eol" whi|ch.X.mak|
|00002550| 65 73 20 68 61 6e 64 6c | 69 6e 67 20 74 65 72 6d |es handl|ing term|
|00002560| 69 6e 61 6c 73 20 77 69 | 74 68 6f 75 74 20 22 63 |inals wi|thout "c|
|00002570| 65 22 20 65 61 73 79 3a | 20 20 69 74 20 75 73 65 |e" easy:| it use|
|00002580| 73 20 73 70 61 63 65 73 | 0a 58 09 69 6e 73 74 65 |s spaces|.X.inste|
|00002590| 61 64 2e 20 20 41 6c 6c | 20 64 69 72 65 63 74 20 |ad. All| direct |
|000025a0| 75 73 65 73 20 6f 66 20 | 22 63 6c 65 61 72 5f 6c |uses of |"clear_l|
|000025b0| 69 6e 65 22 20 6f 75 74 | 73 69 64 65 20 6f 66 20 |ine" out|side of |
|000025c0| 73 63 72 65 65 6e 2e 63 | 20 68 61 76 65 0a 58 09 |screen.c| have.X.|
|000025d0| 62 65 65 6e 20 63 68 61 | 6e 67 65 64 20 74 6f 20 |been cha|nged to |
|000025e0| 75 73 65 20 74 68 69 73 | 20 70 72 69 6d 69 74 69 |use this| primiti|
|000025f0| 76 65 2e 20 20 41 20 74 | 65 72 6d 69 6e 61 6c 20 |ve. A t|erminal |
|00002600| 77 69 74 68 20 22 6f 73 | 22 20 69 73 20 6e 6f 77 |with "os|" is now|
|00002610| 0a 58 09 68 61 6e 64 6c | 65 64 20 69 6e 20 73 75 |.X.handl|ed in su|
|00002620| 63 68 20 74 68 61 74 20 | 61 6c 6c 20 73 69 74 75 |ch that |all situ|
|00002630| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 6e 65 65 64 |ations t|hat need|
|00002640| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 61 72 65 | overwri|ting are|
|00002650| 0a 58 09 63 6f 6d 70 6c | 65 74 65 6c 79 20 61 76 |.X.compl|etely av|
|00002660| 6f 69 64 65 64 20 28 69 | 6e 63 6c 75 64 69 6e 67 |oided (i|ncluding|
|00002670| 20 73 65 76 65 72 61 6c | 20 63 6f 6d 6d 61 6e 64 | several| command|
|00002680| 73 29 2e 20 20 54 68 69 | 73 20 72 65 71 75 69 72 |s). Thi|s requir|
|00002690| 65 64 0a 58 09 73 6f 6d | 65 20 63 68 61 6e 67 65 |ed.X.som|e change|
|000026a0| 73 20 74 6f 20 74 68 65 | 20 77 61 79 20 63 6f 6d |s to the| way com|
|000026b0| 6d 61 6e 64 73 20 61 72 | 65 20 74 72 61 6e 73 6c |mands ar|e transl|
|000026c0| 61 74 65 64 20 69 6e 74 | 6f 20 61 63 74 69 6f 6e |ated int|o action|
|000026d0| 20 28 69 6e 0a 58 09 22 | 74 6f 70 2e 63 22 29 2e | (in.X."|top.c").|
|000026e0| 20 20 4d 61 64 65 20 73 | 65 76 65 72 61 6c 20 69 | Made s|everal i|
|000026f0| 6d 70 6f 72 74 61 6e 74 | 20 63 68 61 6e 67 65 73 |mportant| changes|
|00002700| 20 74 6f 20 64 69 73 70 | 6c 61 79 2e 63 20 74 6f | to disp|lay.c to|
|00002710| 20 70 72 65 76 65 6e 74 | 0a 58 09 6f 76 65 72 66 | prevent|.X.overf|
|00002720| 6c 6f 77 69 6e 67 20 6f | 66 20 61 6e 79 20 6f 66 |lowing o|f any of|
|00002730| 20 74 68 65 20 66 69 65 | 6c 64 73 2e 20 20 53 70 | the fie|lds. Sp|
|00002740| 65 63 69 66 69 63 61 6c | 6c 79 2c 20 6d 6f 72 65 |ecifical|ly, more|
|00002750| 20 74 68 61 6e 20 39 39 | 0a 58 09 74 6f 74 61 6c | than 99|.X.total|
|00002760| 20 70 72 6f 63 65 73 73 | 65 73 20 61 6e 64 20 61 | process|es and a|
|00002770| 20 63 70 75 20 73 74 61 | 74 65 20 74 68 61 74 20 | cpu sta|te that |
|00002780| 72 65 61 63 68 65 73 20 | 31 30 30 25 2e 20 20 48 |reaches |100%. H|
|00002790| 61 64 20 74 6f 20 6d 61 | 6b 65 20 61 0a 58 09 73 |ad to ma|ke a.X.s|
|000027a0| 6d 61 6c 6c 20 63 68 61 | 6e 67 65 20 74 6f 20 74 |mall cha|nge to t|
|000027b0| 77 6f 20 63 61 73 74 73 | 20 69 6e 20 74 6f 70 2e |wo casts| in top.|
|000027c0| 63 2c 20 62 65 63 61 75 | 73 65 20 74 68 65 20 53 |c, becau|se the S|
|000027d0| 75 6e 20 33 2e 32 20 63 | 6f 6d 70 69 6c 65 72 0a |un 3.2 c|ompiler.|
|000027e0| 58 09 77 61 73 20 67 69 | 76 69 6e 67 20 77 61 72 |X.was gi|ving war|
|000027f0| 6e 69 6e 67 73 20 6f 6e | 20 74 68 65 6d 2e 20 20 |nings on| them. |
|00002800| 41 64 64 65 64 20 74 68 | 65 20 22 2d 71 22 20 6f |Added th|e "-q" o|
|00002810| 70 74 69 6f 6e 20 77 68 | 69 63 68 20 6c 65 74 73 |ption wh|ich lets|
|00002820| 0a 58 09 72 6f 6f 74 20 | 72 75 6e 20 74 6f 70 20 |.X.root |run top |
|00002830| 61 74 20 61 20 6e 69 63 | 65 20 6f 66 20 2d 32 30 |at a nic|e of -20|
|00002840| 20 28 69 6e 20 63 61 73 | 65 20 68 65 20 74 68 69 | (in cas|e he thi|
|00002850| 6e 6b 73 20 68 65 20 72 | 65 61 6c 6c 79 20 6e 65 |nks he r|eally ne|
|00002860| 65 64 73 20 69 74 29 2e | 0a 58 0a 58 54 75 65 20 |eds it).|.X.XTue |
|00002870| 44 65 63 20 33 30 20 31 | 39 38 36 20 2d 20 77 6e |Dec 30 1|986 - wn|
|00002880| 6c 20 28 32 2e 32 29 0a | 58 09 49 20 74 68 69 6e |l (2.2).|X.I thin|
|00002890| 6b 20 49 20 66 69 78 65 | 64 20 61 20 62 75 67 20 |k I fixe|d a bug |
|000028a0| 72 65 70 6f 72 74 65 64 | 20 62 79 20 4a 75 6c 69 |reported| by Juli|
|000028b0| 61 6e 20 4f 6e 69 6f 6e | 73 20 61 74 20 4e 6f 74 |an Onion|s at Not|
|000028c0| 74 69 6e 67 68 61 6d 2e | 0a 58 09 4f 63 63 61 73 |tingham.|.X.Occas|
|000028d0| 69 6f 6e 61 6c 6c 79 2c | 20 74 6f 70 20 77 69 6c |ionally,| top wil|
|000028e0| 6c 20 63 6f 72 65 20 64 | 75 6d 70 20 77 68 65 6e |l core d|ump when|
|000028f0| 20 74 68 65 20 73 70 72 | 69 6e 74 66 20 69 6e 20 | the spr|intf in |
|00002900| 65 69 74 68 65 72 0a 58 | 09 69 5f 70 72 6f 63 65 |either.X|.i_proce|
|00002910| 73 73 20 6f 72 20 75 5f | 70 72 6f 63 65 73 73 20 |ss or u_|process |
|00002920| 6f 76 65 72 66 6c 6f 77 | 73 20 64 75 65 20 74 6f |overflow|s due to|
|00002930| 20 61 6e 20 65 78 63 65 | 70 74 69 6f 6e 61 6c 6c | an exce|ptionall|
|00002940| 79 0a 58 09 75 6e 72 65 | 61 6c 69 73 74 69 63 20 |y.X.unre|alistic |
|00002950| 74 69 6d 65 20 76 61 6c | 75 65 2e 20 20 49 20 74 |time val|ue. I t|
|00002960| 68 69 6e 6b 20 69 74 20 | 68 69 67 68 6c 79 20 75 |hink it |highly u|
|00002970| 6e 6c 69 6b 65 6c 79 20 | 74 68 61 74 20 74 6f 70 |nlikely |that top|
|00002980| 20 63 61 6e 0a 58 09 67 | 65 74 20 61 20 62 61 64 | can.X.g|et a bad|
|00002990| 20 70 72 6f 63 20 73 74 | 72 75 63 74 75 72 65 20 | proc st|ructure |
|000029a0| 28 61 6c 74 68 6f 75 67 | 68 20 49 20 73 75 70 70 |(althoug|h I supp|
|000029b0| 6f 73 65 20 69 74 20 69 | 73 20 70 6f 73 73 69 62 |ose it i|s possib|
|000029c0| 6c 65 29 2c 20 62 75 74 | 0a 58 09 74 68 65 20 70 |le), but|.X.the p|
|000029d0| 72 6f 63 65 73 73 20 74 | 69 6d 65 20 69 73 20 72 |rocess t|ime is r|
|000029e0| 65 61 64 20 66 72 6f 6d | 20 74 68 65 20 75 73 65 |ead from| the use|
|000029f0| 72 20 73 74 72 75 63 74 | 75 72 65 2c 20 61 6e 64 |r struct|ure, and|
|00002a00| 20 74 68 61 74 20 63 61 | 6e 0a 58 09 73 6f 6d 65 | that ca|n.X.some|
|00002a10| 74 69 6d 65 73 20 62 65 | 20 70 61 72 74 20 67 61 |times be| part ga|
|00002a20| 72 62 61 67 65 2e 20 20 | 53 6f 2c 20 22 67 65 74 |rbage. |So, "get|
|00002a30| 5f 75 63 70 75 22 20 63 | 68 65 63 6b 73 20 74 68 |_ucpu" c|hecks th|
|00002a40| 65 20 76 61 6c 75 65 20 | 69 74 0a 58 09 72 65 74 |e value |it.X.ret|
|00002a50| 75 72 6e 73 20 74 6f 20 | 6d 61 6b 65 20 73 75 72 |urns to |make sur|
|00002a60| 65 20 69 74 73 20 66 6f | 72 6d 61 74 74 65 64 20 |e its fo|rmatted |
|00002a70| 66 6f 72 6d 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |form wil|l not ov|
|00002a80| 65 72 66 6c 6f 77 20 74 | 68 65 0a 58 09 73 70 72 |erflow t|he.X.spr|
|00002a90| 69 6e 74 66 2e 20 20 49 | 66 20 74 68 69 73 20 64 |intf. I|f this d|
|00002aa0| 6f 65 73 6e 27 74 20 66 | 69 78 20 74 68 65 20 62 |oesn't f|ix the b|
|00002ab0| 75 67 2c 20 74 68 65 6e | 20 6d 6f 72 65 20 64 72 |ug, then| more dr|
|00002ac0| 61 73 74 69 63 20 6d 65 | 61 73 75 72 65 73 0a 58 |astic me|asures.X|
|00002ad0| 09 77 69 6c 6c 20 62 65 | 20 6e 65 63 65 73 73 61 |.will be| necessa|
|00002ae0| 72 79 2e 20 20 49 20 70 | 6c 61 6e 20 74 6f 20 6d |ry. I p|lan to m|
|00002af0| 61 6b 65 20 74 68 69 73 | 20 76 65 72 73 69 6f 6e |ake this| version|
|00002b00| 20 74 68 65 20 6f 66 66 | 69 63 69 61 6c 0a 58 09 | the off|icial.X.|
|00002b10| 22 74 6f 70 20 32 2e 32 | 22 2e 20 20 5b 5b 20 54 |"top 2.2|". [[ T|
|00002b20| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 77 61 73 20 |his vers|ion was |
|00002b30| 6e 65 76 65 72 20 64 69 | 73 74 72 69 62 75 74 65 |never di|stribute|
|00002b40| 64 20 76 65 72 79 20 77 | 69 64 65 6c 79 2e 20 5d |d very w|idely. ]|
|00002b50| 5d 0a 58 0a 58 54 75 65 | 20 44 65 63 20 20 32 20 |].X.XTue| Dec 2 |
|00002b60| 31 39 38 36 20 2d 20 77 | 6e 6c 20 28 32 2e 32 63 |1986 - w|nl (2.2c|
|00002b70| 29 0a 58 09 41 64 64 65 | 64 20 74 6f 20 74 6f 70 |).X.Adde|d to top|
|00002b80| 2e 63 20 74 68 65 20 6e | 6f 74 69 6f 6e 20 6f 66 |.c the n|otion of|
|00002b90| 20 61 20 22 66 61 69 6c | 65 64 20 63 6f 6d 6d 61 | a "fail|ed comma|
|00002ba0| 6e 64 22 2e 20 20 57 68 | 65 6e 20 61 20 63 6f 6d |nd". Wh|en a com|
|00002bb0| 6d 61 6e 64 0a 58 09 70 | 72 6f 64 75 63 65 73 20 |mand.X.p|roduces |
|00002bc0| 61 20 6d 65 73 73 61 67 | 65 20 28 6f 6e 20 74 68 |a messag|e (on th|
|00002bd0| 65 20 6d 65 73 73 61 67 | 65 20 6c 69 6e 65 29 2c |e messag|e line),|
|00002be0| 20 61 6e 20 75 70 64 61 | 74 65 20 64 6f 65 73 20 | an upda|te does |
|00002bf0| 6e 6f 74 0a 58 09 66 6f | 6c 6c 6f 77 20 69 74 2e |not.X.fo|llow it.|
|00002c00| 20 20 42 65 66 6f 72 65 | 2c 20 74 68 65 20 6d 65 | Before|, the me|
|00002c10| 73 73 61 67 65 20 77 61 | 73 20 77 72 69 74 74 65 |ssage wa|s writte|
|00002c20| 6e 20 61 6e 64 20 61 20 | 6e 65 77 20 64 69 73 70 |n and a |new disp|
|00002c30| 6c 61 79 20 77 61 73 0a | 58 09 73 68 6f 77 6e 2d |lay was.|X.shown-|
|00002c40| 2d 2d 70 75 72 70 6f 73 | 65 66 75 6c 6c 79 20 6e |--purpos|efully n|
|00002c50| 6f 74 20 6f 76 65 72 77 | 72 69 74 69 6e 67 20 74 |ot overw|riting t|
|00002c60| 68 65 20 6d 65 73 73 61 | 67 65 2e 20 20 42 75 74 |he messa|ge. But|
|00002c70| 20 74 68 65 0a 58 09 69 | 6d 70 72 6f 76 65 6d 65 | the.X.i|mproveme|
|00002c80| 6e 74 73 20 74 6f 20 68 | 61 6e 64 6c 65 20 6f 76 |nts to h|andle ov|
|00002c90| 65 72 73 74 72 69 6b 69 | 6e 67 20 74 65 72 6d 69 |erstriki|ng termi|
|00002ca0| 6e 61 6c 73 20 61 6e 64 | 20 74 65 72 6d 69 6e 61 |nals and| termina|
|00002cb0| 6c 73 0a 58 09 77 69 74 | 68 6f 75 74 20 22 63 65 |ls.X.wit|hout "ce|
|00002cc0| 22 20 63 6c 65 61 72 20 | 74 68 65 20 73 63 72 65 |" clear |the scre|
|00002cd0| 65 6e 20 62 65 66 6f 72 | 65 20 65 76 65 72 79 20 |en befor|e every |
|00002ce0| 64 69 73 70 6c 61 79 2c | 20 77 68 69 63 68 20 77 |display,| which w|
|00002cf0| 6f 75 6c 64 0a 58 09 65 | 72 61 73 65 20 74 68 65 |ould.X.e|rase the|
|00002d00| 20 6d 65 73 73 61 67 65 | 2e 20 20 4e 6f 77 2c 20 | message|. Now, |
|00002d10| 74 68 65 20 6d 65 73 73 | 61 67 65 20 69 73 20 64 |the mess|age is d|
|00002d20| 69 73 70 6c 61 79 65 64 | 20 61 6e 64 20 74 6f 70 |isplayed| and top|
|00002d30| 20 77 61 69 74 73 0a 58 | 09 61 6e 6f 74 68 65 72 | waits.X|.another|
|00002d40| 20 66 75 6c 6c 20 74 69 | 6d 65 20 69 6e 74 65 72 | full ti|me inter|
|00002d50| 76 61 6c 20 62 65 66 6f | 72 65 20 75 70 64 61 74 |val befo|re updat|
|00002d60| 69 6e 67 20 74 68 65 20 | 64 69 73 70 6c 61 79 2e |ing the |display.|
|00002d70| 20 20 54 68 69 73 0a 58 | 09 77 6f 72 6b 73 20 6d | This.X|.works m|
|00002d80| 75 63 68 20 62 65 74 74 | 65 72 20 61 6c 6c 20 61 |uch bett|er all a|
|00002d90| 72 6f 75 6e 64 2e 0a 58 | 0a 58 4d 6f 6e 20 4e 6f |round..X|.XMon No|
|00002da0| 76 20 32 34 20 31 39 38 | 36 20 2d 20 77 6e 6c 20 |v 24 198|6 - wnl |
|00002db0| 28 32 2e 32 62 29 0a 58 | 09 43 72 65 61 74 65 64 |(2.2b).X|.Created|
|00002dc0| 20 61 20 6e 65 77 20 66 | 69 6c 65 2c 20 75 74 69 | a new f|ile, uti|
|00002dd0| 6c 73 2e 63 2c 20 61 6e | 64 20 6d 61 64 65 20 61 |ls.c, an|d made a|
|00002de0| 70 70 72 6f 70 72 69 61 | 74 65 20 63 68 61 6e 67 |ppropria|te chang|
|00002df0| 65 73 20 74 6f 0a 58 09 | 4d 61 6b 65 66 69 6c 65 |es to.X.|Makefile|
|00002e00| 2e 20 20 54 68 69 73 20 | 6e 65 77 20 66 69 6c 65 |. This |new file|
|00002e10| 20 68 6f 6c 64 73 20 61 | 6c 6c 20 75 74 69 6c 69 | holds a|ll utili|
|00002e20| 74 79 20 66 75 6e 63 74 | 69 6f 6e 73 20 74 68 61 |ty funct|ions tha|
|00002e30| 74 20 63 61 6e 20 61 6e | 64 0a 58 09 6d 61 79 20 |t can an|d.X.may |
|00002e40| 62 65 20 75 73 65 64 20 | 62 79 20 6d 6f 72 65 20 |be used |by more |
|00002e50| 74 68 61 6e 20 6f 6e 65 | 20 22 6d 6f 64 75 6c 65 |than one| "module|
|00002e60| 22 2e 20 20 49 6d 70 72 | 6f 76 65 64 20 69 5f 6d |". Impr|oved i_m|
|00002e70| 65 6d 6f 72 79 20 61 6e | 64 0a 58 09 75 5f 6d 65 |emory an|d.X.u_me|
|00002e80| 6d 6f 72 79 20 28 64 69 | 73 70 6c 61 79 2e 63 29 |mory (di|splay.c)|
|00002e90| 20 73 6f 20 74 68 61 74 | 20 73 63 72 65 65 6e 20 | so that| screen |
|00002ea0| 75 70 64 61 74 65 73 20 | 66 6f 72 20 74 68 65 20 |updates |for the |
|00002eb0| 76 61 6c 75 65 73 0a 58 | 09 64 69 73 70 6c 61 79 |values.X|.display|
|00002ec0| 65 64 20 61 72 65 20 6f | 6e 6c 79 20 63 68 61 6e |ed are o|nly chan|
|00002ed0| 67 65 64 20 77 68 65 6e | 20 6e 65 63 65 73 73 61 |ged when| necessa|
|00002ee0| 72 79 2e 20 20 41 6c 73 | 6f 20 6d 61 64 65 20 74 |ry. Als|o made t|
|00002ef0| 68 65 20 6c 69 6e 65 0a | 58 09 6c 6f 6f 6b 20 62 |he line.|X.look b|
|00002f00| 65 74 74 65 72 3a 20 20 | 74 68 65 20 6c 61 73 74 |etter: |the last|
|00002f10| 20 66 69 78 65 73 20 6d | 61 64 65 20 66 6f 72 20 | fixes m|ade for |
|00002f20| 61 20 72 61 74 68 65 72 | 20 75 67 6c 79 20 64 69 |a rather| ugly di|
|00002f30| 73 70 6c 61 79 2e 0a 58 | 09 41 64 64 65 64 20 74 |splay..X|.Added t|
|00002f40| 68 65 20 6c 6f 63 61 6c | 6c 79 20 64 65 66 69 6e |he local|ly defin|
|00002f50| 65 64 20 63 6f 6e 73 74 | 61 6e 74 20 22 4c 6f 61 |ed const|ant "Loa|
|00002f60| 64 4d 61 78 22 20 61 6e | 64 20 61 64 64 65 64 20 |dMax" an|d added |
|00002f70| 63 6f 64 65 20 74 6f 0a | 58 09 74 6f 70 2e 63 20 |code to.|X.top.c |
|00002f80| 74 6f 20 73 65 6e 64 20 | 74 68 65 20 63 75 72 73 |to send |the curs|
|00002f90| 6f 72 20 68 6f 6d 65 20 | 61 66 74 65 72 20 61 20 |or home |after a |
|00002fa0| 73 70 61 63 65 20 63 6f | 6d 6d 61 6e 64 20 69 73 |space co|mmand is|
|00002fb0| 20 65 6e 74 65 72 65 64 | 20 69 66 0a 58 09 74 68 | entered| if.X.th|
|00002fc0| 65 20 6c 6f 61 64 20 61 | 76 65 72 61 67 65 20 69 |e load a|verage i|
|00002fd0| 73 20 68 69 67 68 65 72 | 20 74 68 61 6e 20 22 4c |s higher| than "L|
|00002fe0| 6f 61 64 4d 61 78 22 2e | 20 20 54 68 69 73 20 70 |oadMax".| This p|
|00002ff0| 72 6f 76 69 64 65 73 20 | 76 69 73 75 61 6c 0a 58 |rovides |visual.X|
|00003000| 09 66 65 65 64 62 61 63 | 6b 20 6f 6e 20 6c 6f 61 |.feedbac|k on loa|
|00003010| 64 65 64 20 73 79 73 74 | 65 6d 73 2e 0a 58 0a 58 |ded syst|ems..X.X|
|00003020| 4d 6f 6e 20 4e 6f 76 20 | 20 33 20 31 39 38 36 20 |Mon Nov | 3 1986 |
|00003030| 2d 20 77 6e 6c 20 28 32 | 2e 32 61 29 0a 58 09 57 |- wnl (2|.2a).X.W|
|00003040| 69 64 65 6e 65 64 20 74 | 68 65 20 66 6f 72 6d 61 |idened t|he forma|
|00003050| 74 20 66 6f 72 20 6d 65 | 6d 6f 72 79 20 75 73 61 |t for me|mory usa|
|00003060| 67 65 20 73 6f 20 74 68 | 61 74 20 69 74 20 63 61 |ge so th|at it ca|
|00003070| 6e 20 64 69 73 70 6c 61 | 79 20 35 0a 58 09 64 69 |n displa|y 5.X.di|
|00003080| 67 69 74 73 2e 20 20 54 | 68 69 73 20 6d 61 6b 65 |gits. T|his make|
|00003090| 73 20 74 68 61 74 20 6c | 69 6e 65 20 6c 6f 6f 6b |s that l|ine look|
|000030a0| 20 61 20 6c 69 74 74 6c | 65 20 75 67 6c 79 2d 2d | a littl|e ugly--|
|000030b0| 2d 6d 61 79 62 65 20 49 | 27 6c 6c 20 66 69 78 0a |-maybe I|'ll fix.|
|000030c0| 58 09 74 68 61 74 20 6c | 61 74 65 72 2e 20 20 53 |X.that l|ater. S|
|000030d0| 63 72 65 65 6e 20 68 61 | 6e 64 6c 69 6e 67 20 6e |creen ha|ndling n|
|000030e0| 6f 77 20 75 6e 64 65 72 | 73 74 61 6e 64 73 20 22 |ow under|stands "|
|000030f0| 6f 73 22 20 61 6e 64 20 | 61 20 6d 69 73 73 69 6e |os" and |a missin|
|00003100| 67 0a 58 09 22 63 65 22 | 2e 20 20 49 74 20 74 72 |g.X."ce"|. It tr|
|00003110| 65 61 74 73 20 74 68 65 | 6d 20 69 64 65 6e 74 69 |eats the|m identi|
|00003120| 63 61 6c 6c 79 3a 20 20 | 63 6c 65 61 72 20 74 68 |cally: |clear th|
|00003130| 65 20 73 63 72 65 65 6e | 20 62 65 74 77 65 65 6e |e screen| between|
|00003140| 20 65 61 63 68 0a 58 09 | 64 69 73 70 6c 61 79 2e | each.X.|display.|
|00003150| 20 20 53 63 72 65 65 6e | 20 68 61 6e 64 6c 69 6e | Screen| handlin|
|00003160| 67 20 63 6f 64 65 20 6e | 6f 77 20 75 73 65 73 20 |g code n|ow uses |
|00003170| 22 63 64 22 20 77 68 65 | 6e 20 61 70 70 72 6f 70 |"cd" whe|n approp|
|00003180| 72 69 61 74 65 0a 58 09 | 28 69 2e 65 2e 3a 20 20 |riate.X.|(i.e.: |
|00003190| 77 68 65 6e 20 75 73 65 | 72 20 68 61 73 20 73 68 |when use|r has sh|
|000031a0| 6f 72 74 65 6e 65 64 20 | 74 68 65 20 73 63 72 65 |ortened |the scre|
|000031b0| 65 6e 29 2e 20 20 4d 61 | 64 65 20 69 5f 6c 6f 61 |en). Ma|de i_loa|
|000031c0| 64 61 76 65 20 63 6c 65 | 61 72 0a 58 09 74 68 65 |dave cle|ar.X.the|
|000031d0| 6e 20 73 63 72 65 65 6e | 20 61 6e 64 20 74 6f 6f |n screen| and too|
|000031e0| 6b 20 6f 75 74 20 6d 6f | 73 74 20 6f 66 20 74 68 |k out mo|st of th|
|000031f0| 65 20 65 78 70 6c 69 63 | 69 74 20 63 61 6c 6c 73 |e explic|it calls|
|00003200| 20 74 6f 20 22 63 6c 65 | 61 72 22 20 69 6e 0a 58 | to "cle|ar" in.X|
|00003210| 09 74 6f 70 2e 63 2e 20 | 20 54 68 69 73 20 6d 65 |.top.c. | This me|
|00003220| 74 68 6f 64 20 69 73 20 | 63 6c 65 61 6e 65 72 2c |thod is |cleaner,|
|00003230| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 69 6e 20 63 | especia|lly in c|
|00003240| 6f 6e 6a 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 0a |onjuncti|on with.|
|00003250| 58 09 22 6f 73 22 20 68 | 61 6e 64 6c 69 6e 67 2e |X."os" h|andling.|
|00003260| 20 20 41 64 64 65 64 20 | 70 72 65 70 72 6f 63 65 | Added |preproce|
|00003270| 73 73 6f 72 20 76 61 72 | 69 61 62 6c 65 20 22 52 |ssor var|iable "R|
|00003280| 41 4e 44 4f 4d 5f 50 57 | 22 20 66 6f 72 0a 58 09 |ANDOM_PW|" for.X.|
|00003290| 73 79 73 74 65 6d 73 20 | 74 68 61 74 20 61 63 63 |systems |that acc|
|000032a0| 65 73 73 20 74 68 65 20 | 70 61 73 73 77 64 20 66 |ess the |passwd f|
|000032b0| 69 6c 65 20 72 61 6e 64 | 6f 6d 6c 79 20 28 53 75 |ile rand|omly (Su|
|000032c0| 6e 27 73 20 79 70 20 61 | 6e 64 20 34 2e 33 29 2e |n's yp a|nd 4.3).|
|000032d0| 0a 58 09 57 69 74 68 20 | 22 52 41 4e 44 4f 4d 5f |.X.With |"RANDOM_|
|000032e0| 50 57 22 20 73 65 74 2c | 20 22 67 65 74 70 77 75 |PW" set,| "getpwu|
|000032f0| 69 64 22 20 69 73 20 75 | 73 65 64 20 69 6e 73 74 |id" is u|sed inst|
|00003300| 65 61 64 20 6f 66 20 22 | 67 65 74 70 77 6e 61 6d |ead of "|getpwnam|
|00003310| 22 2c 0a 58 09 62 75 74 | 20 75 69 64 2d 3e 75 73 |",.X.but| uid->us|
|00003320| 65 72 6e 61 6d 65 20 6d | 61 70 70 69 6e 67 73 20 |ername m|appings |
|00003330| 61 72 65 20 73 74 69 6c | 6c 20 68 61 73 68 65 64 |are stil|l hashed|
|00003340| 20 69 6e 74 65 72 6e 61 | 6c 6c 79 20 28 62 65 63 | interna|lly (bec|
|00003350| 61 75 73 65 0a 58 09 74 | 68 61 74 20 69 73 20 73 |ause.X.t|hat is s|
|00003360| 74 69 6c 6c 20 66 61 73 | 74 65 72 20 74 68 61 6e |till fas|ter than|
|00003370| 20 67 6f 69 6e 67 20 74 | 6f 20 64 69 73 6b 29 2e | going t|o disk).|
|00003380| 0a 58 0a 58 4d 6f 6e 20 | 4f 63 74 20 20 36 20 31 |.X.XMon |Oct 6 1|
|00003390| 39 38 36 20 2d 20 77 6e | 6c 20 28 32 2e 31 29 0a |986 - wn|l (2.1).|
|000033a0| 58 09 41 20 62 75 67 20 | 77 69 74 68 20 74 68 65 |X.A bug |with the|
|000033b0| 20 6b 69 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 77 61 | kill co|mmand wa|
|000033c0| 73 20 70 6f 69 6e 74 65 | 64 20 6f 75 74 20 62 79 |s pointe|d out by|
|000033d0| 20 22 64 63 69 65 6d 21 | 74 69 6d 22 2d 2d 2d 0a | "dciem!|tim"---.|
|000033e0| 58 09 73 70 65 63 69 66 | 79 69 6e 67 20 61 20 73 |X.specif|ying a s|
|000033f0| 69 67 6e 61 6c 20 62 79 | 20 6e 61 6d 65 20 64 69 |ignal by| name di|
|00003400| 64 20 6e 6f 74 20 77 6f | 72 6b 20 63 6f 72 72 65 |d not wo|rk corre|
|00003410| 63 74 6c 79 2e 20 20 54 | 68 69 73 20 62 75 67 20 |ctly. T|his bug |
|00003420| 68 61 73 0a 58 09 62 65 | 65 6e 20 66 69 78 65 64 |has.X.be|en fixed|
|00003430| 20 77 69 74 68 20 61 20 | 73 69 6d 70 6c 65 20 63 | with a |simple c|
|00003440| 68 61 6e 67 65 20 74 6f | 20 63 6f 6d 6d 61 6e 64 |hange to| command|
|00003450| 73 2e 63 2e 20 20 41 6e | 6f 74 68 65 72 20 62 75 |s.c. An|other bu|
|00003460| 67 20 6d 61 64 65 0a 58 | 09 74 68 65 20 63 70 75 |g made.X|.the cpu|
|00003470| 20 73 74 61 74 65 20 70 | 65 72 63 65 6e 74 61 67 | state p|ercentag|
|00003480| 65 73 20 69 6e 63 6f 72 | 72 65 63 74 20 74 68 65 |es incor|rect the|
|00003490| 20 66 69 72 73 74 20 74 | 69 6d 65 20 74 68 65 79 | first t|ime they|
|000034a0| 20 77 65 72 65 0a 58 09 | 64 69 73 70 6c 61 79 65 | were.X.|displaye|
|000034b0| 64 2e 20 20 54 68 69 73 | 20 62 75 67 20 68 61 73 |d. This| bug has|
|000034c0| 20 61 6c 73 6f 20 62 65 | 65 6e 20 66 69 78 65 64 | also be|en fixed|
|000034d0| 20 28 63 68 61 6e 67 65 | 64 20 74 6f 70 2e 63 29 | (change|d top.c)|
|000034e0| 2e 0a 58 0a 58 54 68 75 | 20 53 65 70 20 20 34 20 |..X.XThu| Sep 4 |
|000034f0| 31 39 38 36 20 2d 20 77 | 6e 6c 20 28 32 2e 30 2c |1986 - w|nl (2.0,|
|00003500| 20 61 74 20 6c 61 73 74 | 29 0a 58 09 54 68 69 73 | at last|).X.This|
|00003510| 20 69 73 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 | is the |version |
|00003520| 74 68 61 74 20 77 69 6c | 6c 20 28 68 6f 70 65 66 |that wil|l (hopef|
|00003530| 75 6c 6c 79 29 20 67 65 | 74 20 72 65 6c 65 61 73 |ully) ge|t releas|
|00003540| 65 64 20 74 6f 20 74 68 | 65 0a 58 09 77 6f 72 6c |ed to th|e.X.worl|
|00003550| 64 20 61 73 20 74 6f 70 | 20 32 2e 30 2e 0a 58 09 |d as top| 2.0..X.|
|00003560| 41 64 64 65 64 20 74 68 | 65 20 22 72 22 20 61 6e |Added th|e "r" an|
|00003570| 64 20 22 6b 22 20 63 6f | 6d 6d 61 6e 64 73 20 66 |d "k" co|mmands f|
|00003580| 6f 72 20 72 65 6e 69 63 | 65 20 61 6e 64 20 6b 69 |or renic|e and ki|
|00003590| 6c 6c 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |ll, resp|ectively|
|000035a0| 2e 0a 58 09 54 68 69 73 | 20 72 65 71 75 69 72 65 |..X.This| require|
|000035b0| 64 20 61 64 64 69 6e 67 | 20 61 20 77 61 79 20 74 |d adding| a way t|
|000035c0| 6f 20 68 61 6e 64 6c 65 | 20 73 79 73 74 65 6d 20 |o handle| system |
|000035d0| 63 61 6c 6c 20 65 72 72 | 6f 72 73 2c 20 61 6e 64 |call err|ors, and|
|000035e0| 20 74 68 65 0a 58 09 61 | 64 64 69 74 69 6f 6e 20 | the.X.a|ddition |
|000035f0| 6f 66 20 74 68 65 20 22 | 65 22 20 63 6f 6d 6d 61 |of the "|e" comma|
|00003600| 6e 64 2e 20 20 48 65 6c | 70 20 73 63 72 65 65 6e |nd. Hel|p screen|
|00003610| 20 61 6e 64 20 6d 61 6e | 75 61 6c 20 70 61 67 65 | and man|ual page|
|00003620| 20 77 65 72 65 0a 58 09 | 63 68 61 6e 67 65 64 20 | were.X.|changed |
|00003630| 74 6f 20 72 65 66 6c 65 | 63 74 20 74 68 69 73 20 |to refle|ct this |
|00003640| 63 68 61 6e 67 65 2e 20 | 20 43 68 61 6e 67 65 64 |change. | Changed|
|00003650| 20 61 6c 6c 20 22 23 69 | 66 64 65 66 20 53 55 4e | all "#i|fdef SUN|
|00003660| 22 20 64 69 72 65 63 74 | 69 76 65 73 0a 58 09 74 |" direct|ives.X.t|
|00003670| 6f 20 22 23 69 66 64 65 | 66 20 73 75 6e 22 2c 20 |o "#ifde|f sun", |
|00003680| 61 6e 64 20 63 68 61 6e | 67 65 64 20 61 6c 6c 20 |and chan|ged all |
|00003690| 22 23 69 66 64 65 66 20 | 50 59 52 41 4d 49 44 22 |"#ifdef |PYRAMID"|
|000036a0| 20 64 69 72 65 63 74 69 | 76 65 73 20 74 6f 0a 58 | directi|ves to.X|
|000036b0| 09 22 23 69 66 64 65 66 | 20 70 79 72 22 2e 20 20 |."#ifdef| pyr". |
|000036c0| 41 73 20 6d 75 63 68 20 | 61 73 20 49 20 68 61 74 |As much |as I hat|
|000036d0| 65 20 74 68 6f 73 65 20 | 63 68 6f 69 63 65 73 20 |e those |choices |
|000036e0| 6f 66 20 70 72 65 70 72 | 6f 63 65 73 73 6f 72 0a |of prepr|ocessor.|
|000036f0| 58 09 6e 61 6d 65 73 20 | 28 74 68 65 79 20 74 6f |X.names |(they to|
|00003700| 6f 20 65 61 73 69 6c 79 | 20 63 6f 6e 66 6c 69 63 |o easily| conflic|
|00003710| 74 20 77 69 74 68 20 72 | 65 61 6c 20 76 61 72 69 |t with r|eal vari|
|00003720| 61 62 6c 65 20 6e 61 6d | 65 73 29 2c 20 69 74 20 |able nam|es), it |
|00003730| 64 6f 65 73 0a 58 09 6d | 61 6b 65 20 61 75 74 6f |does.X.m|ake auto|
|00003740| 6d 61 74 69 63 20 63 6f | 6d 70 69 6c 61 74 69 6f |matic co|mpilatio|
|00003750| 6e 20 70 6f 73 73 69 62 | 6c 65 2d 2d 2d 70 65 6f |n possib|le---peo|
|00003760| 70 6c 65 20 64 6f 6e 27 | 74 20 68 61 76 65 20 74 |ple don'|t have t|
|00003770| 6f 20 63 68 61 6e 67 65 | 0a 58 09 74 68 65 20 4d |o change|.X.the M|
|00003780| 61 6b 65 66 69 6c 65 20 | 61 6e 79 6d 6f 72 65 20 |akefile |anymore |
|00003790| 66 6f 72 20 73 70 65 63 | 69 66 69 63 20 6d 61 63 |for spec|ific mac|
|000037a0| 68 69 6e 65 73 2e 20 20 | 54 68 65 20 6d 61 6e 75 |hines. |The manu|
|000037b0| 61 6c 20 70 61 67 65 20 | 77 61 73 0a 58 09 63 68 |al page |was.X.ch|
|000037c0| 61 6e 67 65 64 20 74 6f | 20 61 75 74 6f 6d 61 74 |anged to| automat|
|000037d0| 69 63 61 6c 6c 79 20 69 | 6e 63 6f 72 70 6f 72 61 |ically i|ncorpora|
|000037e0| 74 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 73 20 |te the d|efaults |
|000037f0| 61 73 20 73 65 74 20 69 | 6e 20 74 68 65 0a 58 09 |as set i|n the.X.|
|00003800| 4d 61 6b 65 66 69 6c 65 | 20 28 69 6e 63 6c 75 64 |Makefile| (includ|
|00003810| 69 6e 67 20 61 6e 20 69 | 6e 66 69 6e 69 74 65 20 |ing an i|nfinite |
|00003820| 76 61 6c 75 65 20 66 6f | 72 20 54 4f 50 4e 29 20 |value fo|r TOPN) |
|00003830| 61 6e 64 20 74 68 65 20 | 77 61 79 20 74 68 65 0a |and the |way the.|
|00003840| 58 09 6d 61 6e 75 61 6c | 20 70 61 67 65 20 69 73 |X.manual| page is|
|00003850| 20 67 65 6e 65 72 61 74 | 65 64 20 62 79 20 74 68 | generat|ed by th|
|00003860| 65 20 4d 61 6b 65 66 69 | 6c 65 20 77 61 73 20 63 |e Makefi|le was c|
|00003870| 68 61 6e 67 65 64 20 74 | 6f 20 6d 61 6b 65 0a 58 |hanged t|o make.X|
|00003880| 09 6d 61 69 6e 74 65 6e | 61 6e 63 65 20 6f 66 20 |.mainten|ance of |
|00003890| 74 68 69 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |this inf|ormation|
|000038a0| 20 61 75 74 6f 6d 61 74 | 69 63 2e 0a 58 0a 58 4d | automat|ic..X.XM|
|000038b0| 6f 6e 20 4a 75 6c 20 32 | 38 20 31 39 38 36 20 2d |on Jul 2|8 1986 -|
|000038c0| 20 77 6e 6c 20 28 73 74 | 69 6c 6c 20 70 72 65 20 | wnl (st|ill pre |
|000038d0| 32 2e 30 29 0a 58 09 52 | 65 61 6c 20 63 6c 6f 73 |2.0).X.R|eal clos|
|000038e0| 65 20 6e 6f 77 2e 20 20 | 49 20 70 75 74 20 69 6e |e now. |I put in|
|000038f0| 20 61 20 6e 65 77 20 64 | 65 66 69 6e 69 74 69 6f | a new d|efinitio|
|00003900| 6e 20 66 6f 72 20 74 68 | 65 20 6d 61 63 72 6f 20 |n for th|e macro |
|00003910| 22 70 61 67 65 74 6f 6b | 22 0a 58 09 74 68 61 74 |"pagetok|".X.that|
|00003920| 20 64 6f 65 73 20 61 6e | 20 65 78 70 6c 69 63 69 | does an| explici|
|00003930| 74 20 73 68 69 66 74 20 | 6f 66 20 61 20 63 6f 6e |t shift |of a con|
|00003940| 73 74 61 6e 74 20 65 78 | 70 72 65 73 73 69 6f 6e |stant ex|pression|
|00003950| 20 69 6e 76 6f 6c 76 69 | 6e 67 0a 58 09 50 47 53 | involvi|ng.X.PGS|
|00003960| 48 49 46 54 2e 20 20 41 | 70 70 72 6f 70 72 69 61 |HIFT. A|ppropria|
|00003970| 74 65 20 63 68 65 63 6b | 73 20 61 72 65 20 6d 61 |te check|s are ma|
|00003980| 64 65 20 69 66 20 50 47 | 53 48 49 46 54 20 69 73 |de if PG|SHIFT is|
|00003990| 20 74 6f 20 73 6d 61 6c | 6c 2e 0a 58 09 22 70 61 | to smal|l..X."pa|
|000039a0| 67 65 74 6f 6b 22 20 69 | 73 20 6e 6f 77 20 75 73 |getok" i|s now us|
|000039b0| 65 64 20 65 78 63 6c 75 | 73 69 76 65 6c 79 20 65 |ed exclu|sively e|
|000039c0| 76 65 72 79 77 68 65 72 | 65 20 74 6f 20 63 6f 6e |verywher|e to con|
|000039d0| 76 65 72 74 20 6b 65 72 | 6e 65 6c 0a 58 09 63 6c |vert ker|nel.X.cl|
|000039e0| 69 63 6b 73 20 74 6f 20 | 6b 69 6c 6f 62 79 74 65 |icks to |kilobyte|
|000039f0| 73 2e 20 20 49 20 61 64 | 64 65 64 20 61 20 66 75 |s. I ad|ded a fu|
|00003a00| 6c 6c 20 62 6c 6f 77 6e | 20 69 6e 74 65 72 61 63 |ll blown| interac|
|00003a10| 74 69 76 65 20 6d 6f 64 | 65 20 77 69 74 68 0a 58 |tive mod|e with.X|
|00003a20| 09 74 68 65 20 61 62 69 | 6c 69 74 79 20 74 6f 20 |.the abi|lity to |
|00003a30| 63 68 61 6e 67 65 20 73 | 6f 6d 65 20 6f 66 20 74 |change s|ome of t|
|00003a40| 68 65 20 72 75 6e 74 69 | 6d 65 20 70 61 72 61 6d |he runti|me param|
|00003a50| 65 74 65 72 73 20 28 68 | 6f 77 20 6d 61 6e 79 20 |eters (h|ow many |
|00003a60| 74 6f 0a 58 09 64 69 73 | 70 6c 61 79 2c 20 74 69 |to.X.dis|play, ti|
|00003a70| 6d 65 20 64 65 6c 61 79 | 2c 20 65 74 63 2e 29 20 |me delay|, etc.) |
|00003a80| 77 68 69 6c 65 20 74 6f | 70 20 69 73 20 72 75 6e |while to|p is run|
|00003a90| 6e 69 6e 67 2e 20 20 49 | 20 61 6c 73 6f 0a 58 09 |ning. I| also.X.|
|00003aa0| 69 6e 63 6f 72 70 6f 72 | 61 74 65 64 20 61 20 66 |incorpor|ated a f|
|00003ab0| 65 77 20 69 64 65 61 73 | 20 66 72 6f 6d 20 74 68 |ew ideas| from th|
|00003ac0| 65 20 6e 65 74 3a 20 20 | 63 6f 6e 74 72 6f 6c 20 |e net: |control |
|00003ad0| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00003ae0| 65 0a 58 09 63 6f 6d 6d | 61 6e 64 20 6e 61 6d 65 |e.X.comm|and name|
|00003af0| 20 61 72 65 20 72 65 70 | 6c 61 63 65 64 20 77 69 | are rep|laced wi|
|00003b00| 74 68 20 27 3f 27 3b 20 | 74 68 65 20 27 2d 53 27 |th '?'; |the '-S'|
|00003b10| 20 6f 70 74 69 6f 6e 20 | 6d 61 6b 65 73 20 74 68 | option |makes th|
|00003b20| 65 0a 58 09 73 77 61 70 | 70 65 72 20 61 6e 64 20 |e.X.swap|per and |
|00003b30| 70 61 67 65 72 20 76 69 | 73 69 62 6c 65 3b 20 6f |pager vi|sible; o|
|00003b40| 70 74 69 6f 6e 73 20 68 | 61 76 65 20 62 65 65 6e |ptions h|ave been|
|00003b50| 20 61 64 64 65 64 20 74 | 6f 20 63 6f 6e 74 72 6f | added t|o contro|
|00003b60| 6c 20 74 68 65 0a 58 09 | 6e 75 6d 62 65 72 20 6f |l the.X.|number o|
|00003b70| 66 20 64 69 73 70 6c 61 | 79 73 20 70 72 6f 64 75 |f displa|ys produ|
|00003b80| 63 65 64 20 28 74 68 69 | 73 20 6d 61 6b 65 73 20 |ced (thi|s makes |
|00003b90| 69 74 20 65 61 73 69 65 | 72 20 74 6f 20 6d 61 6b |it easie|r to mak|
|00003ba0| 65 0a 58 09 70 65 72 66 | 6f 72 6d 61 6e 63 65 20 |e.X.perf|ormance |
|00003bb0| 73 6e 61 70 73 68 6f 74 | 73 20 77 69 74 68 20 74 |snapshot|s with t|
|00003bc0| 6f 70 29 2e 20 20 49 20 | 68 61 76 65 20 61 6c 73 |op). I |have als|
|00003bd0| 6f 20 61 64 64 65 64 20 | 74 68 65 20 6e 6f 74 69 |o added |the noti|
|00003be0| 6f 6e 20 6f 66 0a 58 09 | 22 69 6e 66 69 6e 69 74 |on of.X.|"infinit|
|00003bf0| 65 22 20 76 61 6c 75 65 | 73 20 66 6f 72 20 6e 75 |e" value|s for nu|
|00003c00| 6d 62 65 72 20 6f 66 20 | 70 72 6f 63 65 73 73 65 |mber of |processe|
|00003c10| 73 20 61 6e 64 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s and nu|mber of |
|00003c20| 64 69 73 70 6c 61 79 73 | 2e 0a 58 09 49 20 66 69 |displays|..X.I fi|
|00003c30| 78 65 64 20 61 20 6c 6f | 6e 67 2d 73 74 61 6e 64 |xed a lo|ng-stand|
|00003c40| 69 6e 67 20 62 75 67 20 | 69 6e 20 74 68 65 20 75 |ing bug |in the u|
|00003c50| 69 64 20 74 6f 20 75 73 | 65 72 6e 61 6d 65 20 6d |id to us|ername m|
|00003c60| 61 70 70 69 6e 67 20 63 | 6f 64 65 0a 58 09 74 68 |apping c|ode.X.th|
|00003c70| 61 74 20 77 61 73 20 6f | 6e 6c 79 20 61 67 67 72 |at was o|nly aggr|
|00003c80| 61 76 61 74 65 64 20 6f | 6e 20 74 68 65 20 70 79 |avated o|n the py|
|00003c90| 72 61 6d 69 64 73 3a 20 | 20 69 74 20 77 61 73 20 |ramids: | it was |
|00003ca0| 61 6e 20 69 6c 6c 2d 64 | 65 66 69 6e 65 64 0a 58 |an ill-d|efined.X|
|00003cb0| 09 65 78 70 72 65 73 73 | 69 6f 6e 20 28 61 6b 69 |.express|ion (aki|
|00003cc0| 6e 20 74 6f 20 69 20 3d | 20 69 2b 2b 29 2e 20 20 |n to i =| i++). |
|00003cd0| 49 20 74 77 65 61 6b 65 | 64 20 74 68 65 20 70 72 |I tweake|d the pr|
|00003ce0| 6f 63 5f 63 6f 6d 70 61 | 72 20 72 6f 75 74 69 6e |oc_compa|r routin|
|00003cf0| 65 0a 58 09 66 6f 72 20 | 71 73 6f 72 74 20 73 6c |e.X.for |qsort sl|
|00003d00| 69 67 68 74 6c 79 20 73 | 6f 20 74 68 61 74 20 73 |ightly s|o that s|
|00003d10| 74 6f 70 70 65 64 20 70 | 72 6f 63 65 73 73 65 73 |topped p|rocesses|
|00003d20| 20 77 65 72 65 20 6d 6f | 72 65 20 6c 69 6b 65 6c | were mo|re likel|
|00003d30| 79 20 74 6f 0a 58 09 73 | 68 6f 77 20 75 70 2e 20 |y to.X.s|how up. |
|00003d40| 20 4d 61 6e 75 61 6c 20 | 70 61 67 65 20 77 61 73 | Manual |page was|
|00003d50| 20 75 70 64 61 74 65 64 | 20 74 6f 20 72 65 66 6c | updated| to refl|
|00003d60| 65 63 74 20 61 6c 6c 20 | 63 68 61 6e 67 65 73 0a |ect all |changes.|
|00003d70| 58 09 6e 6f 74 69 63 65 | 61 62 6c 65 20 74 6f 20 |X.notice|able to |
|00003d80| 74 68 65 20 75 73 65 72 | 2e 0a 58 0a 58 54 75 65 |the user|..X.XTue|
|00003d90| 20 4a 75 6c 20 20 31 20 | 31 39 38 36 20 2d 20 77 | Jul 1 |1986 - w|
|00003da0| 6e 6c 20 28 70 72 65 20 | 32 2e 30 20 2d 2d 20 31 |nl (pre |2.0 -- 1|
|00003db0| 2e 39 39 39 39 3f 29 0a | 58 09 49 6e 20 74 68 65 |.9999?).|X.In the|
|00003dc0| 20 70 72 6f 63 65 73 73 | 20 6f 66 20 6d 61 6a 6f | process| of majo|
|00003dd0| 72 20 72 65 76 61 6d 70 | 69 6e 67 20 6f 6e 20 74 |r revamp|ing on t|
|00003de0| 68 65 20 77 61 79 20 74 | 6f 20 76 65 72 73 69 6f |he way t|o versio|
|00003df0| 6e 20 32 2e 30 2e 0a 58 | 09 49 20 68 61 76 65 20 |n 2.0..X|.I have |
|00003e00| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 64 6f 6e 65 20 |complete|ly done |
|00003e10| 61 77 61 79 20 77 69 74 | 68 20 63 75 72 73 65 73 |away wit|h curses|
|00003e20| 20 62 79 20 61 64 64 69 | 6e 67 20 6d 79 20 6f 77 | by addi|ng my ow|
|00003e30| 6e 20 73 63 72 65 65 6e | 0a 58 09 6d 61 6e 61 67 |n screen|.X.manag|
|00003e40| 65 6d 65 6e 74 20 72 6f | 75 74 69 6e 65 73 20 69 |ement ro|utines i|
|00003e50| 6e 20 61 20 73 65 70 61 | 72 61 74 65 20 66 69 6c |n a sepa|rate fil|
|00003e60| 65 20 28 73 63 72 65 65 | 6e 2e 63 29 2e 20 20 54 |e (scree|n.c). T|
|00003e70| 68 65 20 72 61 74 69 6f | 6e 61 6c 65 0a 58 09 66 |he ratio|nale.X.f|
|00003e80| 6f 72 20 74 68 69 73 20 | 69 73 20 74 68 61 74 20 |or this |is that |
|00003e90| 74 6f 70 20 6b 6e 6f 77 | 73 20 61 20 77 68 6f 6c |top know|s a whol|
|00003ea0| 65 20 6c 6f 74 20 6d 6f | 72 65 20 61 62 6f 75 74 |e lot mo|re about|
|00003eb0| 20 77 68 61 74 20 69 73 | 20 61 6e 64 20 69 73 0a | what is| and is.|
|00003ec0| 58 09 6e 6f 74 20 72 65 | 64 75 6e 64 61 6e 74 20 |X.not re|dundant |
|00003ed0| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 20 61 6e |on the s|creen an|
|00003ee0| 64 20 63 61 6e 20 63 6f | 6d 70 61 72 65 20 73 69 |d can co|mpare si|
|00003ef0| 6d 70 6c 65 20 69 6e 74 | 65 67 65 72 20 76 61 6c |mple int|eger val|
|00003f00| 75 65 73 0a 58 09 77 68 | 65 72 65 20 63 75 72 73 |ues.X.wh|ere curs|
|00003f10| 65 73 20 77 6f 75 6c 64 | 20 68 61 76 65 20 74 6f |es would| have to|
|00003f20| 20 63 6f 6d 70 61 72 65 | 20 73 74 72 69 6e 67 73 | compare| strings|
|00003f30| 2e 20 20 54 68 69 73 20 | 68 61 73 20 74 75 72 6e |. This |has turn|
|00003f40| 65 64 20 6f 75 74 0a 58 | 09 74 6f 20 62 65 20 61 |ed out.X|.to be a|
|00003f50| 20 76 65 72 79 20 62 69 | 67 20 77 69 6e 20 73 70 | very bi|g win sp|
|00003f60| 65 65 64 2d 77 69 73 65 | 2e 20 20 54 68 65 20 70 |eed-wise|. The p|
|00003f70| 72 6f 63 5f 63 6f 6d 70 | 61 72 20 72 6f 75 74 69 |roc_comp|ar routi|
|00003f80| 6e 65 20 66 6f 72 0a 58 | 09 73 6f 72 74 69 6e 67 |ne for.X|.sorting|
|00003f90| 20 68 61 73 20 62 65 65 | 6e 20 72 65 77 72 69 74 | has bee|n rewrit|
|00003fa0| 74 65 6e 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 73 |ten to i|nclude s|
|00003fb0| 65 76 65 72 61 6c 20 6d | 6f 72 65 20 6b 65 79 73 |everal m|ore keys|
|00003fc0| 2e 20 20 49 0a 58 09 64 | 65 63 69 64 65 64 20 74 |. I.X.d|ecided t|
|00003fd0| 68 69 73 20 77 61 73 20 | 6e 65 63 65 73 73 61 72 |his was |necessar|
|00003fe0| 79 20 77 68 65 6e 20 49 | 20 6e 6f 74 69 63 65 64 |y when I| noticed|
|00003ff0| 20 74 68 61 74 20 74 68 | 65 20 22 74 6f 70 22 20 | that th|e "top" |
|00004000| 70 72 6f 63 65 73 73 0a | 58 09 69 74 73 65 6c 66 |process.|X.itself|
|00004010| 20 6b 65 70 74 20 64 69 | 73 61 70 70 65 61 72 69 | kept di|sappeari|
|00004020| 6e 67 20 6f 66 66 20 74 | 68 65 20 74 6f 70 20 31 |ng off t|he top 1|
|00004030| 30 20 6c 69 73 74 20 6f | 6e 20 61 20 53 75 6e 2d |0 list o|n a Sun-|
|00004040| 33 2e 20 20 41 6c 6c 20 | 74 68 65 0a 58 09 70 72 |3. All |the.X.pr|
|00004050| 6f 63 65 73 73 65 73 20 | 68 61 64 20 74 68 65 20 |ocesses |had the |
|00004060| 73 61 6d 65 20 70 65 72 | 63 65 6e 74 61 67 65 20 |same per|centage |
|00004070| 28 30 25 29 20 61 6e 64 | 20 74 68 65 20 73 6f 72 |(0%) and| the sor|
|00004080| 74 20 77 61 73 6e 27 74 | 20 72 65 61 6c 6c 79 0a |t wasn't| really.|
|00004090| 58 09 64 6f 69 6e 67 20 | 61 6e 79 74 68 69 6e 67 |X.doing |anything|
|000040a0| 20 77 6f 72 74 68 77 68 | 69 6c 65 2e 20 20 49 20 | worthwh|ile. I |
|000040b0| 63 68 61 6e 67 65 64 20 | 74 68 65 20 65 78 70 72 |changed |the expr|
|000040c0| 65 73 73 69 6f 6e 20 74 | 68 61 74 20 63 6f 6d 70 |ession t|hat comp|
|000040d0| 75 74 65 73 0a 58 09 6d | 65 6d 6f 72 79 20 75 73 |utes.X.m|emory us|
|000040e0| 61 67 65 20 74 6f 20 75 | 73 65 20 74 68 65 20 63 |age to u|se the c|
|000040f0| 74 6f 62 20 6d 61 63 72 | 6f 20 69 6e 73 74 65 61 |tob macr|o instea|
|00004100| 64 20 6f 66 20 6a 75 73 | 74 20 61 73 73 75 6d 69 |d of jus|t assumi|
|00004110| 6e 67 20 74 68 61 74 0a | 58 09 70 61 67 65 73 20 |ng that.|X.pages |
|00004120| 77 65 72 65 20 35 31 32 | 20 62 79 74 65 73 2e 20 |were 512| bytes. |
|00004130| 20 4d 6f 72 65 20 77 6f | 72 6b 20 73 74 69 6c 6c | More wo|rk still|
|00004140| 20 6e 65 65 64 73 20 74 | 6f 20 62 65 20 64 6f 6e | needs t|o be don|
|00004150| 65 20 62 65 66 6f 72 65 | 0a 58 09 74 68 69 73 20 |e before|.X.this |
|00004160| 76 65 72 73 69 6f 6e 20 | 69 73 20 75 73 61 62 6c |version |is usabl|
|00004170| 65 2e 20 20 49 20 63 68 | 61 6e 67 65 64 20 6f 70 |e. I ch|anged op|
|00004180| 74 69 6f 6e 73 2d 70 72 | 6f 63 65 73 73 69 6e 67 |tions-pr|ocessing|
|00004190| 20 74 6f 20 75 73 65 0a | 58 09 67 65 74 6f 70 74 | to use.|X.getopt|
|000041a0| 20 61 6e 64 20 61 64 64 | 65 64 20 61 70 70 72 6f | and add|ed appro|
|000041b0| 70 72 69 61 74 65 20 69 | 6e 63 61 6e 74 61 74 69 |priate i|ncantati|
|000041c0| 6f 6e 73 20 74 6f 20 74 | 68 65 20 4d 61 6b 65 66 |ons to t|he Makef|
|000041d0| 69 6c 65 2e 0a 58 0a 58 | 57 65 64 20 46 65 62 20 |ile..X.X|Wed Feb |
|000041e0| 32 30 20 31 39 38 35 20 | 2d 20 77 6e 6c 20 28 73 |20 1985 |- wnl (s|
|000041f0| 74 69 6c 6c 20 31 2e 38 | 29 0a 58 09 50 75 74 20 |till 1.8|).X.Put |
|00004200| 69 6e 20 74 68 65 20 69 | 66 64 65 66 20 46 4f 55 |in the i|fdef FOU|
|00004210| 52 5f 4f 4e 45 20 73 74 | 61 74 65 6d 65 6e 74 73 |R_ONE st|atements|
|00004220| 20 74 6f 20 6d 61 6b 65 | 20 74 6f 70 20 73 74 69 | to make| top sti|
|00004230| 6c 6c 20 63 6f 6d 70 69 | 6c 61 62 6c 65 0a 58 09 |ll compi|lable.X.|
|00004240| 6f 6e 20 61 20 34 2e 31 | 20 73 79 73 74 65 6d 2e |on a 4.1| system.|
|00004250| 20 20 41 70 70 61 72 65 | 6e 74 6c 79 2c 20 74 68 | Appare|ntly, th|
|00004260| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 75 73 65 |ere are |some use|
|00004270| 72 73 20 6f 75 74 20 74 | 68 65 72 65 20 74 68 61 |rs out t|here tha|
|00004280| 74 0a 58 09 6e 65 65 64 | 20 74 68 69 73 20 66 75 |t.X.need| this fu|
|00004290| 6e 63 74 69 6f 6e 61 6c | 69 74 79 2e 20 20 4f 68 |nctional|ity. Oh|
|000042a0| 20 77 65 6c 6c 2e 20 20 | 49 20 64 6f 6e 27 74 20 | well. |I don't |
|000042b0| 67 75 61 72 61 6e 74 65 | 65 20 61 6e 79 20 6f 66 |guarante|e any of|
|000042c0| 20 69 74 2c 0a 58 09 73 | 69 6e 63 65 20 49 20 63 | it,.X.s|ince I c|
|000042d0| 61 6e 27 74 20 74 65 73 | 74 20 69 74 2e 20 20 4d |an't tes|t it. M|
|000042e0| 61 64 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |ade appr|opriate |
|000042f0| 63 68 61 6e 67 65 73 20 | 74 6f 20 52 45 41 44 4d |changes |to READM|
|00004300| 45 20 61 6e 64 0a 58 09 | 66 69 6e 61 6c 20 69 6e |E and.X.|final in|
|00004310| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 72 65 6c 61 74 |stallati|on relat|
|00004320| 65 64 20 63 68 61 6e 67 | 65 73 20 74 6f 20 4d 61 |ed chang|es to Ma|
|00004330| 6b 65 66 69 6c 65 2e 0a | 58 0a 58 53 61 74 20 46 |kefile..|X.XSat F|
|00004340| 65 62 20 20 32 20 31 39 | 38 35 20 2d 20 77 6e 6c |eb 2 19|85 - wnl|
|00004350| 20 28 31 2e 38 29 0a 58 | 09 52 65 6d 6f 76 65 64 | (1.8).X|.Removed|
|00004360| 20 61 6c 6c 20 74 68 65 | 20 69 66 64 65 66 20 46 | all the| ifdef F|
|00004370| 4f 55 52 5f 54 57 4f 20 | 73 74 61 74 65 6d 65 6e |OUR_TWO |statemen|
|00004380| 74 73 20 61 6e 64 20 6d | 61 64 65 20 22 74 6f 70 |ts and m|ade "top|
|00004390| 22 20 69 6e 74 6f 20 61 | 0a 58 09 34 2e 32 20 6f |" into a|.X.4.2 o|
|000043a0| 6e 6c 79 20 70 72 6f 67 | 72 61 6d 2e 20 20 49 66 |nly prog|ram. If|
|000043b0| 20 73 6f 6d 65 6f 6e 65 | 20 72 65 61 6c 6c 79 20 | someone| really |
|000043c0| 77 61 6e 74 73 20 74 6f | 20 73 74 69 6c 6c 20 72 |wants to| still r|
|000043d0| 75 6e 20 69 74 20 6f 6e | 20 34 2e 31 2c 0a 58 09 |un it on| 4.1,.X.|
|000043e0| 74 68 65 6e 20 74 68 65 | 79 20 63 61 6e 20 64 6f |then the|y can do|
|000043f0| 20 61 6c 6c 20 74 68 65 | 20 77 6f 72 6b 2e 20 20 | all the| work. |
|00004400| 57 65 20 64 6f 6e 27 74 | 20 68 61 76 65 20 61 20 |We don't| have a |
|00004410| 34 2e 31 20 6d 61 63 68 | 69 6e 65 0a 58 09 61 6e |4.1 mach|ine.X.an|
|00004420| 79 6d 6f 72 65 2c 20 73 | 6f 20 49 20 64 6f 6e 27 |ymore, s|o I don'|
|00004430| 74 20 65 76 65 6e 20 6b | 6e 6f 77 20 69 66 20 74 |t even k|now if t|
|00004440| 68 65 20 74 68 69 6e 67 | 20 73 74 69 6c 6c 20 77 |he thing| still w|
|00004450| 6f 72 6b 73 20 75 6e 64 | 65 72 20 34 2e 31 2e 0a |orks und|er 4.1..|
|00004460| 58 09 43 6c 65 61 6e 65 | 64 20 75 70 20 74 68 65 |X.Cleane|d up the|
|00004470| 20 4d 61 6b 65 66 69 6c | 65 20 61 6e 64 20 74 68 | Makefil|e and th|
|00004480| 65 20 52 45 41 44 4d 45 | 2e 20 20 41 64 64 65 64 |e README|. Added|
|00004490| 20 69 6e 73 74 61 6c 6c | 61 74 69 6f 6e 20 72 75 | install|ation ru|
|000044a0| 6c 65 73 0a 58 09 74 6f | 20 74 68 65 20 4d 61 6b |les.X.to| the Mak|
|000044b0| 65 66 69 6c 65 2c 20 61 | 73 20 72 65 71 75 65 73 |efile, a|s reques|
|000044c0| 74 65 64 20 62 79 20 73 | 65 76 65 72 61 6c 20 73 |ted by s|everal s|
|000044d0| 69 74 65 73 2e 20 20 46 | 69 78 65 64 20 61 20 76 |ites. F|ixed a v|
|000044e0| 65 72 79 0a 58 09 6f 62 | 73 63 75 72 65 20 64 69 |ery.X.ob|scure di|
|000044f0| 76 69 64 65 2d 62 79 2d | 7a 65 72 6f 20 62 75 67 |vide-by-|zero bug|
|00004500| 2e 20 20 41 64 64 65 64 | 20 61 20 73 65 63 6f 6e |. Added| a secon|
|00004510| 64 20 22 6b 65 79 22 20 | 74 6f 20 74 68 65 20 71 |d "key" |to the q|
|00004520| 73 6f 72 74 0a 58 09 63 | 6f 6d 70 61 72 69 73 6f |sort.X.c|ompariso|
|00004530| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 28 70 72 6f 63 |n functi|on (proc|
|00004540| 5f 63 6f 6d 70 61 72 29 | 20 73 6f 20 74 68 61 74 |_compar)| so that|
|00004550| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 73 20 61 72 65 | compari|sons are|
|00004560| 20 62 61 73 65 64 20 6f | 6e 0a 58 09 63 70 75 20 | based o|n.X.cpu |
|00004570| 74 69 63 6b 73 20 69 66 | 20 74 68 65 20 70 65 72 |ticks if| the per|
|00004580| 63 65 6e 74 61 67 65 73 | 20 61 72 65 20 65 71 75 |centages| are equ|
|00004590| 61 6c 20 28 70 72 6f 76 | 69 64 65 64 20 62 79 20 |al (prov|ided by |
|000045a0| 4a 6f 6e 61 74 68 6f 6e | 0a 58 09 46 65 69 62 65 |Jonathon|.X.Feibe|
|000045b0| 72 20 61 74 20 53 75 6e | 29 2e 0a 58 0a 58 54 75 |r at Sun|)..X.XTu|
|000045c0| 65 20 44 65 63 20 31 31 | 20 31 39 38 34 20 2d 20 |e Dec 11| 1984 - |
|000045d0| 77 6e 6c 20 28 31 2e 37 | 29 0a 58 09 41 64 64 65 |wnl (1.7|).X.Adde|
|000045e0| 64 20 74 68 65 20 76 69 | 72 74 75 61 6c 20 61 6e |d the vi|rtual an|
|000045f0| 64 20 72 65 61 6c 20 6d | 65 6d 6f 72 79 20 73 74 |d real m|emory st|
|00004600| 61 74 75 73 20 6c 69 6e | 65 20 74 6f 20 74 68 65 |atus lin|e to the|
|00004610| 20 68 65 61 64 65 72 20 | 61 72 65 61 0a 58 09 28 | header |area.X.(|
|00004620| 70 72 6f 76 69 64 65 64 | 20 62 79 20 4a 6f 6e 61 |provided| by Jona|
|00004630| 74 68 6f 6e 20 46 65 69 | 62 65 72 20 61 74 20 53 |thon Fei|ber at S|
|00004640| 75 6e 29 0a 58 0a 58 54 | 75 65 20 4e 6f 76 20 32 |un).X.XT|ue Nov 2|
|00004650| 30 20 31 39 38 34 20 2d | 20 77 6e 6c 20 28 31 2e |0 1984 -| wnl (1.|
|00004660| 36 29 0a 58 09 41 64 64 | 65 64 20 61 6e 20 22 65 |6).X.Add|ed an "e|
|00004670| 78 69 74 22 20 69 66 20 | 73 62 72 6b 27 73 20 66 |xit" if |sbrk's f|
|00004680| 61 69 6c 2e 20 20 41 64 | 64 65 64 20 63 68 61 6e |ail. Ad|ded chan|
|00004690| 67 65 73 20 66 72 6f 6d | 20 4a 6f 6e 61 74 68 6f |ges from| Jonatho|
|000046a0| 6e 0a 58 09 46 65 69 62 | 65 72 20 61 74 20 53 75 |n.X.Feib|er at Su|
|000046b0| 6e 3a 20 20 69 66 64 65 | 66 20 53 55 4e 20 74 6f |n: ifde|f SUN to|
|000046c0| 20 6d 61 6b 65 20 74 6f | 70 20 77 6f 72 6b 20 6f | make to|p work o|
|000046d0| 6e 20 53 75 6e 73 20 28 | 74 68 65 79 20 64 6f 6e |n Suns (|they don|
|000046e0| 27 74 20 75 73 65 0a 58 | 09 64 6f 75 62 6c 65 73 |'t use.X|.doubles|
|000046f0| 20 69 6e 20 74 68 65 20 | 70 72 6f 63 20 73 74 72 | in the |proc str|
|00004700| 75 63 74 75 72 65 29 2c | 20 72 65 67 69 73 74 65 |ucture),| registe|
|00004710| 72 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 73 2c 20 |r declar|ations, |
|00004720| 63 68 65 63 6b 20 66 6f | 72 0a 58 09 67 65 74 74 |check fo|r.X.gett|
|00004730| 69 6e 67 20 61 20 75 73 | 65 72 20 73 74 72 75 63 |ing a us|er struc|
|00004740| 74 75 72 65 20 74 68 61 | 74 20 68 61 73 20 64 69 |ture tha|t has di|
|00004750| 73 61 70 70 65 61 72 65 | 64 20 73 69 6e 63 65 20 |sappeare|d since |
|00004760| 74 68 65 20 70 72 6f 63 | 20 61 72 72 61 79 0a 58 |the proc| array.X|
|00004770| 09 77 61 73 20 72 65 61 | 64 20 28 69 74 20 75 73 |.was rea|d (it us|
|00004780| 65 64 20 74 6f 20 64 69 | 65 2c 20 6e 6f 77 20 69 |ed to di|e, now i|
|00004790| 74 20 6a 75 73 74 20 73 | 68 6f 77 73 20 74 68 65 |t just s|hows the|
|000047a0| 20 70 72 6f 63 65 73 73 | 20 61 73 20 73 77 61 70 | process| as swap|
|000047b0| 70 65 64 29 2e 0a 58 0a | 58 54 75 65 20 4e 6f 76 |ped)..X.|XTue Nov|
|000047c0| 20 31 33 20 31 39 38 34 | 20 2d 20 77 6e 6c 20 28 | 13 1984| - wnl (|
|000047d0| 31 2e 35 29 0a 58 09 49 | 66 20 74 68 65 20 6e 75 |1.5).X.I|f the nu|
|000047e0| 6d 62 65 72 20 6f 66 20 | 64 69 73 70 6c 61 79 61 |mber of |displaya|
|000047f0| 62 6c 65 20 70 72 6f 63 | 65 73 73 65 73 20 28 22 |ble proc|esses ("|
|00004800| 61 63 74 69 76 65 5f 70 | 72 6f 63 73 22 29 20 77 |active_p|rocs") w|
|00004810| 61 73 20 6c 65 73 73 0a | 58 09 74 68 61 6e 20 74 |as less.|X.than t|
|00004820| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 72 65 71 |he numbe|r of req|
|00004830| 75 65 73 74 65 64 20 70 | 72 6f 63 65 73 73 65 73 |uested p|rocesses|
|00004840| 20 28 22 74 6f 70 6e 22 | 29 2c 20 74 6f 70 20 77 | ("topn"|), top w|
|00004850| 6f 75 6c 64 0a 58 09 73 | 65 67 6d 65 6e 74 61 74 |ould.X.s|egmentat|
|00004860| 69 6f 6e 20 66 61 75 6c | 74 2e 20 20 54 68 69 73 |ion faul|t. This|
|00004870| 20 62 75 67 20 68 61 73 | 20 62 65 65 6e 20 66 69 | bug has| been fi|
|00004880| 78 65 64 2e 20 20 54 68 | 61 6e 6b 73 20 74 6f 20 |xed. Th|anks to |
|00004890| 50 72 65 6e 74 69 73 73 | 0a 58 09 52 69 64 64 6c |Prentiss|.X.Riddl|
|000048a0| 65 20 61 74 20 75 74 2d | 73 61 6c 6c 79 20 66 6f |e at ut-|sally fo|
|000048b0| 72 20 70 6f 69 6e 74 69 | 6e 67 20 6f 75 74 20 74 |r pointi|ng out t|
|000048c0| 68 65 20 65 78 69 73 74 | 65 6e 63 65 20 6f 66 20 |he exist|ence of |
|000048d0| 74 68 69 73 20 62 75 67 | 2e 0a 58 0a 58 54 75 65 |this bug|..X.XTue|
|000048e0| 20 4f 63 74 20 32 33 20 | 31 39 38 34 20 2d 20 77 | Oct 23 |1984 - w|
|000048f0| 6e 6c 20 28 31 2e 34 29 | 0a 58 09 46 69 6e 61 6c |nl (1.4)|.X.Final|
|00004900| 6c 79 20 66 69 78 65 64 | 20 74 68 65 20 68 61 73 |ly fixed| the has|
|00004910| 68 20 74 61 62 6c 65 20 | 62 75 67 20 74 68 61 74 |h table |bug that|
|00004920| 20 63 61 75 73 65 64 20 | 70 72 6f 63 65 73 73 65 | caused |processe|
|00004930| 73 20 6f 77 6e 65 64 20 | 62 79 0a 58 09 72 6f 6f |s owned |by.X.roo|
|00004940| 74 20 74 6f 20 73 6f 6d | 65 74 69 6d 65 73 20 61 |t to som|etimes a|
|00004950| 70 70 65 61 72 20 77 69 | 74 68 20 65 69 74 68 65 |ppear wi|th eithe|
|00004960| 72 20 6e 6f 20 6e 61 6d | 65 20 6f 72 20 61 20 64 |r no nam|e or a d|
|00004970| 69 66 66 65 72 65 6e 74 | 20 6e 61 6d 65 0a 58 09 |ifferent| name.X.|
|00004980| 74 68 61 74 20 68 61 64 | 20 55 49 44 20 30 20 28 |that had| UID 0 (|
|00004990| 73 75 63 68 20 61 73 20 | 22 6f 70 65 72 61 74 6f |such as |"operato|
|000049a0| 72 22 29 2e 20 20 52 65 | 6d 6f 76 65 64 20 61 6c |r"). Re|moved al|
|000049b0| 6c 20 74 68 65 20 69 66 | 64 65 66 20 44 45 42 55 |l the if|def DEBU|
|000049c0| 47 0a 58 09 62 6c 6f 63 | 6b 73 20 74 6f 20 6d 61 |G.X.bloc|ks to ma|
|000049d0| 6b 65 20 74 6f 70 20 72 | 65 61 64 79 20 66 6f 72 |ke top r|eady for|
|000049e0| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 74 6f | distrib|ution to|
|000049f0| 20 74 68 65 20 72 65 61 | 6c 20 77 6f 72 6c 64 2e | the rea|l world.|
|00004a00| 0a 58 0a 58 53 75 6e 20 | 41 70 72 20 20 38 20 31 |.X.XSun |Apr 8 1|
|00004a10| 39 38 34 20 2d 20 77 6e | 6c 20 28 73 74 69 6c 6c |984 - wn|l (still|
|00004a20| 20 31 2e 33 29 0a 58 09 | 4d 61 64 65 20 73 6f 6d | 1.3).X.|Made som|
|00004a30| 65 20 73 6c 69 67 68 74 | 20 63 68 61 6e 67 65 73 |e slight| changes|
|00004a40| 20 74 6f 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 | to the |display |
|00004a50| 66 6f 72 6d 61 74 2e 20 | 20 49 74 20 6e 6f 77 20 |format. | It now |
|00004a60| 6c 6f 6f 6b 73 20 6d 6f | 72 65 0a 58 09 61 65 73 |looks mo|re.X.aes|
|00004a70| 74 68 65 74 69 63 61 6c | 6c 79 20 70 6c 65 61 73 |thetical|ly pleas|
|00004a80| 69 6e 67 2e 20 20 41 64 | 64 65 64 20 73 6f 6d 65 |ing. Ad|ded some|
|00004a90| 20 70 72 65 70 72 6f 63 | 65 73 73 6f 72 20 63 6f | preproc|essor co|
|00004aa0| 6e 73 74 61 6e 74 73 20 | 73 6f 20 74 68 61 74 0a |nstants |so that.|
|00004ab0| 58 09 74 68 65 20 74 77 | 6f 20 64 65 66 61 75 6c |X.the tw|o defaul|
|00004ac0| 74 73 20 28 6e 75 6d 62 | 65 72 20 6f 66 20 70 72 |ts (numb|er of pr|
|00004ad0| 6f 63 65 73 73 65 73 20 | 61 6e 64 20 73 65 63 6f |ocesses |and seco|
|00004ae0| 6e 64 73 20 6f 66 20 64 | 65 6c 61 79 29 20 65 61 |nds of d|elay) ea|
|00004af0| 73 69 65 72 0a 58 09 74 | 6f 20 63 68 61 6e 67 65 |sier.X.t|o change|
|00004b00| 2e 0a 58 0a 58 54 68 75 | 20 41 70 72 20 20 35 20 |..X.XThu| Apr 5 |
|00004b10| 31 39 38 34 20 2d 20 77 | 6e 6c 20 28 31 2e 33 29 |1984 - w|nl (1.3)|
|00004b20| 0a 58 09 43 68 61 6e 67 | 65 64 20 74 68 65 20 6f |.X.Chang|ed the o|
|00004b30| 72 64 65 72 20 69 6e 20 | 77 68 69 63 68 20 74 68 |rder in |which th|
|00004b40| 69 6e 67 73 20 61 72 65 | 20 64 6f 6e 65 20 61 74 |ings are| done at|
|00004b50| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00004b60| 74 69 6d 65 2e 0a 58 09 | 54 68 69 73 20 77 61 79 |time..X.|This way|
|00004b70| 2c 20 69 66 20 61 6e 20 | 65 72 72 6f 72 20 6f 63 |, if an |error oc|
|00004b80| 63 75 72 73 20 62 65 66 | 6f 72 65 20 73 74 61 72 |curs bef|ore star|
|00004b90| 74 69 6e 67 20 74 68 65 | 20 6d 61 69 6e 20 6c 6f |ting the| main lo|
|00004ba0| 6f 70 2c 20 63 75 72 73 | 65 73 0a 58 09 77 69 6c |op, curs|es.X.wil|
|00004bb0| 6c 20 6e 65 76 65 72 20 | 67 65 74 20 73 74 61 72 |l never |get star|
|00004bc0| 74 65 64 2e 20 20 41 6c | 73 6f 20 63 68 61 6e 67 |ted. Al|so chang|
|00004bd0| 65 64 20 6f 74 68 65 72 | 20 65 72 72 6f 72 20 68 |ed other| error h|
|00004be0| 61 6e 64 6c 65 72 73 20 | 73 6f 20 74 68 61 74 0a |andlers |so that.|
|00004bf0| 58 09 65 6e 64 77 69 6e | 28 29 20 69 73 20 63 61 |X.endwin|() is ca|
|00004c00| 6c 6c 65 64 20 62 65 66 | 6f 72 65 20 61 6e 79 20 |lled bef|ore any |
|00004c10| 66 6c 61 76 6f 72 20 6f | 66 20 65 78 69 74 2e 20 |flavor o|f exit. |
|00004c20| 20 53 70 65 63 69 66 79 | 69 6e 67 20 61 20 6e 75 | Specify|ing a nu|
|00004c30| 6d 62 65 72 0a 58 09 6f | 66 20 70 72 6f 63 65 73 |mber.X.o|f proces|
|00004c40| 73 65 73 20 74 68 61 74 | 20 69 73 20 6d 6f 72 65 |ses that| is more|
|00004c50| 20 74 68 61 6e 20 74 68 | 65 20 73 63 72 65 65 6e | than th|e screen|
|00004c60| 20 63 61 6e 20 68 61 6e | 64 6c 65 20 69 73 20 6e | can han|dle is n|
|00004c70| 6f 20 6c 6f 6e 67 65 72 | 0a 58 09 66 61 74 61 6c |o longer|.X.fatal|
|00004c80| 2e 20 20 49 74 20 64 69 | 73 70 6c 61 79 73 20 61 |. It di|splays a|
|00004c90| 20 77 61 72 6e 69 6e 67 | 20 6d 65 73 73 61 67 65 | warning| message|
|00004ca0| 20 61 6e 64 20 70 72 65 | 74 65 6e 64 73 20 74 68 | and pre|tends th|
|00004cb0| 65 20 75 73 65 72 0a 58 | 09 73 70 65 63 69 66 69 |e user.X|.specifi|
|00004cc0| 65 64 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 66 |ed the m|aximum f|
|00004cd0| 6f 72 20 74 68 65 20 73 | 63 72 65 65 6e 2e 20 20 |or the s|creen. |
|00004ce0| 46 69 6e 61 6c 6c 79 20 | 63 75 72 65 64 20 61 6c |Finally |cured al|
|00004cf0| 6c 20 74 68 65 20 54 53 | 54 50 0a 58 09 62 6c 75 |l the TS|TP.X.blu|
|00004d00| 65 73 20 28 77 65 6c 6c | 2c 20 61 6c 6d 6f 73 74 |es (well|, almost|
|00004d10| 20 61 6c 6c 29 2e 20 20 | 49 20 72 65 6d 6f 76 65 | all). |I remove|
|00004d20| 64 20 6d 79 20 54 53 54 | 50 20 68 61 6e 64 6c 65 |d my TST|P handle|
|00004d30| 72 20 61 6e 64 20 63 6f | 6e 76 69 6e 63 65 64 0a |r and co|nvinced.|
|00004d40| 58 09 74 68 65 20 73 79 | 73 74 65 6d 20 74 6f 20 |X.the sy|stem to |
|00004d50| 61 6c 77 61 79 73 20 75 | 73 65 20 74 68 65 20 6f |always u|se the o|
|00004d60| 6e 65 20 74 68 61 74 20 | 63 75 72 73 65 73 20 73 |ne that |curses s|
|00004d70| 65 74 73 20 75 70 2e 20 | 20 54 75 72 6e 73 20 6f |ets up. | Turns o|
|00004d80| 75 74 0a 58 09 74 68 61 | 74 20 22 73 6c 65 65 70 |ut.X.tha|t "sleep|
|00004d90| 22 20 77 61 73 20 73 74 | 65 70 70 69 6e 67 20 61 |" was st|epping a|
|00004da0| 6c 6c 20 6f 76 65 72 20 | 69 74 20 64 75 72 69 6e |ll over |it durin|
|00004db0| 67 20 61 20 70 61 75 73 | 65 2e 20 20 53 6f 2c 20 |g a paus|e. So, |
|00004dc0| 49 20 64 6f 6e 27 74 0a | 58 09 75 73 65 20 73 6c |I don't.|X.use sl|
|00004dd0| 65 65 70 20 61 6e 79 6d | 6f 72 65 2e 20 20 54 68 |eep anym|ore. Th|
|00004de0| 65 20 6f 6e 6c 79 20 70 | 72 6f 62 6c 65 6d 20 74 |e only p|roblem t|
|00004df0| 68 61 74 20 72 65 6d 61 | 69 6e 73 20 77 69 74 68 |hat rema|ins with|
|00004e00| 20 69 74 20 6e 6f 77 20 | 69 73 0a 58 09 72 65 64 | it now |is.X.red|
|00004e10| 72 61 77 69 6e 67 20 74 | 68 65 20 6f 6c 64 20 64 |rawing t|he old d|
|00004e20| 69 73 70 6c 61 79 20 62 | 65 66 6f 72 65 20 75 70 |isplay b|efore up|
|00004e30| 64 61 74 69 6e 67 20 69 | 74 20 61 66 74 65 72 20 |dating i|t after |
|00004e40| 61 20 70 61 75 73 65 2e | 0a 58 0a 58 54 75 65 20 |a pause.|.X.XTue |
|00004e50| 41 70 72 20 20 33 20 31 | 39 38 34 20 2d 20 77 6e |Apr 3 1|984 - wn|
|00004e60| 6c 20 28 66 72 6f 6d 20 | 31 2e 30 20 74 6f 20 31 |l (from |1.0 to 1|
|00004e70| 2e 32 29 0a 58 09 49 20 | 63 68 61 6e 67 65 64 20 |.2).X.I |changed |
|00004e80| 74 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |the form|at of th|
|00004e90| 65 20 54 49 4d 45 20 63 | 6f 6c 75 6d 6e 20 66 72 |e TIME c|olumn fr|
|00004ea0| 6f 6d 20 6a 75 73 74 20 | 22 73 65 63 6f 6e 64 73 |om just |"seconds|
|00004eb0| 22 20 74 6f 0a 58 09 22 | 6d 69 6e 75 74 65 73 3a |" to.X."|minutes:|
|00004ec0| 73 65 63 6f 6e 64 73 22 | 2e 20 20 49 20 61 6c 73 |seconds"|. I als|
|00004ed0| 6f 20 6d 61 64 65 20 70 | 61 75 73 69 6e 67 20 77 |o made p|ausing w|
|00004ee0| 6f 72 6b 20 63 6f 72 72 | 65 63 74 6c 79 2e 20 20 |ork corr|ectly. |
|00004ef0| 53 63 72 65 65 6e 0a 58 | 09 72 65 64 72 61 77 73 |Screen.X|.redraws|
|00004f00| 20 77 69 74 68 20 61 6e | 20 75 70 20 74 6f 20 64 | with an| up to d|
|00004f10| 61 74 65 20 64 69 73 70 | 6c 61 79 2e 20 20 46 6f |ate disp|lay. Fo|
|00004f20| 72 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |r compat|ibility |
|00004f30| 77 69 74 68 20 34 2e 32 | 2c 20 49 0a 58 09 63 68 |with 4.2|, I.X.ch|
|00004f40| 61 6e 67 65 64 20 74 68 | 65 20 6e 61 6d 65 20 6f |anged th|e name o|
|00004f50| 66 20 74 68 65 20 22 7a | 65 72 6f 22 20 66 75 6e |f the "z|ero" fun|
|00004f60| 63 74 69 6f 6e 20 74 6f | 20 22 62 7a 65 72 6f 22 |ction to| "bzero"|
|00004f70| 2e 20 20 54 68 65 20 6d | 61 6b 65 66 69 6c 65 0a |. The m|akefile.|
|00004f80| 58 09 68 61 73 20 62 65 | 65 6e 20 61 6c 74 65 72 |X.has be|en alter|
|00004f90| 65 64 20 74 6f 20 68 61 | 6e 64 6c 65 20 76 65 72 |ed to ha|ndle ver|
|00004fa0| 73 69 6f 6e 73 20 66 6f | 72 20 34 2e 31 20 61 6e |sions fo|r 4.1 an|
|00004fb0| 64 20 34 2e 32 2c 20 61 | 6e 64 20 52 45 41 44 4d |d 4.2, a|nd READM|
|00004fc0| 45 0a 58 09 68 61 73 20 | 62 65 65 6e 20 75 70 64 |E.X.has |been upd|
|00004fd0| 61 74 65 64 20 74 6f 20 | 72 65 66 6c 65 63 74 20 |ated to |reflect |
|00004fe0| 74 68 65 73 65 20 72 65 | 63 65 6e 74 20 63 68 61 |these re|cent cha|
|00004ff0| 6e 67 65 73 2e 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |nges..EN|D_OF_FIL|
|00005000| 45 0a 69 66 20 74 65 73 | 74 20 31 38 39 39 31 20 |E.if tes|t 18991 |
|00005010| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 43 68 61 |-ne `wc |-c <'Cha|
|00005020| 6e 67 65 73 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |nges'`; |then. |
|00005030| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 43 | echo sh|ar: \"'C|
|00005040| 68 61 6e 67 65 73 27 5c | 22 20 75 6e 70 61 63 6b |hanges'\|" unpack|
|00005050| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00005060| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00005070| 27 43 68 61 6e 67 65 73 | 27 0a 66 69 0a 69 66 20 |'Changes|'.fi.if |
|00005080| 74 65 73 74 20 2d 66 20 | 27 6d 61 63 68 69 6e 65 |test -f |'machine|
|00005090| 2f 6d 5f 75 6c 74 72 69 | 78 34 2e 63 27 20 2d 61 |/m_ultri|x4.c' -a|
|000050a0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|000050b0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000050c0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000050d0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000050e0| 69 6c 65 20 5c 22 27 6d | 61 63 68 69 6e 65 2f 6d |ile \"'m|achine/m|
|000050f0| 5f 75 6c 74 72 69 78 34 | 2e 63 27 5c 22 0a 65 6c |_ultrix4|.c'\".el|
|00005100| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|00005110| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 6d 61 63 68 |tracting| \"'mach|
|00005120| 69 6e 65 2f 6d 5f 75 6c | 74 72 69 78 34 2e 63 27 |ine/m_ul|trix4.c'|
|00005130| 5c 22 20 5c 28 31 39 32 | 33 38 20 63 68 61 72 61 |\" \(192|38 chara|
|00005140| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00005150| 58 2f 2f 22 20 3e 27 6d | 61 63 68 69 6e 65 2f 6d |X//" >'m|achine/m|
|00005160| 5f 75 6c 74 72 69 78 34 | 2e 63 27 20 3c 3c 27 45 |_ultrix4|.c' <<'E|
|00005170| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 0a |ND_OF_FI|LE'.X/*.|
|00005180| 58 20 2a 20 74 6f 70 20 | 2d 20 61 20 74 6f 70 20 |X * top |- a top |
|00005190| 75 73 65 72 73 20 64 69 | 73 70 6c 61 79 20 66 6f |users di|splay fo|
|000051a0| 72 20 55 6e 69 78 0a 58 | 20 2a 0a 58 20 2a 20 53 |r Unix.X| *.X * S|
|000051b0| 59 4e 4f 50 53 49 53 3a | 20 20 61 6e 79 20 44 45 |YNOPSIS:| any DE|
|000051c0| 43 20 72 75 6e 6e 69 6e | 67 20 55 4c 54 52 49 58 |C runnin|g ULTRIX|
|000051d0| 20 56 34 2e 32 20 6f 72 | 20 6c 61 74 65 72 0a 58 | V4.2 or| later.X|
|000051e0| 20 2a 0a 58 20 2a 20 44 | 45 53 43 52 49 50 54 49 | *.X * D|ESCRIPTI|
|000051f0| 4f 4e 3a 0a 58 20 2a 20 | 54 68 69 73 20 69 73 20 |ON:.X * |This is |
|00005200| 74 68 65 20 6d 61 63 68 | 69 6e 65 2d 64 65 70 65 |the mach|ine-depe|
|00005210| 6e 64 65 6e 74 20 6d 6f | 64 75 6c 65 20 66 6f 72 |ndent mo|dule for|
|00005220| 20 55 4c 54 52 49 58 20 | 56 34 2e 32 0a 58 20 2a | ULTRIX |V4.2.X *|
|00005230| 20 49 74 20 73 68 6f 75 | 6c 64 20 77 6f 72 6b 20 | It shou|ld work |
|00005240| 6f 6e 20 61 6e 79 20 44 | 45 43 20 72 75 6e 6e 69 |on any D|EC runni|
|00005250| 6e 67 20 56 34 2e 32 20 | 6f 72 20 6c 61 74 65 72 |ng V4.2 |or later|
|00005260| 2e 0a 58 20 2a 0a 58 20 | 2a 20 4c 49 42 53 3a 20 |..X *.X |* LIBS: |
|00005270| 0a 58 20 2a 0a 58 20 2a | 20 41 55 54 48 4f 52 3a |.X *.X *| AUTHOR:|
|00005280| 20 20 44 61 76 69 64 20 | 53 2e 20 43 6f 6d 61 79 | David |S. Comay|
|00005290| 20 3c 64 73 63 40 73 65 | 69 73 6d 6f 2e 63 73 73 | <dsc@se|ismo.css|
|000052a0| 2e 67 6f 76 3e 0a 58 20 | 2a 2f 0a 58 0a 58 23 69 |.gov>.X |*/.X.X#i|
|000052b0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|000052c0| 73 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |s.h>.X#i|nclude <|
|000052d0| 73 79 73 2f 73 69 67 6e | 61 6c 2e 68 3e 0a 58 23 |sys/sign|al.h>.X#|
|000052e0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 70 61 72 |include |<sys/par|
|000052f0| 61 6d 2e 68 3e 0a 58 0a | 58 23 69 6e 63 6c 75 64 |am.h>.X.|X#includ|
|00005300| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 58 23 69 6e |e <stdio|.h>.X#in|
|00005310| 63 6c 75 64 65 20 3c 6e | 6c 69 73 74 2e 68 3e 0a |clude <n|list.h>.|
|00005320| 58 23 69 6e 63 6c 75 64 | 65 20 3c 6d 61 74 68 2e |X#includ|e <math.|
|00005330| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>.X#inc|lude <sy|
|00005340| 73 2f 64 69 72 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |s/dir.h>|.X#inclu|
|00005350| 64 65 20 3c 73 79 73 2f | 75 73 65 72 2e 68 3e 0a |de <sys/|user.h>.|
|00005360| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 70 |X#includ|e <sys/p|
|00005370| 72 6f 63 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |roc.h>.X|#include|
|00005380| 20 3c 73 79 73 2f 64 6b | 2e 68 3e 0a 58 23 69 6e | <sys/dk|.h>.X#in|
|00005390| 63 6c 75 64 65 20 3c 73 | 79 73 2f 76 6d 2e 68 3e |clude <s|ys/vm.h>|
|000053a0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|000053b0| 66 69 6c 65 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |file.h>.|X#includ|
|000053c0| 65 20 3c 73 79 73 2f 74 | 69 6d 65 2e 68 3e 0a 58 |e <sys/t|ime.h>.X|
|000053d0| 23 69 6e 63 6c 75 64 65 | 20 3c 6d 61 63 68 69 6e |#include| <machin|
|000053e0| 65 2f 70 74 65 2e 68 3e | 0a 58 0a 58 0a 58 2f 2a |e/pte.h>|.X.X.X/*|
|000053f0| 20 23 64 65 66 69 6e 65 | 20 44 4f 53 57 41 50 20 | #define| DOSWAP |
|00005400| 2a 2f 0a 58 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |*/.X.X#i|nclude "|
|00005410| 74 6f 70 2e 68 22 0a 58 | 23 69 6e 63 6c 75 64 65 |top.h".X|#include|
|00005420| 20 22 6d 61 63 68 69 6e | 65 2e 68 22 0a 58 0a 58 | "machin|e.h".X.X|
|00005430| 65 78 74 65 72 6e 20 69 | 6e 74 20 65 72 72 6e 6f |extern i|nt errno|
|00005440| 2c 20 73 79 73 5f 6e 65 | 72 72 3b 0a 58 65 78 74 |, sys_ne|rr;.Xext|
|00005450| 65 72 6e 20 63 68 61 72 | 20 2a 73 79 73 5f 65 72 |ern char| *sys_er|
|00005460| 72 6c 69 73 74 5b 5d 3b | 0a 58 23 64 65 66 69 6e |rlist[];|.X#defin|
|00005470| 65 20 73 74 72 65 72 72 | 6f 72 28 65 29 20 28 28 |e strerr|or(e) ((|
|00005480| 28 65 29 20 3e 3d 20 30 | 20 26 26 20 28 65 29 20 |(e) >= 0| && (e) |
|00005490| 3c 20 73 79 73 5f 6e 65 | 72 72 29 20 3f 20 73 79 |< sys_ne|rr) ? sy|
|000054a0| 73 5f 65 72 72 6c 69 73 | 74 5b 28 65 29 5d 20 3a |s_errlis|t[(e)] :|
|000054b0| 20 22 55 6e 6b 6e 6f 77 | 6e 20 65 72 72 6f 72 22 | "Unknow|n error"|
|000054c0| 29 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 56 4d 55 |).X.X#de|fine VMU|
|000054d0| 4e 49 58 09 22 2f 76 6d | 75 6e 69 78 22 0a 58 23 |NIX."/vm|unix".X#|
|000054e0| 64 65 66 69 6e 65 20 4b | 4d 45 4d 09 22 2f 64 65 |define K|MEM."/de|
|000054f0| 76 2f 6b 6d 65 6d 22 0a | 58 23 64 65 66 69 6e 65 |v/kmem".|X#define|
|00005500| 20 4d 45 4d 09 22 2f 64 | 65 76 2f 6d 65 6d 22 0a | MEM."/d|ev/mem".|
|00005510| 58 23 69 66 64 65 66 20 | 44 4f 53 57 41 50 0a 58 |X#ifdef |DOSWAP.X|
|00005520| 23 64 65 66 69 6e 65 20 | 53 57 41 50 09 22 2f 64 |#define |SWAP."/d|
|00005530| 65 76 2f 64 72 75 6d 22 | 0a 58 23 65 6e 64 69 66 |ev/drum"|.X#endif|
|00005540| 0a 58 0a 58 2f 2a 20 67 | 65 74 5f 70 72 6f 63 65 |.X.X/* g|et_proce|
|00005550| 73 73 5f 69 6e 66 6f 20 | 70 61 73 73 65 73 20 62 |ss_info |passes b|
|00005560| 61 63 6b 20 61 20 68 61 | 6e 64 6c 65 2e 20 20 54 |ack a ha|ndle. T|
|00005570| 68 69 73 20 69 73 20 77 | 68 61 74 20 69 74 20 6c |his is w|hat it l|
|00005580| 6f 6f 6b 73 20 6c 69 6b | 65 3a 20 2a 2f 0a 58 0a |ooks lik|e: */.X.|
|00005590| 58 73 74 72 75 63 74 20 | 68 61 6e 64 6c 65 0a 58 |Xstruct |handle.X|
|000055a0| 7b 0a 58 20 20 20 20 73 | 74 72 75 63 74 20 70 72 |{.X s|truct pr|
|000055b0| 6f 63 20 2a 2a 6e 65 78 | 74 5f 70 72 6f 63 3b 09 |oc **nex|t_proc;.|
|000055c0| 2f 2a 20 70 6f 69 6e 74 | 73 20 74 6f 20 6e 65 78 |/* point|s to nex|
|000055d0| 74 20 76 61 6c 69 64 20 | 70 72 6f 63 20 70 6f 69 |t valid |proc poi|
|000055e0| 6e 74 65 72 20 2a 2f 0a | 58 20 20 20 20 69 6e 74 |nter */.|X int|
|000055f0| 20 72 65 6d 61 69 6e 69 | 6e 67 3b 09 09 2f 2a 20 | remaini|ng;../* |
|00005600| 6e 75 6d 62 65 72 20 6f | 66 20 70 6f 69 6e 74 65 |number o|f pointe|
|00005610| 72 73 20 72 65 6d 61 69 | 6e 69 6e 67 20 2a 2f 0a |rs remai|ning */.|
|00005620| 58 7d 3b 0a 58 0a 58 2f | 2a 20 64 65 63 6c 61 72 |X};.X.X/|* declar|
|00005630| 61 74 69 6f 6e 73 20 66 | 6f 72 20 6c 6f 61 64 5f |ations f|or load_|
|00005640| 61 76 67 20 2a 2f 0a 58 | 23 69 6e 63 6c 75 64 65 |avg */.X|#include|
|00005650| 20 22 6c 6f 61 64 61 76 | 67 2e 68 22 0a 58 0a 58 | "loadav|g.h".X.X|
|00005660| 2f 2a 20 64 65 66 69 6e | 65 20 77 68 61 74 20 77 |/* defin|e what w|
|00005670| 65 69 67 68 74 65 64 20 | 63 70 75 20 69 73 2e 20 |eighted |cpu is. |
|00005680| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 77 65 69 | */.X#de|fine wei|
|00005690| 67 68 74 65 64 5f 63 70 | 75 28 70 63 74 2c 20 70 |ghted_cp|u(pct, p|
|000056a0| 70 29 20 28 28 70 70 29 | 2d 3e 70 5f 74 69 6d 65 |p) ((pp)|->p_time|
|000056b0| 20 3d 3d 20 30 20 3f 20 | 30 2e 30 20 3a 20 5c 0a | == 0 ? |0.0 : \.|
|000056c0| 58 09 09 09 20 28 28 70 | 63 74 29 20 2f 20 28 31 |X... ((p|ct) / (1|
|000056d0| 2e 30 20 2d 20 65 78 70 | 28 28 70 70 29 2d 3e 70 |.0 - exp|((pp)->p|
|000056e0| 5f 74 69 6d 65 20 2a 20 | 6c 6f 67 63 70 75 29 29 |_time * |logcpu))|
|000056f0| 29 29 0a 58 0a 58 2f 2a | 20 77 68 61 74 20 77 65 |)).X.X/*| what we|
|00005700| 20 63 6f 6e 73 69 64 65 | 72 20 74 6f 20 62 65 20 | conside|r to be |
|00005710| 70 72 6f 63 65 73 73 20 | 73 69 7a 65 3a 20 2a 2f |process |size: */|
|00005720| 0a 58 23 64 65 66 69 6e | 65 20 50 52 4f 43 53 49 |.X#defin|e PROCSI|
|00005730| 5a 45 28 70 70 29 20 28 | 28 70 70 29 2d 3e 70 5f |ZE(pp) (|(pp)->p_|
|00005740| 74 73 69 7a 65 20 2b 20 | 28 70 70 29 2d 3e 70 5f |tsize + |(pp)->p_|
|00005750| 64 73 69 7a 65 20 2b 20 | 28 70 70 29 2d 3e 70 5f |dsize + |(pp)->p_|
|00005760| 73 73 69 7a 65 29 0a 58 | 0a 58 2f 2a 20 64 65 66 |ssize).X|.X/* def|
|00005770| 69 6e 69 74 69 6f 6e 73 | 20 66 6f 72 20 69 6e 64 |initions| for ind|
|00005780| 69 63 65 73 20 69 6e 20 | 74 68 65 20 6e 6c 69 73 |ices in |the nlis|
|00005790| 74 20 61 72 72 61 79 20 | 2a 2f 0a 58 23 64 65 66 |t array |*/.X#def|
|000057a0| 69 6e 65 20 58 5f 41 56 | 45 4e 52 55 4e 09 30 0a |ine X_AV|ENRUN.0.|
|000057b0| 58 23 64 65 66 69 6e 65 | 20 58 5f 43 43 50 55 09 |X#define| X_CCPU.|
|000057c0| 09 31 0a 58 23 64 65 66 | 69 6e 65 20 58 5f 4e 50 |.1.X#def|ine X_NP|
|000057d0| 52 4f 43 09 09 32 0a 58 | 23 64 65 66 69 6e 65 20 |ROC..2.X|#define |
|000057e0| 58 5f 50 52 4f 43 09 09 | 33 0a 58 23 64 65 66 69 |X_PROC..|3.X#defi|
|000057f0| 6e 65 20 58 5f 54 4f 54 | 41 4c 09 09 34 0a 58 23 |ne X_TOT|AL..4.X#|
|00005800| 64 65 66 69 6e 65 20 58 | 5f 43 50 55 44 41 54 41 |define X|_CPUDATA|
|00005810| 09 35 0a 58 23 64 65 66 | 69 6e 65 20 58 5f 4d 50 |.5.X#def|ine X_MP|
|00005820| 49 44 09 09 36 0a 58 23 | 64 65 66 69 6e 65 20 58 |ID..6.X#|define X|
|00005830| 5f 48 5a 09 09 37 0a 58 | 23 64 65 66 69 6e 65 20 |_HZ..7.X|#define |
|00005840| 58 5f 4c 4f 57 43 50 55 | 09 38 0a 58 23 64 65 66 |X_LOWCPU|.8.X#def|
|00005850| 69 6e 65 20 58 5f 48 49 | 47 48 43 50 55 09 39 0a |ine X_HI|GHCPU.9.|
|00005860| 58 0a 58 73 74 61 74 69 | 63 20 73 74 72 75 63 74 |X.Xstati|c struct|
|00005870| 20 6e 6c 69 73 74 20 6e | 6c 73 74 5b 5d 20 3d 20 | nlist n|lst[] = |
|00005880| 7b 0a 58 20 20 20 20 7b | 20 22 5f 61 76 65 6e 72 |{.X {| "_avenr|
|00005890| 75 6e 22 20 7d 2c 09 09 | 2f 2a 20 30 20 2a 2f 0a |un" },..|/* 0 */.|
|000058a0| 58 20 20 20 20 7b 20 22 | 5f 63 63 70 75 22 20 7d |X { "|_ccpu" }|
|000058b0| 2c 09 09 2f 2a 20 31 20 | 2a 2f 0a 58 20 20 20 20 |,../* 1 |*/.X |
|000058c0| 7b 20 22 5f 6e 70 72 6f | 63 22 20 7d 2c 09 09 2f |{ "_npro|c" },../|
|000058d0| 2a 20 32 20 2a 2f 0a 58 | 20 20 20 20 7b 20 22 5f |* 2 */.X| { "_|
|000058e0| 70 72 6f 63 22 20 7d 2c | 09 09 2f 2a 20 33 20 2a |proc" },|../* 3 *|
|000058f0| 2f 0a 58 20 20 20 20 7b | 20 22 5f 74 6f 74 61 6c |/.X {| "_total|
|00005900| 22 20 7d 2c 09 09 2f 2a | 20 34 20 2a 2f 0a 58 20 |" },../*| 4 */.X |
|00005910| 20 20 20 7b 20 22 5f 63 | 70 75 64 61 74 61 22 20 | { "_c|pudata" |
|00005920| 7d 2c 09 09 2f 2a 20 35 | 20 2a 2f 0a 58 20 20 20 |},../* 5| */.X |
|00005930| 20 7b 20 22 5f 6d 70 69 | 64 22 20 7d 2c 09 09 2f | { "_mpi|d" },../|
|00005940| 2a 20 36 20 2a 2f 0a 58 | 20 20 20 20 7b 20 22 5f |* 6 */.X| { "_|
|00005950| 68 7a 22 20 7d 2c 09 09 | 09 2f 2a 20 37 20 2a 2f |hz" },..|./* 7 */|
|00005960| 0a 58 20 20 20 20 7b 20 | 22 5f 6c 6f 77 63 70 75 |.X { |"_lowcpu|
|00005970| 22 20 7d 2c 09 09 2f 2a | 20 38 20 2a 2f 0a 58 20 |" },../*| 8 */.X |
|00005980| 20 20 20 7b 20 22 5f 68 | 69 67 68 63 70 75 22 20 | { "_h|ighcpu" |
|00005990| 7d 2c 09 09 2f 2a 20 39 | 20 2a 2f 0a 58 20 20 20 |},../* 9| */.X |
|000059a0| 20 7b 20 30 20 7d 0a 58 | 7d 3b 0a 58 0a 58 2f 2a | { 0 }.X|};.X.X/*|
|000059b0| 0a 58 20 2a 20 20 54 68 | 65 73 65 20 64 65 66 69 |.X * Th|ese defi|
|000059c0| 6e 69 74 69 6f 6e 73 20 | 63 6f 6e 74 72 6f 6c 20 |nitions |control |
|000059d0| 74 68 65 20 66 6f 72 6d | 61 74 20 6f 66 20 74 68 |the form|at of th|
|000059e0| 65 20 70 65 72 2d 70 72 | 6f 63 65 73 73 20 61 72 |e per-pr|ocess ar|
|000059f0| 65 61 0a 58 20 2a 2f 0a | 58 0a 58 73 74 61 74 69 |ea.X */.|X.Xstati|
|00005a00| 63 20 63 68 61 72 20 68 | 65 61 64 65 72 5b 5d 20 |c char h|eader[] |
|00005a10| 3d 0a 58 20 20 22 20 20 | 50 49 44 20 58 20 20 20 |=.X " |PID X |
|00005a20| 20 20 20 20 20 50 52 49 | 20 4e 49 43 45 20 20 20 | PRI| NICE |
|00005a30| 53 49 5a 45 20 20 20 52 | 45 53 20 53 54 41 54 45 |SIZE R|ES STATE|
|00005a40| 20 20 20 54 49 4d 45 20 | 20 20 57 43 50 55 20 20 | TIME | WCPU |
|00005a50| 20 20 43 50 55 20 43 4f | 4d 4d 41 4e 44 22 3b 0a | CPU CO|MMAND";.|
|00005a60| 58 2f 2a 20 30 31 32 33 | 34 35 36 20 20 20 2d 2d |X/* 0123|456 --|
|00005a70| 20 66 69 65 6c 64 20 74 | 6f 20 66 69 6c 6c 20 69 | field t|o fill i|
|00005a80| 6e 20 73 74 61 72 74 73 | 20 61 74 20 68 65 61 64 |n starts| at head|
|00005a90| 65 72 2b 36 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |er+6 */.|X#define|
|00005aa0| 20 55 4e 41 4d 45 5f 53 | 54 41 52 54 20 36 0a 58 | UNAME_S|TART 6.X|
|00005ab0| 0a 58 23 64 65 66 69 6e | 65 20 50 72 6f 63 5f 66 |.X#defin|e Proc_f|
|00005ac0| 6f 72 6d 61 74 20 5c 0a | 58 09 22 25 35 64 20 25 |ormat \.|X."%5d %|
|00005ad0| 2d 38 2e 38 73 20 25 33 | 64 20 25 34 64 25 36 64 |-8.8s %3|d %4d%6d|
|00005ae0| 4b 20 25 34 64 4b 20 25 | 2d 35 73 25 34 64 3a 25 |K %4dK %|-5s%4d:%|
|00005af0| 30 32 64 20 25 35 2e 32 | 66 25 25 20 25 35 2e 32 |02d %5.2|f%% %5.2|
|00005b00| 66 25 25 20 25 2e 31 34 | 73 22 0a 58 0a 58 0a 58 |f%% %.14|s".X.X.X|
|00005b10| 2f 2a 20 70 72 6f 63 65 | 73 73 20 73 74 61 74 65 |/* proce|ss state|
|00005b20| 20 6e 61 6d 65 73 20 66 | 6f 72 20 74 68 65 20 22 | names f|or the "|
|00005b30| 53 54 41 54 45 22 20 63 | 6f 6c 75 6d 6e 20 6f 66 |STATE" c|olumn of|
|00005b40| 20 74 68 65 20 64 69 73 | 70 6c 61 79 20 2a 2f 0a | the dis|play */.|
|00005b50| 58 2f 2a 20 74 68 65 20 | 65 78 74 72 61 20 6e 75 |X/* the |extra nu|
|00005b60| 6c 6c 73 20 69 6e 20 74 | 68 65 20 73 74 72 69 6e |lls in t|he strin|
|00005b70| 67 20 22 72 75 6e 22 20 | 61 72 65 20 66 6f 72 20 |g "run" |are for |
|00005b80| 61 64 64 69 6e 67 20 61 | 20 73 6c 61 73 68 20 61 |adding a| slash a|
|00005b90| 6e 64 0a 58 20 20 20 74 | 68 65 20 70 72 6f 63 65 |nd.X t|he proce|
|00005ba0| 73 73 6f 72 20 6e 75 6d | 62 65 72 20 77 68 65 6e |ssor num|ber when|
|00005bb0| 20 6e 65 65 64 65 64 20 | 2a 2f 0a 58 0a 58 63 68 | needed |*/.X.Xch|
|00005bc0| 61 72 20 2a 73 74 61 74 | 65 5f 61 62 62 72 65 76 |ar *stat|e_abbrev|
|00005bd0| 5b 5d 20 3d 0a 58 7b 0a | 58 20 20 20 20 22 22 2c |[] =.X{.|X "",|
|00005be0| 20 22 73 6c 65 65 70 22 | 2c 20 22 57 41 49 54 22 | "sleep"|, "WAIT"|
|00005bf0| 2c 20 22 72 75 6e 5c 30 | 5c 30 5c 30 22 2c 20 22 |, "run\0|\0\0", "|
|00005c00| 73 74 61 72 74 22 2c 20 | 22 7a 6f 6d 62 22 2c 20 |start", |"zomb", |
|00005c10| 22 73 74 6f 70 22 0a 58 | 7d 3b 0a 58 0a 58 0a 58 |"stop".X|};.X.X.X|
|00005c20| 73 74 61 74 69 63 20 69 | 6e 74 20 6b 6d 65 6d 2c |static i|nt kmem,|
|00005c30| 20 6d 65 6d 3b 0a 58 23 | 69 66 64 65 66 20 44 4f | mem;.X#|ifdef DO|
|00005c40| 53 57 41 50 0a 58 73 74 | 61 74 69 63 20 69 6e 74 |SWAP.Xst|atic int|
|00005c50| 20 73 77 61 70 3b 0a 58 | 23 65 6e 64 69 66 0a 58 | swap;.X|#endif.X|
|00005c60| 0a 58 2f 2a 20 76 61 6c | 75 65 73 20 74 68 61 74 |.X/* val|ues that|
|00005c70| 20 77 65 20 73 74 61 73 | 68 20 61 77 61 79 20 69 | we stas|h away i|
|00005c80| 6e 20 5f 69 6e 69 74 20 | 61 6e 64 20 75 73 65 20 |n _init |and use |
|00005c90| 69 6e 20 6c 61 74 65 72 | 20 72 6f 75 74 69 6e 65 |in later| routine|
|00005ca0| 73 20 2a 2f 0a 58 0a 58 | 73 74 61 74 69 63 20 64 |s */.X.X|static d|
|00005cb0| 6f 75 62 6c 65 20 6c 6f | 67 63 70 75 3b 0a 58 0a |ouble lo|gcpu;.X.|
|00005cc0| 58 2f 2a 20 74 68 65 73 | 65 20 61 72 65 20 72 65 |X/* thes|e are re|
|00005cd0| 74 72 69 65 76 65 64 20 | 66 72 6f 6d 20 74 68 65 |trieved |from the|
|00005ce0| 20 6b 65 72 6e 65 6c 20 | 69 6e 20 5f 69 6e 69 74 | kernel |in _init|
|00005cf0| 20 2a 2f 0a 58 0a 58 73 | 74 61 74 69 63 20 75 6e | */.X.Xs|tatic un|
|00005d00| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 70 72 6f 63 |signed l|ong proc|
|00005d10| 3b 0a 58 73 74 61 74 69 | 63 20 20 20 20 20 20 20 |;.Xstati|c |
|00005d20| 20 20 20 69 6e 74 20 20 | 6e 70 72 6f 63 3b 0a 58 | int |nproc;.X|
|00005d30| 73 74 61 74 69 63 20 20 | 20 20 20 20 20 20 20 20 |static | |
|00005d40| 6c 6f 6e 67 20 68 7a 3b | 0a 58 73 74 61 74 69 63 |long hz;|.Xstatic|
|00005d50| 20 6c 6f 61 64 5f 61 76 | 67 20 20 63 63 70 75 3b | load_av|g ccpu;|
|00005d60| 0a 58 73 74 61 74 69 63 | 20 20 20 20 20 20 20 20 |.Xstatic| |
|00005d70| 20 20 69 6e 74 20 20 6c | 6f 77 63 70 75 20 3d 20 | int l|owcpu = |
|00005d80| 30 3b 0a 58 73 74 61 74 | 69 63 20 20 20 20 20 20 |0;.Xstat|ic |
|00005d90| 20 20 20 20 69 6e 74 20 | 20 68 69 67 68 63 70 75 | int | highcpu|
|00005da0| 20 3d 20 30 3b 0a 58 0a | 58 2f 2a 20 74 68 65 73 | = 0;.X.|X/* thes|
|00005db0| 65 20 61 72 65 20 6f 66 | 66 73 65 74 73 20 6f 62 |e are of|fsets ob|
|00005dc0| 74 61 69 6e 65 64 20 76 | 69 61 20 6e 6c 69 73 74 |tained v|ia nlist|
|00005dd0| 20 61 6e 64 20 75 73 65 | 64 20 69 6e 20 74 68 65 | and use|d in the|
|00005de0| 20 67 65 74 5f 20 66 75 | 6e 63 74 69 6f 6e 73 20 | get_ fu|nctions |
|00005df0| 2a 2f 0a 58 0a 58 73 74 | 61 74 69 63 20 75 6e 73 |*/.X.Xst|atic uns|
|00005e00| 69 67 6e 65 64 20 6c 6f | 6e 67 20 61 76 65 6e 72 |igned lo|ng avenr|
|00005e10| 75 6e 5f 6f 66 66 73 65 | 74 3b 0a 58 73 74 61 74 |un_offse|t;.Xstat|
|00005e20| 69 63 20 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |ic unsig|ned long|
|00005e30| 20 6d 70 69 64 5f 6f 66 | 66 73 65 74 3b 0a 58 73 | mpid_of|fset;.Xs|
|00005e40| 74 61 74 69 63 20 75 6e | 73 69 67 6e 65 64 20 6c |tatic un|signed l|
|00005e50| 6f 6e 67 20 74 6f 74 61 | 6c 5f 6f 66 66 73 65 74 |ong tota|l_offset|
|00005e60| 3b 0a 58 73 74 61 74 69 | 63 20 75 6e 73 69 67 6e |;.Xstati|c unsign|
|00005e70| 65 64 20 6c 6f 6e 67 20 | 63 70 75 64 61 74 61 5f |ed long |cpudata_|
|00005e80| 6f 66 66 73 65 74 3b 0a | 58 0a 58 2f 2a 20 74 68 |offset;.|X.X/* th|
|00005e90| 65 73 65 20 61 72 65 20 | 66 6f 72 20 63 61 6c 63 |ese are |for calc|
|00005ea0| 75 6c 61 74 69 6e 67 20 | 63 70 75 20 73 74 61 74 |ulating |cpu stat|
|00005eb0| 65 20 70 65 72 63 65 6e | 74 61 67 65 73 20 2a 2f |e percen|tages */|
|00005ec0| 0a 58 0a 58 73 74 61 74 | 69 63 20 6c 6f 6e 67 20 |.X.Xstat|ic long |
|00005ed0| 63 70 5f 74 69 6d 65 5b | 43 50 55 53 54 41 54 45 |cp_time[|CPUSTATE|
|00005ee0| 53 5d 3b 0a 58 73 74 61 | 74 69 63 20 6c 6f 6e 67 |S];.Xsta|tic long|
|00005ef0| 20 63 70 5f 6f 6c 64 5b | 43 50 55 53 54 41 54 45 | cp_old[|CPUSTATE|
|00005f00| 53 5d 3b 0a 58 73 74 61 | 74 69 63 20 6c 6f 6e 67 |S];.Xsta|tic long|
|00005f10| 20 63 70 5f 64 69 66 66 | 5b 43 50 55 53 54 41 54 | cp_diff|[CPUSTAT|
|00005f20| 45 53 5d 3b 0a 58 73 74 | 61 74 69 63 20 73 74 72 |ES];.Xst|atic str|
|00005f30| 75 63 74 20 63 70 75 64 | 61 74 61 20 2a 63 70 75 |uct cpud|ata *cpu|
|00005f40| 64 61 74 61 5b 4d 41 58 | 43 50 55 5d 3b 0a 58 0a |data[MAX|CPU];.X.|
|00005f50| 58 2f 2a 20 74 68 65 73 | 65 20 61 72 65 20 66 6f |X/* thes|e are fo|
|00005f60| 72 20 64 65 74 61 69 6c | 69 6e 67 20 74 68 65 20 |r detail|ing the |
|00005f70| 70 72 6f 63 65 73 73 20 | 73 74 61 74 65 73 20 2a |process |states *|
|00005f80| 2f 0a 58 0a 58 69 6e 74 | 20 70 72 6f 63 65 73 73 |/.X.Xint| process|
|00005f90| 5f 73 74 61 74 65 73 5b | 37 5d 3b 0a 58 63 68 61 |_states[|7];.Xcha|
|00005fa0| 72 20 2a 70 72 6f 63 73 | 74 61 74 65 6e 61 6d 65 |r *procs|tatename|
|00005fb0| 73 5b 5d 20 3d 20 7b 0a | 58 20 20 20 20 22 22 2c |s[] = {.|X "",|
|00005fc0| 20 22 20 73 6c 65 65 70 | 69 6e 67 2c 20 22 2c 20 | " sleep|ing, ", |
|00005fd0| 22 20 41 42 41 4e 44 4f | 4e 45 44 2c 20 22 2c 20 |" ABANDO|NED, ", |
|00005fe0| 22 20 72 75 6e 6e 69 6e | 67 2c 20 22 2c 20 22 20 |" runnin|g, ", " |
|00005ff0| 73 74 61 72 74 69 6e 67 | 2c 20 22 2c 0a 58 20 20 |starting|, ",.X |
|00006000| 20 20 22 20 7a 6f 6d 62 | 69 65 2c 20 22 2c 20 22 | " zomb|ie, ", "|
|00006010| 20 73 74 6f 70 70 65 64 | 2c 20 22 2c 0a 58 20 20 | stopped|, ",.X |
|00006020| 20 20 4e 55 4c 4c 0a 58 | 7d 3b 0a 58 0a 58 2f 2a | NULL.X|};.X.X/*|
|00006030| 20 74 68 65 73 65 20 61 | 72 65 20 66 6f 72 20 64 | these a|re for d|
|00006040| 65 74 61 69 6c 69 6e 67 | 20 74 68 65 20 63 70 75 |etailing| the cpu|
|00006050| 20 73 74 61 74 65 73 20 | 2a 2f 0a 58 0a 58 69 6e | states |*/.X.Xin|
|00006060| 74 20 63 70 75 5f 73 74 | 61 74 65 73 5b 34 5d 3b |t cpu_st|ates[4];|
|00006070| 0a 58 63 68 61 72 20 2a | 63 70 75 73 74 61 74 65 |.Xchar *|cpustate|
|00006080| 6e 61 6d 65 73 5b 5d 20 | 3d 20 7b 0a 58 20 20 20 |names[] |= {.X |
|00006090| 20 22 75 73 65 72 22 2c | 20 22 6e 69 63 65 22 2c | "user",| "nice",|
|000060a0| 20 22 73 79 73 74 65 6d | 22 2c 20 22 69 64 6c 65 | "system|", "idle|
|000060b0| 22 2c 20 4e 55 4c 4c 0a | 58 7d 3b 0a 58 0a 58 2f |", NULL.|X};.X.X/|
|000060c0| 2a 20 74 68 65 73 65 20 | 61 72 65 20 66 6f 72 20 |* these |are for |
|000060d0| 64 65 74 61 69 6c 69 6e | 67 20 74 68 65 20 6d 65 |detailin|g the me|
|000060e0| 6d 6f 72 79 20 73 74 61 | 74 69 73 74 69 63 73 20 |mory sta|tistics |
|000060f0| 2a 2f 0a 58 0a 58 69 6e | 74 20 6d 65 6d 6f 72 79 |*/.X.Xin|t memory|
|00006100| 5f 73 74 61 74 73 5b 38 | 5d 3b 0a 58 63 68 61 72 |_stats[8|];.Xchar|
|00006110| 20 2a 6d 65 6d 6f 72 79 | 6e 61 6d 65 73 5b 5d 20 | *memory|names[] |
|00006120| 3d 20 7b 0a 58 20 20 20 | 20 22 52 65 61 6c 3a 20 |= {.X | "Real: |
|00006130| 22 2c 20 22 4b 2f 22 2c | 20 22 4b 20 61 63 74 2f |", "K/",| "K act/|
|00006140| 74 6f 74 20 20 22 2c 20 | 22 56 69 72 74 75 61 6c |tot ", |"Virtual|
|00006150| 3a 20 22 2c 20 22 4b 2f | 22 2c 0a 58 20 20 20 20 |: ", "K/|",.X |
|00006160| 22 4b 20 61 63 74 2f 74 | 6f 74 20 20 22 2c 20 22 |"K act/t|ot ", "|
|00006170| 46 72 65 65 3a 20 22 2c | 20 22 4b 22 2c 20 4e 55 |Free: ",| "K", NU|
|00006180| 4c 4c 0a 58 7d 3b 0a 58 | 0a 58 2f 2a 20 74 68 65 |LL.X};.X|.X/* the|
|00006190| 73 65 20 61 72 65 20 66 | 6f 72 20 6b 65 65 70 69 |se are f|or keepi|
|000061a0| 6e 67 20 74 72 61 63 6b | 20 6f 66 20 74 68 65 20 |ng track| of the |
|000061b0| 70 72 6f 63 20 61 72 72 | 61 79 20 2a 2f 0a 58 0a |proc arr|ay */.X.|
|000061c0| 58 73 74 61 74 69 63 20 | 69 6e 74 20 62 79 74 65 |Xstatic |int byte|
|000061d0| 73 3b 0a 58 73 74 61 74 | 69 63 20 69 6e 74 20 70 |s;.Xstat|ic int p|
|000061e0| 72 65 66 5f 6c 65 6e 3b | 0a 58 73 74 61 74 69 63 |ref_len;|.Xstatic|
|000061f0| 20 73 74 72 75 63 74 20 | 70 72 6f 63 20 2a 70 62 | struct |proc *pb|
|00006200| 61 73 65 3b 0a 58 73 74 | 61 74 69 63 20 73 74 72 |ase;.Xst|atic str|
|00006210| 75 63 74 20 70 72 6f 63 | 20 2a 2a 70 72 65 66 3b |uct proc| **pref;|
|00006220| 0a 58 0a 58 2f 2a 20 74 | 68 65 73 65 20 61 72 65 |.X.X/* t|hese are|
|00006230| 20 66 6f 72 20 67 65 74 | 74 69 6e 67 20 74 68 65 | for get|ting the|
|00006240| 20 6d 65 6d 6f 72 79 20 | 73 74 61 74 69 73 74 69 | memory |statisti|
|00006250| 63 73 20 2a 2f 0a 58 0a | 58 73 74 61 74 69 63 20 |cs */.X.|Xstatic |
|00006260| 69 6e 74 20 70 61 67 65 | 73 68 69 66 74 3b 09 09 |int page|shift;..|
|00006270| 2f 2a 20 6c 6f 67 20 62 | 61 73 65 20 32 20 6f 66 |/* log b|ase 2 of|
|00006280| 20 74 68 65 20 70 61 67 | 65 73 69 7a 65 20 2a 2f | the pag|esize */|
|00006290| 0a 58 0a 58 2f 2a 20 64 | 65 66 69 6e 65 20 70 61 |.X.X/* d|efine pa|
|000062a0| 67 65 74 6f 6b 20 69 6e | 20 74 65 72 6d 73 20 6f |getok in| terms o|
|000062b0| 66 20 70 61 67 65 73 68 | 69 66 74 20 2a 2f 0a 58 |f pagesh|ift */.X|
|000062c0| 0a 58 23 64 65 66 69 6e | 65 20 70 61 67 65 74 6f |.X#defin|e pageto|
|000062d0| 6b 28 73 69 7a 65 29 20 | 28 28 73 69 7a 65 29 20 |k(size) |((size) |
|000062e0| 3c 3c 20 70 61 67 65 73 | 68 69 66 74 29 0a 58 0a |<< pages|hift).X.|
|000062f0| 58 2f 2a 20 75 73 65 66 | 75 6c 20 65 78 74 65 72 |X/* usef|ul exter|
|00006300| 6e 61 6c 73 20 2a 2f 0a | 58 65 78 74 65 72 6e 20 |nals */.|Xextern |
|00006310| 69 6e 74 20 65 72 72 6e | 6f 3b 0a 58 65 78 74 65 |int errn|o;.Xexte|
|00006320| 72 6e 20 63 68 61 72 20 | 2a 73 79 73 5f 65 72 72 |rn char |*sys_err|
|00006330| 6c 69 73 74 5b 5d 3b 0a | 58 0a 58 6c 6f 6e 67 20 |list[];.|X.Xlong |
|00006340| 6c 73 65 65 6b 28 29 3b | 0a 58 6c 6f 6e 67 20 74 |lseek();|.Xlong t|
|00006350| 69 6d 65 28 29 3b 0a 58 | 6c 6f 6e 67 20 70 65 72 |ime();.X|long per|
|00006360| 63 65 6e 74 61 67 65 73 | 28 29 3b 0a 58 0a 58 6d |centages|();.X.Xm|
|00006370| 61 63 68 69 6e 65 5f 69 | 6e 69 74 28 73 74 61 74 |achine_i|nit(stat|
|00006380| 69 63 73 29 0a 58 0a 58 | 73 74 72 75 63 74 20 73 |ics).X.X|struct s|
|00006390| 74 61 74 69 63 73 20 2a | 73 74 61 74 69 63 73 3b |tatics *|statics;|
|000063a0| 0a 58 0a 58 7b 0a 58 20 | 20 20 20 72 65 67 69 73 |.X.X{.X | regis|
|000063b0| 74 65 72 20 69 6e 74 20 | 69 20 3d 20 30 3b 0a 58 |ter int |i = 0;.X|
|000063c0| 20 20 20 20 72 65 67 69 | 73 74 65 72 20 69 6e 74 | regi|ster int|
|000063d0| 20 70 61 67 65 73 69 7a | 65 3b 0a 58 0a 58 20 20 | pagesiz|e;.X.X |
|000063e0| 20 20 69 66 20 28 28 6b | 6d 65 6d 20 3d 20 6f 70 | if ((k|mem = op|
|000063f0| 65 6e 28 4b 4d 45 4d 2c | 20 4f 5f 52 44 4f 4e 4c |en(KMEM,| O_RDONL|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.