home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / SUN / TOPS / TIP.TAR next >
Tape Archive  |  1989-06-09  |  216.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file tip/, mode 755 , uid 0 , gid 0 , size 0 , seconds 4440047711 default
98% file data default
100% TrID Sybase iAnywhere database files default (weak)
100% dearkID deark: tar default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default (weak)
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 74 69 70 2f 00 00 00 00 | 00 00 00 00 00 00 00 00 |tip/....|........|
|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 20 |.... 7|55 . |
|00000070| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 34 30 30 34 37 | 0 | 4440047|
|00000090| 37 31 31 20 20 20 34 35 | 31 35 00 20 00 00 00 00 |711 45|15. ....|
|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| 74 69 70 2f 74 69 70 2e | 63 00 00 00 00 00 00 00 |tip/tip.|c.......|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 20 |.... 6|44 . |
|00000270| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00000280| 20 20 33 31 36 33 31 20 | 20 34 34 34 34 32 36 37 | 31631 | 4444267|
|00000290| 31 30 37 20 20 20 35 35 | 37 35 00 20 00 00 00 00 |107 55|75. ....|
|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| 2f 2a 0a 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*. * Co|pyright |
|00000410| 28 63 29 20 31 39 38 33 | 20 54 68 65 20 52 65 67 |(c) 1983| The Reg|
|00000420| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 55 6e 69 76 |ents of |the Univ|
|00000430| 65 72 73 69 74 79 20 6f | 66 20 43 61 6c 69 66 6f |ersity o|f Califo|
|00000440| 72 6e 69 61 2e 0a 20 2a | 20 41 6c 6c 20 72 69 67 |rnia.. *| All rig|
|00000450| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 20 2a |hts rese|rved.. *|
|00000460| 0a 20 2a 20 52 65 64 69 | 73 74 72 69 62 75 74 69 |. * Redi|stributi|
|00000470| 6f 6e 20 61 6e 64 20 75 | 73 65 20 69 6e 20 73 6f |on and u|se in so|
|00000480| 75 72 63 65 20 61 6e 64 | 20 62 69 6e 61 72 79 20 |urce and| binary |
|00000490| 66 6f 72 6d 73 20 61 72 | 65 20 70 65 72 6d 69 74 |forms ar|e permit|
|000004a0| 74 65 64 0a 20 2a 20 70 | 72 6f 76 69 64 65 64 20 |ted. * p|rovided |
|000004b0| 74 68 61 74 20 74 68 65 | 20 61 62 6f 76 65 20 63 |that the| above c|
|000004c0| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 20 |opyright| notice |
|000004d0| 61 6e 64 20 74 68 69 73 | 20 70 61 72 61 67 72 61 |and this| paragra|
|000004e0| 70 68 20 61 72 65 0a 20 | 2a 20 64 75 70 6c 69 63 |ph are. |* duplic|
|000004f0| 61 74 65 64 20 69 6e 20 | 61 6c 6c 20 73 75 63 68 |ated in |all such|
|00000500| 20 66 6f 72 6d 73 20 61 | 6e 64 20 74 68 61 74 20 | forms a|nd that |
|00000510| 61 6e 79 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |any docu|mentatio|
|00000520| 6e 2c 0a 20 2a 20 61 64 | 76 65 72 74 69 73 69 6e |n,. * ad|vertisin|
|00000530| 67 20 6d 61 74 65 72 69 | 61 6c 73 2c 20 61 6e 64 |g materi|als, and|
|00000540| 20 6f 74 68 65 72 20 6d | 61 74 65 72 69 61 6c 73 | other m|aterials|
|00000550| 20 72 65 6c 61 74 65 64 | 20 74 6f 20 73 75 63 68 | related| to such|
|00000560| 0a 20 2a 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |. * dist|ribution|
|00000570| 20 61 6e 64 20 75 73 65 | 20 61 63 6b 6e 6f 77 6c | and use| acknowl|
|00000580| 65 64 67 65 20 74 68 61 | 74 20 74 68 65 20 73 6f |edge tha|t the so|
|00000590| 66 74 77 61 72 65 20 77 | 61 73 20 64 65 76 65 6c |ftware w|as devel|
|000005a0| 6f 70 65 64 0a 20 2a 20 | 62 79 20 74 68 65 20 55 |oped. * |by the U|
|000005b0| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 43 61 6c |niversit|y of Cal|
|000005c0| 69 66 6f 72 6e 69 61 2c | 20 42 65 72 6b 65 6c 65 |ifornia,| Berkele|
|000005d0| 79 2e 20 20 54 68 65 20 | 6e 61 6d 65 20 6f 66 20 |y. The |name of |
|000005e0| 74 68 65 0a 20 2a 20 55 | 6e 69 76 65 72 73 69 74 |the. * U|niversit|
|000005f0| 79 20 6d 61 79 20 6e 6f | 74 20 62 65 20 75 73 65 |y may no|t be use|
|00000600| 64 20 74 6f 20 65 6e 64 | 6f 72 73 65 20 6f 72 20 |d to end|orse or |
|00000610| 70 72 6f 6d 6f 74 65 20 | 70 72 6f 64 75 63 74 73 |promote |products|
|00000620| 20 64 65 72 69 76 65 64 | 0a 20 2a 20 66 72 6f 6d | derived|. * from|
|00000630| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 20 77 | this so|ftware w|
|00000640| 69 74 68 6f 75 74 20 73 | 70 65 63 69 66 69 63 20 |ithout s|pecific |
|00000650| 70 72 69 6f 72 20 77 72 | 69 74 74 65 6e 20 70 65 |prior wr|itten pe|
|00000660| 72 6d 69 73 73 69 6f 6e | 2e 0a 20 2a 20 54 48 49 |rmission|.. * THI|
|00000670| 53 20 53 4f 46 54 57 41 | 52 45 20 49 53 20 50 52 |S SOFTWA|RE IS PR|
|00000680| 4f 56 49 44 45 44 20 60 | 60 41 53 20 49 53 27 27 |OVIDED `|`AS IS''|
|00000690| 20 41 4e 44 20 57 49 54 | 48 4f 55 54 20 41 4e 59 | AND WIT|HOUT ANY|
|000006a0| 20 45 58 50 52 45 53 53 | 20 4f 52 0a 20 2a 20 49 | EXPRESS| OR. * I|
|000006b0| 4d 50 4c 49 45 44 20 57 | 41 52 52 41 4e 54 49 45 |MPLIED W|ARRANTIE|
|000006c0| 53 2c 20 49 4e 43 4c 55 | 44 49 4e 47 2c 20 57 49 |S, INCLU|DING, WI|
|000006d0| 54 48 4f 55 54 20 4c 49 | 4d 49 54 41 54 49 4f 4e |THOUT LI|MITATION|
|000006e0| 2c 20 54 48 45 20 49 4d | 50 4c 49 45 44 0a 20 2a |, THE IM|PLIED. *|
|000006f0| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 4d | WARRANT|IES OF M|
|00000700| 45 52 43 48 41 4e 54 49 | 42 49 4c 49 54 59 20 41 |ERCHANTI|BILITY A|
|00000710| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00000720| 20 50 41 52 54 49 43 55 | 4c 41 52 20 50 55 52 50 | PARTICU|LAR PURP|
|00000730| 4f 53 45 2e 0a 20 2a 2f | 0a 0a 23 69 66 6e 64 65 |OSE.. */|..#ifnde|
|00000740| 66 20 6c 69 6e 74 0a 63 | 68 61 72 20 63 6f 70 79 |f lint.c|har copy|
|00000750| 72 69 67 68 74 5b 5d 20 | 3d 0a 22 40 28 23 29 20 |right[] |=."@(#) |
|00000760| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 31 39 |Copyrigh|t (c) 19|
|00000770| 38 33 20 54 68 65 20 52 | 65 67 65 6e 74 73 20 6f |83 The R|egents o|
|00000780| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00000790| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2e 5c | of Cali|fornia.\|
|000007a0| 6e 5c 0a 20 41 6c 6c 20 | 72 69 67 68 74 73 20 72 |n\. All |rights r|
|000007b0| 65 73 65 72 76 65 64 2e | 5c 6e 22 3b 0a 23 65 6e |eserved.|\n";.#en|
|000007c0| 64 69 66 20 2f 2a 20 6e | 6f 74 20 6c 69 6e 74 20 |dif /* n|ot lint |
|000007d0| 2a 2f 0a 0a 23 69 66 6e | 64 65 66 20 6c 69 6e 74 |*/..#ifn|def lint|
|000007e0| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 73 63 63 |.static |char scc|
|000007f0| 73 69 64 5b 5d 20 3d 20 | 22 40 28 23 29 74 69 70 |sid[] = |"@(#)tip|
|00000800| 2e 63 09 35 2e 38 20 28 | 42 65 72 6b 65 6c 65 79 |.c.5.8 (|Berkeley|
|00000810| 29 20 39 2f 32 2f 38 38 | 22 3b 0a 23 65 6e 64 69 |) 9/2/88|";.#endi|
|00000820| 66 20 2f 2a 20 6e 6f 74 | 20 6c 69 6e 74 20 2a 2f |f /* not| lint */|
|00000830| 0a 0a 2f 2a 0a 20 2a 20 | 74 69 70 20 2d 20 55 4e |../*. * |tip - UN|
|00000840| 49 58 20 6c 69 6e 6b 20 | 74 6f 20 6f 74 68 65 72 |IX link |to other|
|00000850| 20 73 79 73 74 65 6d 73 | 0a 20 2a 20 20 74 69 70 | systems|. * tip|
|00000860| 20 5b 2d 70 73 76 5d 20 | 5b 2d 73 70 65 65 64 5d | [-psv] |[-speed]|
|00000870| 20 73 79 73 74 65 6d 2d | 6e 61 6d 65 20 5b 64 61 | system-|name [da|
|00000880| 74 61 5d 0a 20 2a 20 6f | 72 0a 20 2a 20 20 63 75 |ta]. * o|r. * cu|
|00000890| 20 70 68 6f 6e 65 2d 6e | 75 6d 62 65 72 20 5b 2d | phone-n|umber [-|
|000008a0| 73 20 73 70 65 65 64 5d | 20 5b 2d 6c 20 6c 69 6e |s speed]| [-l lin|
|000008b0| 65 5d 20 5b 2d 61 20 61 | 63 75 5d 0a 20 2a 2f 0a |e] [-a a|cu]. */.|
|000008c0| 23 69 6e 63 6c 75 64 65 | 20 22 74 69 70 2e 68 22 |#include| "tip.h"|
|000008d0| 0a 0a 2f 2a 0a 20 2a 20 | 42 61 75 64 20 72 61 74 |../*. * |Baud rat|
|000008e0| 65 20 6d 61 70 70 69 6e | 67 20 74 61 62 6c 65 0a |e mappin|g table.|
|000008f0| 20 2a 2f 0a 69 6e 74 20 | 62 61 75 64 73 5b 5d 20 | */.int |bauds[] |
|00000900| 3d 20 7b 0a 09 30 2c 20 | 35 30 2c 20 37 35 2c 20 |= {..0, |50, 75, |
|00000910| 31 31 30 2c 20 31 33 34 | 2c 20 31 35 30 2c 20 32 |110, 134|, 150, 2|
|00000920| 30 30 2c 20 33 30 30 2c | 20 36 30 30 2c 0a 09 31 |00, 300,| 600,..1|
|00000930| 32 30 30 2c 20 31 38 30 | 30 2c 20 32 34 30 30 2c |200, 180|0, 2400,|
|00000940| 20 34 38 30 30 2c 20 39 | 36 30 30 2c 20 31 39 32 | 4800, 9|600, 192|
|00000950| 30 30 2c 20 33 38 34 30 | 30 2c 20 2d 31 0a 7d 3b |00, 3840|0, -1.};|
|00000960| 0a 0a 69 6e 74 09 70 61 | 67 65 3b 0a 69 6e 74 09 |..int.pa|ge;.int.|
|00000970| 64 69 73 63 20 3d 20 4f | 54 54 59 44 49 53 43 3b |disc = O|TTYDISC;|
|00000980| 09 09 2f 2a 20 74 69 70 | 20 6e 6f 72 6d 61 6c 6c |../* tip| normall|
|00000990| 79 20 72 75 6e 73 20 74 | 68 69 73 20 77 61 79 20 |y runs t|his way |
|000009a0| 2a 2f 0a 73 69 67 66 75 | 6e 63 5f 74 09 69 6e 74 |*/.sigfu|nc_t.int|
|000009b0| 70 72 6f 6d 70 74 28 29 | 3b 0a 73 69 67 66 75 6e |prompt()|;.sigfun|
|000009c0| 63 5f 74 09 74 69 6d 65 | 6f 75 74 28 29 3b 0a 73 |c_t.time|out();.s|
|000009d0| 69 67 66 75 6e 63 5f 74 | 09 63 6c 65 61 6e 75 70 |igfunc_t|.cleanup|
|000009e0| 28 29 3b 0a 63 68 61 72 | 09 2a 6c 6f 67 69 6e 28 |();.char|.*login(|
|000009f0| 29 3b 0a 63 68 61 72 09 | 2a 73 6e 61 6d 65 28 29 |);.char.|*sname()|
|00000a00| 3b 0a 63 68 61 72 09 50 | 4e 62 75 66 5b 32 35 36 |;.char.P|Nbuf[256|
|00000a10| 5d 3b 09 09 09 2f 2a 20 | 54 68 69 73 20 6c 69 6d |];.../* |This lim|
|00000a20| 69 74 73 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |its the |size of |
|00000a30| 61 20 6e 75 6d 62 65 72 | 20 2a 2f 0a 0a 6d 61 69 |a number| */..mai|
|00000a40| 6e 28 61 72 67 63 2c 20 | 61 72 67 76 29 0a 09 63 |n(argc, |argv)..c|
|00000a50| 68 61 72 20 2a 61 72 67 | 76 5b 5d 3b 0a 7b 0a 09 |har *arg|v[];.{..|
|00000a60| 69 6e 74 20 75 75 69 64 | 3b 0a 09 63 68 61 72 20 |int uuid|;..char |
|00000a70| 2a 73 79 73 74 65 6d 20 | 3d 20 4e 4f 53 54 52 3b |*system |= NOSTR;|
|00000a80| 0a 09 63 68 61 72 20 2a | 64 61 74 61 20 3d 20 4e |..char *|data = N|
|00000a90| 4f 53 54 52 3b 0a 09 72 | 65 67 69 73 74 65 72 20 |OSTR;..r|egister |
|00000aa0| 69 6e 74 20 69 3b 0a 09 | 72 65 67 69 73 74 65 72 |int i;..|register|
|00000ab0| 20 63 68 61 72 20 2a 70 | 3b 0a 09 63 68 61 72 20 | char *p|;..char |
|00000ac0| 73 62 75 66 5b 31 32 5d | 3b 0a 0a 09 75 69 64 20 |sbuf[12]|;...uid |
|00000ad0| 3d 20 67 65 74 75 69 64 | 28 29 3b 0a 09 67 69 64 |= getuid|();..gid|
|00000ae0| 20 3d 20 67 65 74 67 69 | 64 28 29 3b 0a 09 65 75 | = getgi|d();..eu|
|00000af0| 69 64 20 3d 20 67 65 74 | 65 75 69 64 28 29 3b 09 |id = get|euid();.|
|00000b00| 2f 2a 20 73 68 6f 75 6c | 64 20 62 65 20 72 6f 6f |/* shoul|d be roo|
|00000b10| 74 20 2a 2f 0a 09 65 67 | 69 64 20 3d 20 67 65 74 |t */..eg|id = get|
|00000b20| 65 67 69 64 28 29 3b 0a | 09 75 75 69 64 20 3d 20 |egid();.|.uuid = |
|00000b30| 67 65 74 75 75 63 70 75 | 69 64 28 29 3b 0a 09 0a |getuucpu|id();...|
|00000b40| 09 69 66 20 28 65 71 75 | 61 6c 28 73 6e 61 6d 65 |.if (equ|al(sname|
|00000b50| 28 61 72 67 76 5b 30 5d | 29 2c 20 22 63 75 22 29 |(argv[0]|), "cu")|
|00000b60| 29 20 7b 0a 09 09 73 65 | 74 72 65 75 69 64 28 75 |) {...se|treuid(u|
|00000b70| 69 64 2c 20 75 75 69 64 | 29 3b 0a 09 09 63 75 6d |id, uuid|);...cum|
|00000b80| 6f 64 65 20 3d 20 31 3b | 0a 09 09 63 75 6d 61 69 |ode = 1;|...cumai|
|00000b90| 6e 28 61 72 67 63 2c 20 | 61 72 67 76 29 3b 0a 09 |n(argc, |argv);..|
|00000ba0| 09 67 6f 74 6f 20 63 75 | 63 6f 6d 6d 6f 6e 3b 0a |.goto cu|common;.|
|00000bb0| 09 7d 0a 0a 09 69 66 20 | 28 61 72 67 63 20 3c 20 |.}...if |(argc < |
|00000bc0| 32 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |2) {...f|printf(s|
|00000bd0| 74 64 65 72 72 2c 20 22 | 75 73 61 67 65 3a 20 74 |tderr, "|usage: t|
|00000be0| 69 70 20 5b 2d 70 73 76 | 5d 20 5b 2d 73 70 65 65 |ip [-psv|] [-spee|
|00000bf0| 64 5d 20 5b 73 79 73 74 | 65 6d 2d 6e 61 6d 65 5d |d] [syst|em-name]|
|00000c00| 20 5b 64 61 74 61 5d 5c | 6e 22 29 3b 0a 09 09 65 | [data]\|n");...e|
|00000c10| 78 69 74 28 31 29 3b 0a | 09 7d 0a 0a 09 66 6f 72 |xit(1);.|.}...for|
|00000c20| 20 28 3b 20 61 72 67 63 | 20 3e 20 31 3b 20 61 72 | (; argc| > 1; ar|
|00000c30| 67 76 2b 2b 2c 20 61 72 | 67 63 2d 2d 29 20 7b 0a |gv++, ar|gc--) {.|
|00000c40| 09 09 69 66 20 28 61 72 | 67 76 5b 31 5d 5b 30 5d |..if (ar|gv[1][0]|
|00000c50| 20 21 3d 20 27 2d 27 29 | 20 7b 0a 09 09 09 69 66 | != '-')| {....if|
|00000c60| 20 28 73 79 73 74 65 6d | 29 0a 09 09 09 09 64 61 | (system|).....da|
|00000c70| 74 61 20 3d 20 61 72 67 | 76 5b 31 5d 3b 0a 09 09 |ta = arg|v[1];...|
|00000c80| 09 65 6c 73 65 0a 09 09 | 09 09 73 79 73 74 65 6d |.else...|..system|
|00000c90| 20 3d 20 61 72 67 76 5b | 31 5d 3b 0a 09 09 7d 0a | = argv[|1];...}.|
|00000ca0| 09 09 65 6c 73 65 20 73 | 77 69 74 63 68 20 28 61 |..else s|witch (a|
|00000cb0| 72 67 76 5b 31 5d 5b 31 | 5d 29 20 7b 0a 0a 09 09 |rgv[1][1|]) {....|
|00000cc0| 63 61 73 65 20 27 70 27 | 3a 0a 09 09 09 70 61 67 |case 'p'|:....pag|
|00000cd0| 65 2b 2b 3b 0a 09 09 09 | 62 72 65 61 6b 3b 0a 09 |e++;....|break;..|
|00000ce0| 09 63 61 73 65 20 27 73 | 27 3a 0a 09 09 09 73 6c |.case 's|':....sl|
|00000cf0| 69 70 2b 2b 3b 0a 09 09 | 09 62 72 65 61 6b 3b 0a |ip++;...|.break;.|
|00000d00| 09 09 63 61 73 65 20 27 | 76 27 3a 0a 09 09 09 76 |..case '|v':....v|
|00000d10| 66 6c 61 67 2b 2b 3b 0a | 09 09 09 62 72 65 61 6b |flag++;.|...break|
|00000d20| 3b 0a 0a 09 09 63 61 73 | 65 20 27 30 27 3a 20 63 |;....cas|e '0': c|
|00000d30| 61 73 65 20 27 31 27 3a | 20 63 61 73 65 20 27 32 |ase '1':| case '2|
|00000d40| 27 3a 20 63 61 73 65 20 | 27 33 27 3a 20 63 61 73 |': case |'3': cas|
|00000d50| 65 20 27 34 27 3a 0a 09 | 09 63 61 73 65 20 27 35 |e '4':..|.case '5|
|00000d60| 27 3a 20 63 61 73 65 20 | 27 36 27 3a 20 63 61 73 |': case |'6': cas|
|00000d70| 65 20 27 37 27 3a 20 63 | 61 73 65 20 27 38 27 3a |e '7': c|ase '8':|
|00000d80| 20 63 61 73 65 20 27 39 | 27 3a 0a 09 09 09 42 52 | case '9|':....BR|
|00000d90| 20 3d 20 61 74 6f 69 28 | 26 61 72 67 76 5b 31 5d | = atoi(|&argv[1]|
|00000da0| 5b 31 5d 29 3b 0a 09 09 | 09 62 72 65 61 6b 3b 0a |[1]);...|.break;.|
|00000db0| 0a 09 09 64 65 66 61 75 | 6c 74 3a 0a 09 09 09 66 |...defau|lt:....f|
|00000dc0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|00000dd0| 74 69 70 3a 20 25 73 2c | 20 75 6e 6b 6e 6f 77 6e |tip: %s,| unknown|
|00000de0| 20 6f 70 74 69 6f 6e 5c | 6e 22 2c 20 61 72 67 76 | option\|n", argv|
|00000df0| 5b 31 5d 29 3b 0a 09 09 | 09 62 72 65 61 6b 3b 0a |[1]);...|.break;.|
|00000e00| 09 09 7d 0a 09 7d 0a 09 | 69 66 20 28 21 69 73 61 |..}..}..|if (!isa|
|00000e10| 74 74 79 28 30 29 20 26 | 26 20 21 73 6c 69 70 20 |tty(0) &|& !slip |
|00000e20| 26 26 20 21 70 61 67 65 | 29 20 7b 0a 09 09 66 70 |&& !page|) {...fp|
|00000e30| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 74 |rintf(st|derr, "t|
|00000e40| 69 70 3a 20 77 61 72 6e | 69 6e 67 3a 20 69 6e 70 |ip: warn|ing: inp|
|00000e50| 75 74 20 69 73 20 6e 6f | 74 20 61 20 74 74 79 5c |ut is no|t a tty\|
|00000e60| 6e 22 29 3b 0a 09 7d 0a | 09 69 66 20 28 73 6c 69 |n");..}.|.if (sli|
|00000e70| 70 29 20 7b 0a 09 09 73 | 65 74 72 65 75 69 64 28 |p) {...s|etreuid(|
|00000e80| 65 75 69 64 2c 20 75 75 | 69 64 29 3b 0a 09 09 75 |euid, uu|id);...u|
|00000e90| 69 64 20 3d 20 30 3b 0a | 09 7d 20 65 6c 73 65 20 |id = 0;.|.} else |
|00000ea0| 7b 0a 09 09 73 65 74 72 | 65 75 69 64 28 75 69 64 |{...setr|euid(uid|
|00000eb0| 2c 20 75 75 69 64 29 3b | 0a 09 7d 0a 09 65 75 69 |, uuid);|..}..eui|
|00000ec0| 64 20 3d 20 75 75 69 64 | 3b 0a 0a 09 69 66 20 28 |d = uuid|;...if (|
|00000ed0| 73 79 73 74 65 6d 20 3d | 3d 20 4e 4f 53 54 52 29 |system =|= NOSTR)|
|00000ee0| 0a 09 09 67 6f 74 6f 20 | 6e 6f 74 6e 75 6d 62 65 |...goto |notnumbe|
|00000ef0| 72 3b 0a 09 69 66 20 28 | 69 73 61 6c 70 68 61 28 |r;..if (|isalpha(|
|00000f00| 2a 73 79 73 74 65 6d 29 | 29 0a 09 09 67 6f 74 6f |*system)|)...goto|
|00000f10| 20 6e 6f 74 6e 75 6d 62 | 65 72 3b 0a 09 2f 2a 0a | notnumb|er;../*.|
|00000f20| 09 20 2a 20 53 79 73 74 | 65 6d 20 6e 61 6d 65 20 |. * Syst|em name |
|00000f30| 69 73 20 72 65 61 6c 6c | 79 20 61 20 70 68 6f 6e |is reall|y a phon|
|00000f40| 65 20 6e 75 6d 62 65 72 | 2e 2e 2e 0a 09 20 2a 20 |e number|..... * |
|00000f50| 43 6f 70 79 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |Copy the| number |
|00000f60| 74 68 65 6e 20 73 74 6f | 6d 70 20 6f 6e 20 74 68 |then sto|mp on th|
|00000f70| 65 20 6f 72 69 67 69 6e | 61 6c 20 28 69 6e 20 63 |e origin|al (in c|
|00000f80| 61 73 65 20 74 68 65 20 | 6e 75 6d 62 65 72 0a 09 |ase the |number..|
|00000f90| 20 2a 09 69 73 20 70 72 | 69 76 61 74 65 2c 20 77 | *.is pr|ivate, w|
|00000fa0| 65 20 64 6f 6e 27 74 20 | 77 61 6e 74 20 27 70 73 |e don't |want 'ps|
|00000fb0| 27 20 6f 72 20 27 77 27 | 20 74 6f 20 66 69 6e 64 |' or 'w'| to find|
|00000fc0| 20 69 74 29 2e 0a 09 20 | 2a 2f 0a 09 69 66 20 28 | it)... |*/..if (|
|00000fd0| 73 74 72 6c 65 6e 28 73 | 79 73 74 65 6d 29 20 3e |strlen(s|ystem) >|
|00000fe0| 20 73 69 7a 65 6f 66 20 | 50 4e 62 75 66 20 2d 20 | sizeof |PNbuf - |
|00000ff0| 31 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |1) {...f|printf(s|
|00001000| 74 64 65 72 72 2c 20 22 | 74 69 70 3a 20 70 68 6f |tderr, "|tip: pho|
|00001010| 6e 65 20 6e 75 6d 62 65 | 72 20 74 6f 6f 20 6c 6f |ne numbe|r too lo|
|00001020| 6e 67 20 28 6d 61 78 20 | 3d 20 25 64 20 62 79 74 |ng (max |= %d byt|
|00001030| 65 73 29 5c 6e 22 2c 0a | 09 09 09 73 69 7a 65 6f |es)\n",.|...sizeo|
|00001040| 66 20 50 4e 62 75 66 20 | 2d 20 31 29 3b 0a 09 09 |f PNbuf |- 1);...|
|00001050| 65 78 69 74 28 31 29 3b | 0a 09 7d 0a 09 73 74 72 |exit(1);|..}..str|
|00001060| 6e 63 70 79 28 20 50 4e | 62 75 66 2c 20 73 79 73 |ncpy( PN|buf, sys|
|00001070| 74 65 6d 2c 20 73 69 7a | 65 6f 66 20 50 4e 62 75 |tem, siz|eof PNbu|
|00001080| 66 20 2d 20 31 20 29 3b | 0a 09 66 6f 72 20 28 70 |f - 1 );|..for (p|
|00001090| 20 3d 20 73 79 73 74 65 | 6d 3b 20 2a 70 3b 20 70 | = syste|m; *p; p|
|000010a0| 2b 2b 29 0a 09 09 2a 70 | 20 3d 20 27 5c 30 27 3b |++)...*p| = '\0';|
|000010b0| 0a 09 50 4e 20 3d 20 50 | 4e 62 75 66 3b 0a 09 28 |..PN = P|Nbuf;..(|
|000010c0| 76 6f 69 64 29 73 70 72 | 69 6e 74 66 28 73 62 75 |void)spr|intf(sbu|
|000010d0| 66 2c 20 22 74 69 70 25 | 64 22 2c 20 42 52 29 3b |f, "tip%|d", BR);|
|000010e0| 0a 09 73 79 73 74 65 6d | 20 3d 20 73 62 75 66 3b |..system| = sbuf;|
|000010f0| 0a 0a 6e 6f 74 6e 75 6d | 62 65 72 3a 0a 09 73 69 |..notnum|ber:..si|
|00001100| 67 6e 61 6c 28 53 49 47 | 49 4e 54 2c 20 63 6c 65 |gnal(SIG|INT, cle|
|00001110| 61 6e 75 70 29 3b 0a 09 | 73 69 67 6e 61 6c 28 53 |anup);..|signal(S|
|00001120| 49 47 51 55 49 54 2c 20 | 63 6c 65 61 6e 75 70 29 |IGQUIT, |cleanup)|
|00001130| 3b 0a 09 73 69 67 6e 61 | 6c 28 53 49 47 48 55 50 |;..signa|l(SIGHUP|
|00001140| 2c 20 63 6c 65 61 6e 75 | 70 29 3b 0a 09 73 69 67 |, cleanu|p);..sig|
|00001150| 6e 61 6c 28 53 49 47 54 | 45 52 4d 2c 20 63 6c 65 |nal(SIGT|ERM, cle|
|00001160| 61 6e 75 70 29 3b 0a 09 | 73 69 67 6e 61 6c 28 53 |anup);..|signal(S|
|00001170| 49 47 50 49 50 45 2c 20 | 63 6c 65 61 6e 75 70 29 |IGPIPE, |cleanup)|
|00001180| 3b 0a 0a 09 69 66 20 28 | 28 69 20 3d 20 68 75 6e |;...if (|(i = hun|
|00001190| 74 28 73 79 73 74 65 6d | 29 29 20 3d 3d 20 30 29 |t(system|)) == 0)|
|000011a0| 20 7b 0a 09 09 70 72 69 | 6e 74 66 28 22 61 6c 6c | {...pri|ntf("all|
|000011b0| 20 70 6f 72 74 73 20 62 | 75 73 79 5c 6e 22 29 3b | ports b|usy\n");|
|000011c0| 0a 09 09 65 78 69 74 28 | 33 29 3b 0a 09 7d 0a 09 |...exit(|3);..}..|
|000011d0| 69 66 20 28 69 20 3d 3d | 20 2d 31 29 20 7b 0a 09 |if (i ==| -1) {..|
|000011e0| 09 70 72 69 6e 74 66 28 | 22 6c 69 6e 6b 20 64 6f |.printf(|"link do|
|000011f0| 77 6e 5c 6e 22 29 3b 0a | 09 09 28 76 6f 69 64 29 |wn\n");.|..(void)|
|00001200| 75 75 5f 75 6e 6c 6f 63 | 6b 28 75 75 63 70 6c 6f |uu_unloc|k(uucplo|
|00001210| 63 6b 29 3b 0a 09 09 65 | 78 69 74 28 33 29 3b 0a |ck);...e|xit(3);.|
|00001220| 09 7d 0a 09 73 65 74 62 | 75 66 28 73 74 64 6f 75 |.}..setb|uf(stdou|
|00001230| 74 2c 20 4e 55 4c 4c 29 | 3b 0a 09 6c 6f 67 69 6e |t, NULL)|;..login|
|00001240| 69 74 28 29 3b 0a 0a 09 | 2f 2a 0a 09 20 2a 20 4b |it();...|/*.. * K|
|00001250| 6c 75 64 67 65 2c 20 74 | 68 65 69 72 27 73 20 6e |ludge, t|heir's n|
|00001260| 6f 20 65 61 73 79 20 77 | 61 79 20 74 6f 20 67 65 |o easy w|ay to ge|
|00001270| 74 20 74 68 65 20 69 6e | 69 74 69 61 6c 69 7a 61 |t the in|itializa|
|00001280| 74 69 6f 6e 0a 09 20 2a | 20 20 20 69 6e 20 74 68 |tion.. *| in th|
|00001290| 65 20 72 69 67 68 74 20 | 6f 72 64 65 72 2c 20 73 |e right |order, s|
|000012a0| 6f 20 66 6f 72 63 65 20 | 69 74 20 68 65 72 65 0a |o force |it here.|
|000012b0| 09 20 2a 2f 0a 09 69 66 | 20 28 28 50 48 20 3d 20 |. */..if| ((PH = |
|000012c0| 67 65 74 65 6e 76 28 22 | 50 48 4f 4e 45 53 22 29 |getenv("|PHONES")|
|000012d0| 29 20 3d 3d 20 4e 4f 53 | 54 52 29 0a 09 09 50 48 |) == NOS|TR)...PH|
|000012e0| 20 3d 20 22 2f 65 74 63 | 2f 70 68 6f 6e 65 73 22 | = "/etc|/phones"|
|000012f0| 3b 0a 09 76 69 6e 69 74 | 28 29 3b 09 09 09 09 2f |;..vinit|();..../|
|00001300| 2a 20 69 6e 69 74 20 76 | 61 72 69 61 62 6c 65 73 |* init v|ariables|
|00001310| 20 2a 2f 0a 09 73 65 74 | 70 61 72 69 74 79 28 22 | */..set|parity("|
|00001320| 6e 6f 6e 65 22 29 3b 09 | 09 09 2f 2a 20 73 65 74 |none");.|../* set|
|00001330| 20 74 68 65 20 70 61 72 | 69 74 79 20 74 61 62 6c | the par|ity tabl|
|00001340| 65 20 2a 2f 0a 09 69 66 | 20 28 28 69 20 3d 20 73 |e */..if| ((i = s|
|00001350| 70 65 65 64 28 6e 75 6d | 62 65 72 28 76 61 6c 75 |peed(num|ber(valu|
|00001360| 65 28 42 41 55 44 52 41 | 54 45 29 29 29 29 20 3d |e(BAUDRA|TE)))) =|
|00001370| 3d 20 4e 55 4c 4c 29 20 | 7b 0a 09 09 70 72 69 6e |= NULL) |{...prin|
|00001380| 74 66 28 22 74 69 70 3a | 20 62 61 64 20 62 61 75 |tf("tip:| bad bau|
|00001390| 64 20 72 61 74 65 20 25 | 64 5c 6e 22 2c 20 6e 75 |d rate %|d\n", nu|
|000013a0| 6d 62 65 72 28 76 61 6c | 75 65 28 42 41 55 44 52 |mber(val|ue(BAUDR|
|000013b0| 41 54 45 29 29 29 3b 0a | 09 09 28 76 6f 69 64 29 |ATE)));.|..(void)|
|000013c0| 75 75 5f 75 6e 6c 6f 63 | 6b 28 75 75 63 70 6c 6f |uu_unloc|k(uucplo|
|000013d0| 63 6b 29 3b 0a 09 09 65 | 78 69 74 28 33 29 3b 0a |ck);...e|xit(3);.|
|000013e0| 09 7d 0a 0a 09 69 66 20 | 28 73 6c 69 70 29 20 7b |.}...if |(slip) {|
|000013f0| 0a 09 09 69 66 20 28 53 | 41 20 3d 3d 20 4e 4f 53 |...if (S|A == NOS|
|00001400| 54 52 29 20 7b 0a 09 09 | 09 70 72 69 6e 74 66 28 |TR) {...|.printf(|
|00001410| 22 74 69 70 3a 20 6c 6f | 63 61 6c 20 61 64 64 72 |"tip: lo|cal addr|
|00001420| 20 6e 6f 74 20 73 65 74 | 5c 6e 22 29 3b 0a 09 09 | not set|\n");...|
|00001430| 09 75 75 5f 75 6e 6c 6f | 63 6b 28 75 75 63 70 6c |.uu_unlo|ck(uucpl|
|00001440| 6f 63 6b 29 3b 0a 09 09 | 09 65 78 69 74 28 33 29 |ock);...|.exit(3)|
|00001450| 3b 0a 09 09 7d 0a 09 09 | 69 66 20 28 44 41 20 3d |;...}...|if (DA =|
|00001460| 3d 20 4e 4f 53 54 52 29 | 20 7b 0a 09 09 09 70 72 |= NOSTR)| {....pr|
|00001470| 69 6e 74 66 28 22 74 69 | 70 3a 20 64 65 73 74 69 |intf("ti|p: desti|
|00001480| 6e 61 74 69 6f 6e 20 61 | 64 64 72 20 6e 6f 74 20 |nation a|ddr not |
|00001490| 73 65 74 5c 6e 22 29 3b | 0a 09 09 09 75 75 5f 75 |set\n");|....uu_u|
|000014a0| 6e 6c 6f 63 6b 28 75 75 | 63 70 6c 6f 63 6b 29 3b |nlock(uu|cplock);|
|000014b0| 0a 09 09 09 65 78 69 74 | 28 33 29 3b 0a 09 09 7d |....exit|(3);...}|
|000014c0| 0a 09 09 69 66 20 28 53 | 4d 20 3d 3d 20 4e 4f 53 |...if (S|M == NOS|
|000014d0| 54 52 29 20 7b 0a 09 09 | 09 70 72 69 6e 74 66 28 |TR) {...|.printf(|
|000014e0| 22 74 69 70 3a 20 73 6c | 69 70 20 6e 65 74 6d 61 |"tip: sl|ip netma|
|000014f0| 73 6b 20 6e 6f 74 20 73 | 65 74 5c 6e 22 29 3b 0a |sk not s|et\n");.|
|00001500| 09 09 09 75 75 5f 75 6e | 6c 6f 63 6b 28 75 75 63 |...uu_un|lock(uuc|
|00001510| 70 6c 6f 63 6b 29 3b 0a | 09 09 09 65 78 69 74 28 |plock);.|...exit(|
|00001520| 33 29 3b 0a 09 09 7d 0a | 09 7d 0a 0a 09 2f 2a 0a |3);...}.|.}.../*.|
|00001530| 09 20 2a 20 4e 6f 77 20 | 74 68 61 74 20 77 65 20 |. * Now |that we |
|00001540| 68 61 76 65 20 74 68 65 | 20 6c 6f 67 66 69 6c 65 |have the| logfile|
|00001550| 20 61 6e 64 20 74 68 65 | 20 41 43 55 20 6f 70 65 | and the| ACU ope|
|00001560| 6e 0a 09 20 2a 20 20 72 | 65 74 75 72 6e 20 74 6f |n.. * r|eturn to|
|00001570| 20 74 68 65 20 72 65 61 | 6c 20 75 69 64 20 61 6e | the rea|l uid an|
|00001580| 64 20 67 69 64 2e 20 20 | 54 68 65 73 65 20 74 68 |d gid. |These th|
|00001590| 69 6e 67 73 20 77 69 6c | 6c 0a 09 20 2a 20 20 62 |ings wil|l.. * b|
|000015a0| 65 20 63 6c 6f 73 65 64 | 20 6f 6e 20 65 78 69 74 |e closed| on exit|
|000015b0| 2e 20 20 53 77 61 70 20 | 72 65 61 6c 20 61 6e 64 |. Swap |real and|
|000015c0| 20 65 66 66 65 63 74 69 | 76 65 20 75 69 64 27 73 | effecti|ve uid's|
|000015d0| 0a 09 20 2a 20 20 73 6f | 20 77 65 20 63 61 6e 20 |.. * so| we can |
|000015e0| 67 65 74 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |get the |original|
|000015f0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 73 20 62 61 63 | permiss|ions bac|
|00001600| 6b 0a 09 20 2a 20 20 66 | 6f 72 20 72 65 6d 6f 76 |k.. * f|or remov|
|00001610| 69 6e 67 20 74 68 65 20 | 75 75 63 70 20 6c 6f 63 |ing the |uucp loc|
|00001620| 6b 2e 0a 09 20 2a 2f 0a | 09 75 73 65 72 5f 75 69 |k... */.|.user_ui|
|00001630| 64 28 29 3b 09 2f 2a 20 | 69 6e 20 74 68 65 20 63 |d();./* |in the c|
|00001640| 61 73 65 20 6f 66 20 73 | 6c 69 70 2c 20 77 65 20 |ase of s|lip, we |
|00001650| 61 72 65 20 6e 6f 77 20 | 70 72 69 76 69 6c 69 67 |are now |privilig|
|00001660| 65 64 20 2a 2f 0a 0a 09 | 2f 2a 0a 09 20 2a 20 48 |ed */...|/*.. * H|
|00001670| 61 72 64 77 69 72 65 64 | 20 63 6f 6e 6e 65 63 74 |ardwired| connect|
|00001680| 69 6f 6e 73 20 72 65 71 | 75 69 72 65 20 74 68 65 |ions req|uire the|
|00001690| 0a 09 20 2a 20 20 6c 69 | 6e 65 20 73 70 65 65 64 |.. * li|ne speed|
|000016a0| 20 73 65 74 20 62 65 66 | 6f 72 65 20 74 68 65 79 | set bef|ore they|
|000016b0| 20 6d 61 6b 65 20 61 6e | 79 20 74 72 61 6e 73 6d | make an|y transm|
|000016c0| 69 73 73 69 6f 6e 73 0a | 09 20 2a 20 20 28 74 68 |issions.|. * (th|
|000016d0| 69 73 20 69 73 20 70 61 | 72 74 69 63 75 6c 61 72 |is is pa|rticular|
|000016e0| 6c 79 20 74 72 75 65 20 | 6f 66 20 74 68 69 6e 67 |ly true |of thing|
|000016f0| 73 20 6c 69 6b 65 20 61 | 20 44 46 30 33 2d 41 43 |s like a| DF03-AC|
|00001700| 29 0a 09 20 2a 2f 0a 09 | 69 66 20 28 48 57 29 0a |).. */..|if (HW).|
|00001710| 09 09 74 74 79 73 65 74 | 75 70 28 69 29 3b 0a 09 |..ttyset|up(i);..|
|00001720| 69 66 20 28 70 20 3d 20 | 6c 63 6f 6e 6e 65 63 74 |if (p = |lconnect|
|00001730| 28 29 29 20 7b 0a 09 09 | 70 72 69 6e 74 66 28 22 |()) {...|printf("|
|00001740| 5c 30 37 25 73 5c 6e 5b | 45 4f 54 5d 5c 6e 22 2c |\07%s\n[|EOT]\n",|
|00001750| 20 70 29 3b 0a 09 09 64 | 61 65 6d 6f 6e 5f 75 69 | p);...d|aemon_ui|
|00001760| 64 28 29 3b 0a 09 09 28 | 76 6f 69 64 29 75 75 5f |d();...(|void)uu_|
|00001770| 75 6e 6c 6f 63 6b 28 75 | 75 63 70 6c 6f 63 6b 29 |unlock(u|ucplock)|
|00001780| 3b 0a 09 09 65 78 69 74 | 28 31 29 3b 0a 09 7d 0a |;...exit|(1);..}.|
|00001790| 09 69 66 20 28 21 48 57 | 29 0a 09 09 74 74 79 73 |.if (!HW|)...ttys|
|000017a0| 65 74 75 70 28 69 29 3b | 0a 0a 0a 09 69 66 20 28 |etup(i);|....if (|
|000017b0| 4c 53 20 21 3d 20 4e 4f | 53 54 52 29 20 7b 0a 09 |LS != NO|STR) {..|
|000017c0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|000017d0| 20 22 5c 30 37 5b 4c 6f | 67 67 69 6e 67 20 69 6e | "\07[Lo|gging in|
|000017e0| 2e 2e 2e 5d 5c 72 5c 6e | 22 29 3b 0a 09 09 69 66 |...]\r\n|");...if|
|000017f0| 20 28 70 20 3d 20 6c 6f | 67 69 6e 28 29 29 20 7b | (p = lo|gin()) {|
|00001800| 0a 09 09 09 70 72 69 6e | 74 66 28 22 5c 30 37 25 |....prin|tf("\07%|
|00001810| 73 5c 6e 5b 45 4f 54 5d | 5c 6e 22 2c 20 70 29 3b |s\n[EOT]|\n", p);|
|00001820| 0a 09 09 09 64 61 65 6d | 6f 6e 5f 75 69 64 28 29 |....daem|on_uid()|
|00001830| 3b 0a 09 09 09 28 76 6f | 69 64 29 75 75 5f 75 6e |;....(vo|id)uu_un|
|00001840| 6c 6f 63 6b 28 75 75 63 | 70 6c 6f 63 6b 29 3b 0a |lock(uuc|plock);.|
|00001850| 09 09 09 65 78 69 74 28 | 31 29 3b 0a 09 09 7d 0a |...exit(|1);...}.|
|00001860| 09 7d 0a 0a 09 69 66 20 | 28 70 61 67 65 29 20 7b |.}...if |(page) {|
|00001870| 0a 09 09 69 20 3d 20 73 | 65 6e 64 70 61 67 65 28 |...i = s|endpage(|
|00001880| 64 61 74 61 29 3b 0a 09 | 09 64 61 65 6d 6f 6e 5f |data);..|.daemon_|
|00001890| 75 69 64 28 29 3b 0a 09 | 09 28 76 6f 69 64 29 75 |uid();..|.(void)u|
|000018a0| 75 5f 75 6e 6c 6f 63 6b | 28 75 75 63 70 6c 6f 63 |u_unlock|(uucploc|
|000018b0| 6b 29 3b 0a 09 09 65 78 | 69 74 28 69 29 3b 0a 09 |k);...ex|it(i);..|
|000018c0| 7d 0a 0a 09 69 66 20 28 | 73 6c 69 70 29 20 7b 0a |}...if (|slip) {.|
|000018d0| 09 09 69 20 3d 20 72 75 | 6e 73 6c 69 70 28 29 3b |..i = ru|nslip();|
|000018e0| 0a 09 09 64 61 65 6d 6f | 6e 5f 75 69 64 28 29 3b |...daemo|n_uid();|
|000018f0| 0a 09 09 28 76 6f 69 64 | 29 75 75 5f 75 6e 6c 6f |...(void|)uu_unlo|
|00001900| 63 6b 28 75 75 63 70 6c | 6f 63 6b 29 3b 0a 09 09 |ck(uucpl|ock);...|
|00001910| 65 78 69 74 28 69 29 3b | 0a 09 7d 0a 0a 63 75 63 |exit(i);|..}..cuc|
|00001920| 6f 6d 6d 6f 6e 3a 0a 09 | 2f 2a 0a 09 20 2a 20 46 |ommon:..|/*.. * F|
|00001930| 72 6f 6d 20 68 65 72 65 | 20 64 6f 77 6e 20 74 68 |rom here| down th|
|00001940| 65 20 63 6f 64 65 20 69 | 73 20 73 68 61 72 65 64 |e code i|s shared|
|00001950| 20 77 69 74 68 0a 09 20 | 2a 20 74 68 65 20 22 63 | with.. |* the "c|
|00001960| 75 22 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 69 |u" versi|on of ti|
|00001970| 70 2e 0a 09 20 2a 2f 0a | 0a 09 69 6f 63 74 6c 28 |p... */.|..ioctl(|
|00001980| 30 2c 20 54 49 4f 43 47 | 45 54 50 2c 20 28 63 68 |0, TIOCG|ETP, (ch|
|00001990| 61 72 20 2a 29 26 64 65 | 66 61 72 67 29 3b 0a 09 |ar *)&de|farg);..|
|000019a0| 69 6f 63 74 6c 28 30 2c | 20 54 49 4f 43 47 45 54 |ioctl(0,| TIOCGET|
|000019b0| 43 2c 20 28 63 68 61 72 | 20 2a 29 26 64 65 66 63 |C, (char| *)&defc|
|000019c0| 68 61 72 73 29 3b 0a 09 | 69 6f 63 74 6c 28 30 2c |hars);..|ioctl(0,|
|000019d0| 20 54 49 4f 43 47 4c 54 | 43 2c 20 28 63 68 61 72 | TIOCGLT|C, (char|
|000019e0| 20 2a 29 26 64 65 66 6c | 63 68 61 72 73 29 3b 0a | *)&defl|chars);.|
|000019f0| 09 69 6f 63 74 6c 28 30 | 2c 20 54 49 4f 43 47 45 |.ioctl(0|, TIOCGE|
|00001a00| 54 44 2c 20 28 63 68 61 | 72 20 2a 29 26 6f 64 69 |TD, (cha|r *)&odi|
|00001a10| 73 63 29 3b 0a 09 61 72 | 67 20 3d 20 64 65 66 61 |sc);..ar|g = defa|
|00001a20| 72 67 3b 0a 09 61 72 67 | 2e 73 67 5f 66 6c 61 67 |rg;..arg|.sg_flag|
|00001a30| 73 20 3d 20 41 4e 59 50 | 20 7c 20 43 42 52 45 41 |s = ANYP| | CBREA|
|00001a40| 4b 3b 0a 09 74 63 68 61 | 72 73 20 3d 20 64 65 66 |K;..tcha|rs = def|
|00001a50| 63 68 61 72 73 3b 0a 09 | 74 63 68 61 72 73 2e 74 |chars;..|tchars.t|
|00001a60| 5f 69 6e 74 72 63 20 3d | 20 74 63 68 61 72 73 2e |_intrc =| tchars.|
|00001a70| 74 5f 71 75 69 74 63 20 | 3d 20 2d 31 3b 0a 09 6c |t_quitc |= -1;..l|
|00001a80| 74 63 68 61 72 73 20 3d | 20 64 65 66 6c 63 68 61 |tchars =| deflcha|
|00001a90| 72 73 3b 0a 09 6c 74 63 | 68 61 72 73 2e 74 5f 73 |rs;..ltc|hars.t_s|
|00001aa0| 75 73 70 63 20 3d 20 6c | 74 63 68 61 72 73 2e 74 |uspc = l|tchars.t|
|00001ab0| 5f 64 73 75 73 70 63 20 | 3d 20 6c 74 63 68 61 72 |_dsuspc |= ltchar|
|00001ac0| 73 2e 74 5f 66 6c 75 73 | 68 63 0a 09 09 3d 20 6c |s.t_flus|hc...= l|
|00001ad0| 74 63 68 61 72 73 2e 74 | 5f 6c 6e 65 78 74 63 20 |tchars.t|_lnextc |
|00001ae0| 3d 20 2d 31 3b 0a 09 72 | 61 77 28 29 3b 0a 0a 09 |= -1;..r|aw();...|
|00001af0| 70 69 70 65 28 66 69 6c | 64 65 73 29 3b 20 70 69 |pipe(fil|des); pi|
|00001b00| 70 65 28 72 65 70 64 65 | 73 29 3b 0a 09 73 69 67 |pe(repde|s);..sig|
|00001b10| 6e 61 6c 28 53 49 47 41 | 4c 52 4d 2c 20 74 69 6d |nal(SIGA|LRM, tim|
|00001b20| 65 6f 75 74 29 3b 0a 0a | 09 2f 2a 0a 09 20 2a 20 |eout);..|./*.. * |
|00001b30| 45 76 65 72 79 74 68 69 | 6e 67 27 73 20 73 65 74 |Everythi|ng's set|
|00001b40| 20 75 70 20 6e 6f 77 3a | 0a 09 20 2a 09 63 6f 6e | up now:|.. *.con|
|00001b50| 6e 65 63 74 69 6f 6e 20 | 65 73 74 61 62 6c 69 73 |nection |establis|
|00001b60| 68 65 64 20 28 68 61 72 | 64 77 69 72 65 64 20 6f |hed (har|dwired o|
|00001b70| 72 20 64 69 61 6c 75 70 | 29 0a 09 20 2a 09 6c 69 |r dialup|).. *.li|
|00001b80| 6e 65 20 63 6f 6e 64 69 | 74 69 6f 6e 65 64 20 28 |ne condi|tioned (|
|00001b90| 62 61 75 64 20 72 61 74 | 65 2c 20 6d 6f 64 65 2c |baud rat|e, mode,|
|00001ba0| 20 65 74 63 2e 29 0a 09 | 20 2a 09 69 6e 74 65 72 | etc.)..| *.inter|
|00001bb0| 6e 61 6c 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |nal data| structu|
|00001bc0| 72 65 73 20 28 76 61 72 | 69 61 62 6c 65 73 29 0a |res (var|iables).|
|00001bd0| 09 20 2a 20 73 6f 2c 20 | 66 6f 72 6b 20 6f 6e 65 |. * so, |fork one|
|00001be0| 20 70 72 6f 63 65 73 73 | 20 66 6f 72 20 6c 6f 63 | process| for loc|
|00001bf0| 61 6c 20 73 69 64 65 20 | 61 6e 64 20 6f 6e 65 20 |al side |and one |
|00001c00| 66 6f 72 20 72 65 6d 6f | 74 65 2e 0a 09 20 2a 2f |for remo|te... */|
|00001c10| 0a 09 70 72 69 6e 74 66 | 28 63 75 6d 6f 64 65 20 |..printf|(cumode |
|00001c20| 3f 20 22 43 6f 6e 6e 65 | 63 74 65 64 5c 72 5c 6e |? "Conne|cted\r\n|
|00001c30| 22 20 3a 20 22 5c 30 37 | 63 6f 6e 6e 65 63 74 65 |" : "\07|connecte|
|00001c40| 64 5c 72 5c 6e 22 29 3b | 0a 09 69 66 20 28 70 69 |d\r\n");|..if (pi|
|00001c50| 64 20 3d 20 66 6f 72 6b | 28 29 29 0a 09 09 74 69 |d = fork|())...ti|
|00001c60| 70 69 6e 28 29 3b 0a 09 | 65 6c 73 65 0a 09 09 74 |pin();..|else...t|
|00001c70| 69 70 6f 75 74 28 29 3b | 0a 09 2f 2a 4e 4f 54 52 |ipout();|../*NOTR|
|00001c80| 45 41 43 48 45 44 2a 2f | 0a 7d 0a 0a 73 69 67 66 |EACHED*/|.}..sigf|
|00001c90| 75 6e 63 5f 74 0a 63 6c | 65 61 6e 75 70 28 29 0a |unc_t.cl|eanup().|
|00001ca0| 7b 0a 0a 09 64 61 65 6d | 6f 6e 5f 75 69 64 28 29 |{...daem|on_uid()|
|00001cb0| 3b 0a 09 28 76 6f 69 64 | 29 75 75 5f 75 6e 6c 6f |;..(void|)uu_unlo|
|00001cc0| 63 6b 28 75 75 63 70 6c | 6f 63 6b 29 3b 0a 09 69 |ck(uucpl|ock);..i|
|00001cd0| 66 20 28 70 69 64 29 20 | 7b 0a 09 09 28 76 6f 69 |f (pid) |{...(voi|
|00001ce0| 64 29 20 6b 69 6c 6c 28 | 70 69 64 2c 20 53 49 47 |d) kill(|pid, SIG|
|00001cf0| 54 45 52 4d 29 3b 0a 09 | 09 75 6e 72 61 77 28 29 |TERM);..|.unraw()|
|00001d00| 3b 0a 09 7d 20 65 6c 73 | 65 20 69 66 20 28 6f 64 |;..} els|e if (od|
|00001d10| 69 73 63 29 0a 09 09 69 | 6f 63 74 6c 28 30 2c 20 |isc)...i|octl(0, |
|00001d20| 54 49 4f 43 53 45 54 44 | 2c 20 28 63 68 61 72 20 |TIOCSETD|, (char |
|00001d30| 2a 29 26 6f 64 69 73 63 | 29 3b 0a 09 65 78 69 74 |*)&odisc|);..exit|
|00001d40| 28 30 29 3b 0a 7d 0a 0a | 2f 2a 0a 20 2a 20 4d 75 |(0);.}..|/*. * Mu|
|00001d50| 63 6b 20 77 69 74 68 20 | 75 73 65 72 20 49 44 27 |ck with |user ID'|
|00001d60| 73 2e 20 20 57 65 20 61 | 72 65 20 73 65 74 75 69 |s. We a|re setui|
|00001d70| 64 20 74 6f 20 74 68 65 | 20 6f 77 6e 65 72 20 6f |d to the| owner o|
|00001d80| 66 20 74 68 65 20 6c 6f | 63 6b 0a 20 2a 20 64 69 |f the lo|ck. * di|
|00001d90| 72 65 63 74 6f 72 79 20 | 77 68 65 6e 20 77 65 20 |rectory |when we |
|00001da0| 73 74 61 72 74 2e 20 20 | 75 73 65 72 5f 75 69 64 |start. |user_uid|
|00001db0| 28 29 20 72 65 76 65 72 | 73 65 73 20 72 65 61 6c |() rever|ses real|
|00001dc0| 20 61 6e 64 20 65 66 66 | 65 63 74 69 76 65 0a 20 | and eff|ective. |
|00001dd0| 2a 20 49 44 27 73 20 61 | 66 74 65 72 20 73 74 61 |* ID's a|fter sta|
|00001de0| 72 74 75 70 2c 20 74 6f | 20 72 75 6e 20 77 69 74 |rtup, to| run wit|
|00001df0| 68 20 74 68 65 20 75 73 | 65 72 27 73 20 70 65 72 |h the us|er's per|
|00001e00| 6d 69 73 73 69 6f 6e 73 | 2e 0a 20 2a 20 64 61 65 |missions|.. * dae|
|00001e10| 6d 6f 6e 5f 75 69 64 28 | 29 20 73 77 69 74 63 68 |mon_uid(|) switch|
|00001e20| 65 73 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 70 |es back |to the p|
|00001e30| 72 69 76 69 6c 65 67 65 | 64 20 75 69 64 20 66 6f |rivilege|d uid fo|
|00001e40| 72 20 75 6e 6c 6f 63 6b | 69 6e 67 2e 0a 20 2a 20 |r unlock|ing.. * |
|00001e50| 46 69 6e 61 6c 6c 79 2c | 20 74 6f 20 61 76 6f 69 |Finally,| to avoi|
|00001e60| 64 20 72 75 6e 6e 69 6e | 67 20 61 20 73 68 65 6c |d runnin|g a shel|
|00001e70| 6c 20 77 69 74 68 20 74 | 68 65 20 77 72 6f 6e 67 |l with t|he wrong|
|00001e80| 20 72 65 61 6c 20 75 69 | 64 2c 0a 20 2a 20 73 68 | real ui|d,. * sh|
|00001e90| 65 6c 6c 5f 75 69 64 28 | 29 20 73 65 74 73 20 72 |ell_uid(|) sets r|
|00001ea0| 65 61 6c 20 61 6e 64 20 | 65 66 66 65 63 74 69 76 |eal and |effectiv|
|00001eb0| 65 20 75 69 64 27 73 20 | 74 6f 20 74 68 65 20 75 |e uid's |to the u|
|00001ec0| 73 65 72 27 73 20 72 65 | 61 6c 20 49 44 2e 0a 20 |ser's re|al ID.. |
|00001ed0| 2a 2f 0a 73 74 61 74 69 | 63 20 69 6e 74 20 75 69 |*/.stati|c int ui|
|00001ee0| 64 73 77 61 70 70 65 64 | 3b 0a 0a 75 73 65 72 5f |dswapped|;..user_|
|00001ef0| 75 69 64 28 29 0a 7b 0a | 09 69 66 20 28 75 69 64 |uid().{.|.if (uid|
|00001f00| 73 77 61 70 70 65 64 20 | 3d 3d 20 30 29 20 7b 0a |swapped |== 0) {.|
|00001f10| 09 09 73 65 74 72 65 67 | 69 64 28 65 67 69 64 2c |..setreg|id(egid,|
|00001f20| 20 67 69 64 29 3b 0a 09 | 09 73 65 74 72 65 75 69 | gid);..|.setreui|
|00001f30| 64 28 65 75 69 64 2c 20 | 75 69 64 29 3b 0a 09 09 |d(euid, |uid);...|
|00001f40| 75 69 64 73 77 61 70 70 | 65 64 20 3d 20 31 3b 0a |uidswapp|ed = 1;.|
|00001f50| 09 7d 0a 7d 0a 0a 64 61 | 65 6d 6f 6e 5f 75 69 64 |.}.}..da|emon_uid|
|00001f60| 28 29 0a 7b 0a 09 69 66 | 20 28 75 69 64 73 77 61 |().{..if| (uidswa|
|00001f70| 70 70 65 64 29 20 7b 0a | 09 09 73 65 74 72 65 75 |pped) {.|..setreu|
|00001f80| 69 64 28 75 69 64 2c 20 | 65 75 69 64 29 3b 0a 09 |id(uid, |euid);..|
|00001f90| 09 73 65 74 72 65 67 69 | 64 28 67 69 64 2c 20 65 |.setregi|d(gid, e|
|00001fa0| 67 69 64 29 3b 0a 09 09 | 75 69 64 73 77 61 70 70 |gid);...|uidswapp|
|00001fb0| 65 64 20 3d 20 30 3b 0a | 09 7d 0a 7d 0a 0a 73 68 |ed = 0;.|.}.}..sh|
|00001fc0| 65 6c 6c 5f 75 69 64 28 | 29 0a 7b 0a 0a 09 73 65 |ell_uid(|).{...se|
|00001fd0| 74 72 65 75 69 64 28 75 | 69 64 2c 20 75 69 64 29 |treuid(u|id, uid)|
|00001fe0| 3b 0a 09 73 65 74 72 65 | 67 69 64 28 67 69 64 2c |;..setre|gid(gid,|
|00001ff0| 20 67 69 64 29 3b 0a 7d | 0a 0a 2f 2a 0a 20 2a 20 | gid);.}|../*. * |
|00002000| 70 75 74 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 6c |put the |controll|
|00002010| 69 6e 67 20 6b 65 79 62 | 6f 61 72 64 20 69 6e 74 |ing keyb|oard int|
|00002020| 6f 20 72 61 77 20 6d 6f | 64 65 0a 20 2a 2f 0a 72 |o raw mo|de. */.r|
|00002030| 61 77 28 29 0a 7b 0a 0a | 09 69 6f 63 74 6c 28 30 |aw().{..|.ioctl(0|
|00002040| 2c 20 54 49 4f 43 53 45 | 54 50 2c 20 26 61 72 67 |, TIOCSE|TP, &arg|
|00002050| 29 3b 0a 09 69 6f 63 74 | 6c 28 30 2c 20 54 49 4f |);..ioct|l(0, TIO|
|00002060| 43 53 45 54 43 2c 20 26 | 74 63 68 61 72 73 29 3b |CSETC, &|tchars);|
|00002070| 0a 09 69 6f 63 74 6c 28 | 30 2c 20 54 49 4f 43 53 |..ioctl(|0, TIOCS|
|00002080| 4c 54 43 2c 20 26 6c 74 | 63 68 61 72 73 29 3b 0a |LTC, &lt|chars);.|
|00002090| 09 69 6f 63 74 6c 28 30 | 2c 20 54 49 4f 43 53 45 |.ioctl(0|, TIOCSE|
|000020a0| 54 44 2c 20 28 63 68 61 | 72 20 2a 29 26 64 69 73 |TD, (cha|r *)&dis|
|000020b0| 63 29 3b 0a 7d 0a 0a 0a | 2f 2a 0a 20 2a 20 72 65 |c);.}...|/*. * re|
|000020c0| 74 75 72 6e 20 6b 65 79 | 62 6f 61 72 64 20 74 6f |turn key|board to|
|000020d0| 20 6e 6f 72 6d 61 6c 20 | 6d 6f 64 65 0a 20 2a 2f | normal |mode. */|
|000020e0| 0a 75 6e 72 61 77 28 29 | 0a 7b 0a 0a 09 69 6f 63 |.unraw()|.{...ioc|
|000020f0| 74 6c 28 30 2c 20 54 49 | 4f 43 53 45 54 44 2c 20 |tl(0, TI|OCSETD, |
|00002100| 28 63 68 61 72 20 2a 29 | 26 6f 64 69 73 63 29 3b |(char *)|&odisc);|
|00002110| 0a 09 69 6f 63 74 6c 28 | 30 2c 20 54 49 4f 43 53 |..ioctl(|0, TIOCS|
|00002120| 45 54 50 2c 20 28 63 68 | 61 72 20 2a 29 26 64 65 |ETP, (ch|ar *)&de|
|00002130| 66 61 72 67 29 3b 0a 09 | 69 6f 63 74 6c 28 30 2c |farg);..|ioctl(0,|
|00002140| 20 54 49 4f 43 53 45 54 | 43 2c 20 28 63 68 61 72 | TIOCSET|C, (char|
|00002150| 20 2a 29 26 64 65 66 63 | 68 61 72 73 29 3b 0a 09 | *)&defc|hars);..|
|00002160| 69 6f 63 74 6c 28 30 2c | 20 54 49 4f 43 53 4c 54 |ioctl(0,| TIOCSLT|
|00002170| 43 2c 20 28 63 68 61 72 | 20 2a 29 26 64 65 66 6c |C, (char| *)&defl|
|00002180| 63 68 61 72 73 29 3b 0a | 7d 0a 0a 73 74 61 74 69 |chars);.|}..stati|
|00002190| 63 09 6a 6d 70 5f 62 75 | 66 20 70 72 6f 6d 70 74 |c.jmp_bu|f prompt|
|000021a0| 62 75 66 3b 0a 0a 2f 2a | 0a 20 2a 20 50 72 69 6e |buf;../*|. * Prin|
|000021b0| 74 20 73 74 72 69 6e 67 | 20 60 60 73 27 27 2c 20 |t string| ``s'', |
|000021c0| 74 68 65 6e 20 72 65 61 | 64 20 61 20 73 74 72 69 |then rea|d a stri|
|000021d0| 6e 67 0a 20 2a 20 20 69 | 6e 20 66 72 6f 6d 20 74 |ng. * i|n from t|
|000021e0| 68 65 20 74 65 72 6d 69 | 6e 61 6c 2e 20 20 48 61 |he termi|nal. Ha|
|000021f0| 6e 64 6c 65 73 20 73 69 | 67 6e 61 6c 73 20 26 20 |ndles si|gnals & |
|00002200| 61 6c 6c 6f 77 73 20 75 | 73 65 20 6f 66 0a 20 2a |allows u|se of. *|
|00002210| 20 20 6e 6f 72 6d 61 6c | 20 65 72 61 73 65 20 61 | normal| erase a|
|00002220| 6e 64 20 6b 69 6c 6c 20 | 63 68 61 72 61 63 74 65 |nd kill |characte|
|00002230| 72 73 2e 0a 20 2a 2f 0a | 70 72 6f 6d 70 74 28 73 |rs.. */.|prompt(s|
|00002240| 2c 20 70 29 0a 09 63 68 | 61 72 20 2a 73 3b 0a 09 |, p)..ch|ar *s;..|
|00002250| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 70 |register| char *p|
|00002260| 3b 0a 7b 0a 09 72 65 67 | 69 73 74 65 72 20 63 68 |;.{..reg|ister ch|
|00002270| 61 72 20 2a 62 20 3d 20 | 70 3b 0a 09 73 69 67 66 |ar *b = |p;..sigf|
|00002280| 75 6e 63 5f 74 20 28 2a | 6f 69 6e 74 29 28 29 2c |unc_t (*|oint)(),|
|00002290| 20 28 2a 6f 71 75 69 74 | 29 28 29 3b 0a 0a 09 73 | (*oquit|)();...s|
|000022a0| 74 6f 70 72 6f 6d 70 74 | 20 3d 20 30 3b 0a 09 6f |toprompt| = 0;..o|
|000022b0| 69 6e 74 20 3d 20 73 69 | 67 6e 61 6c 28 53 49 47 |int = si|gnal(SIG|
|000022c0| 49 4e 54 2c 20 69 6e 74 | 70 72 6f 6d 70 74 29 3b |INT, int|prompt);|
|000022d0| 0a 09 6f 71 75 69 74 20 | 3d 20 73 69 67 6e 61 6c |..oquit |= signal|
|000022e0| 28 53 49 47 51 55 49 54 | 2c 20 53 49 47 5f 49 47 |(SIGQUIT|, SIG_IG|
|000022f0| 4e 29 3b 0a 09 75 6e 72 | 61 77 28 29 3b 0a 09 70 |N);..unr|aw();..p|
|00002300| 72 69 6e 74 66 28 22 25 | 73 22 2c 20 73 29 3b 0a |rintf("%|s", s);.|
|00002310| 09 69 66 20 28 73 65 74 | 6a 6d 70 28 70 72 6f 6d |.if (set|jmp(prom|
|00002320| 70 74 62 75 66 29 20 3d | 3d 20 30 29 0a 09 09 77 |ptbuf) =|= 0)...w|
|00002330| 68 69 6c 65 20 28 28 2a | 70 20 3d 20 67 65 74 63 |hile ((*|p = getc|
|00002340| 68 61 72 28 29 29 20 21 | 3d 20 45 4f 46 20 26 26 |har()) !|= EOF &&|
|00002350| 20 2a 70 20 21 3d 20 27 | 5c 6e 27 29 0a 09 09 09 | *p != '|\n')....|
|00002360| 70 2b 2b 3b 0a 09 2a 70 | 20 3d 20 27 5c 30 27 3b |p++;..*p| = '\0';|
|00002370| 0a 0a 09 72 61 77 28 29 | 3b 0a 09 73 69 67 6e 61 |...raw()|;..signa|
|00002380| 6c 28 53 49 47 49 4e 54 | 2c 20 6f 69 6e 74 29 3b |l(SIGINT|, oint);|
|00002390| 0a 09 73 69 67 6e 61 6c | 28 53 49 47 51 55 49 54 |..signal|(SIGQUIT|
|000023a0| 2c 20 6f 69 6e 74 29 3b | 0a 09 72 65 74 75 72 6e |, oint);|..return|
|000023b0| 20 28 73 74 6f 70 72 6f | 6d 70 74 20 7c 7c 20 70 | (stopro|mpt || p|
|000023c0| 20 3d 3d 20 62 29 3b 0a | 7d 0a 0a 2f 2a 0a 20 2a | == b);.|}../*. *|
|000023d0| 20 49 6e 74 65 72 72 75 | 70 74 20 73 65 72 76 69 | Interru|pt servi|
|000023e0| 63 65 20 72 6f 75 74 69 | 6e 65 20 64 75 72 69 6e |ce routi|ne durin|
|000023f0| 67 20 70 72 6f 6d 70 74 | 69 6e 67 0a 20 2a 2f 0a |g prompt|ing. */.|
|00002400| 73 69 67 66 75 6e 63 5f | 74 0a 69 6e 74 70 72 6f |sigfunc_|t.intpro|
|00002410| 6d 70 74 28 29 0a 7b 0a | 0a 09 73 69 67 6e 61 6c |mpt().{.|..signal|
|00002420| 28 53 49 47 49 4e 54 2c | 20 53 49 47 5f 49 47 4e |(SIGINT,| SIG_IGN|
|00002430| 29 3b 0a 09 73 74 6f 70 | 72 6f 6d 70 74 20 3d 20 |);..stop|rompt = |
|00002440| 31 3b 0a 09 70 72 69 6e | 74 66 28 22 5c 72 5c 6e |1;..prin|tf("\r\n|
|00002450| 22 29 3b 0a 09 6c 6f 6e | 67 6a 6d 70 28 70 72 6f |");..lon|gjmp(pro|
|00002460| 6d 70 74 62 75 66 2c 20 | 31 29 3b 0a 7d 0a 0a 2f |mptbuf, |1);.}../|
|00002470| 2a 0a 20 2a 20 2a 2a 2a | 2a 54 49 50 49 4e 20 20 |*. * ***|*TIPIN |
|00002480| 20 54 49 50 49 4e 2a 2a | 2a 2a 0a 20 2a 2f 0a 74 | TIPIN**|**. */.t|
|00002490| 69 70 69 6e 28 29 0a 7b | 0a 09 63 68 61 72 20 67 |ipin().{|..char g|
|000024a0| 63 68 2c 20 62 6f 6c 20 | 3d 20 31 3b 0a 0a 09 2f |ch, bol |= 1;.../|
|000024b0| 2a 0a 09 20 2a 20 4b 69 | 6e 64 61 20 6b 6c 75 67 |*.. * Ki|nda klug|
|000024c0| 65 79 20 68 65 72 65 2e | 2e 2e 0a 09 20 2a 20 20 |ey here.|.... * |
|000024d0| 20 63 68 65 63 6b 20 66 | 6f 72 20 73 63 72 69 70 | check f|or scrip|
|000024e0| 74 69 6e 67 20 62 65 69 | 6e 67 20 74 75 72 6e 65 |ting bei|ng turne|
|000024f0| 64 20 6f 6e 20 66 72 6f | 6d 20 74 68 65 20 2e 74 |d on fro|m the .t|
|00002500| 69 70 72 63 20 66 69 6c | 65 2c 0a 09 20 2a 20 20 |iprc fil|e,.. * |
|00002510| 20 62 75 74 20 62 65 20 | 63 61 72 65 66 75 6c 20 | but be |careful |
|00002520| 61 62 6f 75 74 20 6a 75 | 73 74 20 75 73 69 6e 67 |about ju|st using|
|00002530| 20 73 65 74 73 63 72 69 | 70 74 28 29 2c 20 61 73 | setscri|pt(), as|
|00002540| 20 77 65 20 6d 61 79 0a | 09 20 2a 20 20 20 73 65 | we may.|. * se|
|00002550| 6e 64 20 61 20 53 49 47 | 45 4d 54 20 62 65 66 6f |nd a SIG|EMT befo|
|00002560| 72 65 20 74 69 70 6f 75 | 74 20 68 61 73 20 61 20 |re tipou|t has a |
|00002570| 63 68 61 6e 63 65 20 74 | 6f 20 73 65 74 20 75 70 |chance t|o set up|
|00002580| 20 63 61 74 63 68 69 6e | 67 0a 09 20 2a 20 20 20 | catchin|g.. * |
|00002590| 69 74 3b 20 73 6f 20 77 | 61 69 74 20 61 20 73 65 |it; so w|ait a se|
|000025a0| 63 6f 6e 64 2c 20 74 68 | 65 6e 20 73 65 74 73 63 |cond, th|en setsc|
|000025b0| 72 69 70 74 28 29 0a 09 | 20 2a 2f 0a 09 69 66 20 |ript()..| */..if |
|000025c0| 28 62 6f 6f 6c 65 61 6e | 28 76 61 6c 75 65 28 53 |(boolean|(value(S|
|000025d0| 43 52 49 50 54 29 29 29 | 20 7b 0a 09 09 73 6c 65 |CRIPT)))| {...sle|
|000025e0| 65 70 28 31 29 3b 0a 09 | 09 73 65 74 73 63 72 69 |ep(1);..|.setscri|
|000025f0| 70 74 28 29 3b 0a 09 7d | 0a 0a 09 77 68 69 6c 65 |pt();..}|...while|
|00002600| 20 28 31 29 20 7b 0a 09 | 09 67 63 68 20 3d 20 67 | (1) {..|.gch = g|
|00002610| 65 74 63 68 61 72 28 29 | 26 30 31 37 37 3b 0a 09 |etchar()|&0177;..|
|00002620| 09 69 66 20 28 28 67 63 | 68 20 3d 3d 20 63 68 61 |.if ((gc|h == cha|
|00002630| 72 61 63 74 65 72 28 76 | 61 6c 75 65 28 45 53 43 |racter(v|alue(ESC|
|00002640| 41 50 45 29 29 29 20 26 | 26 20 62 6f 6c 29 20 7b |APE))) &|& bol) {|
|00002650| 0a 09 09 09 69 66 20 28 | 21 28 67 63 68 20 3d 20 |....if (|!(gch = |
|00002660| 65 73 63 61 70 65 28 29 | 29 29 0a 09 09 09 09 63 |escape()|)).....c|
|00002670| 6f 6e 74 69 6e 75 65 3b | 0a 09 09 7d 20 65 6c 73 |ontinue;|...} els|
|00002680| 65 20 69 66 20 28 21 63 | 75 6d 6f 64 65 20 26 26 |e if (!c|umode &&|
|00002690| 20 67 63 68 20 3d 3d 20 | 63 68 61 72 61 63 74 65 | gch == |characte|
|000026a0| 72 28 76 61 6c 75 65 28 | 52 41 49 53 45 43 48 41 |r(value(|RAISECHA|
|000026b0| 52 29 29 29 20 7b 0a 09 | 09 09 62 6f 6f 6c 65 61 |R))) {..|..boolea|
|000026c0| 6e 28 76 61 6c 75 65 28 | 52 41 49 53 45 29 29 20 |n(value(|RAISE)) |
|000026d0| 3d 20 21 62 6f 6f 6c 65 | 61 6e 28 76 61 6c 75 65 |= !boole|an(value|
|000026e0| 28 52 41 49 53 45 29 29 | 3b 0a 09 09 09 63 6f 6e |(RAISE))|;....con|
|000026f0| 74 69 6e 75 65 3b 0a 09 | 09 7d 20 65 6c 73 65 20 |tinue;..|.} else |
|00002700| 69 66 20 28 67 63 68 20 | 3d 3d 20 27 5c 72 27 29 |if (gch |== '\r')|
|00002710| 20 7b 0a 09 09 09 62 6f | 6c 20 3d 20 31 3b 0a 09 | {....bo|l = 1;..|
|00002720| 09 09 70 77 72 69 74 65 | 28 46 44 2c 20 26 67 63 |..pwrite|(FD, &gc|
|00002730| 68 2c 20 31 29 3b 0a 09 | 09 09 69 66 20 28 62 6f |h, 1);..|..if (bo|
|00002740| 6f 6c 65 61 6e 28 76 61 | 6c 75 65 28 48 41 4c 46 |olean(va|lue(HALF|
|00002750| 44 55 50 4c 45 58 29 29 | 29 0a 09 09 09 09 70 72 |DUPLEX))|).....pr|
|00002760| 69 6e 74 66 28 22 5c 72 | 5c 6e 22 29 3b 0a 09 09 |intf("\r|\n");...|
|00002770| 09 63 6f 6e 74 69 6e 75 | 65 3b 0a 09 09 7d 20 65 |.continu|e;...} e|
|00002780| 6c 73 65 20 69 66 20 28 | 21 63 75 6d 6f 64 65 20 |lse if (|!cumode |
|00002790| 26 26 20 67 63 68 20 3d | 3d 20 63 68 61 72 61 63 |&& gch =|= charac|
|000027a0| 74 65 72 28 76 61 6c 75 | 65 28 46 4f 52 43 45 29 |ter(valu|e(FORCE)|
|000027b0| 29 29 0a 09 09 09 67 63 | 68 20 3d 20 67 65 74 63 |))....gc|h = getc|
|000027c0| 68 61 72 28 29 26 30 31 | 37 37 3b 0a 09 09 62 6f |har()&01|77;...bo|
|000027d0| 6c 20 3d 20 61 6e 79 28 | 67 63 68 2c 20 76 61 6c |l = any(|gch, val|
|000027e0| 75 65 28 45 4f 4c 29 29 | 3b 0a 09 09 69 66 20 28 |ue(EOL))|;...if (|
|000027f0| 62 6f 6f 6c 65 61 6e 28 | 76 61 6c 75 65 28 52 41 |boolean(|value(RA|
|00002800| 49 53 45 29 29 20 26 26 | 20 69 73 6c 6f 77 65 72 |ISE)) &&| islower|
|00002810| 28 67 63 68 29 29 0a 09 | 09 09 67 63 68 20 3d 20 |(gch))..|..gch = |
|00002820| 74 6f 75 70 70 65 72 28 | 67 63 68 29 3b 0a 09 09 |toupper(|gch);...|
|00002830| 70 77 72 69 74 65 28 46 | 44 2c 20 26 67 63 68 2c |pwrite(F|D, &gch,|
|00002840| 20 31 29 3b 0a 09 09 69 | 66 20 28 62 6f 6f 6c 65 | 1);...i|f (boole|
|00002850| 61 6e 28 76 61 6c 75 65 | 28 48 41 4c 46 44 55 50 |an(value|(HALFDUP|
|00002860| 4c 45 58 29 29 29 0a 09 | 09 09 70 72 69 6e 74 66 |LEX)))..|..printf|
|00002870| 28 22 25 63 22 2c 20 67 | 63 68 29 3b 0a 09 7d 0a |("%c", g|ch);..}.|
|00002880| 7d 0a 0a 2f 2a 0a 20 2a | 20 45 73 63 61 70 65 20 |}../*. *| Escape |
|00002890| 68 61 6e 64 6c 65 72 20 | 2d 2d 0a 20 2a 20 20 63 |handler |--. * c|
|000028a0| 61 6c 6c 65 64 20 6f 6e | 20 72 65 63 6f 67 6e 69 |alled on| recogni|
|000028b0| 74 69 6f 6e 20 6f 66 20 | 60 60 65 73 63 61 70 65 |tion of |``escape|
|000028c0| 63 27 27 20 61 74 20 74 | 68 65 20 62 65 67 69 6e |c'' at t|he begin|
|000028d0| 6e 69 6e 67 20 6f 66 20 | 61 20 6c 69 6e 65 0a 20 |ning of |a line. |
|000028e0| 2a 2f 0a 65 73 63 61 70 | 65 28 29 0a 7b 0a 09 72 |*/.escap|e().{..r|
|000028f0| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 67 63 68 |egister |char gch|
|00002900| 3b 0a 09 72 65 67 69 73 | 74 65 72 20 65 73 63 74 |;..regis|ter esct|
|00002910| 61 62 6c 65 5f 74 20 2a | 70 3b 0a 09 63 68 61 72 |able_t *|p;..char|
|00002920| 20 63 20 3d 20 63 68 61 | 72 61 63 74 65 72 28 76 | c = cha|racter(v|
|00002930| 61 6c 75 65 28 45 53 43 | 41 50 45 29 29 3b 0a 09 |alue(ESC|APE));..|
|00002940| 65 78 74 65 72 6e 20 65 | 73 63 74 61 62 6c 65 5f |extern e|sctable_|
|00002950| 74 20 65 74 61 62 6c 65 | 5b 5d 3b 0a 0a 09 67 63 |t etable|[];...gc|
|00002960| 68 20 3d 20 28 67 65 74 | 63 68 61 72 28 29 26 30 |h = (get|char()&0|
|00002970| 31 37 37 29 3b 0a 09 66 | 6f 72 20 28 70 20 3d 20 |177);..f|or (p = |
|00002980| 65 74 61 62 6c 65 3b 20 | 70 2d 3e 65 5f 63 68 61 |etable; |p->e_cha|
|00002990| 72 3b 20 70 2b 2b 29 0a | 09 09 69 66 20 28 70 2d |r; p++).|..if (p-|
|000029a0| 3e 65 5f 63 68 61 72 20 | 3d 3d 20 67 63 68 29 20 |>e_char |== gch) |
|000029b0| 7b 0a 09 09 09 69 66 20 | 28 28 70 2d 3e 65 5f 66 |{....if |((p->e_f|
|000029c0| 6c 61 67 73 26 50 52 49 | 56 29 20 26 26 20 75 69 |lags&PRI|V) && ui|
|000029d0| 64 29 0a 09 09 09 09 63 | 6f 6e 74 69 6e 75 65 3b |d).....c|ontinue;|
|000029e0| 0a 09 09 09 70 72 69 6e | 74 66 28 22 25 73 22 2c |....prin|tf("%s",|
|000029f0| 20 63 74 72 6c 28 63 29 | 29 3b 0a 09 09 09 28 2a | ctrl(c)|);....(*|
|00002a00| 70 2d 3e 65 5f 66 75 6e | 63 29 28 67 63 68 29 3b |p->e_fun|c)(gch);|
|00002a10| 0a 09 09 09 72 65 74 75 | 72 6e 20 28 30 29 3b 0a |....retu|rn (0);.|
|00002a20| 09 09 7d 0a 09 2f 2a 20 | 45 53 43 41 50 45 20 45 |..}../* |ESCAPE E|
|00002a30| 53 43 41 50 45 20 66 6f | 72 63 65 73 20 45 53 43 |SCAPE fo|rces ESC|
|00002a40| 41 50 45 20 2a 2f 0a 09 | 69 66 20 28 63 20 21 3d |APE */..|if (c !=|
|00002a50| 20 67 63 68 29 0a 09 09 | 70 77 72 69 74 65 28 46 | gch)...|pwrite(F|
|00002a60| 44 2c 20 26 63 2c 20 31 | 29 3b 0a 09 72 65 74 75 |D, &c, 1|);..retu|
|00002a70| 72 6e 20 28 67 63 68 29 | 3b 0a 7d 0a 0a 73 70 65 |rn (gch)|;.}..spe|
|00002a80| 65 64 28 6e 29 0a 09 69 | 6e 74 20 6e 3b 0a 7b 0a |ed(n)..i|nt n;.{.|
|00002a90| 09 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 2a 70 |.registe|r int *p|
|00002aa0| 3b 0a 0a 09 66 6f 72 20 | 28 70 20 3d 20 62 61 75 |;...for |(p = bau|
|00002ab0| 64 73 3b 20 2a 70 20 21 | 3d 20 2d 31 3b 20 20 70 |ds; *p !|= -1; p|
|00002ac0| 2b 2b 29 0a 09 09 69 66 | 20 28 2a 70 20 3d 3d 20 |++)...if| (*p == |
|00002ad0| 6e 29 0a 09 09 09 72 65 | 74 75 72 6e 20 28 70 20 |n)....re|turn (p |
|00002ae0| 2d 20 62 61 75 64 73 29 | 3b 0a 09 72 65 74 75 72 |- bauds)|;..retur|
|00002af0| 6e 20 28 4e 55 4c 4c 29 | 3b 0a 7d 0a 0a 61 6e 79 |n (NULL)|;.}..any|
|00002b00| 28 63 2c 20 70 29 0a 09 | 72 65 67 69 73 74 65 72 |(c, p)..|register|
|00002b10| 20 63 68 61 72 20 63 2c | 20 2a 70 3b 0a 7b 0a 09 | char c,| *p;.{..|
|00002b20| 77 68 69 6c 65 20 28 70 | 20 26 26 20 2a 70 29 0a |while (p| && *p).|
|00002b30| 09 09 69 66 20 28 2a 70 | 2b 2b 20 3d 3d 20 63 29 |..if (*p|++ == c)|
|00002b40| 0a 09 09 09 72 65 74 75 | 72 6e 20 28 31 29 3b 0a |....retu|rn (1);.|
|00002b50| 09 72 65 74 75 72 6e 20 | 28 30 29 3b 0a 7d 0a 0a |.return |(0);.}..|
|00002b60| 73 69 7a 65 28 73 29 0a | 09 72 65 67 69 73 74 65 |size(s).|.registe|
|00002b70| 72 20 63 68 61 72 09 2a | 73 3b 0a 7b 0a 09 72 65 |r char.*|s;.{..re|
|00002b80| 67 69 73 74 65 72 20 69 | 6e 74 20 69 20 3d 20 30 |gister i|nt i = 0|
|00002b90| 3b 0a 0a 09 77 68 69 6c | 65 20 28 73 20 26 26 20 |;...whil|e (s && |
|00002ba0| 2a 73 2b 2b 29 0a 09 09 | 69 2b 2b 3b 0a 09 72 65 |*s++)...|i++;..re|
|00002bb0| 74 75 72 6e 20 28 69 29 | 3b 0a 7d 0a 0a 63 68 61 |turn (i)|;.}..cha|
|00002bc0| 72 20 2a 0a 69 6e 74 65 | 72 70 28 73 29 0a 09 72 |r *.inte|rp(s)..r|
|00002bd0| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 73 3b |egister |char *s;|
|00002be0| 0a 7b 0a 09 73 74 61 74 | 69 63 20 63 68 61 72 20 |.{..stat|ic char |
|00002bf0| 62 75 66 5b 32 35 36 5d | 3b 0a 09 72 65 67 69 73 |buf[256]|;..regis|
|00002c00| 74 65 72 20 63 68 61 72 | 20 2a 70 20 3d 20 62 75 |ter char| *p = bu|
|00002c10| 66 2c 20 63 2c 20 2a 71 | 3b 0a 0a 09 77 68 69 6c |f, c, *q|;...whil|
|00002c20| 65 20 28 63 20 3d 20 2a | 73 2b 2b 29 20 7b 0a 09 |e (c = *|s++) {..|
|00002c30| 09 66 6f 72 20 28 71 20 | 3d 20 22 5c 6e 6e 5c 72 |.for (q |= "\nn\r|
|00002c40| 72 5c 74 74 5c 66 66 5c | 30 33 33 45 5c 62 62 22 |r\tt\ff\|033E\bb"|
|00002c50| 3b 20 2a 71 3b 20 71 2b | 2b 29 0a 09 09 09 69 66 |; *q; q+|+)....if|
|00002c60| 20 28 2a 71 2b 2b 20 3d | 3d 20 63 29 20 7b 0a 09 | (*q++ =|= c) {..|
|00002c70| 09 09 09 2a 70 2b 2b 20 | 3d 20 27 5c 5c 27 3b 20 |...*p++ |= '\\'; |
|00002c80| 2a 70 2b 2b 20 3d 20 2a | 71 3b 0a 09 09 09 09 67 |*p++ = *|q;.....g|
|00002c90| 6f 74 6f 20 6e 65 78 74 | 3b 0a 09 09 09 7d 0a 09 |oto next|;....}..|
|00002ca0| 09 69 66 20 28 63 20 3c | 20 30 34 30 29 20 7b 0a |.if (c <| 040) {.|
|00002cb0| 09 09 09 2a 70 2b 2b 20 | 3d 20 27 5e 27 3b 20 2a |...*p++ |= '^'; *|
|00002cc0| 70 2b 2b 20 3d 20 63 20 | 2b 20 27 41 27 2d 31 3b |p++ = c |+ 'A'-1;|
|00002cd0| 0a 09 09 7d 20 65 6c 73 | 65 20 69 66 20 28 63 20 |...} els|e if (c |
|00002ce0| 3d 3d 20 30 31 37 37 29 | 20 7b 0a 09 09 09 2a 70 |== 0177)| {....*p|
|00002cf0| 2b 2b 20 3d 20 27 5e 27 | 3b 20 2a 70 2b 2b 20 3d |++ = '^'|; *p++ =|
|00002d00| 20 27 3f 27 3b 0a 09 09 | 7d 20 65 6c 73 65 0a 09 | '?';...|} else..|
|00002d10| 09 09 2a 70 2b 2b 20 3d | 20 63 3b 0a 09 6e 65 78 |..*p++ =| c;..nex|
|00002d20| 74 3a 0a 09 09 3b 0a 09 | 7d 0a 09 2a 70 20 3d 20 |t:...;..|}..*p = |
|00002d30| 27 5c 30 27 3b 0a 09 72 | 65 74 75 72 6e 20 28 62 |'\0';..r|eturn (b|
|00002d40| 75 66 29 3b 0a 7d 0a 0a | 63 68 61 72 20 2a 0a 63 |uf);.}..|char *.c|
|00002d50| 74 72 6c 28 63 29 0a 09 | 63 68 61 72 20 63 3b 0a |trl(c)..|char c;.|
|00002d60| 7b 0a 09 73 74 61 74 69 | 63 20 63 68 61 72 20 73 |{..stati|c char s|
|00002d70| 5b 33 5d 3b 0a 0a 09 69 | 66 20 28 63 20 3c 20 30 |[3];...i|f (c < 0|
|00002d80| 34 30 20 7c 7c 20 63 20 | 3d 3d 20 30 31 37 37 29 |40 || c |== 0177)|
|00002d90| 20 7b 0a 09 09 73 5b 30 | 5d 20 3d 20 27 5e 27 3b | {...s[0|] = '^';|
|00002da0| 0a 09 09 73 5b 31 5d 20 | 3d 20 63 20 3d 3d 20 30 |...s[1] |= c == 0|
|00002db0| 31 37 37 20 3f 20 27 3f | 27 20 3a 20 63 2b 27 41 |177 ? '?|' : c+'A|
|00002dc0| 27 2d 31 3b 0a 09 09 73 | 5b 32 5d 20 3d 20 27 5c |'-1;...s|[2] = '\|
|00002dd0| 30 27 3b 0a 09 7d 20 65 | 6c 73 65 20 7b 0a 09 09 |0';..} e|lse {...|
|00002de0| 73 5b 30 5d 20 3d 20 63 | 3b 0a 09 09 73 5b 31 5d |s[0] = c|;...s[1]|
|00002df0| 20 3d 20 27 5c 30 27 3b | 0a 09 7d 0a 09 72 65 74 | = '\0';|..}..ret|
|00002e00| 75 72 6e 20 28 73 29 3b | 0a 7d 0a 0a 2f 2a 0a 20 |urn (s);|.}../*. |
|00002e10| 2a 20 48 65 6c 70 20 63 | 6f 6d 6d 61 6e 64 0a 20 |* Help c|ommand. |
|00002e20| 2a 2f 0a 68 65 6c 70 28 | 63 29 0a 09 63 68 61 72 |*/.help(|c)..char|
|00002e30| 20 63 3b 0a 7b 0a 09 72 | 65 67 69 73 74 65 72 20 | c;.{..r|egister |
|00002e40| 65 73 63 74 61 62 6c 65 | 5f 74 20 2a 70 3b 0a 09 |esctable|_t *p;..|
|00002e50| 65 78 74 65 72 6e 20 65 | 73 63 74 61 62 6c 65 5f |extern e|sctable_|
|00002e60| 74 20 65 74 61 62 6c 65 | 5b 5d 3b 0a 0a 09 70 72 |t etable|[];...pr|
|00002e70| 69 6e 74 66 28 22 25 63 | 5c 72 5c 6e 22 2c 20 63 |intf("%c|\r\n", c|
|00002e80| 29 3b 0a 09 66 6f 72 20 | 28 70 20 3d 20 65 74 61 |);..for |(p = eta|
|00002e90| 62 6c 65 3b 20 70 2d 3e | 65 5f 63 68 61 72 3b 20 |ble; p->|e_char; |
|00002ea0| 70 2b 2b 29 20 7b 0a 09 | 09 69 66 20 28 28 70 2d |p++) {..|.if ((p-|
|00002eb0| 3e 65 5f 66 6c 61 67 73 | 26 50 52 49 56 29 20 26 |>e_flags|&PRIV) &|
|00002ec0| 26 20 75 69 64 29 0a 09 | 09 09 63 6f 6e 74 69 6e |& uid)..|..contin|
|00002ed0| 75 65 3b 0a 09 09 70 72 | 69 6e 74 66 28 22 25 32 |ue;...pr|intf("%2|
|00002ee0| 73 22 2c 20 63 74 72 6c | 28 63 68 61 72 61 63 74 |s", ctrl|(charact|
|00002ef0| 65 72 28 76 61 6c 75 65 | 28 45 53 43 41 50 45 29 |er(value|(ESCAPE)|
|00002f00| 29 29 29 3b 0a 09 09 70 | 72 69 6e 74 66 28 22 25 |)));...p|rintf("%|
|00002f10| 2d 32 73 20 25 63 20 20 | 20 25 73 5c 72 5c 6e 22 |-2s %c | %s\r\n"|
|00002f20| 2c 20 63 74 72 6c 28 70 | 2d 3e 65 5f 63 68 61 72 |, ctrl(p|->e_char|
|00002f30| 29 2c 0a 09 09 09 70 2d | 3e 65 5f 66 6c 61 67 73 |),....p-|>e_flags|
|00002f40| 26 45 58 50 20 3f 20 27 | 2a 27 3a 20 27 20 27 2c |&EXP ? '|*': ' ',|
|00002f50| 20 70 2d 3e 65 5f 68 65 | 6c 70 29 3b 0a 09 7d 0a | p->e_he|lp);..}.|
|00002f60| 7d 0a 0a 2f 2a 0a 20 2a | 20 53 65 74 20 75 70 20 |}../*. *| Set up |
|00002f70| 74 68 65 20 22 72 65 6d | 6f 74 65 22 20 74 74 79 |the "rem|ote" tty|
|00002f80| 27 73 20 73 74 61 74 65 | 0a 20 2a 2f 0a 74 74 79 |'s state|. */.tty|
|00002f90| 73 65 74 75 70 28 73 70 | 65 65 64 29 0a 09 69 6e |setup(sp|eed)..in|
|00002fa0| 74 20 73 70 65 65 64 3b | 0a 7b 0a 09 75 6e 73 69 |t speed;|.{..unsi|
|00002fb0| 67 6e 65 64 20 62 69 74 | 73 20 3d 20 4c 44 45 43 |gned bit|s = LDEC|
|00002fc0| 43 54 51 3b 0a 0a 09 61 | 72 67 2e 73 67 5f 69 73 |CTQ;...a|rg.sg_is|
|00002fd0| 70 65 65 64 20 3d 20 61 | 72 67 2e 73 67 5f 6f 73 |peed = a|rg.sg_os|
|00002fe0| 70 65 65 64 20 3d 20 73 | 70 65 65 64 3b 0a 09 61 |peed = s|peed;..a|
|00002ff0| 72 67 2e 73 67 5f 66 6c | 61 67 73 20 3d 20 52 41 |rg.sg_fl|ags = RA|
|00003000| 57 3b 0a 09 69 66 20 28 | 62 6f 6f 6c 65 61 6e 28 |W;..if (|boolean(|
|00003010| 76 61 6c 75 65 28 54 41 | 4e 44 29 29 29 0a 09 09 |value(TA|ND)))...|
|00003020| 61 72 67 2e 73 67 5f 66 | 6c 61 67 73 20 7c 3d 20 |arg.sg_f|lags |= |
|00003030| 54 41 4e 44 45 4d 3b 0a | 09 69 66 20 28 62 6f 6f |TANDEM;.|.if (boo|
|00003040| 6c 65 61 6e 28 76 61 6c | 75 65 28 44 54 52 48 55 |lean(val|ue(DTRHU|
|00003050| 50 29 29 29 20 7b 0a 09 | 09 69 6f 63 74 6c 28 46 |P))) {..|.ioctl(F|
|00003060| 44 2c 20 54 49 4f 43 53 | 44 54 52 2c 20 30 29 3b |D, TIOCS|DTR, 0);|
|00003070| 0a 09 09 69 6f 63 74 6c | 28 46 44 2c 20 54 49 4f |...ioctl|(FD, TIO|
|00003080| 43 48 50 43 4c 2c 20 30 | 29 3b 0a 09 7d 0a 09 69 |CHPCL, 0|);..}..i|
|00003090| 6f 63 74 6c 28 46 44 2c | 20 54 49 4f 43 53 45 54 |octl(FD,| TIOCSET|
|000030a0| 50 2c 20 28 63 68 61 72 | 20 2a 29 26 61 72 67 29 |P, (char| *)&arg)|
|000030b0| 3b 0a 09 69 6f 63 74 6c | 28 46 44 2c 20 54 49 4f |;..ioctl|(FD, TIO|
|000030c0| 43 4c 42 49 53 2c 20 28 | 63 68 61 72 20 2a 29 26 |CLBIS, (|char *)&|
|000030d0| 62 69 74 73 29 3b 0a 7d | 0a 0a 2f 2a 0a 20 2a 20 |bits);.}|../*. * |
|000030e0| 52 65 74 75 72 6e 20 22 | 73 69 6d 70 6c 65 22 20 |Return "|simple" |
|000030f0| 6e 61 6d 65 20 66 72 6f | 6d 20 61 20 66 69 6c 65 |name fro|m a file|
|00003100| 20 6e 61 6d 65 2c 0a 20 | 2a 20 73 74 72 69 70 20 | name,. |* strip |
|00003110| 6c 65 61 64 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |leading |director|
|00003120| 69 65 73 2e 0a 20 2a 2f | 0a 63 68 61 72 20 2a 0a |ies.. */|.char *.|
|00003130| 73 6e 61 6d 65 28 73 29 | 0a 09 72 65 67 69 73 74 |sname(s)|..regist|
|00003140| 65 72 20 63 68 61 72 20 | 2a 73 3b 0a 7b 0a 09 72 |er char |*s;.{..r|
|00003150| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 70 20 |egister |char *p |
|00003160| 3d 20 73 3b 0a 0a 09 77 | 68 69 6c 65 20 28 2a 73 |= s;...w|hile (*s|
|00003170| 29 0a 09 09 69 66 20 28 | 2a 73 2b 2b 20 3d 3d 20 |)...if (|*s++ == |
|00003180| 27 2f 27 29 0a 09 09 09 | 70 20 3d 20 73 3b 0a 09 |'/')....|p = s;..|
|00003190| 72 65 74 75 72 6e 20 28 | 70 29 3b 0a 7d 0a 0a 73 |return (|p);.}..s|
|000031a0| 74 61 74 69 63 20 63 68 | 61 72 20 70 61 72 74 61 |tatic ch|ar parta|
|000031b0| 62 5b 30 32 30 30 5d 3b | 0a 0a 2f 2a 0a 20 2a 20 |b[0200];|../*. * |
|000031c0| 44 6f 20 61 20 77 72 69 | 74 65 20 74 6f 20 74 68 |Do a wri|te to th|
|000031d0| 65 20 72 65 6d 6f 74 65 | 20 6d 61 63 68 69 6e 65 |e remote| machine|
|000031e0| 20 77 69 74 68 20 74 68 | 65 20 63 6f 72 72 65 63 | with th|e correc|
|000031f0| 74 20 70 61 72 69 74 79 | 2e 0a 20 2a 20 57 65 20 |t parity|.. * We |
|00003200| 61 72 65 20 64 6f 69 6e | 67 20 38 20 62 69 74 20 |are doin|g 8 bit |
|00003210| 77 69 64 65 20 6f 75 74 | 70 75 74 2c 20 73 6f 20 |wide out|put, so |
|00003220| 77 65 20 6a 75 73 74 20 | 67 65 6e 65 72 61 74 65 |we just |generate|
|00003230| 20 61 20 63 68 61 72 61 | 63 74 65 72 0a 20 2a 20 | a chara|cter. * |
|00003240| 77 69 74 68 20 74 68 65 | 20 72 69 67 68 74 20 70 |with the| right p|
|00003250| 61 72 69 74 79 20 61 6e | 64 20 6f 75 74 70 75 74 |arity an|d output|
|00003260| 20 69 74 2e 0a 20 2a 2f | 0a 70 77 72 69 74 65 28 | it.. */|.pwrite(|
|00003270| 66 64 2c 20 62 75 66 2c | 20 6e 29 0a 09 69 6e 74 |fd, buf,| n)..int|
|00003280| 20 66 64 3b 0a 09 63 68 | 61 72 20 2a 62 75 66 3b | fd;..ch|ar *buf;|
|00003290| 0a 09 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 6e |..regist|er int n|
|000032a0| 3b 0a 7b 0a 09 72 65 67 | 69 73 74 65 72 20 69 6e |;.{..reg|ister in|
|000032b0| 74 20 69 3b 0a 09 72 65 | 67 69 73 74 65 72 20 63 |t i;..re|gister c|
|000032c0| 68 61 72 20 2a 62 70 3b | 0a 09 65 78 74 65 72 6e |har *bp;|..extern|
|000032d0| 20 69 6e 74 20 65 72 72 | 6e 6f 3b 0a 0a 09 62 70 | int err|no;...bp|
|000032e0| 20 3d 20 62 75 66 3b 0a | 09 66 6f 72 20 28 69 20 | = buf;.|.for (i |
|000032f0| 3d 20 30 3b 20 69 20 3c | 20 6e 3b 20 69 2b 2b 29 |= 0; i <| n; i++)|
|00003300| 20 7b 0a 09 09 2a 62 70 | 20 3d 20 70 61 72 74 61 | {...*bp| = parta|
|00003310| 62 5b 28 2a 62 70 29 20 | 26 20 30 31 37 37 5d 3b |b[(*bp) |& 0177];|
|00003320| 0a 09 09 62 70 2b 2b 3b | 0a 09 7d 0a 09 69 66 20 |...bp++;|..}..if |
|00003330| 28 77 72 69 74 65 28 66 | 64 2c 20 62 75 66 2c 20 |(write(f|d, buf, |
|00003340| 6e 29 20 3c 20 30 29 20 | 7b 0a 09 09 69 66 20 28 |n) < 0) |{...if (|
|00003350| 65 72 72 6e 6f 20 3d 3d | 20 45 49 4f 29 0a 09 09 |errno ==| EIO)...|
|00003360| 09 61 62 6f 72 74 28 22 | 4c 6f 73 74 20 63 61 72 |.abort("|Lost car|
|00003370| 72 69 65 72 2e 22 29 3b | 0a 09 09 2f 2a 20 74 68 |rier.");|.../* th|
|00003380| 69 73 20 69 73 20 71 75 | 65 73 74 69 6f 6e 61 62 |is is qu|estionab|
|00003390| 6c 65 20 2a 2f 0a 09 09 | 70 65 72 72 6f 72 28 22 |le */...|perror("|
|000033a0| 77 72 69 74 65 22 29 3b | 0a 09 7d 0a 7d 0a 0a 2f |write");|..}.}../|
|000033b0| 2a 0a 20 2a 20 42 75 69 | 6c 64 20 61 20 70 61 72 |*. * Bui|ld a par|
|000033c0| 69 74 79 20 74 61 62 6c | 65 20 77 69 74 68 20 61 |ity tabl|e with a|
|000033d0| 70 70 72 6f 70 72 69 61 | 74 65 20 68 69 67 68 2d |ppropria|te high-|
|000033e0| 6f 72 64 65 72 20 62 69 | 74 2e 0a 20 2a 2f 0a 73 |order bi|t.. */.s|
|000033f0| 65 74 70 61 72 69 74 79 | 28 64 65 66 70 61 72 69 |etparity|(defpari|
|00003400| 74 79 29 0a 09 63 68 61 | 72 20 2a 64 65 66 70 61 |ty)..cha|r *defpa|
|00003410| 72 69 74 79 3b 0a 7b 0a | 09 72 65 67 69 73 74 65 |rity;.{.|.registe|
|00003420| 72 20 69 6e 74 20 69 3b | 0a 09 63 68 61 72 20 2a |r int i;|..char *|
|00003430| 70 61 72 69 74 79 3b 0a | 09 65 78 74 65 72 6e 20 |parity;.|.extern |
|00003440| 63 68 61 72 20 65 76 65 | 6e 70 61 72 74 61 62 5b |char eve|npartab[|
|00003450| 5d 3b 0a 0a 09 69 66 20 | 28 76 61 6c 75 65 28 50 |];...if |(value(P|
|00003460| 41 52 49 54 59 29 20 3d | 3d 20 4e 4f 53 54 52 29 |ARITY) =|= NOSTR)|
|00003470| 0a 09 09 76 61 6c 75 65 | 28 50 41 52 49 54 59 29 |...value|(PARITY)|
|00003480| 20 3d 20 64 65 66 70 61 | 72 69 74 79 3b 0a 09 70 | = defpa|rity;..p|
|00003490| 61 72 69 74 79 20 3d 20 | 76 61 6c 75 65 28 50 41 |arity = |value(PA|
|000034a0| 52 49 54 59 29 3b 0a 09 | 66 6f 72 20 28 69 20 3d |RITY);..|for (i =|
|000034b0| 20 30 3b 20 69 20 3c 20 | 30 32 30 30 3b 20 69 2b | 0; i < |0200; i+|
|000034c0| 2b 29 0a 09 09 70 61 72 | 74 61 62 5b 69 5d 20 3d |+)...par|tab[i] =|
|000034d0| 20 65 76 65 6e 70 61 72 | 74 61 62 5b 69 5d 3b 0a | evenpar|tab[i];.|
|000034e0| 09 69 66 20 28 65 71 75 | 61 6c 28 70 61 72 69 74 |.if (equ|al(parit|
|000034f0| 79 2c 20 22 65 76 65 6e | 22 29 29 0a 09 09 72 65 |y, "even|"))...re|
|00003500| 74 75 72 6e 3b 0a 09 69 | 66 20 28 65 71 75 61 6c |turn;..i|f (equal|
|00003510| 28 70 61 72 69 74 79 2c | 20 22 6f 64 64 22 29 29 |(parity,| "odd"))|
|00003520| 20 7b 0a 09 09 66 6f 72 | 20 28 69 20 3d 20 30 3b | {...for| (i = 0;|
|00003530| 20 69 20 3c 20 30 32 30 | 30 3b 20 69 2b 2b 29 0a | i < 020|0; i++).|
|00003540| 09 09 09 70 61 72 74 61 | 62 5b 69 5d 20 5e 3d 20 |...parta|b[i] ^= |
|00003550| 30 32 30 30 3b 09 2f 2a | 20 72 65 76 65 72 73 65 |0200;./*| reverse|
|00003560| 20 62 69 74 20 37 20 2a | 2f 0a 09 09 72 65 74 75 | bit 7 *|/...retu|
|00003570| 72 6e 3b 0a 09 7d 0a 09 | 69 66 20 28 65 71 75 61 |rn;..}..|if (equa|
|00003580| 6c 28 70 61 72 69 74 79 | 2c 20 22 6e 6f 6e 65 22 |l(parity|, "none"|
|00003590| 29 20 7c 7c 20 65 71 75 | 61 6c 28 70 61 72 69 74 |) || equ|al(parit|
|000035a0| 79 2c 20 22 7a 65 72 6f | 22 29 29 20 7b 0a 09 09 |y, "zero|")) {...|
|000035b0| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|000035c0| 30 32 30 30 3b 20 69 2b | 2b 29 0a 09 09 09 70 61 |0200; i+|+)....pa|
|000035d0| 72 74 61 62 5b 69 5d 20 | 26 3d 20 7e 30 32 30 30 |rtab[i] |&= ~0200|
|000035e0| 3b 09 2f 2a 20 74 75 72 | 6e 20 6f 66 66 20 62 69 |;./* tur|n off bi|
|000035f0| 74 20 37 20 2a 2f 0a 09 | 09 72 65 74 75 72 6e 3b |t 7 */..|.return;|
|00003600| 0a 09 7d 0a 09 69 66 20 | 28 65 71 75 61 6c 28 70 |..}..if |(equal(p|
|00003610| 61 72 69 74 79 2c 20 22 | 6f 6e 65 22 29 29 20 7b |arity, "|one")) {|
|00003620| 0a 09 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |...for (|i = 0; i|
|00003630| 20 3c 20 30 32 30 30 3b | 20 69 2b 2b 29 0a 09 09 | < 0200;| i++)...|
|00003640| 09 70 61 72 74 61 62 5b | 69 5d 20 7c 3d 20 30 32 |.partab[|i] |= 02|
|00003650| 30 30 3b 09 2f 2a 20 74 | 75 72 6e 20 6f 6e 20 62 |00;./* t|urn on b|
|00003660| 69 74 20 37 20 2a 2f 0a | 09 09 72 65 74 75 72 6e |it 7 */.|..return|
|00003670| 3b 0a 09 7d 0a 09 66 70 | 72 69 6e 74 66 28 73 74 |;..}..fp|rintf(st|
|00003680| 64 65 72 72 2c 20 22 25 | 73 3a 20 75 6e 6b 6e 6f |derr, "%|s: unkno|
|00003690| 77 6e 20 70 61 72 69 74 | 79 20 76 61 6c 75 65 5c |wn parit|y value\|
|000036a0| 6e 22 2c 20 50 41 29 3b | 0a 09 66 66 6c 75 73 68 |n", PA);|..fflush|
|000036b0| 28 73 74 64 65 72 72 29 | 3b 0a 7d 0a 0a 2f 2a 20 |(stderr)|;.}../* |
|000036c0| 54 68 65 20 75 69 64 20 | 63 6f 75 6c 64 20 62 65 |The uid |could be|
|000036d0| 20 64 65 74 65 72 6d 69 | 6e 65 64 20 62 79 20 73 | determi|ned by s|
|000036e0| 74 61 74 28 29 2d 69 6e | 67 20 41 43 55 4c 4f 47 |tat()-in|g ACULOG|
|000036f0| 20 2a 2f 0a 67 65 74 75 | 75 63 70 75 69 64 28 29 | */.getu|ucpuid()|
|00003700| 0a 7b 0a 09 73 74 72 75 | 63 74 20 70 61 73 73 77 |.{..stru|ct passw|
|00003710| 64 20 2a 70 77 3b 0a 0a | 09 69 66 20 28 28 70 77 |d *pw;..|.if ((pw|
|00003720| 20 3d 20 67 65 74 70 77 | 6e 61 6d 28 22 75 75 63 | = getpw|nam("uuc|
|00003730| 70 22 29 29 20 3d 3d 20 | 4e 55 4c 4c 29 20 7b 0a |p")) == |NULL) {.|
|00003740| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00003750| 2c 20 22 74 69 70 3a 20 | 75 6e 61 62 6c 65 20 74 |, "tip: |unable t|
|00003760| 6f 20 67 65 74 20 75 75 | 63 70 20 75 69 64 5c 6e |o get uu|cp uid\n|
|00003770| 22 29 3b 0a 09 09 65 78 | 69 74 28 31 29 3b 0a 09 |");...ex|it(1);..|
|00003780| 7d 0a 09 72 65 74 75 72 | 6e 28 70 77 2d 3e 70 77 |}..retur|n(pw->pw|
|00003790| 5f 75 69 64 29 3b 0a 7d | 0a 2c 20 6d 6f 64 65 2c |_uid);.}|., mode,|
|000037a0| 20 65 74 63 2e 29 0a 09 | 20 2a 09 69 6e 74 65 72 | etc.)..| *.inter|
|000037b0| 6e 61 6c 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |nal data| structu|
|000037c0| 72 65 73 20 28 76 61 72 | 69 61 62 6c 65 73 29 0a |res (var|iables).|
|000037d0| 09 20 2a 20 73 6f 2c 20 | 66 6f 72 6b 20 6f 6e 65 |. * so, |fork one|
|000037e0| 20 70 72 6f 63 65 73 73 | 20 66 6f 72 20 6c 6f 63 | process| for loc|
|000037f0| 61 6c 20 73 69 64 65 20 | 61 6e 64 20 6f 6e 65 20 |al side |and one |
|00003800| 74 69 70 2f 4d 61 6b 65 | 66 69 6c 65 00 00 00 00 |tip/Make|file....|
|00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00003870| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00003880| 20 20 20 36 36 30 37 20 | 20 34 34 33 34 31 33 34 | 6607 | 4434134|
|00003890| 31 37 31 20 20 20 36 32 | 35 33 00 20 00 00 00 00 |171 62|53. ....|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 23 0a 23 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |#.# Copy|right (c|
|00003a10| 29 20 31 39 38 38 20 54 | 68 65 20 52 65 67 65 6e |) 1988 T|he Regen|
|00003a20| 74 73 20 6f 66 20 74 68 | 65 20 55 6e 69 76 65 72 |ts of th|e Univer|
|00003a30| 73 69 74 79 20 6f 66 20 | 43 61 6c 69 66 6f 72 6e |sity of |Californ|
|00003a40| 69 61 2e 0a 23 20 41 6c | 6c 20 72 69 67 68 74 73 |ia..# Al|l rights|
|00003a50| 20 72 65 73 65 72 76 65 | 64 2e 0a 23 0a 23 20 52 | reserve|d..#.# R|
|00003a60| 65 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 61 6e |edistrib|ution an|
|00003a70| 64 20 75 73 65 20 69 6e | 20 73 6f 75 72 63 65 20 |d use in| source |
|00003a80| 61 6e 64 20 62 69 6e 61 | 72 79 20 66 6f 72 6d 73 |and bina|ry forms|
|00003a90| 20 61 72 65 20 70 65 72 | 6d 69 74 74 65 64 0a 23 | are per|mitted.#|
|00003aa0| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 74 | provide|d that t|
|00003ab0| 68 65 20 61 62 6f 76 65 | 20 63 6f 70 79 72 69 67 |he above| copyrig|
|00003ac0| 68 74 20 6e 6f 74 69 63 | 65 20 61 6e 64 20 74 68 |ht notic|e and th|
|00003ad0| 69 73 20 70 61 72 61 67 | 72 61 70 68 20 61 72 65 |is parag|raph are|
|00003ae0| 0a 23 20 64 75 70 6c 69 | 63 61 74 65 64 20 69 6e |.# dupli|cated in|
|00003af0| 20 61 6c 6c 20 73 75 63 | 68 20 66 6f 72 6d 73 20 | all suc|h forms |
|00003b00| 61 6e 64 20 74 68 61 74 | 20 61 6e 79 20 64 6f 63 |and that| any doc|
|00003b10| 75 6d 65 6e 74 61 74 69 | 6f 6e 2c 0a 23 20 61 64 |umentati|on,.# ad|
|00003b20| 76 65 72 74 69 73 69 6e | 67 20 6d 61 74 65 72 69 |vertisin|g materi|
|00003b30| 61 6c 73 2c 20 61 6e 64 | 20 6f 74 68 65 72 20 6d |als, and| other m|
|00003b40| 61 74 65 72 69 61 6c 73 | 20 72 65 6c 61 74 65 64 |aterials| related|
|00003b50| 20 74 6f 20 73 75 63 68 | 0a 23 20 64 69 73 74 72 | to such|.# distr|
|00003b60| 69 62 75 74 69 6f 6e 20 | 61 6e 64 20 75 73 65 20 |ibution |and use |
|00003b70| 61 63 6b 6e 6f 77 6c 65 | 64 67 65 20 74 68 61 74 |acknowle|dge that|
|00003b80| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 20 77 61 | the sof|tware wa|
|00003b90| 73 20 64 65 76 65 6c 6f | 70 65 64 0a 23 20 62 79 |s develo|ped.# by|
|00003ba0| 20 74 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | the Uni|versity |
|00003bb0| 6f 66 20 43 61 6c 69 66 | 6f 72 6e 69 61 2c 20 42 |of Calif|ornia, B|
|00003bc0| 65 72 6b 65 6c 65 79 2e | 20 20 54 68 65 20 6e 61 |erkeley.| The na|
|00003bd0| 6d 65 20 6f 66 20 74 68 | 65 0a 23 20 55 6e 69 76 |me of th|e.# Univ|
|00003be0| 65 72 73 69 74 79 20 6d | 61 79 20 6e 6f 74 20 62 |ersity m|ay not b|
|00003bf0| 65 20 75 73 65 64 20 74 | 6f 20 65 6e 64 6f 72 73 |e used t|o endors|
|00003c00| 65 20 6f 72 20 70 72 6f | 6d 6f 74 65 20 70 72 6f |e or pro|mote pro|
|00003c10| 64 75 63 74 73 20 64 65 | 72 69 76 65 64 0a 23 20 |ducts de|rived.# |
|00003c20| 66 72 6f 6d 20 74 68 69 | 73 20 73 6f 66 74 77 61 |from thi|s softwa|
|00003c30| 72 65 20 77 69 74 68 6f | 75 74 20 73 70 65 63 69 |re witho|ut speci|
|00003c40| 66 69 63 20 70 72 69 6f | 72 20 77 72 69 74 74 65 |fic prio|r writte|
|00003c50| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 2e 0a 23 20 |n permis|sion..# |
|00003c60| 54 48 49 53 20 53 4f 46 | 54 57 41 52 45 20 49 53 |THIS SOF|TWARE IS|
|00003c70| 20 50 52 4f 56 49 44 45 | 44 20 60 60 41 53 20 49 | PROVIDE|D ``AS I|
|00003c80| 53 27 27 20 41 4e 44 20 | 57 49 54 48 4f 55 54 20 |S'' AND |WITHOUT |
|00003c90| 41 4e 59 20 45 58 50 52 | 45 53 53 20 4f 52 0a 23 |ANY EXPR|ESS OR.#|
|00003ca0| 20 49 4d 50 4c 49 45 44 | 20 57 41 52 52 41 4e 54 | IMPLIED| WARRANT|
|00003cb0| 49 45 53 2c 20 49 4e 43 | 4c 55 44 49 4e 47 2c 20 |IES, INC|LUDING, |
|00003cc0| 57 49 54 48 4f 55 54 20 | 4c 49 4d 49 54 41 54 49 |WITHOUT |LIMITATI|
|00003cd0| 4f 4e 2c 20 54 48 45 20 | 49 4d 50 4c 49 45 44 0a |ON, THE |IMPLIED.|
|00003ce0| 23 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 20 |# WARRAN|TIES OF |
|00003cf0| 4d 45 52 43 48 41 4e 54 | 49 42 49 4c 49 54 59 20 |MERCHANT|IBILITY |
|00003d00| 41 4e 44 20 46 49 54 4e | 45 53 53 20 46 4f 52 20 |AND FITN|ESS FOR |
|00003d10| 41 20 50 41 52 54 49 43 | 55 4c 41 52 20 50 55 52 |A PARTIC|ULAR PUR|
|00003d20| 50 4f 53 45 2e 0a 23 0a | 23 09 40 28 23 29 4d 61 |POSE..#.|#.@(#)Ma|
|00003d30| 6b 65 66 69 6c 65 09 35 | 2e 36 20 28 42 65 72 6b |kefile.5|.6 (Berk|
|00003d40| 65 6c 65 79 29 20 39 2f | 32 38 2f 38 38 0a 23 0a |eley) 9/|28/88.#.|
|00003d50| 23 20 6d 61 6b 65 20 66 | 69 6c 65 20 66 6f 72 20 |# make f|ile for |
|00003d60| 69 6e 74 65 72 6d 61 63 | 68 69 6e 65 20 63 6f 6d |intermac|hine com|
|00003d70| 6d 75 6e 69 63 61 74 69 | 6f 6e 73 20 70 61 63 6b |municati|ons pack|
|00003d80| 61 67 65 0a 23 0a 23 20 | 46 69 6c 65 73 20 61 72 |age.#.# |Files ar|
|00003d90| 65 3a 0a 23 09 2f 65 74 | 63 2f 72 65 6d 6f 74 65 |e:.#./et|c/remote|
|00003da0| 09 09 72 65 6d 6f 74 65 | 20 68 6f 73 74 20 64 65 |..remote| host de|
|00003db0| 73 63 72 69 70 74 69 6f | 6e 20 66 69 6c 65 0a 23 |scriptio|n file.#|
|00003dc0| 09 2f 65 74 63 2f 70 68 | 6f 6e 65 73 09 09 70 68 |./etc/ph|ones..ph|
|00003dd0| 6f 6e 65 20 6e 75 6d 62 | 65 72 20 66 69 6c 65 2c |one numb|er file,|
|00003de0| 20 6f 77 6e 65 64 20 62 | 79 20 24 7b 4f 57 4e 45 | owned b|y ${OWNE|
|00003df0| 52 7d 20 61 6e 64 0a 23 | 09 09 09 09 20 20 6d 6f |R} and.#|.... mo|
|00003e00| 64 65 20 36 3f 3f 0a 23 | 09 24 7b 41 44 4d 7d 2f |de 6??.#|.${ADM}/|
|00003e10| 61 63 75 6c 6f 67 09 09 | 41 43 55 20 61 63 63 6f |aculog..|ACU acco|
|00003e20| 75 6e 74 69 6e 67 20 66 | 69 6c 65 2c 20 6f 77 6e |unting f|ile, own|
|00003e30| 65 64 20 62 79 20 24 7b | 4f 57 4e 45 52 7d 20 61 |ed by ${|OWNER} a|
|00003e40| 6e 64 0a 23 09 09 09 09 | 20 20 6d 6f 64 65 20 36 |nd.#....| mode 6|
|00003e50| 3f 3f 20 7b 69 66 20 41 | 43 55 4c 4f 47 20 64 65 |?? {if A|CULOG de|
|00003e60| 66 69 6e 65 64 7d 0a 23 | 20 50 72 65 73 65 6e 74 |fined}.#| Present|
|00003e70| 6c 79 20 73 75 70 70 6f | 72 74 73 3a 0a 23 09 42 |ly suppo|rts:.#.B|
|00003e80| 49 5a 43 4f 4d 50 0a 23 | 09 44 45 43 20 44 46 30 |IZCOMP.#|.DEC DF0|
|00003e90| 32 2d 41 43 2c 20 44 46 | 30 33 2d 41 43 0a 23 09 |2-AC, DF|03-AC.#.|
|00003ea0| 44 45 43 20 44 4e 2d 31 | 31 2f 41 62 6c 65 20 51 |DEC DN-1|1/Able Q|
|00003eb0| 75 61 64 72 61 63 61 6c | 6c 0a 23 09 48 41 59 45 |uadracal|l.#.HAYE|
|00003ec0| 53 20 61 6e 64 20 48 61 | 79 65 73 20 65 6d 75 6c |S and Ha|yes emul|
|00003ed0| 61 74 6f 72 73 0a 23 09 | 55 53 52 20 43 4f 55 52 |ators.#.|USR COUR|
|00003ee0| 49 45 52 20 28 32 34 30 | 30 20 62 61 75 64 29 0a |IER (240|0 baud).|
|00003ef0| 23 09 56 45 4e 54 45 4c | 20 32 31 32 2b 0a 23 09 |#.VENTEL| 212+.#.|
|00003f00| 56 41 44 49 43 20 38 33 | 31 20 52 53 32 33 32 20 |VADIC 83|1 RS232 |
|00003f10| 61 64 61 70 74 6f 72 0a | 23 09 56 41 44 49 43 20 |adaptor.|#.VADIC |
|00003f20| 33 34 35 31 0a 23 09 48 | 61 79 65 73 20 53 6d 61 |3451.#.H|ayes Sma|
|00003f30| 72 74 6d 6f 64 65 6d 20 | 32 34 30 30 0a 23 09 54 |rtmodem |2400.#.T|
|00003f40| 65 6c 65 62 69 74 20 54 | 72 61 69 6c 62 6c 61 7a |elebit T|railblaz|
|00003f50| 65 72 0a 23 20 28 64 72 | 69 76 65 72 73 20 61 72 |er.# (dr|ivers ar|
|00003f60| 65 20 6c 6f 63 61 74 65 | 64 20 69 6e 20 6c 69 62 |e locate|d in lib|
|00003f70| 61 63 75 2e 61 29 0a 23 | 0a 23 20 43 6f 6e 66 69 |acu.a).#|.# Confi|
|00003f80| 67 75 72 61 74 69 6f 6e | 20 64 65 66 69 6e 65 73 |guration| defines|
|00003f90| 3a 0a 23 09 44 46 30 32 | 2c 20 44 46 30 33 2c 20 |:.#.DF02|, DF03, |
|00003fa0| 44 4e 31 31 09 41 43 55 | 27 73 20 73 75 70 70 6f |DN11.ACU|'s suppo|
|00003fb0| 72 74 65 64 0a 23 09 20 | 20 42 49 5a 31 30 33 31 |rted.#. | BIZ1031|
|00003fc0| 2c 20 42 49 5a 31 30 32 | 32 2c 20 56 45 4e 54 45 |, BIZ102|2, VENTE|
|00003fd0| 4c 2c 20 56 38 33 31 2c | 20 56 33 34 35 31 2c 20 |L, V831,| V3451, |
|00003fe0| 48 41 59 45 53 2c 20 43 | 4f 55 52 49 45 52 0a 23 |HAYES, C|OURIER.#|
|00003ff0| 09 20 20 53 4d 32 34 30 | 30 2c 20 54 45 4c 45 42 |. SM240|0, TELEB|
|00004000| 49 54 0a 23 09 41 43 55 | 4c 4f 47 09 09 09 74 75 |IT.#.ACU|LOG...tu|
|00004010| 72 6e 20 6f 6e 20 74 69 | 70 20 6c 6f 67 67 69 6e |rn on ti|p loggin|
|00004020| 67 20 6f 66 20 41 43 55 | 20 75 73 65 0a 23 09 50 |g of ACU| use.#.P|
|00004030| 52 49 53 54 49 4e 45 09 | 09 6e 6f 20 70 68 6f 6e |RISTINE.|.no phon|
|00004040| 65 20 23 27 73 20 70 75 | 74 20 69 6e 20 41 43 55 |e #'s pu|t in ACU|
|00004050| 20 6c 6f 67 20 66 69 6c | 65 0a 23 09 43 4f 4e 4e | log fil|e.#.CONN|
|00004060| 45 43 54 09 09 09 77 6f | 72 74 68 6c 65 73 73 20 |ECT...wo|rthless |
|00004070| 63 6f 6d 6d 61 6e 64 0a | 23 09 44 45 46 42 52 09 |command.|#.DEFBR.|
|00004080| 09 09 64 65 66 61 75 6c | 74 20 62 61 75 64 20 72 |..defaul|t baud r|
|00004090| 61 74 65 20 74 6f 20 6d | 61 6b 65 20 63 6f 6e 6e |ate to m|ake conn|
|000040a0| 65 63 74 69 6f 6e 20 61 | 74 0a 23 09 44 45 46 46 |ection a|t.#.DEFF|
|000040b0| 53 09 09 09 64 65 66 61 | 75 6c 74 20 66 72 61 6d |S...defa|ult fram|
|000040c0| 65 20 73 69 7a 65 20 66 | 6f 72 20 46 54 50 20 62 |e size f|or FTP b|
|000040d0| 75 66 66 65 72 69 6e 67 | 20 6f 66 0a 23 09 09 09 |uffering| of.#...|
|000040e0| 09 77 72 69 74 65 73 20 | 6f 6e 20 6c 6f 63 61 6c |.writes |on local|
|000040f0| 20 73 69 64 65 0a 23 09 | 42 55 46 53 49 5a 09 09 | side.#.|BUFSIZ..|
|00004100| 09 62 75 66 66 65 72 20 | 73 69 7a 69 6e 67 20 66 |.buffer |sizing f|
|00004110| 72 6f 6d 20 73 74 64 69 | 6f 2c 20 6d 75 73 74 20 |rom stdi|o, must |
|00004120| 62 65 20 66 65 64 0a 23 | 09 09 09 09 65 78 70 6c |be fed.#|....expl|
|00004130| 69 63 69 74 6c 79 20 74 | 6f 20 72 65 6d 63 61 70 |icitly t|o remcap|
|00004140| 2e 63 20 69 66 20 6e 6f | 74 20 31 30 32 34 0a 23 |.c if no|t 1024.#|
|00004150| 09 53 54 52 45 41 4d 53 | 09 09 09 73 79 73 74 65 |.STREAMS|...syste|
|00004160| 6d 20 68 61 73 20 73 74 | 72 65 61 6d 73 20 74 74 |m has st|reams tt|
|00004170| 79 20 69 6e 74 65 72 66 | 61 63 65 20 28 53 75 6e |y interf|ace (Sun|
|00004180| 4f 53 20 34 2e 30 29 0a | 41 44 4d 3d 09 75 73 72 |OS 4.0).|ADM=.usr|
|00004190| 2f 61 64 6d 0a 43 4f 4e | 46 49 47 3d 09 2d 44 53 |/adm.CON|FIG=.-DS|
|000041a0| 4d 32 34 30 30 20 2d 44 | 54 45 4c 45 42 49 54 0a |M2400 -D|TELEBIT.|
|000041b0| 43 46 4c 41 47 53 3d 09 | 2d 4f 20 2d 44 44 45 46 |CFLAGS=.|-O -DDEF|
|000041c0| 42 52 3d 31 39 32 30 30 | 20 2d 44 44 45 46 46 53 |BR=19200| -DDEFFS|
|000041d0| 3d 42 55 46 53 49 5a 20 | 2d 44 41 43 55 4c 4f 47 |=BUFSIZ |-DACULOG|
|000041e0| 20 2d 44 43 4f 4e 4e 45 | 43 54 20 2d 44 53 54 52 | -DCONNE|CT -DSTR|
|000041f0| 45 41 4d 53 0a 4c 49 42 | 43 3d 09 2f 6c 69 62 2f |EAMS.LIB|C=./lib/|
|00004200| 6c 69 62 63 2e 61 0a 53 | 52 43 53 3d 09 61 63 75 |libc.a.S|RCS=.acu|
|00004210| 2e 63 20 61 63 75 74 61 | 62 2e 63 20 63 6d 64 73 |.c acuta|b.c cmds|
|00004220| 2e 63 20 63 6d 64 74 61 | 62 2e 63 20 63 75 2e 63 |.c cmdta|b.c cu.c|
|00004230| 20 68 75 6e 74 2e 63 20 | 6c 6f 67 2e 63 20 6c 6f | hunt.c |log.c lo|
|00004240| 67 69 6e 2e 63 20 70 61 | 72 74 61 62 2e 63 20 5c |gin.c pa|rtab.c \|
|00004250| 0a 09 72 65 6d 63 61 70 | 2e 63 20 72 65 6d 6f 74 |..remcap|.c remot|
|00004260| 65 2e 63 20 74 69 70 2e | 63 20 74 69 70 6f 75 74 |e.c tip.|c tipout|
|00004270| 2e 63 20 75 75 63 70 6c | 6f 63 6b 2e 63 20 76 61 |.c uucpl|ock.c va|
|00004280| 6c 75 65 2e 63 20 76 61 | 72 73 2e 63 20 5c 0a 09 |lue.c va|rs.c \..|
|00004290| 70 61 67 65 2e 63 20 73 | 6c 69 70 2e 63 0a 4f 42 |page.c s|lip.c.OB|
|000042a0| 4a 53 3d 09 61 63 75 2e | 6f 20 61 63 75 74 61 62 |JS=.acu.|o acutab|
|000042b0| 2e 6f 20 63 6d 64 73 2e | 6f 20 63 6d 64 74 61 62 |.o cmds.|o cmdtab|
|000042c0| 2e 6f 20 63 75 2e 6f 20 | 68 75 6e 74 2e 6f 20 6c |.o cu.o |hunt.o l|
|000042d0| 6f 67 2e 6f 20 6c 6f 67 | 69 6e 2e 6f 20 70 61 72 |og.o log|in.o par|
|000042e0| 74 61 62 2e 6f 20 5c 0a | 09 72 65 6d 63 61 70 2e |tab.o \.|.remcap.|
|000042f0| 6f 20 72 65 6d 6f 74 65 | 2e 6f 20 74 69 70 2e 6f |o remote|.o tip.o|
|00004300| 20 74 69 70 6f 75 74 2e | 6f 20 75 75 63 70 6c 6f | tipout.|o uucplo|
|00004310| 63 6b 2e 6f 20 76 61 6c | 75 65 2e 6f 20 76 61 72 |ck.o val|ue.o var|
|00004320| 73 2e 6f 20 5c 0a 09 70 | 61 67 65 2e 6f 20 73 6c |s.o \..p|age.o sl|
|00004330| 69 70 2e 6f 0a 4d 41 4e | 3d 09 74 69 70 2e 31 0a |ip.o.MAN|=.tip.1.|
|00004340| 0a 61 6c 6c 3a 20 6c 69 | 62 61 63 75 2f 6c 69 62 |.all: li|bacu/lib|
|00004350| 61 63 75 2e 61 20 74 69 | 70 0a 0a 74 69 70 3a 20 |acu.a ti|p..tip: |
|00004360| 24 7b 4f 42 4a 53 7d 20 | 24 7b 4c 49 42 43 7d 0a |${OBJS} |${LIBC}.|
|00004370| 09 24 7b 43 43 7d 20 2d | 6f 20 24 40 20 24 7b 4f |.${CC} -|o $@ ${O|
|00004380| 42 4a 53 7d 20 6c 69 62 | 61 63 75 2f 6c 69 62 61 |BJS} lib|acu/liba|
|00004390| 63 75 2e 61 0a 0a 23 20 | 61 63 75 74 61 62 20 69 |cu.a..# |acutab i|
|000043a0| 73 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |s config|uration |
|000043b0| 64 65 70 65 6e 64 65 6e | 74 2c 20 61 6e 64 20 73 |dependen|t, and s|
|000043c0| 6f 20 64 65 70 65 6e 64 | 73 20 6f 6e 20 74 68 65 |o depend|s on the|
|000043d0| 20 6d 61 6b 65 66 69 6c | 65 0a 61 63 75 74 61 62 | makefil|e.acutab|
|000043e0| 2e 6f 3a 20 4d 61 6b 65 | 66 69 6c 65 0a 61 63 75 |.o: Make|file.acu|
|000043f0| 74 61 62 2e 6f 3a 20 61 | 63 75 74 61 62 2e 63 0a |tab.o: a|cutab.c.|
|00004400| 09 24 7b 43 43 7d 20 2d | 63 20 24 7b 43 46 4c 41 |.${CC} -|c ${CFLA|
|00004410| 47 53 7d 20 24 7b 43 4f | 4e 46 49 47 7d 20 61 63 |GS} ${CO|NFIG} ac|
|00004420| 75 74 61 62 2e 63 0a 0a | 23 20 72 65 6d 6f 74 65 |utab.c..|# remote|
|00004430| 2e 6f 20 64 65 70 65 6e | 64 73 20 6f 6e 20 74 68 |.o depen|ds on th|
|00004440| 65 20 6d 61 6b 65 66 69 | 6c 65 20 62 65 63 61 75 |e makefi|le becau|
|00004450| 73 65 20 6f 66 20 44 45 | 46 42 52 20 61 6e 64 20 |se of DE|FBR and |
|00004460| 44 45 46 46 53 0a 23 20 | 6c 6f 67 2e 6f 20 64 65 |DEFFS.# |log.o de|
|00004470| 70 65 6e 64 73 20 6f 6e | 20 74 68 65 20 6d 61 6b |pends on| the mak|
|00004480| 65 66 69 6c 65 20 62 65 | 63 61 75 73 65 20 6f 66 |efile be|cause of|
|00004490| 20 41 43 55 4c 4f 47 0a | 6c 6f 67 2e 6f 20 72 65 | ACULOG.|log.o re|
|000044a0| 6d 6f 74 65 2e 6f 3a 20 | 4d 61 6b 65 66 69 6c 65 |mote.o: |Makefile|
|000044b0| 0a 0a 6c 69 62 61 63 75 | 2f 6c 69 62 61 63 75 2e |..libacu|/libacu.|
|000044c0| 61 3a 20 46 52 43 0a 09 | 63 64 20 6c 69 62 61 63 |a: FRC..|cd libac|
|000044d0| 75 3b 20 6d 61 6b 65 20 | 24 7b 4d 46 4c 41 47 53 |u; make |${MFLAGS|
|000044e0| 7d 0a 0a 63 6c 65 61 6e | 3a 0a 09 72 6d 20 2d 66 |}..clean|:..rm -f|
|000044f0| 20 24 7b 4f 42 4a 53 7d | 20 63 6f 72 65 20 74 69 | ${OBJS}| core ti|
|00004500| 70 0a 09 63 64 20 6c 69 | 62 61 63 75 3b 20 6d 61 |p..cd li|bacu; ma|
|00004510| 6b 65 20 24 7b 4d 46 4c | 41 47 53 7d 20 63 6c 65 |ke ${MFL|AGS} cle|
|00004520| 61 6e 0a 0a 63 6c 65 61 | 6e 64 69 72 3a 20 63 6c |an..clea|ndir: cl|
|00004530| 65 61 6e 0a 09 72 6d 20 | 2d 66 20 24 7b 4d 41 4e |ean..rm |-f ${MAN|
|00004540| 7d 20 74 61 67 73 20 2e | 64 65 70 65 6e 64 0a 09 |} tags .|depend..|
|00004550| 63 64 20 6c 69 62 61 63 | 75 3b 20 6d 61 6b 65 20 |cd libac|u; make |
|00004560| 24 7b 4d 46 4c 41 47 53 | 7d 20 63 6c 65 61 6e 64 |${MFLAGS|} cleand|
|00004570| 69 72 0a 0a 64 65 70 65 | 6e 64 3a 0a 09 6d 6b 64 |ir..depe|nd:..mkd|
|00004580| 65 70 20 24 7b 43 46 4c | 41 47 53 7d 20 24 7b 53 |ep ${CFL|AGS} ${S|
|00004590| 52 43 53 7d 0a 09 63 64 | 20 6c 69 62 61 63 75 3b |RCS}..cd| libacu;|
|000045a0| 20 6d 61 6b 65 20 24 7b | 4d 46 4c 41 47 53 7d 20 | make ${|MFLAGS} |
|000045b0| 64 65 70 65 6e 64 0a 0a | 69 6e 73 74 61 6c 6c 3a |depend..|install:|
|000045c0| 20 24 7b 4d 41 4e 7d 0a | 09 63 64 20 6c 69 62 61 | ${MAN}.|.cd liba|
|000045d0| 63 75 3b 20 6d 61 6b 65 | 20 24 7b 4d 46 4c 41 47 |cu; make| ${MFLAG|
|000045e0| 53 7d 20 69 6e 73 74 61 | 6c 6c 0a 09 69 6e 73 74 |S} insta|ll..inst|
|000045f0| 61 6c 6c 20 2d 73 20 2d | 6f 20 72 6f 6f 74 20 2d |all -s -|o root -|
|00004600| 67 20 64 61 65 6d 6f 6e | 20 2d 6d 20 36 37 31 31 |g daemon| -m 6711|
|00004610| 20 74 69 70 20 24 7b 44 | 45 53 54 44 49 52 7d 2f | tip ${D|ESTDIR}/|
|00004620| 75 73 72 2f 62 69 6e 2f | 74 69 70 0a 09 72 6d 20 |usr/bin/|tip..rm |
|00004630| 2d 66 20 24 7b 44 45 53 | 54 44 49 52 7d 2f 75 73 |-f ${DES|TDIR}/us|
|00004640| 72 2f 62 69 6e 2f 63 75 | 0a 09 6c 6e 20 24 7b 44 |r/bin/cu|..ln ${D|
|00004650| 45 53 54 44 49 52 7d 2f | 75 73 72 2f 62 69 6e 2f |ESTDIR}/|usr/bin/|
|00004660| 74 69 70 20 24 7b 44 45 | 53 54 44 49 52 7d 2f 75 |tip ${DE|STDIR}/u|
|00004670| 73 72 2f 62 69 6e 2f 63 | 75 0a 09 69 6e 73 74 61 |sr/bin/c|u..insta|
|00004680| 6c 6c 20 2d 63 20 2d 6f | 20 62 69 6e 20 2d 67 20 |ll -c -o| bin -g |
|00004690| 62 69 6e 20 2d 6d 20 34 | 34 34 20 74 69 70 2e 31 |bin -m 4|44 tip.1|
|000046a0| 20 24 7b 44 45 53 54 44 | 49 52 7d 2f 75 73 72 2f | ${DESTD|IR}/usr/|
|000046b0| 6d 61 6e 2f 6d 61 6e 31 | 0a 09 72 6d 20 2d 66 20 |man/man1|..rm -f |
|000046c0| 24 7b 44 45 53 54 44 49 | 52 7d 2f 75 73 72 2f 6d |${DESTDI|R}/usr/m|
|000046d0| 61 6e 2f 6d 61 6e 31 2f | 63 75 2e 31 0a 09 6c 6e |an/man1/|cu.1..ln|
|000046e0| 20 24 7b 44 45 53 54 44 | 49 52 7d 2f 75 73 72 2f | ${DESTD|IR}/usr/|
|000046f0| 6d 61 6e 2f 74 69 70 31 | 2f 74 69 70 2e 31 20 24 |man/tip1|/tip.1 $|
|00004700| 7b 44 45 53 54 44 49 52 | 7d 2f 75 73 72 2f 6d 61 |{DESTDIR|}/usr/ma|
|00004710| 6e 2f 63 61 74 31 2f 63 | 75 2e 31 0a 0a 6c 69 6e |n/cat1/c|u.1..lin|
|00004720| 74 3a 20 24 7b 53 52 43 | 53 7d 0a 09 6c 69 6e 74 |t: ${SRC|S}..lint|
|00004730| 20 24 7b 43 46 4c 41 47 | 53 7d 20 24 7b 53 52 43 | ${CFLAG|S} ${SRC|
|00004740| 53 7d 0a 0a 74 61 67 73 | 3a 20 24 7b 53 52 43 53 |S}..tags|: ${SRCS|
|00004750| 7d 0a 09 63 74 61 67 73 | 20 24 7b 53 52 43 53 7d |}..ctags| ${SRCS}|
|00004760| 0a 09 63 64 20 6c 69 62 | 61 63 75 3b 20 6d 61 6b |..cd lib|acu; mak|
|00004770| 65 20 24 7b 4d 46 4c 41 | 47 53 7d 20 74 61 67 73 |e ${MFLA|GS} tags|
|00004780| 0a 0a 46 52 43 3a 0a 28 | 21 63 75 6d 6f 64 65 20 |..FRC:.(|!cumode |
|00004790| 26 26 20 67 63 68 20 3d | 3d 20 63 68 61 72 61 63 |&& gch =|= charac|
|000047a0| 74 65 72 28 76 61 6c 75 | 65 28 46 4f 52 43 45 29 |ter(valu|e(FORCE)|
|000047b0| 29 29 0a 09 09 09 67 63 | 68 20 3d 20 67 65 74 63 |))....gc|h = getc|
|000047c0| 68 61 72 28 29 26 30 31 | 37 37 3b 0a 09 09 62 6f |har()&01|77;...bo|
|000047d0| 6c 20 3d 20 61 6e 79 28 | 67 63 68 2c 20 76 61 6c |l = any(|gch, val|
|000047e0| 75 65 28 45 4f 4c 29 29 | 3b 0a 09 09 69 66 20 28 |ue(EOL))|;...if (|
|000047f0| 62 6f 6f 6c 65 61 6e 28 | 76 61 6c 75 65 28 52 41 |boolean(|value(RA|
|00004800| 74 69 70 2f 76 61 72 73 | 2e 63 00 00 00 00 00 00 |tip/vars|.c......|
|00004810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00004870| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00004880| 20 20 31 30 30 34 32 20 | 20 34 34 33 33 31 32 30 | 10042 | 4433120|
|00004890| 36 32 37 20 20 20 35 37 | 33 36 00 20 00 00 00 00 |627 57|36. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 2f 2a 0a 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*. * Co|pyright |
|00004a10| 28 63 29 20 31 39 38 33 | 20 54 68 65 20 52 65 67 |(c) 1983| The Reg|
|00004a20| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 55 6e 69 76 |ents of |the Univ|
|00004a30| 65 72 73 69 74 79 20 6f | 66 20 43 61 6c 69 66 6f |ersity o|f Califo|
|00004a40| 72 6e 69 61 2e 0a 20 2a | 20 41 6c 6c 20 72 69 67 |rnia.. *| All rig|
|00004a50| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0a 20 2a |hts rese|rved.. *|
|00004a60| 0a 20 2a 20 52 65 64 69 | 73 74 72 69 62 75 74 69 |. * Redi|stributi|
|00004a70| 6f 6e 20 61 6e 64 20 75 | 73 65 20 69 6e 20 73 6f |on and u|se in so|
|00004a80| 75 72 63 65 20 61 6e 64 | 20 62 69 6e 61 72 79 20 |urce and| binary |
|00004a90| 66 6f 72 6d 73 20 61 72 | 65 20 70 65 72 6d 69 74 |forms ar|e permit|
|00004aa0| 74 65 64 0a 20 2a 20 70 | 72 6f 76 69 64 65 64 20 |ted. * p|rovided |
|00004ab0| 74 68 61 74 20 74 68 65 | 20 61 62 6f 76 65 20 63 |that the| above c|
|00004ac0| 6f 70 79 72 69 67 68 74 | 20 6e 6f 74 69 63 65 20 |opyright| notice |
|00004ad0| 61 6e 64 20 74 68 69 73 | 20 70 61 72 61 67 72 61 |and this| paragra|
|00004ae0| 70 68 20 61 72 65 0a 20 | 2a 20 64 75 70 6c 69 63 |ph are. |* duplic|
|00004af0| 61 74 65 64 20 69 6e 20 | 61 6c 6c 20 73 75 63 68 |ated in |all such|
|00004b00| 20 66 6f 72 6d 73 20 61 | 6e 64 20 74 68 61 74 20 | forms a|nd that |
|00004b10| 61 6e 79 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |any docu|mentatio|
|00004b20| 6e 2c 0a 20 2a 20 61 64 | 76 65 72 74 69 73 69 6e |n,. * ad|vertisin|
|00004b30| 67 20 6d 61 74 65 72 69 | 61 6c 73 2c 20 61 6e 64 |g materi|als, and|
|00004b40| 20 6f 74 68 65 72 20 6d | 61 74 65 72 69 61 6c 73 | other m|aterials|
|00004b50| 20 72 65 6c 61 74 65 64 | 20 74 6f 20 73 75 63 68 | related| to such|
|00004b60| 0a 20 2a 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |. * dist|ribution|
|00004b70| 20 61 6e 64 20 75 73 65 | 20 61 63 6b 6e 6f 77 6c | and use| acknowl|
|00004b80| 65 64 67 65 20 74 68 61 | 74 20 74 68 65 20 73 6f |edge tha|t the so|
|00004b90| 66 74 77 61 72 65 20 77 | 61 73 20 64 65 76 65 6c |ftware w|as devel|
|00004ba0| 6f 70 65 64 0a 20 2a 20 | 62 79 20 74 68 65 20 55 |oped. * |by the U|
|00004bb0| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 43 61 6c |niversit|y of Cal|
|00004bc0| 69 66 6f 72 6e 69 61 2c | 20 42 65 72 6b 65 6c 65 |ifornia,| Berkele|
|00004bd0| 79 2e 20 20 54 68 65 20 | 6e 61 6d 65 20 6f 66 20 |y. The |name of |
|00004be0| 74 68 65 0a 20 2a 20 55 | 6e 69 76 65 72 73 69 74 |the. * U|niversit|
|00004bf0| 79 20 6d 61 79 20 6e 6f | 74 20 62 65 20 75 73 65 |y may no|t be use|
|00004c00| 64 20 74 6f 20 65 6e 64 | 6f 72 73 65 20 6f 72 20 |d to end|orse or |
|00004c10| 70 72 6f 6d 6f 74 65 20 | 70 72 6f 64 75 63 74 73 |promote |products|
|00004c20| 20 64 65 72 69 76 65 64 | 0a 20 2a 20 66 72 6f 6d | derived|. * from|
|00004c30| 20 74 68 69 73 20 73 6f | 66 74 77 61 72 65 20 77 | this so|ftware w|
|00004c40| 69 74 68 6f 75 74 20 73 | 70 65 63 69 66 69 63 20 |ithout s|pecific |
|00004c50| 70 72 69 6f 72 20 77 72 | 69 74 74 65 6e 20 70 65 |prior wr|itten pe|
|00004c60| 72 6d 69 73 73 69 6f 6e | 2e 0a 20 2a 20 54 48 49 |rmission|.. * THI|
|00004c70| 53 20 53 4f 46 54 57 41 | 52 45 20 49 53 20 50 52 |S SOFTWA|RE IS PR|
|00004c80| 4f 56 49 44 45 44 20 60 | 60 41 53 20 49 53 27 27 |OVIDED `|`AS IS''|
|00004c90| 20 41 4e 44 20 57 49 54 | 48 4f 55 54 20 41 4e 59 | AND WIT|HOUT ANY|
|00004ca0| 20 45 58 50 52 45 53 53 | 20 4f 52 0a 20 2a 20 49 | EXPRESS| OR. * I|
|00004cb0| 4d 50 4c 49 45 44 20 57 | 41 52 52 41 4e 54 49 45 |MPLIED W|ARRANTIE|
|00004cc0| 53 2c 20 49 4e 43 4c 55 | 44 49 4e 47 2c 20 57 49 |S, INCLU|DING, WI|
|00004cd0| 54 48 4f 55 54 20 4c 49 | 4d 49 54 41 54 49 4f 4e |THOUT LI|MITATION|
|00004ce0| 2c 20 54 48 45 20 49 4d | 50 4c 49 45 44 0a 20 2a |, THE IM|PLIED. *|
|00004cf0| 20 57 41 52 52 41 4e 54 | 49 45 53 20 4f 46 20 4d | WARRANT|IES OF M|
|00004d00| 45 52 43 48 41 4e 54 49 | 42 49 4c 49 54 59 20 41 |ERCHANTI|BILITY A|
|00004d10| 4e 44 20 46 49 54 4e 45 | 53 53 20 46 4f 52 20 41 |ND FITNE|SS FOR A|
|00004d20| 20 50 41 52 54 49 43 55 | 4c 41 52 20 50 55 52 50 | PARTICU|LAR PURP|
|00004d30| 4f 53 45 2e 0a 20 2a 2f | 0a 0a 23 69 66 6e 64 65 |OSE.. */|..#ifnde|
|00004d40| 66 20 6c 69 6e 74 0a 73 | 74 61 74 69 63 20 63 68 |f lint.s|tatic ch|
|00004d50| 61 72 20 73 63 63 73 69 | 64 5b 5d 20 3d 20 22 40 |ar sccsi|d[] = "@|
|00004d60| 28 23 29 76 61 72 73 2e | 63 09 35 2e 33 20 28 42 |(#)vars.|c.5.3 (B|
|00004d70| 65 72 6b 65 6c 65 79 29 | 20 39 2f 32 2f 38 38 22 |erkeley)| 9/2/88"|
|00004d80| 3b 0a 23 65 6e 64 69 66 | 20 2f 2a 20 6e 6f 74 20 |;.#endif| /* not |
|00004d90| 6c 69 6e 74 20 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |lint */.|.#includ|
|00004da0| 65 20 22 74 69 70 2e 68 | 22 0a 0a 2f 2a 0a 20 2a |e "tip.h|"../*. *|
|00004db0| 20 44 65 66 69 6e 69 74 | 69 6f 6e 20 6f 66 20 76 | Definit|ion of v|
|00004dc0| 61 72 69 61 62 6c 65 73 | 0a 20 2a 2f 0a 76 61 6c |ariables|. */.val|
|00004dd0| 75 65 5f 74 20 76 74 61 | 62 6c 65 5b 5d 20 3d 20 |ue_t vta|ble[] = |
|00004de0| 7b 0a 09 7b 20 22 62 65 | 61 75 74 69 66 79 22 2c |{..{ "be|autify",|
|00004df0| 09 42 4f 4f 4c 2c 09 09 | 09 28 52 45 41 44 7c 57 |.BOOL,..|.(READ|W|
|00004e00| 52 49 54 45 29 3c 3c 50 | 55 42 4c 49 43 2c 0a 09 |RITE)<<P|UBLIC,..|
|00004e10| 20 20 22 62 65 22 2c 09 | 09 28 63 68 61 72 20 2a | "be",.|.(char *|
|00004e20| 29 54 52 55 45 20 7d 2c | 0a 09 7b 20 22 62 61 75 |)TRUE },|..{ "bau|
|00004e30| 64 72 61 74 65 22 2c 09 | 4e 55 4d 42 45 52 7c 49 |drate",.|NUMBER|I|
|00004e40| 52 45 4d 4f 54 45 7c 49 | 4e 49 54 2c 09 28 52 45 |REMOTE|I|NIT,.(RE|
|00004e50| 41 44 3c 3c 50 55 42 4c | 49 43 29 7c 28 57 52 49 |AD<<PUBL|IC)|(WRI|
|00004e60| 54 45 3c 3c 52 4f 4f 54 | 29 2c 0a 09 20 20 22 62 |TE<<ROOT|),.. "b|
|00004e70| 61 22 2c 09 09 28 63 68 | 61 72 20 2a 29 26 42 52 |a",..(ch|ar *)&BR|
|00004e80| 20 7d 2c 0a 09 7b 20 22 | 64 69 61 6c 74 69 6d 65 | },..{ "|dialtime|
|00004e90| 6f 75 74 22 2c 4e 55 4d | 42 45 52 2c 09 09 09 28 |out",NUM|BER,...(|
|00004ea0| 52 45 41 44 3c 3c 50 55 | 42 4c 49 43 29 7c 28 57 |READ<<PU|BLIC)|(W|
|00004eb0| 52 49 54 45 3c 3c 52 4f | 4f 54 29 2c 0a 09 20 20 |RITE<<RO|OT),.. |
|00004ec0| 22 64 69 61 6c 22 2c 09 | 28 63 68 61 72 20 2a 29 |"dial",.|(char *)|
|00004ed0| 36 30 20 7d 2c 0a 09 7b | 20 22 65 6f 66 72 65 61 |60 },..{| "eofrea|
|00004ee0| 64 22 2c 09 53 54 52 49 | 4e 47 7c 49 52 45 4d 4f |d",.STRI|NG|IREMO|
|00004ef0| 54 45 7c 49 4e 49 54 2c | 09 28 52 45 41 44 7c 57 |TE|INIT,|.(READ|W|
|00004f00| 52 49 54 45 29 3c 3c 50 | 55 42 4c 49 43 2c 0a 09 |RITE)<<P|UBLIC,..|
|00004f10| 20 20 22 65 6f 66 72 22 | 2c 09 28 63 68 61 72 20 | "eofr"|,.(char |
|00004f20| 2a 29 26 49 45 20 7d 2c | 0a 09 7b 20 22 65 6f 66 |*)&IE },|..{ "eof|
|00004f30| 77 72 69 74 65 22 2c 09 | 53 54 52 49 4e 47 7c 49 |write",.|STRING|I|
|00004f40| 52 45 4d 4f 54 45 7c 49 | 4e 49 54 2c 09 28 52 45 |REMOTE|I|NIT,.(RE|
|00004f50| 41 44 7c 57 52 49 54 45 | 29 3c 3c 50 55 42 4c 49 |AD|WRITE|)<<PUBLI|
|00004f60| 43 2c 0a 09 20 20 22 65 | 6f 66 77 22 2c 09 28 63 |C,.. "e|ofw",.(c|
|00004f70| 68 61 72 20 2a 29 26 4f | 45 20 7d 2c 0a 09 7b 20 |har *)&O|E },..{ |
|00004f80| 22 65 6f 6c 22 2c 09 53 | 54 52 49 4e 47 7c 49 52 |"eol",.S|TRING|IR|
|00004f90| 45 4d 4f 54 45 7c 49 4e | 49 54 2c 09 28 52 45 41 |EMOTE|IN|IT,.(REA|
|00004fa0| 44 7c 57 52 49 54 45 29 | 3c 3c 50 55 42 4c 49 43 |D|WRITE)|<<PUBLIC|
|00004fb0| 2c 0a 09 20 20 4e 4f 53 | 54 52 2c 09 28 63 68 61 |,.. NOS|TR,.(cha|
|00004fc0| 72 20 2a 29 26 45 4c 20 | 7d 2c 0a 09 7b 20 22 65 |r *)&EL |},..{ "e|
|00004fd0| 73 63 61 70 65 22 2c 09 | 43 48 41 52 2c 09 09 09 |scape",.|CHAR,...|
|00004fe0| 28 52 45 41 44 7c 57 52 | 49 54 45 29 3c 3c 50 55 |(READ|WR|ITE)<<PU|
|00004ff0| 42 4c 49 43 2c 0a 09 20 | 20 22 65 73 22 2c 09 09 |BLIC,.. | "es",..|
|00005000| 28 63 68 61 72 20 2a 29 | 27 7e 27 20 7d 2c 0a 09 |(char *)|'~' },..|
|00005010| 7b 20 22 65 78 63 65 70 | 74 69 6f 6e 73 22 2c 09 |{ "excep|tions",.|
|00005020| 53 54 52 49 4e 47 7c 49 | 4e 49 54 7c 49 52 45 4d |STRING|I|NIT|IREM|
|00005030| 4f 54 45 2c 09 28 52 45 | 41 44 7c 57 52 49 54 45 |OTE,.(RE|AD|WRITE|
|00005040| 29 3c 3c 50 55 42 4c 49 | 43 2c 0a 09 20 20 22 65 |)<<PUBLI|C,.. "e|
|00005050| 78 22 2c 09 09 28 63 68 | 61 72 20 2a 29 26 45 58 |x",..(ch|ar *)&EX|
|00005060| 20 7d 2c 0a 09 7b 20 22 | 66 6f 72 63 65 22 2c 09 | },..{ "|force",.|
|00005070| 43 48 41 52 2c 09 09 09 | 28 52 45 41 44 7c 57 52 |CHAR,...|(READ|WR|
|00005080| 49 54 45 29 3c 3c 50 55 | 42 4c 49 43 2c 0a 09 20 |ITE)<<PU|BLIC,.. |
|00005090| 20 22 66 6f 22 2c 09 09 | 28 63 68 61 72 20 2a 29 | "fo",..|(char *)|
|000050a0| 43 54 52 4c 28 27 70 27 | 29 20 7d 2c 0a 09 7b 20 |CTRL('p'|) },..{ |
|000050b0| 22 66 72 61 6d 65 73 69 | 7a 65 22 2c 09 4e 55 4d |"framesi|ze",.NUM|
|000050c0| 42 45 52 7c 49 52 45 4d | 4f 54 45 7c 49 4e 49 54 |BER|IREM|OTE|INIT|
|000050d0| 2c 09 28 52 45 41 44 7c | 57 52 49 54 45 29 3c 3c |,.(READ||WRITE)<<|
|000050e0| 50 55 42 4c 49 43 2c 0a | 09 20 20 22 66 72 22 2c |PUBLIC,.|. "fr",|
|000050f0| 09 09 28 63 68 61 72 20 | 2a 29 26 46 53 20 7d 2c |..(char |*)&FS },|
|00005100| 0a 09 7b 20 22 68 6f 73 | 74 22 2c 09 53 54 52 49 |..{ "hos|t",.STRI|
|00005110| 4e 47 7c 49 52 45 4d 4f | 54 45 7c 49 4e 49 54 2c |NG|IREMO|TE|INIT,|
|00005120| 09 52 45 41 44 3c 3c 50 | 55 42 4c 49 43 2c 0a 09 |.READ<<P|UBLIC,..|
|00005130| 20 20 22 68 6f 22 2c 09 | 09 28 63 68 61 72 20 2a | "ho",.|.(char *|
|00005140| 29 26 48 4f 20 7d 2c 0a | 09 7b 20 22 6c 6f 67 22 |)&HO },.|.{ "log"|
|00005150| 2c 09 53 54 52 49 4e 47 | 7c 49 4e 49 54 2c 09 09 |,.STRING||INIT,..|
|00005160| 28 52 45 41 44 7c 57 52 | 49 54 45 29 3c 3c 52 4f |(READ|WR|ITE)<<RO|
|00005170| 4f 54 2c 0a 09 20 20 4e | 4f 53 54 52 2c 09 22 2f |OT,.. N|OSTR,."/|
|00005180| 75 73 72 2f 61 64 6d 2f | 61 63 75 6c 6f 67 22 20 |usr/adm/|aculog" |
|00005190| 7d 2c 0a 09 7b 20 22 70 | 68 6f 6e 65 73 22 2c 09 |},..{ "p|hones",.|
|000051a0| 53 54 52 49 4e 47 7c 49 | 4e 49 54 7c 49 52 45 4d |STRING|I|NIT|IREM|
|000051b0| 4f 54 45 2c 09 52 45 41 | 44 3c 3c 50 55 42 4c 49 |OTE,.REA|D<<PUBLI|
|000051c0| 43 2c 0a 09 20 20 4e 4f | 53 54 52 2c 09 28 63 68 |C,.. NO|STR,.(ch|
|000051d0| 61 72 20 2a 29 26 50 48 | 20 7d 2c 0a 09 7b 20 22 |ar *)&PH| },..{ "|
|000051e0| 70 72 6f 6d 70 74 22 2c | 09 43 48 41 52 2c 09 09 |prompt",|.CHAR,..|
|000051f0| 09 28 52 45 41 44 7c 57 | 52 49 54 45 29 3c 3c 50 |.(READ|W|RITE)<<P|
|00005200| 55 42 4c 49 43 2c 0a 09 | 20 20 22 70 72 22 2c 09 |UBLIC,..| "pr",.|
|00005210| 09 28 63 68 61 72 20 2a | 29 27 5c 6e 27 20 7d 2c |.(char *|)'\n' },|
|00005220| 0a 09 7b 20 22 72 61 69 | 73 65 22 2c 09 42 4f 4f |..{ "rai|se",.BOO|
|00005230| 4c 2c 09 09 09 28 52 45 | 41 44 7c 57 52 49 54 45 |L,...(RE|AD|WRITE|
|00005240| 29 3c 3c 50 55 42 4c 49 | 43 2c 0a 09 20 20 22 72 |)<<PUBLI|C,.. "r|
|00005250| 61 22 2c 09 09 28 63 68 | 61 72 20 2a 29 46 41 4c |a",..(ch|ar *)FAL|
|00005260| 53 45 20 7d 2c 0a 09 7b | 20 22 72 61 69 73 65 63 |SE },..{| "raisec|
|00005270| 68 61 72 22 2c 09 43 48 | 41 52 2c 09 09 09 28 52 |har",.CH|AR,...(R|
|00005280| 45 41 44 7c 57 52 49 54 | 45 29 3c 3c 50 55 42 4c |EAD|WRIT|E)<<PUBL|
|00005290| 49 43 2c 0a 09 20 20 22 | 72 63 22 2c 09 09 28 63 |IC,.. "|rc",..(c|
|000052a0| 68 61 72 20 2a 29 43 54 | 52 4c 28 27 61 27 29 20 |har *)CT|RL('a') |
|000052b0| 7d 2c 0a 09 7b 20 22 72 | 65 63 6f 72 64 22 2c 09 |},..{ "r|ecord",.|
|000052c0| 53 54 52 49 4e 47 7c 49 | 4e 49 54 7c 49 52 45 4d |STRING|I|NIT|IREM|
|000052d0| 4f 54 45 2c 09 28 52 45 | 41 44 7c 57 52 49 54 45 |OTE,.(RE|AD|WRITE|
|000052e0| 29 3c 3c 50 55 42 4c 49 | 43 2c 0a 09 20 20 22 72 |)<<PUBLI|C,.. "r|
|000052f0| 65 63 22 2c 09 28 63 68 | 61 72 20 2a 29 26 52 45 |ec",.(ch|ar *)&RE|
|00005300| 20 7d 2c 0a 09 7b 20 22 | 72 65 6d 6f 74 65 22 2c | },..{ "|remote",|
|00005310| 09 53 54 52 49 4e 47 7c | 49 4e 49 54 7c 49 52 45 |.STRING||INIT|IRE|
|00005320| 4d 4f 54 45 2c 09 52 45 | 41 44 3c 3c 50 55 42 4c |MOTE,.RE|AD<<PUBL|
|00005330| 49 43 2c 0a 09 20 20 4e | 4f 53 54 52 2c 09 28 63 |IC,.. N|OSTR,.(c|
|00005340| 68 61 72 20 2a 29 26 52 | 4d 20 7d 2c 0a 09 7b 20 |har *)&R|M },..{ |
|00005350| 22 73 63 72 69 70 74 22 | 2c 09 42 4f 4f 4c 2c 09 |"script"|,.BOOL,.|
|00005360| 09 09 28 52 45 41 44 7c | 57 52 49 54 45 29 3c 3c |..(READ||WRITE)<<|
|00005370| 50 55 42 4c 49 43 2c 0a | 09 20 20 22 73 63 22 2c |PUBLIC,.|. "sc",|
|00005380| 09 09 28 63 68 61 72 20 | 2a 29 46 41 4c 53 45 20 |..(char |*)FALSE |
|00005390| 7d 2c 0a 09 7b 20 22 74 | 61 62 65 78 70 61 6e 64 |},..{ "t|abexpand|
|000053a0| 22 2c 09 42 4f 4f 4c 2c | 09 09 09 28 52 45 41 44 |",.BOOL,|...(READ|
|000053b0| 7c 57 52 49 54 45 29 3c | 3c 50 55 42 4c 49 43 2c ||WRITE)<|<PUBLIC,|
|000053c0| 0a 09 20 20 22 74 61 62 | 22 2c 09 28 63 68 61 72 |.. "tab|",.(char|
|000053d0| 20 2a 29 46 41 4c 53 45 | 20 7d 2c 0a 09 7b 20 22 | *)FALSE| },..{ "|
|000053e0| 76 65 72 62 6f 73 65 22 | 2c 09 42 4f 4f 4c 2c 09 |verbose"|,.BOOL,.|
|000053f0| 09 09 28 52 45 41 44 7c | 57 52 49 54 45 29 3c 3c |..(READ||WRITE)<<|
|00005400| 50 55 42 4c 49 43 2c 0a | 09 20 20 22 76 65 72 62 |PUBLIC,.|. "verb|
|00005410| 22 2c 09 28 63 68 61 72 | 20 2a 29 46 41 4c 53 45 |",.(char| *)FALSE|
|00005420| 20 7d 2c 0a 09 7b 20 22 | 53 48 45 4c 4c 22 2c 09 | },..{ "|SHELL",.|
|00005430| 53 54 52 49 4e 47 7c 45 | 4e 56 49 52 4f 4e 7c 49 |STRING|E|NVIRON|I|
|00005440| 4e 49 54 2c 09 28 52 45 | 41 44 7c 57 52 49 54 45 |NIT,.(RE|AD|WRITE|
|00005450| 29 3c 3c 50 55 42 4c 49 | 43 2c 0a 09 20 20 4e 55 |)<<PUBLI|C,.. NU|
|00005460| 4c 4c 2c 09 09 22 2f 62 | 69 6e 2f 73 68 22 20 7d |LL,.."/b|in/sh" }|
|00005470| 2c 0a 09 7b 20 22 48 4f | 4d 45 22 2c 09 53 54 52 |,..{ "HO|ME",.STR|
|00005480| 49 4e 47 7c 45 4e 56 49 | 52 4f 4e 2c 09 09 28 52 |ING|ENVI|RON,..(R|
|00005490| 45 41 44 7c 57 52 49 54 | 45 29 3c 3c 50 55 42 4c |EAD|WRIT|E)<<PUBL|
|000054a0| 49 43 2c 0a 09 20 20 4e | 4f 53 54 52 2c 09 4e 4f |IC,.. N|OSTR,.NO|
|000054b0| 53 54 52 20 7d 2c 0a 09 | 7b 20 22 65 63 68 6f 63 |STR },..|{ "echoc|
|000054c0| 68 65 63 6b 22 2c 09 42 | 4f 4f 4c 2c 09 09 09 28 |heck",.B|OOL,...(|
|000054d0| 52 45 41 44 7c 57 52 49 | 54 45 29 3c 3c 50 55 42 |READ|WRI|TE)<<PUB|
|000054e0| 4c 49 43 2c 0a 09 20 20 | 22 65 63 22 2c 09 09 28 |LIC,.. |"ec",..(|
|000054f0| 63 68 61 72 20 2a 29 46 | 41 4c 53 45 20 7d 2c 0a |char *)F|ALSE },.|
|00005500| 09 7b 20 22 64 69 73 63 | 6f 6e 6e 65 63 74 22 2c |.{ "disc|onnect",|
|00005510| 09 53 54 52 49 4e 47 7c | 49 52 45 4d 4f 54 45 7c |.STRING||IREMOTE||
|00005520| 49 4e 49 54 2c 09 28 52 | 45 41 44 7c 57 52 49 54 |INIT,.(R|EAD|WRIT|
|00005530| 45 29 3c 3c 50 55 42 4c | 49 43 2c 0a 09 20 20 22 |E)<<PUBL|IC,.. "|
|00005540| 64 69 22 2c 09 09 28 63 | 68 61 72 20 2a 29 26 44 |di",..(c|har *)&D|
|00005550| 49 20 7d 2c 0a 09 7b 20 | 22 74 61 6e 64 65 6d 22 |I },..{ |"tandem"|
|00005560| 2c 09 42 4f 4f 4c 2c 09 | 09 09 28 52 45 41 44 7c |,.BOOL,.|..(READ||
|00005570| 57 52 49 54 45 29 3c 3c | 50 55 42 4c 49 43 2c 0a |WRITE)<<|PUBLIC,.|
|00005580| 09 20 20 22 74 61 22 2c | 09 09 28 63 68 61 72 20 |. "ta",|..(char |
|00005590| 2a 29 54 52 55 45 20 7d | 2c 0a 09 7b 20 22 6c 69 |*)TRUE }|,..{ "li|
|000055a0| 6e 65 64 65 6c 61 79 22 | 2c 09 4e 55 4d 42 45 52 |nedelay"|,.NUMBER|
|000055b0| 7c 49 52 45 4d 4f 54 45 | 7c 49 4e 49 54 2c 09 28 ||IREMOTE||INIT,.(|
|000055c0| 52 45 41 44 7c 57 52 49 | 54 45 29 3c 3c 50 55 42 |READ|WRI|TE)<<PUB|
|000055d0| 4c 49 43 2c 0a 09 20 20 | 22 6c 64 65 6c 61 79 22 |LIC,.. |"ldelay"|
|000055e0| 2c 09 28 63 68 61 72 20 | 2a 29 26 44 4c 20 7d 2c |,.(char |*)&DL },|
|000055f0| 0a 09 7b 20 22 63 68 61 | 72 64 65 6c 61 79 22 2c |..{ "cha|rdelay",|
|00005600| 09 4e 55 4d 42 45 52 7c | 49 52 45 4d 4f 54 45 7c |.NUMBER||IREMOTE||
|00005610| 49 4e 49 54 2c 09 28 52 | 45 41 44 7c 57 52 49 54 |INIT,.(R|EAD|WRIT|
|00005620| 45 29 3c 3c 50 55 42 4c | 49 43 2c 0a 09 20 20 22 |E)<<PUBL|IC,.. "|
|00005630| 63 64 65 6c 61 79 22 2c | 09 28 63 68 61 72 20 2a |cdelay",|.(char *|
|00005640| 29 26 43 4c 20 7d 2c 0a | 09 7b 20 22 65 74 69 6d |)&CL },.|.{ "etim|
|00005650| 65 6f 75 74 22 2c 09 4e | 55 4d 42 45 52 7c 49 52 |eout",.N|UMBER|IR|
|00005660| 45 4d 4f 54 45 7c 49 4e | 49 54 2c 09 28 52 45 41 |EMOTE|IN|IT,.(REA|
|00005670| 44 7c 57 52 49 54 45 29 | 3c 3c 50 55 42 4c 49 43 |D|WRITE)|<<PUBLIC|
|00005680| 2c 0a 09 20 20 22 65 74 | 22 2c 09 09 28 63 68 61 |,.. "et|",..(cha|
|00005690| 72 20 2a 29 26 45 54 20 | 7d 2c 0a 09 7b 20 22 72 |r *)&ET |},..{ "r|
|000056a0| 61 77 66 74 70 22 2c 09 | 42 4f 4f 4c 2c 09 09 09 |awftp",.|BOOL,...|
|000056b0| 28 52 45 41 44 7c 57 52 | 49 54 45 29 3c 3c 50 55 |(READ|WR|ITE)<<PU|
|000056c0| 42 4c 49 43 2c 0a 09 20 | 20 22 72 61 77 22 2c 09 |BLIC,.. | "raw",.|
|000056d0| 28 63 68 61 72 20 2a 29 | 46 41 4c 53 45 20 7d 2c |(char *)|FALSE },|
|000056e0| 0a 09 7b 20 22 68 61 6c | 66 64 75 70 6c 65 78 22 |..{ "hal|fduplex"|
|000056f0| 2c 09 42 4f 4f 4c 2c 09 | 09 09 28 52 45 41 44 7c |,.BOOL,.|..(READ||
|00005700| 57 52 49 54 45 29 3c 3c | 50 55 42 4c 49 43 2c 0a |WRITE)<<|PUBLIC,.|
|00005710| 09 20 20 22 68 64 78 22 | 2c 09 28 63 68 61 72 20 |. "hdx"|,.(char |
|00005720| 2a 29 46 41 4c 53 45 20 | 7d 2c 0a 09 7b 20 22 6c |*)FALSE |},..{ "l|
|00005730| 6f 63 61 6c 65 63 68 6f | 22 2c 09 42 4f 4f 4c 2c |ocalecho|",.BOOL,|
|00005740| 09 09 09 28 52 45 41 44 | 7c 57 52 49 54 45 29 3c |...(READ||WRITE)<|
|00005750| 3c 50 55 42 4c 49 43 2c | 0a 09 20 20 22 6c 65 22 |<PUBLIC,|.. "le"|
|00005760| 2c 09 09 28 63 68 61 72 | 20 2a 29 46 41 4c 53 45 |,..(char| *)FALSE|
|00005770| 20 7d 2c 0a 09 7b 20 22 | 70 61 72 69 74 79 22 2c | },..{ "|parity",|
|00005780| 09 53 54 52 49 4e 47 7c | 49 4e 49 54 7c 49 52 45 |.STRING||INIT|IRE|
|00005790| 4d 4f 54 45 2c 09 28 52 | 45 41 44 7c 57 52 49 54 |MOTE,.(R|EAD|WRIT|
|000057a0| 45 29 3c 3c 50 55 42 4c | 49 43 2c 0a 09 20 20 22 |E)<<PUBL|IC,.. "|
|000057b0| 70 61 72 22 2c 09 28 63 | 68 61 72 20 2a 29 26 50 |par",.(c|har *)&P|
|000057c0| 41 20 7d 2c 0a 09 7b 20 | 22 73 6c 69 70 61 64 64 |A },..{ |"slipadd|
|000057d0| 72 22 2c 09 53 54 52 49 | 4e 47 7c 49 52 45 4d 4f |r",.STRI|NG|IREMO|
|000057e0| 54 45 2c 09 09 52 45 41 | 44 3c 3c 50 55 42 4c 49 |TE,..REA|D<<PUBLI|
|000057f0| 43 2c 0a 09 20 20 22 73 | 61 22 2c 09 09 28 63 68 |C,.. "s|a",..(ch|
|00005800| 61 72 20 2a 29 26 53 41 | 20 7d 2c 0a 09 7b 20 22 |ar *)&SA| },..{ "|
|00005810| 64 65 73 74 61 64 64 72 | 22 2c 09 53 54 52 49 4e |destaddr|",.STRIN|
|00005820| 47 7c 49 52 45 4d 4f 54 | 45 2c 09 09 52 45 41 44 |G|IREMOT|E,..READ|
|00005830| 3c 3c 50 55 42 4c 49 43 | 2c 0a 09 20 20 22 64 61 |<<PUBLIC|,.. "da|
|00005840| 22 2c 09 09 28 63 68 61 | 72 20 2a 29 26 44 41 20 |",..(cha|r *)&DA |
|00005850| 7d 2c 0a 09 7b 20 22 73 | 6c 69 70 6d 61 73 6b 22 |},..{ "s|lipmask"|
|00005860| 2c 09 53 54 52 49 4e 47 | 7c 49 52 45 4d 4f 54 45 |,.STRING||IREMOTE|
|00005870| 2c 09 09 52 45 41 44 3c | 3c 50 55 42 4c 49 43 2c |,..READ<|<PUBLIC,|
|00005880| 0a 09 20 20 22 73 6d 22 | 2c 09 09 28 63 68 61 72 |.. "sm"|,..(char|
|00005890| 20 2a 29 26 53 4d 20 7d | 2c 0a 09 7b 20 22 73 6c | *)&SM }|,..{ "sl|
|000058a0| 69 70 74 79 70 65 22 2c | 09 53 54 52 49 4e 47 7c |iptype",|.STRING||
|000058b0| 49 52 45 4d 4f 54 45 2c | 09 09 52 45 41 44 3c 3c |IREMOTE,|..READ<<|
|000058c0| 50 55 42 4c 49 43 2c 0a | 09 20 20 22 73 74 22 2c |PUBLIC,.|. "st",|
|000058d0| 09 09 28 63 68 61 72 20 | 2a 29 26 53 54 20 7d 2c |..(char |*)&ST },|
|000058e0| 0a 09 7b 20 22 6c 6f 67 | 69 6e 73 63 72 69 70 74 |..{ "log|inscript|
|000058f0| 22 2c 53 54 52 49 4e 47 | 7c 49 52 45 4d 4f 54 45 |",STRING||IREMOTE|
|00005900| 2c 09 09 28 52 45 41 44 | 7c 57 52 49 54 45 29 3c |,..(READ||WRITE)<|
|00005910| 3c 50 55 42 4c 49 43 2c | 0a 09 20 20 22 6c 73 22 |<PUBLIC,|.. "ls"|
|00005920| 2c 09 09 28 63 68 61 72 | 20 2a 29 26 4c 53 20 7d |,..(char| *)&LS }|
|00005930| 2c 0a 09 7b 20 22 73 65 | 74 72 6f 75 74 65 22 2c |,..{ "se|troute",|
|00005940| 09 42 4f 4f 4c 2c 09 09 | 09 52 45 41 44 3c 3c 50 |.BOOL,..|.READ<<P|
|00005950| 55 42 4c 49 43 2c 0a 09 | 20 20 22 72 74 22 2c 09 |UBLIC,..| "rt",.|
|00005960| 09 28 63 68 61 72 20 2a | 29 46 41 4c 53 45 20 7d |.(char *|)FALSE }|
|00005970| 2c 0a 09 7b 20 22 6c 69 | 6e 65 73 79 6e 63 22 2c |,..{ "li|nesync",|
|00005980| 20 20 20 42 4f 4f 4c 2c | 09 09 09 28 52 45 41 44 | BOOL,|...(READ|
|00005990| 7c 57 52 49 54 45 29 3c | 3c 50 55 42 4c 49 43 2c ||WRITE)<|<PUBLIC,|
|000059a0| 0a 09 20 20 22 6c 69 22 | 2c 09 09 28 63 68 61 72 |.. "li"|,..(char|
|000059b0| 20 2a 29 46 41 4c 53 45 | 20 7d 2c 0a 09 7b 20 22 | *)FALSE| },..{ "|
|000059c0| 64 74 72 68 75 70 22 2c | 09 42 4f 4f 4c 2c 09 09 |dtrhup",|.BOOL,..|
|000059d0| 09 52 45 41 44 3c 3c 50 | 55 42 4c 49 43 2c 0a 09 |.READ<<P|UBLIC,..|
|000059e0| 20 20 22 64 74 22 2c 09 | 09 28 63 68 61 72 20 2a | "dt",.|.(char *|
|000059f0| 29 46 41 4c 53 45 20 7d | 2c 0a 09 7b 20 4e 4f 53 |)FALSE }|,..{ NOS|
|00005a00| 54 52 2c 20 4e 55 4c 4c | 2c 20 4e 55 4c 4c 2c 20 |TR, NULL|, NULL, |
|00005a10| 4e 4f 53 54 52 2c 20 4e | 4f 53 54 52 20 7d 0a 7d |NOSTR, N|OSTR }.}|
|00005a20| 3b 0a 67 2e 73 67 5f 66 | 6c 61 67 73 20 7c 3d 20 |;.g.sg_f|lags |= |
|00005a30| 54 41 4e 44 45 4d 3b 0a | 09 69 66 20 28 62 6f 6f |TANDEM;.|.if (boo|
|00005a40| 6c 65 61 6e 28 76 61 6c | 75 65 28 44 54 52 48 55 |lean(val|ue(DTRHU|
|00005a50| 50 29 29 29 20 7b 0a 09 | 09 69 6f 63 74 6c 28 46 |P))) {..|.ioctl(F|
|00005a60| 44 2c 20 54 49 4f 43 53 | 44 54 52 2c 20 30 29 3b |D, TIOCS|DTR, 0);|
|00005a70| 0a 09 09 69 6f 63 74 6c | 28 46 44 2c 20 54 49 4f |...ioctl|(FD, TIO|
|00005a80| 43 48 50 43 4c 2c 20 30 | 29 3b 0a 09 7d 0a 09 69 |CHPCL, 0|);..}..i|
|00005a90| 6f 63 74 6c 28 46 44 2c | 20 54 49 4f 43 53 45 54 |octl(FD,| TIOCSET|
|00005aa0| 50 2c 20 28 63 68 61 72 | 20 2a 29 26 61 72 67 29 |P, (char| *)&arg)|
|00005ab0| 3b 0a 09 69 6f 63 74 6c | 28 46 44 2c 20 54 49 4f |;..ioctl|(FD, TIO|
|00005ac0| 43 4c 42 49 53 2c 20 28 | 63 68 61 72 20 2a 29 26 |CLBIS, (|char *)&|
|00005ad0| 62 69 74 73 29 3b 0a 7d | 0a 0a 2f 2a 0a 20 2a 20 |bits);.}|../*. * |
|00005ae0| 52 65 74 75 72 6e 20 22 | 73 69 6d 70 6c 65 22 20 |Return "|simple" |
|00005af0| 6e 61 6d 65 20 66 72 6f | 6d 20 61 20 66 69 6c 65 |name fro|m a file|
|00005b00| 20 6e 61 6d 65 2c 0a 20 | 2a 20 73 74 72 69 70 20 | name,. |* strip |
|00005b10| 6c 65 61 64 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |leading |director|
|00005b20| 69 65 73 2e 0a 20 2a 2f | 0a 63 68 61 72 20 2a 0a |ies.. */|.char *.|
|00005b30| 73 6e 61 6d 65 28 73 29 | 0a 09 72 65 67 69 73 74 |sname(s)|..regist|
|00005b40| 65 72 20 63 68 61 72 20 | 2a 73 3b 0a 7b 0a 09 72 |er char |*s;.{..r|
|00005b50| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 70 20 |egister |char *p |
|00005b60| 3d 20 73 3b 0a 0a 09 77 | 68 69 6c 65 20 28 2a 73 |= s;...w|hile (*s|
|00005b70| 29 0a 09 09 69 66 20 28 | 2a 73 2b 2b 20 3d 3d 20 |)...if (|*s++ == |
|00005b80| 27 2f 27 29 0a 09 09 09 | 70 20 3d 20 73 3b 0a 09 |'/')....|p = s;..|
|00005b90| 72 65 74 75 72 6e 20 28 | 70 29 3b 0a 7d 0a 0a 73 |return (|p);.}..s|
|00005ba0| 74 61 74 69 63 20 63 68 | 61 72 20 70 61 72 74 61 |tatic ch|ar parta|
|00005bb0| 62 5b 30 32 30 30 5d 3b | 0a 0a 2f 2a 0a 20 2a 20 |b[0200];|../*. * |
|00005bc0| 44 6f 20 61 20 77 72 69 | 74 65 20 74 6f 20 74 68 |Do a wri|te to th|
|00005bd0| 65 20 72 65 6d 6f 74 65 | 20 6d 61 63 68 69 6e 65 |e remote| machine|
|00005be0| 20 77 69 74 68 20 74 68 | 65 20 63 6f 72 72 65 63 | with th|e correc|
|00005bf0| 74 20 70 61 72 69 74 79 | 2e 0a 20 2a 20 57 65 20 |t parity|.. * We |
|00005c00| 74 69 70 2f 70 61 67 65 | 2e 63 00 00 00 00 00 00 |tip/page|.c......|
|00005c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00005c70| 20 30 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 | 0 . | 0 . |
|00005c80| 20 20 31 33 35 30 35 20 | 20 34 34 33 33 34 30 31 | 13505 | 4433401|
|00005c90| 35 36 35 20 20 20 35 37 | 31 31 00 20 00 00 00 00 |565 57|11. ....|
|00005ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e00| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00005e10| 74 69 63 20 63 68 61 72 | 20 2a 73 63 63 73 69 64 |tic char| *sccsid|
|00005e20| 20 3d 20 22 40 28 23 29 | 70 61 67 65 2e 63 09 31 | = "@(#)|page.c.1|
|00005e30| 2e 34 09 4d 53 2f 41 43 | 46 09 38 39 2f 30 35 2f |.4.MS/AC|F.89/05/|
|00005e40| 30 38 22 3b 0a 23 65 6e | 64 69 66 0a 0a 2f 2a 0a |08";.#en|dif../*.|
|00005e50| 20 2a 09 74 69 70 2f 70 | 61 67 65 2e 63 09 28 44 | *.tip/p|age.c.(D|
|00005e60| 6f 75 67 6c 61 73 20 4b | 69 6e 67 73 74 6f 6e 2c |ouglas K|ingston,|
|00005e70| 20 4d 6f 72 67 61 6e 20 | 53 74 61 6e 6c 65 79 20 | Morgan |Stanley |
|00005e80| 26 20 43 6f 2e 29 0a 20 | 2a 0a 20 2a 09 54 68 69 |& Co.). |*. *.Thi|
|00005e90| 73 20 66 69 6c 65 20 63 | 6f 6e 74 61 69 6e 73 20 |s file c|ontains |
|00005ea0| 63 6f 64 65 20 74 6f 20 | 73 65 6e 64 20 61 6c 70 |code to |send alp|
|00005eb0| 68 61 6e 75 6d 65 72 69 | 63 20 70 61 67 65 73 20 |hanumeri|c pages |
|00005ec0| 76 69 61 0a 20 2a 09 64 | 69 61 6c 75 70 20 70 61 |via. *.d|ialup pa|
|00005ed0| 67 69 6e 67 20 73 65 72 | 76 69 63 65 73 20 74 68 |ging ser|vices th|
|00005ee0| 61 74 20 73 75 70 70 6f | 72 74 20 22 52 65 6d 6f |at suppo|rt "Remo|
|00005ef0| 74 65 20 45 6e 74 72 79 | 20 44 65 76 69 63 65 0a |te Entry| Device.|
|00005f00| 20 2a 09 50 72 6f 74 6f | 63 6f 6c 22 20 28 61 6b | *.Proto|col" (ak|
|00005f10| 61 20 22 49 58 4f 22 29 | 2e 20 20 54 68 65 73 65 |a "IXO")|. These|
|00005f20| 20 73 65 72 76 69 63 65 | 73 20 74 79 70 69 63 61 | service|s typica|
|00005f30| 6c 6c 79 20 73 65 6e 64 | 20 74 6f 0a 20 2a 09 64 |lly send| to. *.d|
|00005f40| 65 76 69 63 65 73 20 6c | 69 6b 65 20 74 68 65 20 |evices l|ike the |
|00005f50| 4d 6f 74 6f 72 6f 6c 61 | 20 50 4d 52 2d 32 30 30 |Motorola| PMR-200|
|00005f60| 30 20 70 61 67 65 72 2e | 0a 20 2a 0a 20 2a 09 54 |0 pager.|. *. *.T|
|00005f70| 68 69 73 20 6d 6f 64 75 | 6c 65 20 69 73 20 64 65 |his modu|le is de|
|00005f80| 73 69 67 6e 65 64 20 74 | 6f 20 75 73 65 20 74 68 |signed t|o use th|
|00005f90| 65 20 41 43 4b 2f 4e 41 | 4b 20 70 61 63 6b 65 74 |e ACK/NA|K packet|
|00005fa0| 20 70 72 6f 74 6f 63 6f | 6c 0a 20 2a 09 74 6f 20 | protoco|l. *.to |
|00005fb0| 65 6e 73 75 72 65 20 74 | 68 65 20 68 69 67 68 65 |ensure t|he highe|
|00005fc0| 73 74 20 6c 69 6b 65 6c | 79 68 6f 6f 64 20 6f 66 |st likel|yhood of|
|00005fd0| 20 63 6f 72 72 65 63 74 | 20 64 65 6c 69 76 65 72 | correct| deliver|
|00005fe0| 79 20 6f 66 20 74 68 65 | 0a 20 2a 09 6d 65 73 73 |y of the|. *.mess|
|00005ff0| 61 67 65 2e 20 20 54 68 | 65 20 70 61 63 6b 65 74 |age. Th|e packet|
|00006000| 73 20 61 72 65 20 63 68 | 65 63 6b 73 75 6d 6d 65 |s are ch|ecksumme|
|00006010| 64 20 61 6e 64 20 61 6c | 6c 20 6d 65 73 73 61 67 |d and al|l messag|
|00006020| 65 73 20 61 72 65 0a 20 | 2a 09 61 63 6b 6e 6f 77 |es are. |*.acknow|
|00006030| 6c 65 64 67 65 64 20 62 | 79 20 74 68 65 20 72 65 |ledged b|y the re|
|00006040| 63 65 69 76 65 72 2e 0a | 20 2a 0a 20 2a 09 54 6f |ceiver..| *. *.To|
|00006050| 20 75 73 65 20 74 68 69 | 73 20 66 61 63 69 6c 69 | use thi|s facili|
|00006060| 74 79 2c 20 74 69 70 20 | 6d 75 73 74 20 62 65 20 |ty, tip |must be |
|00006070| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 74 68 65 20 |called w|ith the |
|00006080| 2d 70 20 6f 70 74 69 6f | 6e 2c 0a 20 2a 09 61 20 |-p optio|n,. *.a |
|00006090| 73 79 73 74 65 6d 20 6e | 61 6d 65 20 28 77 68 61 |system n|ame (wha|
|000060a0| 74 20 73 79 73 74 65 6d | 20 74 6f 20 64 69 61 6c |t system| to dial|
|000060b0| 20 75 70 29 20 61 6e 64 | 20 66 69 6e 61 6c 6c 79 | up) and| finally|
|000060c0| 20 61 20 64 61 74 61 0a | 20 2a 09 73 74 72 69 6e | a data.| *.strin|
|000060d0| 67 20 77 68 69 63 68 20 | 63 6f 6e 74 61 69 6e 73 |g which |contains|
|000060e0| 20 33 20 69 74 65 6d 73 | 3a 20 20 41 20 6c 6f 67 | 3 items|: A log|
|000060f0| 69 6e 20 63 6f 64 65 2f | 70 61 73 73 77 6f 72 64 |in code/|password|
|00006100| 2c 20 61 20 6c 69 73 74 | 0a 20 2a 09 70 61 67 65 |, a list|. *.page|
|00006110| 72 20 69 64 27 73 20 74 | 6f 20 72 65 63 65 69 76 |r id's t|o receiv|
|00006120| 65 20 74 68 65 20 6d 65 | 73 73 61 67 65 2c 20 61 |e the me|ssage, a|
|00006130| 6e 64 20 74 68 65 20 6d | 65 73 73 61 67 65 20 74 |nd the m|essage t|
|00006140| 65 78 74 2e 0a 20 2a 09 | 54 68 65 20 74 68 72 65 |ext.. *.|The thre|
|00006150| 65 20 66 69 65 6c 64 73 | 20 61 72 65 20 73 65 70 |e fields| are sep|
|00006160| 61 72 61 74 65 64 20 62 | 79 20 74 61 62 73 2e 20 |arated b|y tabs. |
|00006170| 20 54 68 65 20 70 61 67 | 65 72 20 69 64 20 66 69 | The pag|er id fi|
|00006180| 65 6c 64 0a 20 2a 09 69 | 73 20 66 75 72 74 68 65 |eld. *.i|s furthe|
|00006190| 72 20 73 75 62 64 69 76 | 69 64 65 64 20 69 6e 74 |r subdiv|ided int|
|000061a0| 6f 20 61 20 6c 69 73 74 | 20 6f 66 20 70 61 67 65 |o a list| of page|
|000061b0| 72 20 69 64 73 20 62 79 | 20 63 6f 6d 6d 61 73 2e |r ids by| commas.|
|000061c0| 0a 20 2a 0a 20 2a 09 46 | 6f 72 20 65 78 61 6d 70 |. *. *.F|or examp|
|000061d0| 6c 65 3a 0a 20 2a 09 74 | 69 70 20 2d 70 20 6d 65 |le:. *.t|ip -p me|
|000061e0| 74 72 6f 20 22 31 32 33 | 34 35 36 37 38 5c 74 32 |tro "123|45678\t2|
|000061f0| 30 30 30 31 2c 32 30 30 | 30 32 5c 74 50 6c 65 61 |0001,200|02\tPlea|
|00006200| 73 65 20 63 61 6c 6c 20 | 74 68 65 20 6f 66 66 69 |se call |the offi|
|00006210| 63 65 2e 22 0a 20 2a 0a | 20 2a 09 57 6f 75 6c 64 |ce.". *.| *.Would|
|00006220| 20 63 61 6c 6c 20 74 68 | 65 20 73 79 73 74 65 6d | call th|e system|
|00006230| 20 63 61 6c 6c 65 64 20 | 22 6d 65 74 72 6f 22 20 | called |"metro" |
|00006240| 61 73 20 6c 69 73 74 65 | 64 20 69 6e 20 2f 65 74 |as liste|d in /et|
|00006250| 63 2f 72 65 6d 6f 74 65 | 0a 20 2a 09 61 6e 64 20 |c/remote|. *.and |
|00006260| 6c 6f 67 69 6e 20 77 69 | 74 68 20 74 68 65 20 49 |login wi|th the I|
|00006270| 44 20 31 32 33 34 35 36 | 37 38 2e 20 20 54 68 65 |D 123456|78. The|
|00006280| 20 6d 65 73 73 61 67 65 | 20 22 50 6c 65 61 73 65 | message| "Please|
|00006290| 20 63 61 6c 6c 0a 20 2a | 09 74 68 65 20 6f 66 66 | call. *|.the off|
|000062a0| 69 63 65 2e 22 20 77 6f | 75 6c 64 20 62 65 20 73 |ice." wo|uld be s|
|000062b0| 65 6e 74 20 74 6f 20 70 | 61 67 65 72 73 20 32 30 |ent to p|agers 20|
|000062c0| 30 30 31 20 61 6e 64 20 | 32 30 30 30 32 2e 0a 20 |001 and |20002.. |
|000062d0| 2a 0a 20 2a 09 54 68 69 | 73 20 63 6f 64 65 20 68 |*. *.Thi|s code h|
|000062e0| 61 73 20 62 65 65 6e 20 | 74 65 73 74 65 64 20 6f |as been |tested o|
|000062f0| 6e 6c 79 20 6f 6e 20 74 | 68 65 20 4d 65 74 72 6f |nly on t|he Metro|
|00006300| 6d 65 64 69 61 20 50 61 | 67 69 6e 67 20 53 65 72 |media Pa|ging Ser|
|00006310| 76 69 63 65 73 0a 20 2a | 09 73 79 73 74 65 6d 20 |vices. *|.system |
|00006320| 61 72 6f 75 6e 64 20 4e | 65 77 20 59 6f 72 6b 20 |around N|ew York |
|00006330| 43 69 74 79 2c 20 74 68 | 6f 75 67 68 20 69 74 20 |City, th|ough it |
|00006340| 73 68 6f 75 6c 64 20 77 | 6f 72 6b 20 6f 6e 20 6f |should w|ork on o|
|00006350| 74 68 65 72 0a 20 2a 09 | 73 69 6d 69 6c 69 61 72 |ther. *.|similiar|
|00006360| 20 73 79 73 74 65 6d 73 | 2e 0a 20 2a 0a 20 2a 09 | systems|.. *. *.|
|00006370| 44 6f 75 67 6c 61 73 20 | 4b 69 6e 67 73 74 6f 6e |Douglas |Kingston|
|00006380| 0a 20 2a 09 4d 6f 72 67 | 61 6e 20 53 74 61 6e 6c |. *.Morg|an Stanl|
|00006390| 65 79 20 26 20 43 6f 2e | 20 28 31 39 74 68 20 46 |ey & Co.| (19th F|
|000063a0| 6c 6f 6f 72 29 0a 20 2a | 09 31 32 35 31 20 41 76 |loor). *|.1251 Av|
|000063b0| 65 6e 75 65 20 6f 66 20 | 74 68 65 20 41 6d 65 72 |enue of |the Amer|
|000063c0| 69 63 61 73 0a 20 2a 09 | 4e 59 2c 20 4e 59 2c 20 |icas. *.|NY, NY, |
|000063d0| 31 30 30 32 30 0a 20 2a | 2f 0a 0a 23 69 6e 63 6c |10020. *|/..#incl|
|000063e0| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 23 69 |ude <std|io.h>.#i|
|000063f0| 6e 63 6c 75 64 65 20 3c | 63 74 79 70 65 2e 68 3e |nclude <|ctype.h>|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.