home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / sysadmin / vsar.tar < prev    next >
Tape Archive  |  1989-03-04  |  8.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: vsar.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file vsar/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404057701 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 76 73 61 72 2f 00 00 00 | 00 00 00 00 00 00 00 00 |vsar/...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 35 37 | 0 | 4404057|
|00000090| 37 30 31 20 20 20 34 37 | 37 30 00 20 00 00 00 00 |701 47|70. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 76 73 61 72 2f 53 68 61 | 72 46 69 6c 65 2e 48 65 |vsar/Sha|rFile.He|
|00000210| 61 64 65 72 73 00 00 00 | 00 00 00 00 00 00 00 00 |aders...|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 31 30 35 36 20 | 20 34 34 30 34 30 35 37 | 1056 | 4404057|
|00000290| 37 30 31 20 20 31 30 30 | 35 31 00 20 00 00 00 00 |701 100|51. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 76 73 61 72 | 2e 73 68 61 72 20 3d 3d |=== vsar|.shar ==|
|00000410| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 0a | 31 32 2d 4a 61 6e 2d 38 |=======.|12-Jan-8|
|00000430| 36 20 30 39 3a 31 32 3a | 31 34 2d 4d 53 54 2c 35 |6 09:12:|14-MST,5|
|00000440| 30 32 30 3b 30 30 30 30 | 30 30 30 30 30 30 30 31 |020;0000|00000001|
|00000450| 0a 52 65 74 75 72 6e 2d | 50 61 74 68 3a 20 3c 75 |.Return-|Path: <u|
|00000460| 6e 69 78 2d 73 6f 75 72 | 63 65 73 2d 72 65 71 75 |nix-sour|ces-requ|
|00000470| 65 73 74 40 42 52 4c 2e | 41 52 50 41 3e 0a 52 65 |est@BRL.|ARPA>.Re|
|00000480| 63 65 69 76 65 64 3a 20 | 66 72 6f 6d 20 42 52 4c |ceived: |from BRL|
|00000490| 2d 54 47 52 2e 41 52 50 | 41 20 62 79 20 53 49 4d |-TGR.ARP|A by SIM|
|000004a0| 54 45 4c 32 30 2e 41 52 | 50 41 20 77 69 74 68 20 |TEL20.AR|PA with |
|000004b0| 54 43 50 3b 20 53 75 6e | 20 31 32 20 4a 61 6e 20 |TCP; Sun| 12 Jan |
|000004c0| 38 36 20 30 39 3a 31 32 | 3a 30 32 2d 4d 53 54 0a |86 09:12|:02-MST.|
|000004d0| 52 65 63 65 69 76 65 64 | 3a 20 66 72 6f 6d 20 75 |Received|: from u|
|000004e0| 73 65 6e 65 74 20 62 79 | 20 54 47 52 2e 42 52 4c |senet by| TGR.BRL|
|000004f0| 2e 41 52 50 41 20 69 64 | 20 61 30 32 31 39 33 35 |.ARPA id| a021935|
|00000500| 3b 20 31 31 20 4a 61 6e | 20 38 36 20 31 36 3a 33 |; 11 Jan| 86 16:3|
|00000510| 36 20 45 53 54 0a 46 72 | 6f 6d 3a 20 44 61 76 65 |6 EST.Fr|om: Dave|
|00000520| 20 42 72 6f 77 65 72 20 | 3c 64 61 76 65 62 40 72 | Brower |<daveb@r|
|00000530| 74 65 63 68 2e 75 75 63 | 70 3e 0a 4e 65 77 73 67 |tech.uuc|p>.Newsg|
|00000540| 72 6f 75 70 73 3a 20 6e | 65 74 2e 73 6f 75 72 63 |roups: n|et.sourc|
|00000550| 65 73 0a 53 75 62 6a 65 | 63 74 3a 20 76 73 61 72 |es.Subje|ct: vsar|
|00000560| 20 2d 20 56 69 73 75 61 | 6c 20 53 79 73 74 65 6d | - Visua|l System|
|00000570| 20 41 63 74 69 76 69 74 | 79 20 52 65 70 6f 72 74 | Activit|y Report|
|00000580| 20 66 6f 72 20 53 56 0a | 4d 65 73 73 61 67 65 2d | for SV.|Message-|
|00000590| 49 44 3a 20 3c 38 32 37 | 40 72 74 65 63 68 2e 55 |ID: <827|@rtech.U|
|000005a0| 55 43 50 3e 0a 44 61 74 | 65 3a 20 39 20 4a 61 6e |UCP>.Dat|e: 9 Jan|
|000005b0| 20 38 36 20 30 39 3a 30 | 33 3a 33 32 20 47 4d 54 | 86 09:0|3:32 GMT|
|000005c0| 0a 54 6f 3a 20 20 20 20 | 20 20 20 75 6e 69 78 2d |.To: | unix-|
|000005d0| 73 6f 75 72 63 65 73 40 | 42 52 4c 2d 54 47 52 2e |sources@|BRL-TGR.|
|000005e0| 41 52 50 41 0a 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ARPA..--|--------|
|000005f0| 2d 2d 2d 2d 2d 2d 20 63 | 75 74 20 68 65 72 65 2c |------ c|ut here,|
|00000600| 20 73 63 69 73 73 6f 72 | 73 20 6e 6f 77 20 66 6f | scissor|s now fo|
|00000610| 72 20 74 68 65 20 66 75 | 74 75 72 65 20 2d 2d 2d |r the fu|ture ---|
|00000620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 00 00 |--------|-----...|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 76 73 61 72 2f 76 73 61 | 72 2e 63 00 00 00 00 00 |vsar/vsa|r.c.....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000880| 20 20 20 37 33 36 36 20 | 20 34 34 30 34 30 35 37 | 7366 | 4404057|
|00000890| 37 30 31 20 20 20 36 32 | 31 30 00 20 00 00 00 00 |701 62|10. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 0a 2f 2a 0a 2a 2a 0a 2a | 2a 20 76 73 61 72 2e 63 |./*.**.*|* vsar.c|
|00000a10| 20 2d 20 76 69 73 75 61 | 6c 20 73 61 72 20 66 6f | - visua|l sar fo|
|00000a20| 72 20 73 79 73 74 65 6d | 20 73 74 61 74 75 73 20 |r system| status |
|00000a30| 6f 6e 20 53 79 73 74 65 | 6d 20 56 0a 2a 2a 0a 2a |on Syste|m V.**.*|
|00000a40| 2a 20 54 68 69 73 20 63 | 6f 72 72 65 73 70 6f 6e |* This c|orrespon|
|00000a50| 64 73 20 76 61 67 75 65 | 6c 79 20 74 6f 20 74 68 |ds vague|ly to th|
|00000a60| 65 20 27 6d 6f 6e 27 20 | 70 72 6f 67 72 61 6d 20 |e 'mon' |program |
|00000a70| 66 6f 72 20 34 2e 32 0a | 2a 2a 20 49 74 20 6c 61 |for 4.2.|** It la|
|00000a80| 75 6e 63 68 65 73 20 61 | 20 73 61 72 20 61 6e 64 |unches a| sar and|
|00000a90| 20 64 69 73 70 6c 61 79 | 73 20 74 68 65 20 6f 75 | display|s the ou|
|00000aa0| 74 70 75 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |tput on |the scre|
|00000ab0| 65 6e 2e 0a 2a 2a 20 4d | 6f 73 74 20 64 69 73 70 |en..** M|ost disp|
|00000ac0| 6c 61 79 20 77 69 65 72 | 64 6e 65 73 73 20 69 73 |lay wier|dness is|
|00000ad0| 20 61 74 74 72 69 62 75 | 74 61 62 6c 65 20 74 6f | attribu|table to|
|00000ae0| 20 73 61 72 2c 20 6e 6f | 74 20 76 73 61 72 2e 0a | sar, no|t vsar..|
|00000af0| 2a 2a 0a 2a 2a 20 45 64 | 69 74 20 77 69 74 68 20 |**.** Ed|it with |
|00000b00| 34 20 63 6f 6c 75 6d 6e | 20 74 61 62 73 2e 0a 2a |4 column| tabs..*|
|00000b10| 2a 0a 2a 2a 20 41 75 74 | 68 6f 72 3a 20 20 44 61 |*.** Aut|hor: Da|
|00000b20| 76 69 64 20 42 72 6f 77 | 65 72 0a 2a 2a 20 20 20 |vid Brow|er.** |
|00000b30| 20 20 20 20 20 20 20 52 | 65 6c 61 74 69 6f 6e 61 | R|elationa|
|00000b40| 6c 20 54 65 63 68 6e 6f | 6c 6f 67 79 2c 20 41 6c |l Techno|logy, Al|
|00000b50| 61 6d 65 64 61 2c 20 43 | 41 0a 2a 2a 0a 2a 2a 20 |ameda, C|A.**.** |
|00000b60| 20 20 20 20 20 20 20 20 | 20 7b 64 65 63 76 61 78 | | {decvax|
|00000b70| 2c 20 75 63 62 76 61 78 | 7d 21 6d 74 78 69 6e 75 |, ucbvax|}!mtxinu|
|00000b80| 21 72 74 65 63 68 21 64 | 61 76 65 62 0a 2a 2a 20 |!rtech!d|aveb.** |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 72 74 65 63 68 21 67 | 6f 6e 7a 6f 21 7b 64 61 | rtech!g|onzo!{da|
|00000bc0| 76 65 62 2c 20 72 6f 6f | 74 7d 0a 2a 2a 0a 2a 2a |veb, roo|t}.**.**|
|00000bd0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | This pr|ogram is|
|00000be0| 20 72 65 6c 65 61 73 65 | 64 20 74 6f 20 74 68 65 | release|d to the|
|00000bf0| 20 70 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 2e 0a | public |domain..|
|00000c00| 2a 2a 0a 4e 45 45 44 4c | 49 42 53 09 3d 09 43 55 |**.NEEDL|IBS.=.CU|
|00000c10| 52 53 45 53 0a 2a 2a 0a | 2a 2a 20 43 6f 6d 70 69 |RSES.**.|** Compi|
|00000c20| 6c 65 3a 0a 2a 2a 09 09 | 63 63 20 2d 4f 20 76 73 |le:.**..|cc -O vs|
|00000c30| 61 72 2e 63 20 2d 6c 63 | 75 72 73 65 73 20 2d 6f |ar.c -lc|urses -o|
|00000c40| 20 76 73 61 72 0a 2a 2f | 0a 0a 23 20 69 6e 63 6c | vsar.*/|..# incl|
|00000c50| 75 64 65 09 3c 63 75 72 | 73 65 73 2e 68 3e 0a 23 |ude.<cur|ses.h>.#|
|00000c60| 20 69 6e 63 6c 75 64 65 | 09 3c 73 65 74 6a 6d 70 | include|.<setjmp|
|00000c70| 2e 68 3e 0a 23 20 69 6e | 63 6c 75 64 65 09 3c 73 |.h>.# in|clude.<s|
|00000c80| 69 67 6e 61 6c 2e 68 3e | 0a 23 20 69 6e 63 6c 75 |ignal.h>|.# inclu|
|00000c90| 64 65 09 3c 66 63 6e 74 | 6c 2e 68 3e 0a 0a 74 79 |de.<fcnt|l.h>..ty|
|00000ca0| 70 65 64 65 66 20 73 74 | 72 75 63 74 0a 7b 0a 09 |pedef st|ruct.{..|
|00000cb0| 73 68 6f 72 74 20 09 78 | 2c 20 79 3b 09 09 2f 2a |short .x|, y;../*|
|00000cc0| 20 78 2c 79 20 6f 66 20 | 6d 65 73 73 61 67 65 20 | x,y of |message |
|00000cd0| 2a 2f 0a 09 73 68 6f 72 | 74 09 73 6b 69 70 3b 09 |*/..shor|t.skip;.|
|00000ce0| 09 2f 2a 20 6c 65 61 64 | 69 6e 67 20 61 6d 6f 75 |./* lead|ing amou|
|00000cf0| 6e 74 20 74 6f 20 73 6b | 69 70 20 2a 2f 0a 09 73 |nt to sk|ip */..s|
|00000d00| 68 6f 72 74 09 64 6f 63 | 6c 65 61 72 3b 09 2f 2a |hort.doc|lear;./*|
|00000d10| 20 64 6f 20 63 6c 65 61 | 72 20 74 6f 20 65 6f 6c | do clea|r to eol|
|00000d20| 20 61 66 74 65 72 3f 20 | 2a 2f 0a 7d 20 4d 53 47 | after? |*/.} MSG|
|00000d30| 3b 0a 0a 2f 2a 20 64 65 | 73 63 72 69 62 65 20 64 |;../* de|scribe d|
|00000d40| 65 73 74 69 6e 79 20 6f | 66 20 65 61 63 68 20 68 |estiny o|f each h|
|00000d50| 65 61 64 65 72 20 6c 69 | 6e 65 20 66 72 6f 6d 20 |eader li|ne from |
|00000d60| 73 61 72 20 2a 2f 0a 4d | 53 47 20 68 64 72 6c 69 |sar */.M|SG hdrli|
|00000d70| 6e 65 73 5b 5d 20 3d 0a | 7b 0a 09 2f 2a 20 62 6c |nes[] =.|{../* bl|
|00000d80| 61 6e 6b 20 2a 2f 0a 09 | 2d 31 2c 09 2d 31 2c 20 |ank */..|-1,.-1, |
|00000d90| 30 2c 09 30 2c 0a 0a 09 | 2f 2a 20 6e 6f 64 65 20 |0,.0,...|/* node |
|00000da0| 2a 2f 09 09 09 2f 2a 20 | 62 6c 61 6e 6b 20 2a 2f |*/.../* |blank */|
|00000db0| 09 09 09 2f 2a 20 25 75 | 73 72 20 2a 2f 0a 09 30 |.../* %u|sr */..0|
|00000dc0| 2c 09 30 2c 09 30 2c 09 | 30 2c 09 09 2d 31 2c 09 |,.0,.0,.|0,..-1,.|
|00000dd0| 2d 31 2c 09 30 2c 09 30 | 2c 09 09 30 2c 09 34 33 |-1,.0,.0|,..0,.43|
|00000de0| 2c 09 31 32 2c 09 31 2c | 0a 0a 09 2f 2a 20 69 67 |,.12,.1,|.../* ig|
|00000df0| 65 74 73 20 2a 2f 09 09 | 09 2f 2a 20 6d 73 67 73 |ets */..|./* msgs|
|00000e00| 20 2a 2f 09 09 09 2f 2a | 20 72 75 6e 71 20 2a 2f | */.../*| runq */|
|00000e10| 0a 09 33 2c 09 30 2c 09 | 38 2c 09 30 2c 09 09 33 |..3,.0,.|8,.0,..3|
|00000e20| 2c 09 32 36 2c 09 38 2c | 09 30 2c 09 09 33 2c 09 |,.26,.8,|.0,..3,.|
|00000e30| 34 38 2c 09 38 2c 09 31 | 2c 0a 0a 09 2f 2a 20 74 |48,.8,.1|,.../* t|
|00000e40| 65 78 74 20 2a 2f 0a 09 | 36 2c 09 30 2c 09 38 2c |ext */..|6,.0,.8,|
|00000e50| 09 31 2c 0a 0a 09 2f 2a | 20 62 72 65 61 64 20 2a |.1,.../*| bread *|
|00000e60| 2f 0a 09 39 2c 09 30 2c | 09 38 2c 09 31 2c 0a 0a |/..9,.0,|.8,.1,..|
|00000e70| 09 2f 2a 20 73 63 61 6c | 6c 20 2a 2f 0a 09 31 32 |./* scal|l */..12|
|00000e80| 2c 09 30 2c 09 38 2c 09 | 31 2c 0a 0a 09 2f 2a 20 |,.0,.8,.|1,.../* |
|00000e90| 73 77 70 69 6e 20 2a 2f | 0a 09 31 35 2c 09 30 2c |swpin */|..15,.0,|
|00000ea0| 09 38 2c 09 31 2c 0a 09 | 0a 09 2f 2a 20 64 69 73 |.8,.1,..|../* dis|
|00000eb0| 6b 73 20 2a 2f 0a 09 31 | 38 2c 09 30 2c 09 38 2c |ks */..1|8,.0,.8,|
|00000ec0| 09 31 2c 0a 0a 09 2f 2a | 20 62 6c 61 6e 6b 20 2a |.1,.../*| blank *|
|00000ed0| 2f 0a 09 2d 31 2c 09 2d | 31 2c 09 30 2c 09 30 0a |/..-1,.-|1,.0,.0.|
|00000ee0| 7d 20 3b 0a 0a 0a 4d 53 | 47 20 64 61 74 61 6c 69 |} ;...MS|G datali|
|00000ef0| 6e 65 73 5b 5d 20 3d 0a | 7b 0a 09 09 09 09 09 09 |nes[] =.|{.......|
|00000f00| 09 09 09 09 09 2f 2a 20 | 25 75 73 72 20 2a 2f 0a |...../* |%usr */.|
|00000f10| 09 09 09 09 09 09 09 09 | 09 09 09 31 2c 09 33 31 |........|...1,.31|
|00000f20| 2c 09 30 2c 09 31 2c 0a | 0a 09 2f 2a 20 69 67 65 |,.0,.1,.|../* ige|
|00000f30| 74 73 20 2a 2f 09 09 09 | 2f 2a 20 6d 73 67 73 20 |ts */...|/* msgs |
|00000f40| 2a 2f 09 09 09 2f 2a 20 | 72 75 6e 71 20 2a 2f 0a |*/.../* |runq */.|
|00000f50| 09 34 2c 09 30 2c 09 38 | 2c 09 31 2c 09 09 34 2c |.4,.0,.8|,.1,..4,|
|00000f60| 09 32 36 2c 09 38 2c 09 | 31 2c 09 09 34 2c 09 34 |.26,.8,.|1,..4,.4|
|00000f70| 38 2c 09 38 2c 09 31 2c | 0a 0a 09 2f 2a 20 74 65 |8,.8,.1,|.../* te|
|00000f80| 78 74 20 2a 2f 0a 09 37 | 2c 09 30 2c 09 38 2c 09 |xt */..7|,.0,.8,.|
|00000f90| 31 2c 0a 0a 09 2f 2a 20 | 62 72 65 61 64 20 2a 2f |1,.../* |bread */|
|00000fa0| 0a 09 31 30 2c 09 30 2c | 09 38 2c 09 31 2c 0a 0a |..10,.0,|.8,.1,..|
|00000fb0| 09 2f 2a 20 73 63 61 6c | 6c 20 2a 2f 0a 09 31 33 |./* scal|l */..13|
|00000fc0| 2c 09 30 2c 09 38 2c 09 | 31 2c 0a 0a 09 2f 2a 20 |,.0,.8,.|1,.../* |
|00000fd0| 73 77 70 69 6e 20 2a 2f | 0a 09 31 36 2c 09 30 2c |swpin */|..16,.0,|
|00000fe0| 09 38 2c 09 30 2c 0a 09 | 0a 09 2f 2a 20 64 69 73 |.8,.0,..|../* dis|
|00000ff0| 6b 28 73 29 20 2a 2f 0a | 09 31 39 2c 09 30 2c 09 |k(s) */.|.19,.0,.|
|00001000| 38 2c 09 31 2c 0a 09 32 | 30 2c 09 30 2c 09 38 2c |8,.1,..2|0,.0,.8,|
|00001010| 09 31 2c 0a 09 32 31 2c | 09 30 2c 09 38 2c 09 31 |.1,..21,|.0,.8,.1|
|00001020| 0a 0a 7d 20 3b 0a 0a 2f | 2a 20 63 6c 65 61 6e 75 |..} ;../|* cleanu|
|00001030| 70 20 74 65 72 6d 69 6e | 61 6c 20 2a 2f 0a 64 69 |p termin|al */.di|
|00001040| 65 28 29 0a 7b 0a 09 76 | 6f 69 64 09 62 6c 6f 63 |e().{..v|oid.bloc|
|00001050| 6b 28 29 3b 0a 0a 09 6d | 6f 76 65 28 20 32 30 2c |k();...m|ove( 20,|
|00001060| 20 30 20 29 3b 0a 09 72 | 65 66 72 65 73 68 28 29 | 0 );..r|efresh()|
|00001070| 3b 0a 09 65 6e 64 77 69 | 6e 28 29 3b 0a 2f 2a 09 |;..endwi|n();./*.|
|00001080| 72 65 73 65 74 74 79 28 | 29 3b 09 20 2a 2f 0a 09 |resetty(|);. */..|
|00001090| 62 6c 6f 63 6b 28 29 3b | 0a 09 65 78 69 74 28 20 |block();|..exit( |
|000010a0| 30 20 29 3b 0a 7d 0a 0a | 0a 6d 61 69 6e 28 20 61 |0 );.}..|.main( a|
|000010b0| 72 67 63 2c 20 61 72 67 | 76 20 29 0a 69 6e 74 09 |rgc, arg|v ).int.|
|000010c0| 61 72 67 63 3b 0a 63 68 | 61 72 20 2a 2a 61 72 67 |argc;.ch|ar **arg|
|000010d0| 76 3b 0a 7b 0a 09 72 65 | 67 69 73 74 65 72 20 4d |v;.{..re|gister M|
|000010e0| 53 47 09 2a 20 6d 70 3b | 0a 09 72 65 67 69 73 74 |SG.* mp;|..regist|
|000010f0| 65 72 20 46 49 4c 45 09 | 2a 20 73 61 72 66 70 3b |er FILE.|* sarfp;|
|00001100| 0a 0a 09 69 6e 74 09 09 | 69 3b 0a 09 69 6e 74 09 |...int..|i;..int.|
|00001110| 09 69 6e 74 65 72 76 61 | 6c 3b 0a 0a 09 63 68 61 |.interva|l;...cha|
|00001120| 72 09 62 75 66 5b 31 30 | 30 5d 3b 0a 0a 09 46 49 |r.buf[10|0];...FI|
|00001130| 4c 45 09 2a 20 70 6f 70 | 65 6e 28 29 3b 0a 09 69 |LE.* pop|en();..i|
|00001140| 6e 74 09 09 67 6f 74 69 | 6e 70 75 74 28 29 3b 0a |nt..goti|nput();.|
|00001150| 09 76 6f 69 64 09 6e 6f | 62 6c 6f 63 6b 28 29 3b |.void.no|block();|
|00001160| 0a 0a 09 2f 2a 20 70 72 | 6f 63 65 73 73 20 61 72 |.../* pr|ocess ar|
|00001170| 67 73 20 2a 2f 0a 09 69 | 66 28 20 61 72 67 63 20 |gs */..i|f( argc |
|00001180| 3e 20 32 20 29 0a 09 7b | 0a 09 09 66 70 72 69 6e |> 2 )..{|...fprin|
|00001190| 74 66 28 20 73 74 64 65 | 72 72 2c 20 22 55 73 61 |tf( stde|rr, "Usa|
|000011a0| 67 65 3a 20 25 73 20 5b | 20 69 6e 74 65 72 76 61 |ge: %s [| interva|
|000011b0| 6c 20 5d 5c 6e 22 2c 20 | 2a 61 72 67 76 20 29 3b |l ]\n", |*argv );|
|000011c0| 0a 09 09 65 78 69 74 20 | 28 20 31 20 29 3b 0a 09 |...exit |( 1 );..|
|000011d0| 7d 0a 09 0a 09 69 6e 74 | 65 72 76 61 6c 20 3d 20 |}....int|erval = |
|000011e0| 35 3b 0a 09 69 66 20 28 | 20 32 20 3d 3d 20 61 72 |5;..if (| 2 == ar|
|000011f0| 67 63 20 29 0a 09 09 28 | 76 6f 69 64 29 20 73 73 |gc )...(|void) ss|
|00001200| 63 61 6e 66 20 28 20 2a | 2b 2b 61 72 67 76 2c 20 |canf ( *|++argv, |
|00001210| 22 25 64 22 2c 20 26 69 | 6e 74 65 72 76 61 6c 20 |"%d", &i|nterval |
|00001220| 29 3b 0a 0a 09 28 76 6f | 69 64 29 20 73 70 72 69 |);...(vo|id) spri|
|00001230| 6e 74 66 28 20 62 75 66 | 2c 20 22 2f 75 73 72 2f |ntf( buf|, "/usr/|
|00001240| 62 69 6e 2f 73 61 72 20 | 2d 75 61 6d 71 76 62 63 |bin/sar |-uamqvbc|
|00001250| 77 64 20 25 64 20 39 39 | 39 39 22 2c 20 69 6e 74 |wd %d 99|99", int|
|00001260| 65 72 76 61 6c 20 29 3b | 0a 09 28 76 6f 69 64 29 |erval );|..(void)|
|00001270| 20 70 75 74 73 28 20 62 | 75 66 20 29 3b 0a 0a 09 | puts( b|uf );...|
|00001280| 2f 2a 20 6f 70 65 6e 20 | 74 68 65 20 70 69 70 65 |/* open |the pipe|
|00001290| 64 20 66 72 6f 6d 20 73 | 61 72 20 2a 2f 0a 09 69 |d from s|ar */..i|
|000012a0| 66 20 28 20 4e 55 4c 4c | 20 3d 3d 20 28 73 61 72 |f ( NULL| == (sar|
|000012b0| 66 70 20 3d 20 70 6f 70 | 65 6e 28 20 62 75 66 2c |fp = pop|en( buf,|
|000012c0| 20 22 72 22 20 29 29 20 | 29 0a 09 7b 0a 09 09 70 | "r" )) |)..{...p|
|000012d0| 65 72 72 6f 72 28 22 73 | 74 61 72 74 69 6e 67 20 |error("s|tarting |
|000012e0| 73 61 72 22 29 3b 0a 09 | 09 65 78 69 74 20 28 20 |sar");..|.exit ( |
|000012f0| 31 20 29 3b 0a 09 7d 0a | 0a 09 2f 2a 20 73 65 74 |1 );..}.|../* set|
|00001300| 75 70 20 73 63 72 65 65 | 6e 20 2a 2f 0a 2f 2a 09 |up scree|n */./*.|
|00001310| 73 61 76 65 74 74 79 28 | 29 3b 09 2a 2f 0a 09 69 |savetty(|);.*/..i|
|00001320| 6e 69 74 73 63 72 28 29 | 3b 0a 09 6e 6f 6e 6c 28 |nitscr()|;..nonl(|
|00001330| 29 3b 0a 09 63 62 72 65 | 61 6b 28 29 3b 0a 09 6e |);..cbre|ak();..n|
|00001340| 6f 62 6c 6f 63 6b 28 29 | 3b 0a 0a 09 2f 2a 20 6d |oblock()|;.../* m|
|00001350| 61 6b 65 20 73 75 72 65 | 20 79 6f 75 20 63 6c 65 |ake sure| you cle|
|00001360| 61 6e 75 70 20 2a 2f 0a | 09 28 76 6f 69 64 29 20 |anup */.|.(void) |
|00001370| 73 69 67 6e 61 6c 28 20 | 53 49 47 49 4e 54 2c 20 |signal( |SIGINT, |
|00001380| 64 69 65 20 29 3b 0a 09 | 28 76 6f 69 64 29 20 73 |die );..|(void) s|
|00001390| 69 67 6e 61 6c 28 20 53 | 49 47 51 55 49 54 2c 20 |ignal( S|IGQUIT, |
|000013a0| 64 69 65 20 29 3b 0a 09 | 28 76 6f 69 64 29 20 73 |die );..|(void) s|
|000013b0| 69 67 6e 61 6c 28 20 53 | 49 47 54 45 52 4d 2c 20 |ignal( S|IGTERM, |
|000013c0| 64 69 65 20 29 3b 0a 09 | 28 76 6f 69 64 29 20 73 |die );..|(void) s|
|000013d0| 69 67 6e 61 6c 28 20 53 | 49 47 48 55 50 2c 20 64 |ignal( S|IGHUP, d|
|000013e0| 69 65 20 29 3b 0a 09 0a | 09 2f 2a 20 70 72 6f 63 |ie );...|./* proc|
|000013f0| 65 73 73 20 68 65 61 64 | 65 72 20 6c 69 6e 65 73 |ess head|er lines|
|00001400| 20 2a 2f 0a 09 66 6f 72 | 28 20 69 20 3d 20 30 3b | */..for|( i = 0;|
|00001410| 20 69 20 3c 20 73 69 7a | 65 6f 66 20 68 64 72 6c | i < siz|eof hdrl|
|00001420| 69 6e 65 73 20 2f 20 73 | 69 7a 65 6f 66 28 20 4d |ines / s|izeof( M|
|00001430| 53 47 20 29 3b 20 69 2b | 2b 20 29 0a 09 7b 0a 09 |SG ); i+|+ )..{..|
|00001440| 09 69 66 20 28 20 4e 55 | 4c 4c 20 3d 3d 20 66 67 |.if ( NU|LL == fg|
|00001450| 65 74 73 28 20 62 75 66 | 2c 20 73 69 7a 65 6f 66 |ets( buf|, sizeof|
|00001460| 20 62 75 66 2c 20 73 61 | 72 66 70 20 29 29 0a 09 | buf, sa|rfp ))..|
|00001470| 09 09 64 69 65 28 29 3b | 0a 0a 09 09 64 6f 6d 73 |..die();|....doms|
|00001480| 67 28 20 62 75 66 2c 20 | 26 68 64 72 6c 69 6e 65 |g( buf, |&hdrline|
|00001490| 73 5b 69 5d 20 29 3b 0a | 09 7d 0a 0a 09 2f 2a 20 |s[i] );.|.}.../* |
|000014a0| 70 72 6f 63 65 73 73 20 | 64 61 74 61 20 6c 69 6e |process |data lin|
|000014b0| 65 73 20 66 6f 72 65 76 | 65 72 20 2a 2f 0a 09 66 |es forev|er */..f|
|000014c0| 6f 72 28 20 6d 70 20 3d | 20 64 61 74 61 6c 69 6e |or( mp =| datalin|
|000014d0| 65 73 3b 20 3b 20 6d 70 | 2b 2b 20 29 0a 09 7b 0a |es; ; mp|++ )..{.|
|000014e0| 09 09 69 66 20 28 20 67 | 6f 74 69 6e 70 75 74 28 |..if ( g|otinput(|
|000014f0| 29 20 29 0a 09 09 09 63 | 6c 65 61 72 6f 6b 28 20 |) )....c|learok( |
|00001500| 63 75 72 73 63 72 2c 20 | 54 52 55 45 20 29 3b 09 |curscr, |TRUE );.|
|00001510| 09 09 0a 0a 09 09 72 65 | 66 72 65 73 68 28 29 3b |......re|fresh();|
|00001520| 0a 0a 09 09 69 66 20 28 | 20 4e 55 4c 4c 20 3d 3d |....if (| NULL ==|
|00001530| 20 66 67 65 74 73 28 20 | 62 75 66 2c 20 73 69 7a | fgets( |buf, siz|
|00001540| 65 6f 66 20 62 75 66 2c | 20 73 61 72 66 70 20 29 |eof buf,| sarfp )|
|00001550| 29 0a 09 09 09 62 72 65 | 61 6b 3b 0a 0a 09 09 2f |)....bre|ak;..../|
|00001560| 2a 20 67 6f 74 20 61 20 | 64 61 74 65 3f 20 20 42 |* got a |date? B|
|00001570| 61 63 6b 20 74 6f 20 74 | 68 65 20 74 6f 70 2e 2e |ack to t|he top..|
|00001580| 2e 20 2a 2f 0a 09 09 69 | 66 28 20 27 20 27 20 21 |. */...i|f( ' ' !|
|00001590| 3d 20 62 75 66 5b 30 5d | 20 29 0a 09 09 09 6d 70 |= buf[0]| )....mp|
|000015a0| 20 3d 20 64 61 74 61 6c | 69 6e 65 73 3b 0a 0a 09 | = datal|ines;...|
|000015b0| 09 64 6f 6d 73 67 28 20 | 62 75 66 2c 20 6d 70 20 |.domsg( |buf, mp |
|000015c0| 29 3b 0a 09 7d 0a 0a 09 | 64 69 65 28 29 3b 0a 7d |);..}...|die();.}|
|000015d0| 0a 0a 0a 2f 2a 20 64 69 | 73 70 6c 61 79 20 61 20 |.../* di|splay a |
|000015e0| 6d 65 73 73 61 67 65 20 | 2a 2f 0a 64 6f 6d 73 67 |message |*/.domsg|
|000015f0| 28 20 62 75 66 2c 20 6d | 70 20 29 0a 63 68 61 72 |( buf, m|p ).char|
|00001600| 20 2a 20 62 75 66 3b 0a | 72 65 67 69 73 74 65 72 | * buf;.|register|
|00001610| 20 4d 53 47 20 2a 20 6d | 70 3b 0a 7b 0a 09 2f 2a | MSG * m|p;.{../*|
|00001620| 20 69 67 6e 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | ignore |this lin|
|00001630| 65 20 2a 2f 0a 09 69 66 | 20 28 20 2d 31 20 3d 3d |e */..if| ( -1 ==|
|00001640| 20 6d 70 2d 3e 78 20 29 | 0a 09 09 72 65 74 75 72 | mp->x )|...retur|
|00001650| 6e 3b 0a 0a 09 2f 2a 20 | 64 69 73 70 6c 61 79 20 |n;.../* |display |
|00001660| 69 6e 20 73 70 65 63 69 | 66 69 65 64 20 70 6c 61 |in speci|fied pla|
|00001670| 63 65 20 2a 2f 0a 09 62 | 75 66 5b 20 73 74 72 6c |ce */..b|uf[ strl|
|00001680| 65 6e 28 20 62 75 66 20 | 29 20 2d 20 31 20 5d 20 |en( buf |) - 1 ] |
|00001690| 3d 20 27 5c 30 27 3b 0a | 09 6d 6f 76 65 28 20 6d |= '\0';.|.move( m|
|000016a0| 70 2d 3e 78 2c 20 6d 70 | 2d 3e 79 20 29 3b 0a 09 |p->x, mp|->y );..|
|000016b0| 61 64 64 73 74 72 28 20 | 26 62 75 66 5b 20 6d 70 |addstr( |&buf[ mp|
|000016c0| 2d 3e 73 6b 69 70 20 5d | 20 29 3b 0a 09 69 66 20 |->skip ]| );..if |
|000016d0| 28 20 6d 70 2d 3e 64 6f | 63 6c 65 61 72 20 29 0a |( mp->do|clear ).|
|000016e0| 09 09 63 6c 72 74 6f 65 | 6f 6c 28 29 3b 0a 0a 09 |..clrtoe|ol();...|
|000016f0| 2f 2a 20 61 6c 77 61 79 | 73 20 6c 65 61 76 65 20 |/* alway|s leave |
|00001700| 63 75 72 73 6f 72 20 68 | 65 72 65 20 2a 2f 0a 09 |cursor h|ere */..|
|00001710| 6d 6f 76 65 28 20 32 30 | 2c 20 30 20 29 3b 0a 7d |move( 20|, 0 );.}|
|00001720| 0a 0a 2f 2a 20 70 75 74 | 20 69 6e 70 75 74 20 69 |../* put| input i|
|00001730| 6e 20 6e 6f 6e 2d 62 6c | 6f 63 6b 69 6e 67 20 73 |n non-bl|ocking s|
|00001740| 74 61 74 65 20 2a 2f 0a | 76 6f 69 64 0a 6e 6f 62 |tate */.|void.nob|
|00001750| 6c 6f 63 6b 28 29 0a 7b | 0a 09 69 6e 74 09 66 6c |lock().{|..int.fl|
|00001760| 61 67 73 3b 0a 0a 09 66 | 6c 61 67 73 20 3d 20 66 |ags;...f|lags = f|
|00001770| 63 6e 74 6c 28 20 30 2c | 20 46 5f 47 45 54 46 4c |cntl( 0,| F_GETFL|
|00001780| 2c 20 30 20 29 3b 0a 09 | 28 76 6f 69 64 29 20 66 |, 0 );..|(void) f|
|00001790| 63 6e 74 6c 28 20 30 2c | 20 46 5f 53 45 54 46 4c |cntl( 0,| F_SETFL|
|000017a0| 2c 20 66 6c 61 67 73 20 | 7c 20 4f 5f 4e 44 45 4c |, flags || O_NDEL|
|000017b0| 41 59 20 29 3b 0a 7d 0a | 0a 2f 2a 20 70 75 74 20 |AY );.}.|./* put |
|000017c0| 69 6e 70 75 74 20 69 6e | 20 62 6c 6f 63 6b 69 6e |input in| blockin|
|000017d0| 67 20 73 74 61 74 65 20 | 2a 2f 0a 76 6f 69 64 0a |g state |*/.void.|
|000017e0| 62 6c 6f 63 6b 28 29 0a | 7b 0a 09 69 6e 74 09 66 |block().|{..int.f|
|000017f0| 6c 61 67 73 3b 0a 0a 09 | 66 6c 61 67 73 20 3d 20 |lags;...|flags = |
|00001800| 66 63 6e 74 6c 28 20 30 | 2c 20 46 5f 47 45 54 46 |fcntl( 0|, F_GETF|
|00001810| 4c 2c 20 30 20 29 3b 0a | 09 28 76 6f 69 64 29 20 |L, 0 );.|.(void) |
|00001820| 66 63 6e 74 6c 28 20 30 | 2c 20 46 5f 53 45 54 46 |fcntl( 0|, F_SETF|
|00001830| 4c 2c 20 66 6c 61 67 73 | 20 26 20 7e 4f 5f 4e 44 |L, flags| & ~O_ND|
|00001840| 45 4c 41 59 20 29 3b 0a | 7d 0a 0a 0a 2f 2a 20 61 |ELAY );.|}.../* a|
|00001850| 6e 79 20 69 6e 70 75 74 | 20 70 65 6e 64 69 6e 67 |ny input| pending|
|00001860| 3f 20 2a 2f 0a 69 6e 74 | 0a 67 6f 74 69 6e 70 75 |? */.int|.gotinpu|
|00001870| 74 28 29 0a 7b 0a 09 63 | 68 61 72 09 67 61 72 62 |t().{..c|har.garb|
|00001880| 61 67 65 5b 20 42 55 46 | 53 49 5a 20 5d 3b 0a 0a |age[ BUF|SIZ ];..|
|00001890| 09 2f 2a 20 72 65 74 75 | 72 6e 20 30 20 69 66 20 |./* retu|rn 0 if |
|000018a0| 6e 6f 20 69 6e 70 75 74 | 20 2a 2f 0a 09 72 65 74 |no input| */..ret|
|000018b0| 75 72 6e 20 28 20 72 65 | 61 64 28 20 30 2c 20 67 |urn ( re|ad( 0, g|
|000018c0| 61 72 62 61 67 65 2c 20 | 73 69 7a 65 6f 66 20 67 |arbage, |sizeof g|
|000018d0| 61 72 62 61 67 65 20 29 | 20 29 3b 0a 7d 0a 0a 0a |arbage )| );.}...|
|000018e0| 2f 2a 20 65 6e 64 20 6f | 66 20 76 73 61 72 2e 63 |/* end o|f vsar.c|
|000018f0| 20 2a 2f 0a 0a 0a 00 00 | 00 00 00 00 00 00 00 00 | */.....|........|
|00001900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+