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

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: cu_shell.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file cu-shell/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404065110 default
98% file data default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 63 75 2d 73 68 65 6c 6c | 2f 00 00 00 00 00 00 00 |cu-shell|/.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 36 35 | 0 | 4404065|
|00000090| 31 31 30 20 20 20 35 35 | 32 32 00 20 00 00 00 00 |110 55|22. ....|
|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| 63 75 2d 73 68 65 6c 6c | 2f 53 68 61 72 46 69 6c |cu-shell|/SharFil|
|00000210| 65 2e 48 65 61 64 65 72 | 73 00 00 00 00 00 00 00 |e.Header|s.......|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 31 34 30 34 20 | 20 34 34 30 34 30 36 35 | 1404 | 4404065|
|00000290| 31 31 31 20 20 31 30 36 | 30 31 00 20 00 00 00 00 |111 106|01. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 63 75 2d 73 | 68 65 6c 6c 2e 73 68 61 |=== cu-s|hell.sha|
|00000410| 72 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |r ======|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 46 72 6f 6d |========|===.From|
|00000430| 20 70 75 72 2d 65 65 21 | 69 75 76 61 78 21 6d 61 | pur-ee!|iuvax!ma|
|00000440| 69 6c 72 75 73 21 63 6f | 72 6e 65 6c 6c 21 72 6f |ilrus!co|rnell!ro|
|00000450| 63 68 65 73 74 65 72 21 | 62 62 6e 21 62 62 6e 2e |chester!|bbn!bbn.|
|00000460| 63 6f 6d 21 72 73 61 6c | 7a 20 54 68 75 20 4a 75 |com!rsal|z Thu Ju|
|00000470| 6c 20 20 37 20 30 38 3a | 32 32 3a 31 37 20 45 53 |l 7 08:|22:17 ES|
|00000480| 54 20 31 39 38 38 0a 0a | 53 75 62 6d 69 74 74 65 |T 1988..|Submitte|
|00000490| 64 2d 62 79 3a 20 62 73 | 6d 69 74 68 40 63 73 75 |d-by: bs|mith@csu|
|000004a0| 63 68 69 63 6f 2e 45 44 | 55 20 28 42 65 6e 6e 65 |chico.ED|U (Benne|
|000004b0| 74 74 20 53 6d 69 74 68 | 29 0a 50 6f 73 74 69 6e |tt Smith|).Postin|
|000004c0| 67 2d 6e 75 6d 62 65 72 | 3a 20 56 6f 6c 75 6d 65 |g-number|: Volume|
|000004d0| 20 31 35 2c 20 49 73 73 | 75 65 20 38 33 0a 41 72 | 15, Iss|ue 83.Ar|
|000004e0| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 63 75 2d 73 |chive-na|me: cu-s|
|000004f0| 68 65 6c 6c 0a 0a 54 68 | 69 73 20 70 72 6f 67 72 |hell..Th|is progr|
|00000500| 61 6d 20 61 74 74 65 6d | 70 74 73 20 74 6f 20 73 |am attem|pts to s|
|00000510| 6f 6c 76 65 20 73 6f 6d | 65 20 6f 66 20 74 68 65 |olve som|e of the|
|00000520| 20 70 72 6f 62 6c 65 6d | 73 20 77 69 74 68 20 68 | problem|s with h|
|00000530| 61 76 69 6e 67 20 6b 65 | 72 6d 69 74 0a 63 75 2c |aving ke|rmit.cu,|
|00000540| 20 61 6e 64 20 75 75 63 | 70 20 73 68 61 72 69 6e | and uuc|p sharin|
|00000550| 67 20 74 68 65 20 73 61 | 6d 65 20 6c 69 6e 65 73 |g the sa|me lines|
|00000560| 2e 20 20 49 74 20 61 6c | 73 6f 20 6b 65 65 70 73 |. It al|so keeps|
|00000570| 20 61 20 6c 6f 67 20 6f | 66 20 61 6c 6c 20 63 6f | a log o|f all co|
|00000580| 6e 6e 65 63 74 69 6f 6e | 73 0a 74 68 61 74 20 61 |nnection|s.that a|
|00000590| 72 65 20 6d 61 64 65 2e | 20 20 41 63 63 65 73 73 |re made.| Access|
|000005a0| 20 74 6f 20 63 6f 73 74 | 6c 79 20 72 65 73 6f 75 | to cost|ly resou|
|000005b0| 72 63 65 73 20 73 75 63 | 68 20 61 73 20 70 68 6f |rces suc|h as pho|
|000005c0| 6e 65 20 6c 69 6e 65 73 | 20 6d 61 79 20 62 65 0a |ne lines| may be.|
|000005d0| 72 65 73 74 72 69 63 74 | 65 64 20 62 79 20 77 61 |restrict|ed by wa|
|000005e0| 79 20 6f 66 20 61 20 43 | 61 6c 6c 2d 73 79 73 20 |y of a C|all-sys |
|000005f0| 66 69 6c 65 2e 20 20 49 | 74 20 77 69 6c 6c 20 6e |file. I|t will n|
|00000600| 6f 74 20 61 6c 6c 6f 77 | 20 74 68 65 20 75 73 65 |ot allow| the use|
|00000610| 20 6f 66 20 63 75 20 6f | 72 0a 6b 65 72 6d 69 74 | of cu o|r.kermit|
|00000620| 20 64 69 72 65 63 74 6c | 79 2c 20 74 68 75 73 20 | directl|y, thus |
|00000630| 61 20 75 73 65 72 20 63 | 61 6e 6e 6f 74 20 73 70 |a user c|annot sp|
|00000640| 65 63 69 66 79 20 61 20 | 70 68 6f 6e 65 20 6e 75 |ecify a |phone nu|
|00000650| 6d 62 65 72 2e 0a 0a 48 | 6f 70 65 20 74 68 69 73 |mber...H|ope this|
|00000660| 20 68 65 6c 70 73 2e 20 | 20 43 68 69 63 6f 20 53 | helps. | Chico S|
|00000670| 74 61 74 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 |tate Uni|versity |
|00000680| 68 61 73 20 62 65 65 6e | 20 75 73 69 6e 67 20 69 |has been| using i|
|00000690| 74 20 66 6f 72 20 61 62 | 6f 75 74 20 6f 6e 65 0a |t for ab|out one.|
|000006a0| 6d 6f 6e 74 68 2c 20 61 | 6e 64 20 69 74 20 73 65 |month, a|nd it se|
|000006b0| 65 6d 73 20 74 6f 20 73 | 6f 6c 76 65 20 6d 6f 73 |ems to s|olve mos|
|000006c0| 74 20 6f 66 20 74 68 65 | 69 72 20 70 72 6f 62 6c |t of the|ir probl|
|000006d0| 65 6d 73 2e 20 20 48 61 | 76 65 20 46 75 6e 2e 0a |ems. Ha|ve Fun..|
|000006e0| 0a 09 09 09 09 42 65 6e | 6e 65 74 74 20 28 62 73 |.....Ben|nett (bs|
|000006f0| 6d 69 74 68 40 63 73 75 | 63 68 69 63 6f 2e 45 44 |mith@csu|chico.ED|
|00000700| 55 29 0a 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |U)......|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 63 75 2d 73 68 65 6c 6c | 2f 4d 61 6b 65 66 69 6c |cu-shell|/Makefil|
|00000810| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000880| 20 20 20 34 31 34 34 20 | 20 34 34 30 34 30 36 35 | 4144 | 4404065|
|00000890| 31 30 34 20 20 20 37 32 | 35 35 00 20 00 00 00 00 |104 72|55. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 23 20 20 09 43 6f 70 79 | 72 69 67 68 74 20 28 63 |# .Copy|right (c|
|00000a10| 29 20 31 39 38 38 20 43 | 61 73 63 61 64 65 20 52 |) 1988 C|ascade R|
|00000a20| 65 73 65 61 72 63 68 0a | 23 20 09 20 20 41 6c 6c |esearch.|# . All|
|00000a30| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 23 | | .#|
|00000a50| 20 0a 23 20 20 09 54 48 | 49 53 20 49 53 20 55 4e | .# .TH|IS IS UN|
|00000a60| 50 55 42 4c 49 53 48 45 | 44 20 50 52 4f 50 52 49 |PUBLISHE|D PROPRI|
|00000a70| 45 54 41 52 59 20 53 4f | 55 52 43 45 20 43 4f 44 |ETARY SO|URCE COD|
|00000a80| 45 20 4f 46 20 43 41 53 | 43 41 44 45 20 52 45 53 |E OF CAS|CADE RES|
|00000a90| 45 41 52 43 48 0a 23 20 | 09 54 68 65 20 63 6f 70 |EARCH.# |.The cop|
|00000aa0| 79 72 69 67 68 74 20 6e | 6f 74 69 63 65 20 61 62 |yright n|otice ab|
|00000ab0| 6f 76 65 20 64 6f 65 73 | 20 6e 6f 74 20 65 76 69 |ove does| not evi|
|00000ac0| 64 65 6e 63 65 20 61 6e | 79 20 61 63 74 75 61 6c |dence an|y actual|
|00000ad0| 20 6f 72 20 20 20 20 20 | 0a 23 20 09 69 6e 74 65 | or |.# .inte|
|00000ae0| 6e 64 65 64 20 70 75 62 | 6c 69 63 61 74 69 6f 6e |nded pub|lication|
|00000af0| 20 6f 66 20 73 75 63 68 | 20 73 6f 75 72 63 65 20 | of such| source |
|00000b00| 63 6f 64 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |code | |
|00000b10| 20 20 20 20 20 20 20 20 | 20 20 20 0a 23 20 0a 23 | | .# .#|
|00000b20| 20 09 40 28 23 29 4d 61 | 6b 65 66 69 6c 65 09 31 | .@(#)Ma|kefile.1|
|00000b30| 2e 32 20 2a 2f 0a 23 20 | 0a 23 20 20 57 48 4f 09 |.2 */.# |.# WHO.|
|00000b40| 4d 4f 44 49 46 49 43 41 | 54 49 4f 4e 09 09 09 09 |MODIFICA|TION....|
|00000b50| 44 41 54 45 20 44 4f 4e | 45 0a 23 20 20 2d 2d 2d |DATE DON|E.# ---|
|00000b60| 20 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ------|--------|
|00000b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 20 | 20 20 2d 2d 2d 2d 2d 2d |------- | ------|
|00000b90| 2d 2d 2d 0a 23 20 20 63 | 62 73 09 43 72 65 61 74 |---.# c|bs.Creat|
|00000ba0| 69 6f 6e 20 6f 66 20 4d | 61 6b 65 66 69 6c 65 20 |ion of M|akefile |
|00000bb0| 66 6f 72 20 63 61 6c 6c | 2e 63 09 09 31 32 2d 41 |for call|.c..12-A|
|00000bc0| 70 72 2d 38 38 0a 0a 23 | 20 43 6f 6d 6d 65 6e 74 |pr-88..#| Comment|
|00000bd0| 20 6f 75 74 20 69 66 20 | 79 6f 75 20 64 6f 6e 27 | out if |you don'|
|00000be0| 74 20 68 61 76 65 20 48 | 6f 6e 6e 65 79 44 41 4e |t have H|onneyDAN|
|00000bf0| 42 45 52 20 6c 6f 63 6b | 66 69 6c 65 73 2e 0a 48 |BER lock|files..H|
|00000c00| 44 42 09 09 3d 20 31 0a | 0a 23 20 46 75 6c 6c 20 |DB..= 1.|.# Full |
|00000c10| 70 61 74 68 20 74 6f 20 | 66 69 6c 65 20 63 6f 6e |path to |file con|
|00000c20| 74 61 69 6e 69 6e 67 20 | 6c 69 73 74 20 6f 66 20 |taining |list of |
|00000c30| 76 61 6c 69 64 20 73 79 | 73 74 65 6d 73 20 66 6f |valid sy|stems fo|
|00000c40| 72 20 63 61 6c 6c 2e 0a | 43 41 4c 4c 46 49 4c 45 |r call..|CALLFILE|
|00000c50| 09 3d 20 2f 75 73 72 2f | 6c 69 62 2f 75 75 63 70 |.= /usr/|lib/uucp|
|00000c60| 2f 43 61 6c 6c 2d 73 79 | 73 0a 0a 23 20 46 75 6c |/Call-sy|s..# Ful|
|00000c70| 6c 20 70 61 74 68 20 74 | 6f 20 63 61 6c 6c 20 6c |l path t|o call l|
|00000c80| 6f 67 20 66 69 6c 65 2e | 0a 4c 4f 47 46 49 4c 45 |og file.|.LOGFILE|
|00000c90| 09 09 3d 20 2f 75 73 72 | 2f 6c 69 62 2f 75 75 63 |..= /usr|/lib/uuc|
|00000ca0| 70 2f 43 61 6c 6c 2d 6c | 6f 67 0a 0a 23 20 53 70 |p/Call-l|og..# Sp|
|00000cb0| 72 69 6e 74 66 20 73 74 | 72 69 6e 67 20 66 6f 72 |rintf st|ring for|
|00000cc0| 20 70 61 74 68 6e 61 6d | 65 20 6f 66 20 6c 6f 63 | pathnam|e of loc|
|00000cd0| 6b 66 69 6c 65 2e 0a 4c | 4f 43 4b 46 49 4c 45 09 |kfile..L|OCKFILE.|
|00000ce0| 3d 20 2f 75 73 72 2f 73 | 70 6f 6f 6c 2f 6c 6f 63 |= /usr/s|pool/loc|
|00000cf0| 6b 73 2f 4c 43 4b 2e 2e | 25 73 0a 0a 23 20 46 75 |ks/LCK..|%s..# Fu|
|00000d00| 6c 6c 20 70 61 74 68 20 | 74 6f 20 6b 65 72 6d 69 |ll path |to kermi|
|00000d10| 74 20 65 78 65 63 75 74 | 61 62 6c 65 2e 0a 4b 45 |t execut|able..KE|
|00000d20| 52 4d 49 54 09 09 3d 20 | 2f 75 73 72 2f 6c 6f 63 |RMIT..= |/usr/loc|
|00000d30| 61 6c 2f 62 69 6e 2f 6b | 65 72 6d 69 74 0a 0a 23 |al/bin/k|ermit..#|
|00000d40| 20 46 75 6c 6c 20 70 61 | 74 68 20 74 6f 20 63 75 | Full pa|th to cu|
|00000d50| 20 65 78 65 63 75 74 61 | 62 6c 65 2e 0a 43 55 09 | executa|ble..CU.|
|00000d60| 09 3d 20 2f 75 73 72 2f | 62 69 6e 2f 63 75 0a 0a |.= /usr/|bin/cu..|
|00000d70| 23 20 55 73 65 72 20 61 | 6e 64 20 67 72 6f 75 70 |# User a|nd group|
|00000d80| 20 69 64 20 66 6f 72 20 | 75 75 63 70 20 28 75 73 | id for |uucp (us|
|00000d90| 65 64 20 74 6f 20 63 68 | 6f 77 6e 20 74 68 65 20 |ed to ch|own the |
|00000da0| 64 65 76 69 63 65 20 62 | 61 63 6b 20 61 66 74 65 |device b|ack afte|
|00000db0| 72 20 63 61 6c 6c 29 2e | 0a 55 49 44 55 55 43 50 |r call).|.UIDUUCP|
|00000dc0| 09 09 3d 20 35 0a 47 49 | 44 55 55 43 50 09 09 3d |..= 5.GI|DUUCP..=|
|00000dd0| 20 35 0a 0a 23 20 4d 6f | 64 65 20 6f 66 20 64 65 | 5..# Mo|de of de|
|00000de0| 76 69 63 65 20 66 6f 72 | 20 6b 65 72 6d 69 74 20 |vice for| kermit |
|00000df0| 61 6e 64 20 75 75 63 70 | 2f 63 75 20 28 75 73 65 |and uucp|/cu (use|
|00000e00| 64 20 74 6f 20 63 68 6d | 6f 64 20 74 68 65 20 64 |d to chm|od the d|
|00000e10| 65 76 69 63 65 20 64 75 | 72 69 6e 67 20 63 61 6c |evice du|ring cal|
|00000e20| 6c 29 2e 20 0a 4d 4f 44 | 4b 45 52 09 09 3d 20 30 |l). .MOD|KER..= 0|
|00000e30| 30 36 30 30 0a 4d 4f 44 | 55 55 43 50 09 09 3d 20 |0600.MOD|UUCP..= |
|00000e40| 30 30 36 32 32 0a 0a 44 | 45 46 53 09 09 3d 20 2d |00622..D|EFS..= -|
|00000e50| 44 48 44 42 3d 5c 22 24 | 28 48 44 42 29 5c 22 20 |DHDB=\"$|(HDB)\" |
|00000e60| 2d 44 43 41 4c 4c 46 49 | 4c 45 3d 5c 22 24 28 43 |-DCALLFI|LE=\"$(C|
|00000e70| 41 4c 4c 46 49 4c 45 29 | 5c 22 20 5c 0a 09 09 20 |ALLFILE)|\" \... |
|00000e80| 20 2d 44 4c 4f 47 46 49 | 4c 45 3d 5c 22 24 28 4c | -DLOGFI|LE=\"$(L|
|00000e90| 4f 47 46 49 4c 45 29 5c | 22 20 2d 44 4c 4f 43 4b |OGFILE)\|" -DLOCK|
|00000ea0| 46 49 4c 45 3d 5c 22 24 | 28 4c 4f 43 4b 46 49 4c |FILE=\"$|(LOCKFIL|
|00000eb0| 45 29 5c 22 20 5c 0a 09 | 09 20 20 2d 44 4b 45 52 |E)\" \..|. -DKER|
|00000ec0| 4d 49 54 3d 5c 22 24 28 | 4b 45 52 4d 49 54 29 5c |MIT=\"$(|KERMIT)\|
|00000ed0| 22 20 2d 44 43 55 3d 5c | 22 24 28 43 55 29 5c 22 |" -DCU=\|"$(CU)\"|
|00000ee0| 20 5c 0a 09 09 20 20 2d | 44 55 49 44 55 55 43 50 | \... -|DUIDUUCP|
|00000ef0| 3d 5c 22 24 28 55 49 44 | 55 55 43 50 29 5c 22 20 |=\"$(UID|UUCP)\" |
|00000f00| 2d 44 47 49 44 55 55 43 | 50 3d 5c 22 24 28 47 49 |-DGIDUUC|P=\"$(GI|
|00000f10| 44 55 55 43 50 29 5c 22 | 20 5c 0a 09 09 20 20 2d |DUUCP)\"| \... -|
|00000f20| 44 4d 4f 44 4b 45 52 3d | 5c 22 24 28 4d 4f 44 4b |DMODKER=|\"$(MODK|
|00000f30| 45 52 29 5c 22 20 2d 44 | 4d 4f 44 55 55 43 50 3d |ER)\" -D|MODUUCP=|
|00000f40| 5c 22 24 28 4d 4f 44 55 | 55 43 50 29 5c 22 0a 0a |\"$(MODU|UCP)\"..|
|00000f50| 23 20 44 69 72 65 63 74 | 6f 72 79 20 66 6f 72 20 |# Direct|ory for |
|00000f60| 63 61 6c 6c 20 65 78 65 | 63 75 74 61 62 6c 65 0a |call exe|cutable.|
|00000f70| 42 49 4e 44 49 52 09 09 | 3d 20 2f 75 73 72 2f 6c |BINDIR..|= /usr/l|
|00000f80| 6f 63 61 6c 2f 62 69 6e | 0a 0a 23 20 44 69 72 65 |ocal/bin|..# Dire|
|00000f90| 63 74 6f 72 79 20 66 6f | 72 20 63 61 6c 6c 20 6d |ctory fo|r call m|
|00000fa0| 61 6e 75 61 6c 20 70 61 | 67 65 20 28 5b 6e 74 5d |anual pa|ge ([nt]|
|00000fb0| 72 6f 66 66 20 66 6f 72 | 6d 29 0a 4d 41 4e 44 49 |roff for|m).MANDI|
|00000fc0| 52 09 09 3d 20 2f 75 73 | 72 2f 6d 61 6e 2f 6c 5f |R..= /us|r/man/l_|
|00000fd0| 6d 61 6e 2f 6d 61 6e 31 | 0a 0a 23 23 23 23 23 23 |man/man1|..######|
|00000fe0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ff0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001000| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001010| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001020| 23 23 23 23 23 23 0a 0a | 53 52 43 09 09 3d 20 63 |######..|SRC..= c|
|00001030| 61 6c 6c 2e 63 0a 4f 42 | 4a 09 09 3d 20 63 61 6c |all.c.OB|J..= cal|
|00001040| 6c 2e 6f 0a 4d 41 4e 09 | 09 3d 20 63 61 6c 6c 2e |l.o.MAN.|.= call.|
|00001050| 31 4c 0a 43 46 4c 41 47 | 53 09 09 3d 20 2d 4f 20 |1L.CFLAG|S..= -O |
|00001060| 24 7b 44 45 46 53 7d 0a | 4c 46 4c 41 47 53 09 09 |${DEFS}.|LFLAGS..|
|00001070| 3d 0a 4c 49 4e 54 46 4c | 41 47 53 09 3d 20 24 7b |=.LINTFL|AGS.= ${|
|00001080| 44 45 46 53 7d 0a 52 4f | 46 46 09 09 3d 20 70 73 |DEFS}.RO|FF..= ps|
|00001090| 72 6f 66 66 20 2d 6d 61 | 6e 0a 4c 50 09 09 3d 20 |roff -ma|n.LP..= |
|000010a0| 72 65 6d 73 68 20 62 75 | 67 73 20 72 6c 70 20 70 |remsh bu|gs rlp p|
|000010b0| 6c 75 74 6f 0a 0a 63 61 | 6c 6c 3a 09 09 24 28 4f |luto..ca|ll:..$(O|
|000010c0| 42 4a 29 0a 09 09 63 63 | 20 24 28 4c 46 4c 41 47 |BJ)...cc| $(LFLAG|
|000010d0| 53 29 20 24 28 4f 42 4a | 29 20 2d 6f 20 63 61 6c |S) $(OBJ|) -o cal|
|000010e0| 6c 0a 0a 6d 61 6e 3a 0a | 09 09 24 28 52 4f 46 46 |l..man:.|..$(ROFF|
|000010f0| 29 20 24 28 4d 41 4e 29 | 0a 70 72 69 6e 74 3a 0a |) $(MAN)|.print:.|
|00001100| 09 09 70 72 20 4d 61 6b | 65 66 69 6c 65 20 63 61 |..pr Mak|efile ca|
|00001110| 6c 6c 2e 63 20 7c 20 24 | 28 4c 50 29 0a 09 09 24 |ll.c | $|(LP)...$|
|00001120| 28 52 4f 46 46 29 20 24 | 28 4d 41 4e 29 20 7c 20 |(ROFF) $|(MAN) | |
|00001130| 24 28 4c 50 29 0a 63 6c | 65 61 6e 3a 09 0a 09 09 |$(LP).cl|ean:....|
|00001140| 2d 72 6d 20 2d 66 20 24 | 28 4f 42 4a 29 20 63 61 |-rm -f $|(OBJ) ca|
|00001150| 6c 6c 0a 0a 69 6e 73 74 | 61 6c 6c 3a 0a 09 09 2d |ll..inst|all:...-|
|00001160| 63 70 20 63 61 6c 6c 20 | 24 28 42 49 4e 44 49 52 |cp call |$(BINDIR|
|00001170| 29 0a 09 09 2d 63 70 20 | 43 61 6c 6c 2d 73 79 73 |)...-cp |Call-sys|
|00001180| 20 24 28 43 41 4c 4c 46 | 49 4c 45 29 0a 09 09 2d | $(CALLF|ILE)...-|
|00001190| 63 70 20 63 61 6c 6c 2e | 31 20 24 28 4d 41 4e 44 |cp call.|1 $(MAND|
|000011a0| 49 52 29 0a 09 09 2d 63 | 68 6d 6f 64 20 34 35 35 |IR)...-c|hmod 455|
|000011b0| 35 20 24 28 42 49 4e 44 | 49 52 29 2f 63 61 6c 6c |5 $(BIND|IR)/call|
|000011c0| 0a 09 09 2d 63 68 6f 77 | 6e 20 72 6f 6f 74 20 24 |...-chow|n root $|
|000011d0| 28 42 49 4e 44 49 52 29 | 2f 63 61 6c 6c 0a 09 09 |(BINDIR)|/call...|
|000011e0| 2d 63 68 67 72 70 20 62 | 69 6e 20 24 28 42 49 4e |-chgrp b|in $(BIN|
|000011f0| 44 49 52 29 2f 63 61 6c | 6c 0a 09 09 2d 63 68 6d |DIR)/cal|l...-chm|
|00001200| 6f 64 20 36 30 30 20 24 | 28 43 41 4c 4c 46 49 4c |od 600 $|(CALLFIL|
|00001210| 45 29 0a 09 09 2d 63 68 | 6f 77 6e 20 72 6f 6f 74 |E)...-ch|own root|
|00001220| 20 24 28 43 41 4c 4c 46 | 49 4c 45 29 0a 09 09 2d | $(CALLF|ILE)...-|
|00001230| 63 68 67 72 70 20 62 69 | 6e 20 24 28 43 41 4c 4c |chgrp bi|n $(CALL|
|00001240| 46 49 4c 45 29 0a 09 09 | 2d 63 68 6d 6f 64 20 34 |FILE)...|-chmod 4|
|00001250| 34 34 20 24 28 4d 41 4e | 44 49 52 29 2f 63 61 6c |44 $(MAN|DIR)/cal|
|00001260| 6c 2e 31 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |l.1.....|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 63 75 2d 73 68 65 6c 6c | 2f 63 61 6c 6c 2e 63 00 |cu-shell|/call.c.|
|00001410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001480| 20 20 32 32 31 33 35 20 | 20 34 34 30 34 30 36 35 | 22135 | 4404065|
|00001490| 31 30 37 20 20 20 36 37 | 31 37 00 20 00 00 00 00 |107 67|17. ....|
|000014a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001600| 0a 2f 2a 20 09 43 6f 70 | 79 72 69 67 68 74 20 28 |./* .Cop|yright (|
|00001610| 63 29 20 31 39 38 38 20 | 43 61 73 63 61 64 65 20 |c) 1988 |Cascade |
|00001620| 52 65 73 65 61 72 63 68 | 20 2a 2f 0a 2f 2a 09 20 |Research| */./*. |
|00001630| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|00001640| 72 76 65 64 20 20 20 20 | 20 20 20 20 20 20 20 20 |rved | |
|00001650| 20 20 20 2a 2f 0a 0a 2f | 2a 20 09 54 48 49 53 20 | */../|* .THIS |
|00001660| 49 53 20 55 4e 50 55 42 | 4c 49 53 48 45 44 20 50 |IS UNPUB|LISHED P|
|00001670| 52 4f 50 52 49 45 54 41 | 52 59 20 53 4f 55 52 43 |ROPRIETA|RY SOURC|
|00001680| 45 20 43 4f 44 45 20 4f | 46 20 43 41 53 43 41 44 |E CODE O|F CASCAD|
|00001690| 45 20 52 45 53 45 41 52 | 43 48 20 2a 2f 0a 2f 2a |E RESEAR|CH */./*|
|000016a0| 09 54 68 65 20 63 6f 70 | 79 72 69 67 68 74 20 6e |.The cop|yright n|
|000016b0| 6f 74 69 63 65 20 61 62 | 6f 76 65 20 64 6f 65 73 |otice ab|ove does|
|000016c0| 20 6e 6f 74 20 65 76 69 | 64 65 6e 63 65 20 61 6e | not evi|dence an|
|000016d0| 79 20 61 63 74 75 61 6c | 20 6f 72 20 20 20 20 20 |y actual| or |
|000016e0| 20 2a 2f 0a 2f 2a 09 69 | 6e 74 65 6e 64 65 64 20 | */./*.i|ntended |
|000016f0| 70 75 62 6c 69 63 61 74 | 69 6f 6e 20 6f 66 20 73 |publicat|ion of s|
|00001700| 75 63 68 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |uch sour|ce code |
|00001710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001720| 20 20 20 20 20 20 20 2a | 2f 0a 0a 2f 2a 09 40 28 | *|/../*.@(|
|00001730| 23 29 63 61 6c 6c 2e 63 | 09 31 2e 32 20 2a 2f 0a |#)call.c|.1.2 */.|
|00001740| 0a 2f 2a 20 57 48 4f 09 | 4d 4f 44 49 46 49 43 41 |./* WHO.|MODIFICA|
|00001750| 54 49 4f 4e 09 09 09 09 | 44 41 54 45 20 44 4f 4e |TION....|DATE DON|
|00001760| 45 20 2a 2f 0a 2f 2a 20 | 2d 2d 2d 20 20 2d 2d 2d |E */./* |--- ---|
|00001770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001790| 2d 2d 20 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 20 2a |-- ---|------ *|
|000017a0| 2f 0a 2f 2a 20 63 62 73 | 09 49 6e 69 74 69 61 6c |/./* cbs|.Initial|
|000017b0| 20 63 72 65 61 74 69 6f | 6e 20 6f 66 20 63 61 6c | creatio|n of cal|
|000017c0| 6c 2e 63 20 70 72 6f 67 | 72 61 6d 2e 09 30 35 2d |l.c prog|ram..05-|
|000017d0| 41 70 72 2d 38 38 20 2a | 2f 0a 2f 2a 20 63 62 73 |Apr-88 *|/./* cbs|
|000017e0| 09 41 64 64 65 64 20 63 | 6f 64 65 20 66 6f 72 20 |.Added c|ode for |
|000017f0| 74 68 65 20 2d 64 20 6f | 70 74 69 6f 6e 2e 09 09 |the -d o|ption...|
|00001800| 30 37 2d 41 70 72 2d 38 | 38 20 2a 2f 0a 2f 2a 20 |07-Apr-8|8 */./* |
|00001810| 63 62 73 09 41 64 64 65 | 64 20 2d 6c 20 77 69 74 |cbs.Adde|d -l wit|
|00001820| 68 20 6e 6f 20 6d 61 63 | 68 69 6e 65 20 6e 61 6d |h no mac|hine nam|
|00001830| 65 20 74 6f 20 73 68 6f | 77 09 30 37 2d 41 70 72 |e to sho|w.07-Apr|
|00001840| 2d 38 38 20 2a 2f 0a 2f | 2a 09 65 6e 74 69 72 65 |-88 */./|*.entire|
|00001850| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 6c 6f 67 | content|s of log|
|00001860| 20 66 69 6c 65 2e 09 09 | 09 20 20 2a 2f 0a 2f 2a | file...|. */./*|
|00001870| 20 63 62 73 09 41 64 64 | 65 64 20 63 6f 64 65 20 | cbs.Add|ed code |
|00001880| 74 6f 20 73 65 74 20 74 | 68 65 20 48 55 50 43 4c |to set t|he HUPCL|
|00001890| 20 76 61 6c 75 65 20 66 | 6f 72 09 31 32 2d 41 70 | value f|or.12-Ap|
|000018a0| 72 2d 38 38 20 2a 2f 0a | 2f 2a 09 74 68 65 20 64 |r-88 */.|/*.the d|
|000018b0| 65 76 69 63 65 20 74 6f | 20 62 65 20 63 6f 6e 6e |evice to| be conn|
|000018c0| 65 63 74 65 64 20 74 6f | 2e 09 09 09 20 20 2a 2f |ected to|.... */|
|000018d0| 0a 0a 2f 2a 20 43 61 6c | 6c 20 61 6c 6c 6f 77 73 |../* Cal|l allows|
|000018e0| 20 74 68 65 20 69 6e 76 | 6f 63 61 74 69 6f 6e 20 | the inv|ocation |
|000018f0| 6f 66 20 63 75 20 6f 72 | 20 6b 65 72 6d 69 74 20 |of cu or| kermit |
|00001900| 69 6e 20 61 20 6d 6f 72 | 65 20 20 20 2a 2f 0a 2f |in a mor|e */./|
|00001910| 2a 20 72 65 73 74 72 69 | 63 74 69 76 65 20 65 6e |* restri|ctive en|
|00001920| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 20 49 74 20 61 |vironmen|t. It a|
|00001930| 6c 6c 6f 77 73 20 66 6f | 72 20 74 68 65 20 6d 6f |llows fo|r the mo|
|00001940| 6e 69 74 6f 72 69 6e 67 | 20 2a 2f 0a 2f 2a 20 6f |nitoring| */./* o|
|00001950| 66 20 63 61 6c 6c 65 72 | 73 2c 20 61 6e 64 20 74 |f caller|s, and t|
|00001960| 68 65 20 64 75 72 61 74 | 69 6f 6e 20 6f 66 20 74 |he durat|ion of t|
|00001970| 68 65 69 72 20 63 6f 6e | 6e 65 63 74 69 6f 6e 73 |heir con|nections|
|00001980| 20 74 6f 20 20 20 2a 2f | 0a 2f 2a 20 76 61 72 69 | to */|./* vari|
|00001990| 6f 75 73 20 6d 61 63 68 | 69 6e 65 73 2e 20 20 43 |ous mach|ines. C|
|000019a0| 61 6c 6c 20 67 65 74 73 | 20 61 20 6c 69 73 74 20 |all gets| a list |
|000019b0| 6f 66 20 61 76 61 69 6c | 61 62 6c 65 20 20 20 20 |of avail|able |
|000019c0| 20 20 20 2a 2f 0a 2f 2a | 20 6d 61 63 68 69 6e 65 | */./*| machine|
|000019d0| 73 20 66 72 6f 6d 20 74 | 68 65 20 43 61 6c 6c 2d |s from t|he Call-|
|000019e0| 64 65 76 69 63 65 73 20 | 66 69 6c 65 20 77 68 69 |devices |file whi|
|000019f0| 63 68 20 69 73 20 6c 6f | 63 61 74 65 64 20 20 20 |ch is lo|cated |
|00001a00| 2a 2f 0a 2f 2a 20 69 6e | 20 74 68 65 20 2f 75 73 |*/./* in| the /us|
|00001a10| 72 2f 6c 69 62 2f 75 75 | 63 70 20 64 69 72 65 63 |r/lib/uu|cp direc|
|00001a20| 74 6f 72 79 2e 20 20 54 | 68 65 20 6c 6f 67 20 66 |tory. T|he log f|
|00001a30| 69 6c 65 20 6f 66 20 61 | 6c 6c 20 20 20 2a 2f 0a |ile of a|ll */.|
|00001a40| 2f 2a 20 61 63 74 69 6f | 6e 73 20 69 73 20 69 6e |/* actio|ns is in|
|00001a50| 20 2f 75 73 72 2f 61 64 | 6d 2f 43 61 6c 6c 2d 6c | /usr/ad|m/Call-l|
|00001a60| 6f 67 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |og. | |
|00001a70| 20 20 20 20 20 20 20 20 | 20 20 2a 2f 0a 0a 2f 2a | | */../*|
|00001a80| 20 43 61 6c 6c 20 6d 75 | 73 74 20 72 75 6e 20 73 | Call mu|st run s|
|00001a90| 65 74 75 69 64 28 72 6f | 6f 74 29 2e 20 20 49 74 |etuid(ro|ot). It|
|00001aa0| 20 72 65 73 70 65 63 74 | 73 20 74 68 65 20 48 44 | respect|s the HD|
|00001ab0| 42 20 74 79 70 65 20 20 | 2a 2f 0a 2f 2a 20 6c 6f |B type |*/./* lo|
|00001ac0| 63 6b 20 66 69 6c 65 73 | 20 61 73 20 77 65 6c 6c |ck files| as well|
|00001ad0| 20 61 73 20 74 68 65 20 | 76 37 20 6f 6e 65 73 2e | as the |v7 ones.|
|00001ae0| 20 20 49 74 20 77 69 6c | 6c 20 73 65 74 20 74 68 | It wil|l set th|
|00001af0| 65 20 20 20 20 2a 2f 0a | 2f 2a 20 70 65 72 6d 69 |e */.|/* permi|
|00001b00| 73 73 69 6f 6e 73 20 61 | 6e 64 20 6f 77 6e 65 72 |ssions a|nd owner|
|00001b10| 73 68 69 70 73 20 6f 66 | 20 74 68 65 20 61 70 70 |ships of| the app|
|00001b20| 72 6f 70 72 69 61 74 65 | 20 64 65 76 69 63 65 20 |ropriate| device |
|00001b30| 20 20 2a 2f 0a 2f 2a 20 | 66 6f 72 20 74 68 65 20 | */./* |for the |
|00001b40| 64 75 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |duration| of the |
|00001b50| 63 61 6c 6c 2e 20 20 20 | 20 20 20 20 20 20 20 20 |call. | |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2a | | *|
|00001b70| 2f 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 66 63 6e |/..#incl|ude <fcn|
|00001b80| 74 6c 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |tl.h>.#i|nclude <|
|00001b90| 74 65 72 6d 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |termio.h|>.#inclu|
|00001ba0| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0a 23 69 6e |de <stdi|o.h>.#in|
|00001bb0| 63 6c 75 64 65 20 3c 63 | 74 79 70 65 2e 68 3e 0a |clude <c|type.h>.|
|00001bc0| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 72 69 6e 67 |#include| <string|
|00001bd0| 2e 68 3e 0a 23 69 6e 63 | 6c 75 64 65 20 3c 74 69 |.h>.#inc|lude <ti|
|00001be0| 6d 65 2e 68 3e 0a 0a 2f | 2a 20 54 68 65 20 66 6f |me.h>../|* The fo|
|00001bf0| 6c 6c 6f 77 69 6e 67 20 | 61 72 65 20 74 68 65 20 |llowing |are the |
|00001c00| 64 65 66 61 75 6c 74 73 | 2e 20 20 49 66 20 79 6f |defaults|. If yo|
|00001c10| 75 20 77 69 73 68 20 74 | 6f 20 6d 61 6b 65 20 63 |u wish t|o make c|
|00001c20| 68 61 6e 67 65 73 2c 20 | 64 6f 20 73 6f 20 2a 2f |hanges, |do so */|
|00001c30| 0a 2f 2a 20 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 |./* in t|he Makef|
|00001c40| 69 6c 65 2c 20 6e 6f 74 | 20 68 65 72 65 2e 09 09 |ile, not| here...|
|00001c50| 09 09 09 20 20 20 20 20 | 20 20 2a 2f 0a 0a 23 69 |... | */..#i|
|00001c60| 66 6e 64 65 66 20 43 41 | 4c 4c 46 49 4c 45 0a 23 |fndef CA|LLFILE.#|
|00001c70| 64 65 66 69 6e 65 09 43 | 41 4c 4c 46 49 4c 45 09 |define.C|ALLFILE.|
|00001c80| 22 2f 75 73 72 2f 6c 69 | 62 2f 75 75 63 70 2f 43 |"/usr/li|b/uucp/C|
|00001c90| 61 6c 6c 2d 73 79 73 22 | 0a 23 65 6e 64 69 66 0a |all-sys"|.#endif.|
|00001ca0| 23 69 66 6e 64 65 66 20 | 4c 4f 47 46 49 4c 45 0a |#ifndef |LOGFILE.|
|00001cb0| 23 64 65 66 69 6e 65 20 | 4c 4f 47 46 49 4c 45 09 |#define |LOGFILE.|
|00001cc0| 09 22 2f 75 73 72 2f 6c | 69 62 2f 75 75 63 70 2f |."/usr/l|ib/uucp/|
|00001cd0| 43 61 6c 6c 2d 6c 6f 67 | 22 0a 23 65 6e 64 69 66 |Call-log|".#endif|
|00001ce0| 0a 23 69 66 6e 64 65 66 | 20 4c 4f 43 4b 46 49 4c |.#ifndef| LOCKFIL|
|00001cf0| 45 0a 23 64 65 66 69 6e | 65 20 4c 4f 43 4b 46 49 |E.#defin|e LOCKFI|
|00001d00| 4c 45 09 22 2f 75 73 72 | 2f 73 70 6f 6f 6c 2f 6c |LE."/usr|/spool/l|
|00001d10| 6f 63 6b 73 2f 4c 43 4b | 2e 2e 25 73 22 0a 23 65 |ocks/LCK|..%s".#e|
|00001d20| 6e 64 69 66 0a 23 69 66 | 6e 64 65 66 20 4b 45 52 |ndif.#if|ndef KER|
|00001d30| 4d 49 54 0a 23 64 65 66 | 69 6e 65 20 4b 45 52 4d |MIT.#def|ine KERM|
|00001d40| 49 54 09 09 22 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |IT.."/us|r/local/|
|00001d50| 62 69 6e 2f 6b 65 72 6d | 69 74 22 0a 23 65 6e 64 |bin/kerm|it".#end|
|00001d60| 69 66 0a 23 69 66 6e 64 | 65 66 20 43 55 0a 23 64 |if.#ifnd|ef CU.#d|
|00001d70| 65 66 69 6e 65 20 43 55 | 09 09 22 2f 75 73 72 2f |efine CU|.."/usr/|
|00001d80| 62 69 6e 2f 63 75 22 0a | 23 65 6e 64 69 66 0a 23 |bin/cu".|#endif.#|
|00001d90| 69 66 6e 64 65 66 20 55 | 49 44 55 55 43 50 0a 23 |ifndef U|IDUUCP.#|
|00001da0| 64 65 66 69 6e 65 20 55 | 49 44 55 55 43 50 09 35 |define U|IDUUCP.5|
|00001db0| 0a 23 65 6e 64 69 66 0a | 23 69 66 6e 64 65 66 20 |.#endif.|#ifndef |
|00001dc0| 47 49 44 55 55 43 50 0a | 23 64 65 66 69 6e 65 20 |GIDUUCP.|#define |
|00001dd0| 47 49 44 55 55 43 50 09 | 35 0a 23 65 6e 64 69 66 |GIDUUCP.|5.#endif|
|00001de0| 0a 23 69 66 6e 64 65 66 | 20 4d 4f 44 4b 45 52 0a |.#ifndef| MODKER.|
|00001df0| 23 64 65 66 69 6e 65 20 | 4d 4f 44 4b 45 52 09 30 |#define |MODKER.0|
|00001e00| 30 36 30 30 0a 23 65 6e | 64 69 66 0a 23 69 66 6e |0600.#en|dif.#ifn|
|00001e10| 64 65 66 20 4d 4f 44 55 | 55 43 50 0a 23 64 65 66 |def MODU|UCP.#def|
|00001e20| 69 6e 65 20 4d 4f 44 55 | 55 43 50 20 30 30 36 32 |ine MODU|UCP 0062|
|00001e30| 32 0a 23 65 6e 64 69 66 | 0a 0a 73 74 72 75 63 74 |2.#endif|..struct|
|00001e40| 20 63 61 6c 6c 64 65 76 | 20 7b 0a 09 63 68 61 72 | calldev| {..char|
|00001e50| 20 2a 6e 61 6d 65 3b 09 | 09 2f 2a 20 6e 61 6d 65 | *name;.|./* name|
|00001e60| 20 6f 66 20 73 79 73 74 | 65 6d 20 2a 2f 0a 09 63 | of syst|em */..c|
|00001e70| 68 61 72 20 2a 64 65 76 | 3b 09 09 2f 2a 20 64 65 |har *dev|;../* de|
|00001e80| 76 69 63 65 20 61 74 74 | 61 63 68 65 64 20 74 6f |vice att|ached to|
|00001e90| 20 2a 2f 0a 09 63 68 61 | 72 20 2a 62 61 75 64 3b | */..cha|r *baud;|
|00001ea0| 09 09 2f 2a 20 62 61 75 | 64 20 72 61 74 65 20 74 |../* bau|d rate t|
|00001eb0| 6f 20 63 6f 6e 6e 65 63 | 74 20 61 74 20 2a 2f 0a |o connec|t at */.|
|00001ec0| 09 63 68 61 72 20 2a 6d | 64 6d 74 79 70 65 3b 09 |.char *m|dmtype;.|
|00001ed0| 09 2f 2a 20 6d 6f 64 65 | 6d 20 74 79 70 65 20 2a |./* mode|m type *|
|00001ee0| 2f 0a 09 63 68 61 72 20 | 2a 74 65 6c 6e 6f 3b 09 |/..char |*telno;.|
|00001ef0| 09 2f 2a 20 74 65 6c 65 | 70 68 6f 6e 65 20 6e 75 |./* tele|phone nu|
|00001f00| 6d 62 65 72 20 2a 2f 0a | 09 73 74 72 75 63 74 20 |mber */.|.struct |
|00001f10| 63 61 6c 6c 64 65 76 20 | 2a 6e 65 78 74 3b 09 2f |calldev |*next;./|
|00001f20| 2a 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 6e 65 78 |* pointe|r to nex|
|00001f30| 74 20 61 76 61 69 6c 61 | 62 6c 65 20 64 65 76 69 |t availa|ble devi|
|00001f40| 63 65 20 2a 2f 0a 7d 3b | 0a 0a 73 74 72 75 63 74 |ce */.};|..struct|
|00001f50| 20 63 61 6c 6c 64 65 76 | 20 2a 63 61 6c 6c 68 65 | calldev| *callhe|
|00001f60| 61 64 2c 20 2a 63 61 6c | 6c 63 75 72 2c 20 2a 6d |ad, *cal|lcur, *m|
|00001f70| 61 74 63 68 2c 20 2a 67 | 65 74 63 61 6c 6c 28 29 |atch, *g|etcall()|
|00001f80| 3b 0a 63 68 61 72 20 2a | 70 6e 61 6d 65 2c 20 2a |;.char *|pname, *|
|00001f90| 67 65 74 6c 6f 67 69 6e | 28 29 2c 20 74 79 70 65 |getlogin|(), type|
|00001fa0| 63 61 6c 6c 5b 35 30 5d | 2c 20 77 68 6f 63 61 6c |call[50]|, whocal|
|00001fb0| 6c 5b 35 30 5d 3b 0a 0a | 73 74 72 75 63 74 20 74 |l[50];..|struct t|
|00001fc0| 65 72 6d 69 6f 20 2a 64 | 65 76 70 61 72 61 6d 3b |ermio *d|evparam;|
|00001fd0| 0a 69 6e 74 20 66 64 3b | 0a 0a 69 6e 74 20 65 72 |.int fd;|..int er|
|00001fe0| 72 66 6c 67 2c 6b 66 6c | 67 2c 63 66 6c 67 2c 6c |rflg,kfl|g,cflg,l|
|00001ff0| 66 6c 67 2c 73 66 6c 67 | 2c 64 66 6c 67 3b 0a 0a |flg,sflg|,dflg;..|
|00002000| 6d 61 69 6e 28 61 72 67 | 63 2c 61 72 67 76 29 0a |main(arg|c,argv).|
|00002010| 69 6e 74 20 61 72 67 63 | 3b 0a 63 68 61 72 20 2a |int argc|;.char *|
|00002020| 61 72 67 76 5b 5d 3b 0a | 7b 0a 09 65 78 74 65 72 |argv[];.|{..exter|
|00002030| 6e 20 63 68 61 72 20 2a | 6f 70 74 61 72 67 3b 0a |n char *|optarg;.|
|00002040| 09 65 78 74 65 72 6e 20 | 69 6e 74 20 6f 70 74 69 |.extern |int opti|
|00002050| 6e 64 2c 6f 70 74 65 72 | 72 3b 0a 09 69 6e 74 20 |nd,opter|r;..int |
|00002060| 63 3b 0a 09 63 68 61 72 | 20 2a 63 61 6c 6c 73 79 |c;..char| *callsy|
|00002070| 73 2c 20 63 6d 64 5b 31 | 30 30 5d 3b 0a 09 46 49 |s, cmd[1|00];..FI|
|00002080| 4c 45 20 2a 63 66 2c 20 | 2a 66 6f 70 65 6e 28 29 |LE *cf, |*fopen()|
|00002090| 3b 0a 0a 09 64 65 76 70 | 61 72 61 6d 20 3d 20 28 |;...devp|aram = (|
|000020a0| 73 74 72 75 63 74 20 74 | 65 72 6d 69 6f 20 2a 29 |struct t|ermio *)|
|000020b0| 6d 61 6c 6c 6f 63 28 73 | 69 7a 65 6f 66 28 73 74 |malloc(s|izeof(st|
|000020c0| 72 75 63 74 20 74 65 72 | 6d 69 6f 29 29 3b 0a 0a |ruct ter|mio));..|
|000020d0| 09 70 6e 61 6d 65 3d 28 | 63 68 61 72 20 2a 29 6d |.pname=(|char *)m|
|000020e0| 61 6c 6c 6f 63 28 73 69 | 7a 65 6f 66 28 61 72 67 |alloc(si|zeof(arg|
|000020f0| 76 5b 30 5d 29 2b 31 29 | 3b 0a 09 73 74 72 63 70 |v[0])+1)|;..strcp|
|00002100| 79 28 70 6e 61 6d 65 2c | 61 72 67 76 5b 30 5d 29 |y(pname,|argv[0])|
|00002110| 3b 0a 09 73 74 72 63 70 | 79 28 74 79 70 65 63 61 |;..strcp|y(typeca|
|00002120| 6c 6c 2c 22 3f 3f 3f 3f | 3f 22 29 3b 0a 09 73 74 |ll,"????|?");..st|
|00002130| 72 63 70 79 28 77 68 6f | 63 61 6c 6c 2c 22 3f 3f |rcpy(who|call,"??|
|00002140| 3f 3f 3f 22 29 3b 0a 09 | 64 66 6c 67 3d 73 66 6c |???");..|dflg=sfl|
|00002150| 67 3d 65 72 72 66 6c 67 | 3d 6b 66 6c 67 3d 6c 66 |g=errflg|=kflg=lf|
|00002160| 6c 67 3d 30 3b 0a 09 63 | 66 6c 67 3d 31 3b 0a 0a |lg=0;..c|flg=1;..|
|00002170| 09 77 68 69 6c 65 20 28 | 28 63 3d 67 65 74 6f 70 |.while (|(c=getop|
|00002180| 74 28 61 72 67 63 2c 61 | 72 67 76 2c 22 64 63 6b |t(argc,a|rgv,"dck|
|00002190| 6c 73 22 29 29 21 3d 45 | 4f 46 29 0a 09 09 73 77 |ls"))!=E|OF)...sw|
|000021a0| 69 74 63 68 20 28 63 29 | 20 7b 0a 09 09 09 63 61 |itch (c)| {....ca|
|000021b0| 73 65 20 27 64 27 3a 09 | 64 66 6c 67 2b 2b 3b 0a |se 'd':.|dflg++;.|
|000021c0| 09 09 09 09 09 62 72 65 | 61 6b 3b 09 0a 09 09 09 |.....bre|ak;.....|
|000021d0| 63 61 73 65 20 27 63 27 | 3a 09 63 66 6c 67 2b 2b |case 'c'|:.cflg++|
|000021e0| 3b 0a 09 09 09 09 09 69 | 66 20 28 6b 66 6c 67 29 |;......i|f (kflg)|
|000021f0| 20 6b 66 6c 67 3d 30 3b | 0a 09 09 09 09 09 62 72 | kflg=0;|......br|
|00002200| 65 61 6b 3b 0a 09 09 09 | 63 61 73 65 20 27 6b 27 |eak;....|case 'k'|
|00002210| 3a 09 6b 66 6c 67 2b 2b | 3b 0a 09 09 09 09 09 69 |:.kflg++|;......i|
|00002220| 66 20 28 63 66 6c 67 29 | 20 63 66 6c 67 3d 30 3b |f (cflg)| cflg=0;|
|00002230| 0a 09 09 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 09 |......br|eak;....|
|00002240| 63 61 73 65 20 27 6c 27 | 3a 09 6c 66 6c 67 2b 2b |case 'l'|:.lflg++|
|00002250| 3b 0a 09 09 09 09 09 62 | 72 65 61 6b 3b 0a 09 09 |;......b|reak;...|
|00002260| 09 63 61 73 65 20 27 73 | 27 3a 09 73 66 6c 67 2b |.case 's|':.sflg+|
|00002270| 2b 3b 0a 09 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |+;......|break;..|
|00002280| 09 09 63 61 73 65 20 27 | 3f 27 3a 09 65 72 72 66 |..case '|?':.errf|
|00002290| 6c 67 2b 2b 3b 0a 09 09 | 7d 0a 0a 09 69 66 20 28 |lg++;...|}...if (|
|000022a0| 65 72 72 66 6c 67 20 7c | 7c 20 61 72 67 63 20 3c |errflg ||| argc <|
|000022b0| 20 32 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 2) {...|fprintf(|
|000022c0| 73 74 64 65 72 72 2c 22 | 75 73 61 67 65 3a 20 25 |stderr,"|usage: %|
|000022d0| 73 20 5b 2d 64 5d 20 5b | 2d 63 7c 2d 6b 7c 2d 6c |s [-d] [|-c|-k|-l|
|000022e0| 5d 20 73 79 73 74 65 6d | 20 7c 20 5b 2d 73 5d 5c |] system| | [-s]\|
|000022f0| 6e 22 2c 70 6e 61 6d 65 | 29 3b 0a 09 09 65 78 69 |n",pname|);...exi|
|00002300| 74 20 28 32 29 3b 0a 09 | 7d 0a 0a 09 63 61 6c 6c |t (2);..|}...call|
|00002310| 73 79 73 20 3d 20 61 72 | 67 76 5b 6f 70 74 69 6e |sys = ar|gv[optin|
|00002320| 64 5d 3b 0a 09 09 0a 09 | 69 66 20 28 28 63 66 3d |d];.....|if ((cf=|
|00002330| 66 6f 70 65 6e 28 43 41 | 4c 4c 46 49 4c 45 2c 22 |fopen(CA|LLFILE,"|
|00002340| 72 22 29 29 3d 3d 28 46 | 49 4c 45 20 2a 29 4e 55 |r"))==(F|ILE *)NU|
|00002350| 4c 4c 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 |LL) {...|fprintf(|
|00002360| 73 74 64 65 72 72 2c 22 | 25 73 3a 20 63 61 6e 6e |stderr,"|%s: cann|
|00002370| 6f 74 20 6f 70 65 6e 20 | 25 73 5c 6e 22 2c 70 6e |ot open |%s\n",pn|
|00002380| 61 6d 65 2c 43 41 4c 4c | 46 49 4c 45 29 3b 0a 09 |ame,CALL|FILE);..|
|00002390| 09 65 78 69 74 20 28 32 | 29 3b 0a 09 7d 0a 09 63 |.exit (2|);..}..c|
|000023a0| 61 6c 6c 68 65 61 64 20 | 3d 20 67 65 74 63 61 6c |allhead |= getcal|
|000023b0| 6c 28 63 66 29 3b 09 2f | 2a 20 6c 6f 61 64 20 74 |l(cf);./|* load t|
|000023c0| 68 65 20 63 61 6c 6c 20 | 73 74 72 75 63 74 75 72 |he call |structur|
|000023d0| 65 20 66 72 6f 6d 20 74 | 68 65 20 43 41 4c 4c 46 |e from t|he CALLF|
|000023e0| 49 4c 45 20 2a 2f 0a 0a | 09 69 66 20 28 73 66 6c |ILE */..|.if (sfl|
|000023f0| 67 29 20 7b 0a 09 09 73 | 74 72 63 70 79 28 74 79 |g) {...s|trcpy(ty|
|00002400| 70 65 63 61 6c 6c 2c 22 | 53 59 53 54 45 4d 20 4c |pecall,"|SYSTEM L|
|00002410| 49 53 54 22 29 3b 0a 09 | 09 66 6f 72 20 28 63 61 |IST");..|.for (ca|
|00002420| 6c 6c 63 75 72 3d 63 61 | 6c 6c 68 65 61 64 3b 20 |llcur=ca|llhead; |
|00002430| 63 61 6c 6c 63 75 72 21 | 3d 28 73 74 72 75 63 74 |callcur!|=(struct|
|00002440| 20 63 61 6c 6c 64 65 76 | 20 2a 29 4e 55 4c 4c 3b | calldev| *)NULL;|
|00002450| 20 63 61 6c 6c 63 75 72 | 3d 63 61 6c 6c 63 75 72 | callcur|=callcur|
|00002460| 2d 3e 6e 65 78 74 29 0a | 09 09 09 70 72 69 6e 74 |->next).|...print|
|00002470| 66 28 22 25 73 5c 6e 22 | 2c 63 61 6c 6c 63 75 72 |f("%s\n"|,callcur|
|00002480| 2d 3e 6e 61 6d 65 29 3b | 20 20 0a 09 09 65 78 69 |->name);| ...exi|
|00002490| 74 28 30 29 3b 0a 09 7d | 0a 0a 09 69 66 20 28 6c |t(0);..}|...if (l|
|000024a0| 66 6c 67 20 26 26 20 28 | 6f 70 74 69 6e 64 3d 3d |flg && (|optind==|
|000024b0| 61 72 67 63 29 29 20 7b | 0a 09 09 73 70 72 69 6e |argc)) {|...sprin|
|000024c0| 74 66 28 63 6d 64 2c 22 | 2f 62 69 6e 2f 63 61 74 |tf(cmd,"|/bin/cat|
|000024d0| 20 25 73 20 32 3e 2f 64 | 65 76 2f 6e 75 6c 6c 22 | %s 2>/d|ev/null"|
|000024e0| 2c 4c 4f 47 46 49 4c 45 | 29 3b 0a 09 09 73 79 73 |,LOGFILE|);...sys|
|000024f0| 74 65 6d 28 63 6d 64 29 | 3b 0a 09 09 65 78 69 74 |tem(cmd)|;...exit|
|00002500| 28 30 29 3b 0a 09 7d 0a | 0a 09 6d 61 74 63 68 3d |(0);..}.|..match=|
|00002510| 28 73 74 72 75 63 74 20 | 63 61 6c 6c 64 65 76 20 |(struct |calldev |
|00002520| 2a 29 4e 55 4c 4c 3b 0a | 09 66 6f 72 20 28 63 61 |*)NULL;.|.for (ca|
|00002530| 6c 6c 63 75 72 3d 63 61 | 6c 6c 68 65 61 64 3b 20 |llcur=ca|llhead; |
|00002540| 63 61 6c 6c 63 75 72 21 | 3d 28 73 74 72 75 63 74 |callcur!|=(struct|
|00002550| 20 63 61 6c 6c 64 65 76 | 20 2a 29 4e 55 4c 4c 3b | calldev| *)NULL;|
|00002560| 20 63 61 6c 6c 63 75 72 | 3d 63 61 6c 6c 63 75 72 | callcur|=callcur|
|00002570| 2d 3e 6e 65 78 74 29 0a | 09 09 69 66 20 28 73 74 |->next).|..if (st|
|00002580| 72 63 6d 70 28 63 61 6c | 6c 73 79 73 2c 63 61 6c |rcmp(cal|lsys,cal|
|00002590| 6c 63 75 72 2d 3e 6e 61 | 6d 65 29 3d 3d 30 29 20 |lcur->na|me)==0) |
|000025a0| 6d 61 74 63 68 3d 63 61 | 6c 6c 63 75 72 3b 0a 09 |match=ca|llcur;..|
|000025b0| 69 66 20 28 6d 61 74 63 | 68 3d 3d 28 73 74 72 75 |if (matc|h==(stru|
|000025c0| 63 74 20 63 61 6c 6c 64 | 65 76 20 2a 29 4e 55 4c |ct calld|ev *)NUL|
|000025d0| 4c 29 20 7b 0a 09 09 69 | 66 20 28 21 6c 66 6c 67 |L) {...i|f (!lflg|
|000025e0| 29 20 0a 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |) ....fp|rintf(st|
|000025f0| 64 65 72 72 2c 22 25 73 | 3a 20 25 73 20 69 73 20 |derr,"%s|: %s is |
|00002600| 6e 6f 74 20 61 20 76 61 | 6c 69 64 20 73 79 73 74 |not a va|lid syst|
|00002610| 65 6d 5c 6e 22 2c 70 6e | 61 6d 65 2c 63 61 6c 6c |em\n",pn|ame,call|
|00002620| 73 79 73 29 3b 0a 09 09 | 65 6c 73 65 0a 09 09 09 |sys);...|else....|
|00002630| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00002640| 25 73 3a 20 6d 75 73 74 | 20 73 70 65 63 69 66 79 |%s: must| specify|
|00002650| 20 73 79 73 74 65 6d 20 | 66 6f 72 20 6c 6f 67 20 | system |for log |
|00002660| 76 69 65 77 69 6e 67 5c | 6e 22 2c 70 6e 61 6d 65 |viewing\|n",pname|
|00002670| 29 3b 0a 09 09 65 78 69 | 74 20 28 32 29 3b 0a 09 |);...exi|t (2);..|
|00002680| 7d 0a 09 73 74 72 63 70 | 79 28 77 68 6f 63 61 6c |}..strcp|y(whocal|
|00002690| 6c 2c 6d 61 74 63 68 2d | 3e 6e 61 6d 65 29 3b 0a |l,match-|>name);.|
|000026a0| 09 69 66 20 28 21 6c 66 | 6c 67 29 20 7b 0a 09 09 |.if (!lf|lg) {...|
|000026b0| 65 78 69 74 20 28 6b 66 | 6c 67 3f 64 6f 6b 65 72 |exit (kf|lg?doker|
|000026c0| 6d 69 74 28 6d 61 74 63 | 68 29 3a 64 6f 63 75 28 |mit(matc|h):docu(|
|000026d0| 6d 61 74 63 68 29 29 3b | 0a 09 7d 20 65 6c 73 65 |match));|..} else|
|000026e0| 20 69 66 20 28 6c 66 6c | 67 29 0a 09 09 65 78 69 | if (lfl|g)...exi|
|000026f0| 74 20 28 73 68 6f 77 6c | 6f 67 28 6d 61 74 63 68 |t (showl|og(match|
|00002700| 29 29 3b 0a 09 65 78 69 | 74 28 30 29 3b 0a 7d 0a |));..exi|t(0);.}.|
|00002710| 0a 2f 2a 20 73 68 6f 77 | 6c 6f 67 28 29 20 2d 20 |./* show|log() - |
|00002720| 64 69 73 70 6c 61 79 20 | 74 68 65 20 6c 6f 67 20 |display |the log |
|00002730| 66 6f 72 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |for the |specifie|
|00002740| 64 20 6d 61 74 63 68 20 | 74 6f 20 43 41 4c 4c 46 |d match |to CALLF|
|00002750| 49 4c 45 20 2a 2f 0a 0a | 69 6e 74 20 73 68 6f 77 |ILE */..|int show|
|00002760| 6c 6f 67 28 77 68 65 72 | 65 29 0a 73 74 72 75 63 |log(wher|e).struc|
|00002770| 74 20 63 61 6c 6c 64 65 | 76 20 2a 77 68 65 72 65 |t callde|v *where|
|00002780| 3b 0a 7b 0a 09 63 68 61 | 72 20 63 6d 64 5b 31 30 |;.{..cha|r cmd[10|
|00002790| 30 5d 3b 0a 09 73 70 72 | 69 6e 74 66 28 63 6d 64 |0];..spr|intf(cmd|
|000027a0| 2c 22 2f 62 69 6e 2f 67 | 72 65 70 20 25 73 20 25 |,"/bin/g|rep %s %|
|000027b0| 73 20 32 3e 2f 64 65 76 | 2f 6e 75 6c 6c 22 2c 77 |s 2>/dev|/null",w|
|000027c0| 68 65 72 65 2d 3e 6e 61 | 6d 65 2c 4c 4f 47 46 49 |here->na|me,LOGFI|
|000027d0| 4c 45 29 3b 0a 09 73 79 | 73 74 65 6d 28 63 6d 64 |LE);..sy|stem(cmd|
|000027e0| 29 3b 0a 09 72 65 74 75 | 72 6e 20 28 30 29 3b 0a |);..retu|rn (0);.|
|000027f0| 7d 0a 0a 2f 2a 20 64 6f | 6b 65 72 6d 69 74 28 29 |}../* do|kermit()|
|00002800| 20 2d 20 69 6e 76 6f 6b | 65 20 4b 45 52 4d 49 54 | - invok|e KERMIT|
|00002810| 20 66 6f 72 20 74 68 65 | 20 73 70 65 63 69 66 69 | for the| specifi|
|00002820| 65 64 20 6d 61 74 63 68 | 20 74 6f 20 43 41 4c 4c |ed match| to CALL|
|00002830| 46 49 4c 45 20 2a 2f 0a | 0a 69 6e 74 20 64 6f 6b |FILE */.|.int dok|
|00002840| 65 72 6d 69 74 28 77 68 | 65 72 65 29 0a 73 74 72 |ermit(wh|ere).str|
|00002850| 75 63 74 20 63 61 6c 6c | 64 65 76 20 2a 77 68 65 |uct call|dev *whe|
|00002860| 72 65 3b 0a 7b 0a 09 63 | 68 61 72 20 6c 69 6e 65 |re;.{..c|har line|
|00002870| 5b 33 35 5d 2c 72 6d 6c | 63 6b 5b 37 30 5d 3b 0a |[35],rml|ck[70];.|
|00002880| 0a 09 73 74 72 63 70 79 | 28 74 79 70 65 63 61 6c |..strcpy|(typecal|
|00002890| 6c 2c 22 4b 45 52 4d 49 | 54 22 29 3b 0a 09 66 70 |l,"KERMI|T");..fp|
|000028a0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 22 43 61 |rintf(st|derr,"Ca|
|000028b0| 6c 6c 69 6e 67 20 77 69 | 74 68 20 6b 65 72 6d 69 |lling wi|th kermi|
|000028c0| 74 5c 6e 22 29 3b 0a 09 | 69 66 28 63 68 65 63 6b |t\n");..|if(check|
|000028d0| 6c 6f 63 6b 28 77 68 65 | 72 65 2d 3e 64 65 76 29 |lock(whe|re->dev)|
|000028e0| 3d 3d 30 29 20 7b 0a 09 | 09 73 70 72 69 6e 74 66 |==0) {..|.sprintf|
|000028f0| 28 72 6d 6c 63 6b 2c 22 | 72 6d 20 2d 66 20 22 29 |(rmlck,"|rm -f ")|
|00002900| 3b 0a 09 09 73 70 72 69 | 6e 74 66 28 6c 69 6e 65 |;...spri|ntf(line|
|00002910| 2c 4c 4f 43 4b 46 49 4c | 45 2c 77 68 65 72 65 2d |,LOCKFIL|E,where-|
|00002920| 3e 64 65 76 29 3b 0a 09 | 09 73 74 72 63 61 74 28 |>dev);..|.strcat(|
|00002930| 72 6d 6c 63 6b 2c 6c 69 | 6e 65 29 3b 0a 09 09 73 |rmlck,li|ne);...s|
|00002940| 74 72 63 61 74 28 72 6d | 6c 63 6b 2c 22 20 32 3e |trcat(rm|lck," 2>|
|00002950| 26 31 20 31 3e 2f 64 65 | 76 2f 6e 75 6c 6c 22 29 |&1 1>/de|v/null")|
|00002960| 3b 0a 09 09 69 66 20 28 | 64 66 6c 67 29 0a 09 09 |;...if (|dflg)...|
|00002970| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002980| 22 25 73 3a 20 72 65 6d | 6f 76 69 6e 67 20 69 6e |"%s: rem|oving in|
|00002990| 76 61 6c 69 64 20 6c 6f | 63 6b 20 66 69 6c 65 20 |valid lo|ck file |
|000029a0| 5b 25 73 5d 5c 6e 22 2c | 70 6e 61 6d 65 2c 6c 69 |[%s]\n",|pname,li|
|000029b0| 6e 65 29 3b 0a 09 09 73 | 79 73 74 65 6d 28 72 6d |ne);...s|ystem(rm|
|000029c0| 6c 63 6b 29 3b 0a 09 09 | 73 70 72 69 6e 74 66 28 |lck);...|sprintf(|
|000029d0| 6c 69 6e 65 2c 22 2f 64 | 65 76 2f 25 73 22 2c 77 |line,"/d|ev/%s",w|
|000029e0| 68 65 72 65 2d 3e 64 65 | 76 29 3b 0a 09 09 69 66 |here->de|v);...if|
|000029f0| 20 28 63 68 6f 77 6e 28 | 6c 69 6e 65 2c 67 65 74 | (chown(|line,get|
|00002a00| 75 69 64 28 29 2c 67 65 | 74 67 69 64 28 29 29 3c |uid(),ge|tgid())<|
|00002a10| 30 29 20 7b 0a 09 09 09 | 66 70 72 69 6e 74 66 28 |0) {....|fprintf(|
|00002a20| 73 74 64 65 72 72 2c 22 | 25 73 3a 20 63 61 6e 6e |stderr,"|%s: cann|
|00002a30| 6f 74 20 63 68 6f 77 6e | 20 25 73 20 66 6f 72 20 |ot chown| %s for |
|00002a40| 6b 65 72 6d 69 74 5c 6e | 22 2c 70 6e 61 6d 65 2c |kermit\n|",pname,|
|00002a50| 6c 69 6e 65 29 3b 0a 09 | 09 09 77 72 69 74 65 6c |line);..|..writel|
|00002a60| 6f 67 28 22 43 48 4f 57 | 4e 20 46 41 49 4c 45 44 |og("CHOW|N FAILED|
|00002a70| 22 29 3b 0a 09 09 09 65 | 78 69 74 28 32 29 3b 0a |");....e|xit(2);.|
|00002a80| 09 09 7d 0a 09 09 69 66 | 20 28 63 68 6d 6f 64 28 |..}...if| (chmod(|
|00002a90| 6c 69 6e 65 2c 4d 4f 44 | 4b 45 52 29 3c 30 29 20 |line,MOD|KER)<0) |
|00002aa0| 7b 0a 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |{....fpr|intf(std|
|00002ab0| 65 72 72 2c 22 25 73 3a | 20 63 61 6e 6e 6f 74 20 |err,"%s:| cannot |
|00002ac0| 63 68 6d 6f 64 20 25 73 | 20 66 6f 72 20 6b 65 72 |chmod %s| for ker|
|00002ad0| 6d 69 74 5c 6e 22 2c 70 | 6e 61 6d 65 2c 6c 69 6e |mit\n",p|name,lin|
|00002ae0| 65 29 3b 0a 09 09 09 77 | 72 69 74 65 6c 6f 67 28 |e);....w|ritelog(|
|00002af0| 22 43 48 4d 4f 44 20 46 | 41 49 4c 45 44 22 29 3b |"CHMOD F|AILED");|
|00002b00| 0a 09 09 09 65 78 69 74 | 28 32 29 3b 0a 09 09 7d |....exit|(2);...}|
|00002b10| 0a 09 09 69 6f 63 74 6c | 28 28 66 64 3d 6f 70 65 |...ioctl|((fd=ope|
|00002b20| 6e 28 6c 69 6e 65 2c 4f | 5f 52 44 4f 4e 4c 59 29 |n(line,O|_RDONLY)|
|00002b30| 29 2c 64 65 76 70 61 72 | 61 6d 2c 54 43 47 45 54 |),devpar|am,TCGET|
|00002b40| 41 29 3b 0a 09 09 64 65 | 76 70 61 72 61 6d 2d 3e |A);...de|vparam->|
|00002b50| 63 5f 63 66 6c 61 67 3d | 64 65 76 70 61 72 61 6d |c_cflag=|devparam|
|00002b60| 2d 3e 63 5f 63 66 6c 61 | 67 7c 7c 48 55 50 43 4c |->c_cfla|g||HUPCL|
|00002b70| 3b 0a 09 09 69 6f 63 74 | 6c 28 66 64 2c 64 65 76 |;...ioct|l(fd,dev|
|00002b80| 70 61 72 61 6d 2c 54 43 | 53 45 54 41 29 3b 0a 09 |param,TC|SETA);..|
|00002b90| 09 63 6c 6f 73 65 28 66 | 64 29 3b 0a 09 09 77 72 |.close(f|d);...wr|
|00002ba0| 69 74 65 6c 6f 67 28 22 | 43 4f 4e 4e 45 43 54 22 |itelog("|CONNECT"|
|00002bb0| 29 3b 0a 09 09 69 66 20 | 28 66 6f 72 6b 28 29 20 |);...if |(fork() |
|00002bc0| 3d 3d 20 30 29 20 7b 0a | 09 09 09 73 65 74 75 69 |== 0) {.|...setui|
|00002bd0| 64 28 67 65 74 75 69 64 | 28 29 29 3b 0a 09 09 09 |d(getuid|());....|
|00002be0| 69 66 20 28 64 66 6c 67 | 29 0a 09 09 09 09 65 78 |if (dflg|).....ex|
|00002bf0| 65 63 6c 70 28 4b 45 52 | 4d 49 54 2c 22 6b 65 72 |eclp(KER|MIT,"ker|
|00002c00| 6d 69 74 22 2c 22 2d 64 | 22 2c 22 2d 6c 22 2c 6c |mit","-d|","-l",l|
|00002c10| 69 6e 65 2c 22 2d 62 22 | 2c 77 68 65 72 65 2d 3e |ine,"-b"|,where->|
|00002c20| 62 61 75 64 2c 28 63 68 | 61 72 20 2a 29 30 29 3b |baud,(ch|ar *)0);|
|00002c30| 0a 09 09 09 65 6c 73 65 | 0a 09 09 09 09 65 78 65 |....else|.....exe|
|00002c40| 63 6c 70 28 4b 45 52 4d | 49 54 2c 22 6b 65 72 6d |clp(KERM|IT,"kerm|
|00002c50| 69 74 22 2c 22 2d 6c 22 | 2c 6c 69 6e 65 2c 22 2d |it","-l"|,line,"-|
|00002c60| 62 22 2c 77 68 65 72 65 | 2d 3e 62 61 75 64 2c 28 |b",where|->baud,(|
|00002c70| 63 68 61 72 20 2a 29 30 | 29 3b 0a 09 09 09 66 70 |char *)0|);....fp|
|00002c80| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 22 25 73 |rintf(st|derr,"%s|
|00002c90| 3a 20 63 61 6e 6e 6f 74 | 20 65 78 65 63 75 74 65 |: cannot| execute|
|00002ca0| 20 6b 65 72 6d 69 74 5c | 6e 22 2c 70 6e 61 6d 65 | kermit\|n",pname|
|00002cb0| 29 3b 0a 09 09 09 65 78 | 69 74 28 32 29 3b 0a 09 |);....ex|it(2);..|
|00002cc0| 09 7d 0a 09 09 77 61 69 | 74 28 28 69 6e 74 20 2a |.}...wai|t((int *|
|00002cd0| 29 30 29 3b 0a 09 09 77 | 72 69 74 65 6c 6f 67 28 |)0);...w|ritelog(|
|00002ce0| 22 44 49 53 43 4f 4e 4e | 45 43 54 22 29 3b 0a 09 |"DISCONN|ECT");..|
|00002cf0| 09 69 66 20 28 63 68 6f | 77 6e 28 6c 69 6e 65 2c |.if (cho|wn(line,|
|00002d00| 55 49 44 55 55 43 50 2c | 47 49 44 55 55 43 50 29 |UIDUUCP,|GIDUUCP)|
|00002d10| 3c 30 29 20 7b 0a 09 09 | 09 66 70 72 69 6e 74 66 |<0) {...|.fprintf|
|00002d20| 28 73 74 64 65 72 72 2c | 22 25 73 3a 20 63 61 6e |(stderr,|"%s: can|
|00002d30| 6e 6f 74 20 72 65 73 65 | 74 20 25 73 5c 6e 22 2c |not rese|t %s\n",|
|00002d40| 70 6e 61 6d 65 2c 6c 69 | 6e 65 29 3b 0a 09 09 09 |pname,li|ne);....|
|00002d50| 77 72 69 74 65 6c 6f 67 | 28 22 43 48 4f 57 4e 20 |writelog|("CHOWN |
|00002d60| 46 41 49 4c 45 44 22 29 | 3b 0a 09 09 09 65 78 69 |FAILED")|;....exi|
|00002d70| 74 28 32 29 3b 0a 09 09 | 7d 0a 09 09 69 66 20 28 |t(2);...|}...if (|
|00002d80| 63 68 6d 6f 64 28 6c 69 | 6e 65 2c 4d 4f 44 55 55 |chmod(li|ne,MODUU|
|00002d90| 43 50 29 3c 30 29 20 7b | 0a 09 09 09 66 70 72 69 |CP)<0) {|....fpri|
|00002da0| 6e 74 66 28 73 74 64 65 | 72 72 2c 22 25 73 3a 20 |ntf(stde|rr,"%s: |
|00002db0| 63 61 6e 6e 6f 74 20 72 | 65 73 65 74 20 25 73 5c |cannot r|eset %s\|
|00002dc0| 6e 22 2c 70 6e 61 6d 65 | 2c 6c 69 6e 65 29 3b 0a |n",pname|,line);.|
|00002dd0| 09 09 09 77 72 69 74 65 | 6c 6f 67 28 22 43 48 4d |...write|log("CHM|
|00002de0| 4f 44 20 46 41 49 4c 45 | 44 22 29 3b 0a 09 09 09 |OD FAILE|D");....|
|00002df0| 65 78 69 74 28 32 29 3b | 0a 09 09 7d 0a 09 09 72 |exit(2);|...}...r|
|00002e00| 65 74 75 72 6e 20 28 30 | 29 3b 0a 09 7d 20 65 6c |eturn (0|);..} el|
|00002e10| 73 65 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |se {...f|printf(s|
|00002e20| 74 64 65 72 72 2c 22 25 | 73 3a 20 6c 69 6e 65 20 |tderr,"%|s: line |
|00002e30| 62 75 73 79 20 2d 20 74 | 72 79 20 6c 61 74 65 72 |busy - t|ry later|
|00002e40| 5c 6e 22 2c 70 6e 61 6d | 65 29 3b 0a 09 09 72 65 |\n",pnam|e);...re|
|00002e50| 74 75 72 6e 20 28 31 29 | 3b 0a 09 7d 0a 7d 0a 0a |turn (1)|;..}.}..|
|00002e60| 2f 2a 20 64 6f 63 75 28 | 29 20 2d 20 69 6e 76 6f |/* docu(|) - invo|
|00002e70| 6b 65 20 43 55 20 66 6f | 72 20 74 68 65 20 73 70 |ke CU fo|r the sp|
|00002e80| 65 63 69 66 69 65 64 20 | 6d 61 74 63 68 20 74 6f |ecified |match to|
|00002e90| 20 43 41 4c 4c 46 49 4c | 45 20 2a 2f 0a 0a 69 6e | CALLFIL|E */..in|
|00002ea0| 74 20 64 6f 63 75 28 77 | 68 65 72 65 29 0a 73 74 |t docu(w|here).st|
|00002eb0| 72 75 63 74 20 63 61 6c | 6c 64 65 76 20 2a 77 68 |ruct cal|ldev *wh|
|00002ec0| 65 72 65 3b 0a 7b 0a 09 | 63 68 61 72 20 6c 69 6e |ere;.{..|char lin|
|00002ed0| 65 5b 33 35 5d 3b 0a 0a | 09 73 74 72 63 70 79 28 |e[35];..|.strcpy(|
|00002ee0| 74 79 70 65 63 61 6c 6c | 2c 22 43 55 22 29 3b 0a |typecall|,"CU");.|
|00002ef0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002f00| 22 43 61 6c 6c 69 6e 67 | 20 77 69 74 68 20 63 75 |"Calling| with cu|
|00002f10| 5c 6e 22 29 3b 0a 09 69 | 66 28 63 68 65 63 6b 6c |\n");..i|f(checkl|
|00002f20| 6f 63 6b 28 77 68 65 72 | 65 2d 3e 64 65 76 29 3d |ock(wher|e->dev)=|
|00002f30| 3d 30 29 20 7b 0a 09 09 | 73 70 72 69 6e 74 66 28 |=0) {...|sprintf(|
|00002f40| 6c 69 6e 65 2c 4c 4f 43 | 4b 46 49 4c 45 2c 77 68 |line,LOC|KFILE,wh|
|00002f50| 65 72 65 2d 3e 64 65 76 | 29 3b 0a 09 09 69 6f 63 |ere->dev|);...ioc|
|00002f60| 74 6c 28 28 66 64 3d 6f | 70 65 6e 28 6c 69 6e 65 |tl((fd=o|pen(line|
|00002f70| 2c 4f 5f 52 44 4f 4e 4c | 59 29 29 2c 64 65 76 70 |,O_RDONL|Y)),devp|
|00002f80| 61 72 61 6d 2c 54 43 47 | 45 54 41 29 3b 0a 09 09 |aram,TCG|ETA);...|
|00002f90| 64 65 76 70 61 72 61 6d | 2d 3e 63 5f 63 66 6c 61 |devparam|->c_cfla|
|00002fa0| 67 3d 64 65 76 70 61 72 | 61 6d 2d 3e 63 5f 63 66 |g=devpar|am->c_cf|
|00002fb0| 6c 61 67 7c 7c 48 55 50 | 43 4c 3b 0a 09 09 69 6f |lag||HUP|CL;...io|
|00002fc0| 63 74 6c 28 66 64 2c 64 | 65 76 70 61 72 61 6d 2c |ctl(fd,d|evparam,|
|00002fd0| 54 43 53 45 54 41 29 3b | 0a 09 09 63 6c 6f 73 65 |TCSETA);|...close|
|00002fe0| 28 66 64 29 3b 0a 09 09 | 77 72 69 74 65 6c 6f 67 |(fd);...|writelog|
|00002ff0| 28 22 43 4f 4e 4e 45 43 | 54 22 29 3b 0a 09 09 69 |("CONNEC|T");...i|
|00003000| 66 20 28 66 6f 72 6b 28 | 29 20 3d 3d 20 30 29 20 |f (fork(|) == 0) |
|00003010| 7b 0a 09 09 09 69 66 20 | 28 64 66 6c 67 29 0a 09 |{....if |(dflg)..|
|00003020| 09 09 09 65 78 65 63 6c | 70 28 43 55 2c 22 63 75 |...execl|p(CU,"cu|
|00003030| 22 2c 22 2d 64 22 2c 77 | 68 65 72 65 2d 3e 6e 61 |","-d",w|here->na|
|00003040| 6d 65 2c 28 63 68 61 72 | 20 2a 29 30 29 3b 20 2f |me,(char| *)0); /|
|00003050| 2a 20 72 75 6e 20 63 75 | 20 2a 2f 0a 09 09 09 65 |* run cu| */....e|
|00003060| 6c 73 65 0a 09 09 09 09 | 65 78 65 63 6c 70 28 43 |lse.....|execlp(C|
|00003070| 55 2c 22 63 75 22 2c 77 | 68 65 72 65 2d 3e 6e 61 |U,"cu",w|here->na|
|00003080| 6d 65 2c 28 63 68 61 72 | 20 2a 29 30 29 3b 20 2f |me,(char| *)0); /|
|00003090| 2a 20 72 75 6e 20 63 75 | 20 2a 2f 0a 09 09 09 66 |* run cu| */....f|
|000030a0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 22 25 |printf(s|tderr,"%|
|000030b0| 73 3a 20 63 61 6e 6e 6f | 74 20 65 78 65 63 75 74 |s: canno|t execut|
|000030c0| 65 20 63 75 5c 6e 22 2c | 70 6e 61 6d 65 29 3b 0a |e cu\n",|pname);.|
|000030d0| 09 09 09 65 78 69 74 28 | 32 29 3b 0a 09 09 7d 0a |...exit(|2);...}.|
|000030e0| 09 09 77 61 69 74 28 28 | 69 6e 74 20 2a 29 30 29 |..wait((|int *)0)|
|000030f0| 3b 20 2f 2a 20 77 61 69 | 74 20 66 6f 72 20 63 75 |; /* wai|t for cu|
|00003100| 20 74 6f 20 64 69 73 63 | 6f 6e 6e 65 63 74 20 2a | to disc|onnect *|
|00003110| 2f 0a 09 09 77 72 69 74 | 65 6c 6f 67 28 22 44 49 |/...writ|elog("DI|
|00003120| 53 43 4f 4e 4e 45 43 54 | 22 29 3b 0a 09 09 72 65 |SCONNECT|");...re|
|00003130| 74 75 72 6e 20 28 30 29 | 3b 0a 09 7d 20 65 6c 73 |turn (0)|;..} els|
|00003140| 65 20 7b 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |e {...fp|rintf(st|
|00003150| 64 65 72 72 2c 22 25 73 | 3a 20 6c 69 6e 65 20 62 |derr,"%s|: line b|
|00003160| 75 73 79 20 2d 20 74 72 | 79 20 6c 61 74 65 72 5c |usy - tr|y later\|
|00003170| 6e 22 2c 70 6e 61 6d 65 | 29 3b 0a 09 09 72 65 74 |n",pname|);...ret|
|00003180| 75 72 6e 20 28 31 29 3b | 0a 09 7d 0a 7d 0a 0a 2f |urn (1);|..}.}../|
|00003190| 2a 20 77 72 69 74 65 6c | 6f 67 28 29 20 2d 20 77 |* writel|og() - w|
|000031a0| 72 69 74 65 20 61 20 6c | 69 6e 65 20 69 6e 74 6f |rite a l|ine into|
|000031b0| 20 74 68 65 20 63 61 6c | 6c 20 6c 6f 67 66 69 6c | the cal|l logfil|
|000031c0| 65 20 2a 2f 0a 0a 69 6e | 74 20 77 72 69 74 65 6c |e */..in|t writel|
|000031d0| 6f 67 28 64 65 73 63 29 | 0a 63 68 61 72 20 2a 64 |og(desc)|.char *d|
|000031e0| 65 73 63 3b 0a 7b 0a 09 | 46 49 4c 45 20 2a 66 6f |esc;.{..|FILE *fo|
|000031f0| 70 65 6e 28 29 2c 20 2a | 6c 6f 67 3b 0a 09 6c 6f |pen(), *|log;..lo|
|00003200| 6e 67 20 63 6c 6f 63 6b | 3b 0a 09 0a 09 69 66 20 |ng clock|;....if |
|00003210| 28 28 6c 6f 67 3d 66 6f | 70 65 6e 28 4c 4f 47 46 |((log=fo|pen(LOGF|
|00003220| 49 4c 45 2c 22 61 22 29 | 29 3d 3d 28 46 49 4c 45 |ILE,"a")|)==(FILE|
|00003230| 20 2a 29 4e 55 4c 4c 29 | 20 7b 0a 09 09 66 70 72 | *)NULL)| {...fpr|
|00003240| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 25 73 3a |intf(std|err,"%s:|
|00003250| 20 63 6f 75 6c 64 20 6e | 6f 74 20 6f 70 65 6e 20 | could n|ot open |
|00003260| 6c 6f 67 20 66 69 6c 65 | 5c 6e 22 2c 70 6e 61 6d |log file|\n",pnam|
|00003270| 65 29 3b 0a 09 09 65 78 | 69 74 28 32 29 3b 0a 09 |e);...ex|it(2);..|
|00003280| 7d 0a 09 63 6c 6f 63 6b | 3d 74 69 6d 65 28 28 6c |}..clock|=time((l|
|00003290| 6f 6e 67 20 2a 29 30 29 | 3b 0a 09 69 66 20 28 64 |ong *)0)|;..if (d|
|000032a0| 66 6c 67 29 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |flg)...f|printf(s|
|000032b0| 74 64 65 72 72 2c 22 25 | 2d 31 30 73 20 25 2d 31 |tderr,"%|-10s %-1|
|000032c0| 30 73 20 25 2d 31 30 73 | 20 25 2d 32 30 73 20 25 |0s %-10s| %-20s %|
|000032d0| 73 22 2c 77 68 6f 63 61 | 6c 6c 2c 67 65 74 6c 6f |s",whoca|ll,getlo|
|000032e0| 67 69 6e 28 29 2c 74 79 | 70 65 63 61 6c 6c 2c 64 |gin(),ty|pecall,d|
|000032f0| 65 73 63 2c 61 73 63 74 | 69 6d 65 28 6c 6f 63 61 |esc,asct|ime(loca|
|00003300| 6c 74 69 6d 65 28 26 63 | 6c 6f 63 6b 29 29 29 3b |ltime(&c|lock)));|
|00003310| 0a 09 66 70 72 69 6e 74 | 66 28 6c 6f 67 2c 22 25 |..fprint|f(log,"%|
|00003320| 2d 31 30 73 20 25 2d 31 | 30 73 20 25 2d 31 30 73 |-10s %-1|0s %-10s|
|00003330| 20 25 2d 32 30 73 20 25 | 73 22 2c 77 68 6f 63 61 | %-20s %|s",whoca|
|00003340| 6c 6c 2c 67 65 74 6c 6f | 67 69 6e 28 29 2c 74 79 |ll,getlo|gin(),ty|
|00003350| 70 65 63 61 6c 6c 2c 64 | 65 73 63 2c 61 73 63 74 |pecall,d|esc,asct|
|00003360| 69 6d 65 28 6c 6f 63 61 | 6c 74 69 6d 65 28 26 63 |ime(loca|ltime(&c|
|00003370| 6c 6f 63 6b 29 29 29 3b | 0a 09 66 63 6c 6f 73 65 |lock)));|..fclose|
|00003380| 28 6c 6f 67 29 3b 0a 09 | 72 65 74 75 72 6e 20 28 |(log);..|return (|
|00003390| 30 29 3b 0a 7d 0a 0a 2f | 2a 20 63 68 65 63 6b 6c |0);.}../|* checkl|
|000033a0| 6f 63 6b 28 29 20 2d 20 | 63 68 65 63 6b 20 74 68 |ock() - |check th|
|000033b0| 61 74 20 74 68 65 20 64 | 65 76 69 63 65 20 77 68 |at the d|evice wh|
|000033c0| 69 63 68 20 77 65 20 77 | 61 6e 74 20 69 73 20 61 |ich we w|ant is a|
|000033d0| 76 61 69 6c 61 62 6c 65 | 20 2a 2f 0a 2f 2a 20 20 |vailable| */./* |
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 | | ret|
|000033f0| 75 72 6e 3a 20 30 3d 6f | 6b 20 31 3d 64 65 76 69 |urn: 0=o|k 1=devi|
|00003400| 63 65 20 69 6e 20 75 73 | 65 20 20 20 20 20 20 20 |ce in us|e |
|00003410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00003420| 0a 0a 69 6e 74 20 63 68 | 65 63 6b 6c 6f 63 6b 28 |..int ch|ecklock(|
|00003430| 64 65 76 29 0a 63 68 61 | 72 20 2a 64 65 76 3b 0a |dev).cha|r *dev;.|
|00003440| 7b 0a 09 63 68 61 72 20 | 6c 63 6b 66 69 6c 65 5b |{..char |lckfile[|
|00003450| 31 30 30 5d 3b 0a 09 69 | 6e 74 20 6c 6b 70 69 64 |100];..i|nt lkpid|
|00003460| 3b 0a 09 46 49 4c 45 20 | 2a 6c 66 3b 0a 0a 09 73 |;..FILE |*lf;...s|
|00003470| 70 72 69 6e 74 66 28 6c | 63 6b 66 69 6c 65 2c 4c |printf(l|ckfile,L|
|00003480| 4f 43 4b 46 49 4c 45 2c | 64 65 76 29 3b 0a 09 69 |OCKFILE,|dev);..i|
|00003490| 66 20 28 61 63 63 65 73 | 73 28 6c 63 6b 66 69 6c |f (acces|s(lckfil|
|000034a0| 65 2c 30 29 3d 3d 30 29 | 20 7b 20 2f 2a 20 63 68 |e,0)==0)| { /* ch|
|000034b0| 65 63 6b 20 69 66 20 6c | 6f 63 6b 66 69 6c 65 20 |eck if l|ockfile |
|000034c0| 65 78 69 73 74 73 20 2a | 2f 0a 23 69 66 64 65 66 |exists *|/.#ifdef|
|000034d0| 20 48 44 42 0a 09 09 69 | 66 20 28 28 6c 66 3d 66 | HDB...i|f ((lf=f|
|000034e0| 6f 70 65 6e 28 6c 63 6b | 66 69 6c 65 2c 22 72 22 |open(lck|file,"r"|
|000034f0| 29 29 21 3d 28 46 49 4c | 45 20 2a 29 4e 55 4c 4c |))!=(FIL|E *)NULL|
|00003500| 29 20 7b 0a 09 09 09 66 | 73 63 61 6e 66 28 6c 66 |) {....f|scanf(lf|
|00003510| 2c 22 25 64 22 2c 26 6c | 6b 70 69 64 29 3b 0a 09 |,"%d",&l|kpid);..|
|00003520| 09 09 69 66 20 28 6b 69 | 6c 6c 28 6c 6b 70 69 64 |..if (ki|ll(lkpid|
|00003530| 2c 30 29 3d 3d 28 2d 31 | 29 29 20 20 2f 2a 20 63 |,0)==(-1|)) /* c|
|00003540| 68 65 63 6b 20 69 66 20 | 6c 69 6e 65 20 61 76 61 |heck if |line ava|
|00003550| 69 6c 20 2a 2f 0a 09 09 | 09 09 72 65 74 75 72 6e |il */...|..return|
|00003560| 28 30 29 3b 20 2f 2a 20 | 70 69 64 20 69 73 20 69 |(0); /* |pid is i|
|00003570| 6e 76 61 6c 69 64 2c 20 | 6c 69 6e 65 20 61 76 61 |nvalid, |line ava|
|00003580| 69 6c 20 2a 2f 0a 09 09 | 09 65 6c 73 65 20 72 65 |il */...|.else re|
|00003590| 74 75 72 6e 20 28 31 29 | 3b 20 2f 2a 20 76 61 6c |turn (1)|; /* val|
|000035a0| 69 64 20 70 69 64 2c 20 | 6c 69 6e 65 20 62 75 73 |id pid, |line bus|
|000035b0| 79 20 2a 2f 0a 09 09 7d | 0a 23 65 6e 64 69 66 0a |y */...}|.#endif.|
|000035c0| 09 09 72 65 74 75 72 6e | 28 31 29 3b 09 0a 09 7d |..return|(1);...}|
|000035d0| 0a 09 72 65 74 75 72 6e | 28 30 29 3b 0a 7d 0a 0a |..return|(0);.}..|
|000035e0| 2f 2a 20 67 65 74 63 61 | 6c 6c 28 29 20 2d 20 72 |/* getca|ll() - r|
|000035f0| 65 61 64 20 61 6e 64 20 | 70 61 72 73 65 20 74 68 |ead and |parse th|
|00003600| 65 20 43 41 4c 4c 46 49 | 4c 45 20 61 6e 64 20 73 |e CALLFI|LE and s|
|00003610| 65 74 75 70 20 74 68 65 | 20 6c 69 6e 6b 65 64 20 |etup the| linked |
|00003620| 6c 69 73 74 20 2a 2f 0a | 2f 2a 20 20 20 20 20 20 |list */.|/* |
|00003630| 20 20 20 20 20 20 20 6f | 66 20 61 6c 6c 6f 77 65 | o|f allowe|
|00003640| 64 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 20 20 |d connec|tions |
|00003650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|00003670| 0a 73 74 72 75 63 74 20 | 63 61 6c 6c 64 65 76 20 |.struct |calldev |
|00003680| 2a 67 65 74 63 61 6c 6c | 28 63 66 29 0a 46 49 4c |*getcall|(cf).FIL|
|00003690| 45 20 2a 63 66 3b 0a 7b | 0a 09 73 74 72 75 63 74 |E *cf;.{|..struct|
|000036a0| 20 63 61 6c 6c 64 65 76 | 20 2a 68 65 61 64 2c 20 | calldev| *head, |
|000036b0| 2a 63 75 72 3b 0a 09 69 | 6e 74 20 63 3b 20 0a 09 |*cur;..i|nt c; ..|
|000036c0| 63 68 61 72 20 74 6e 61 | 6d 65 5b 32 35 5d 2c 20 |char tna|me[25], |
|000036d0| 74 64 65 76 5b 32 35 5d | 2c 20 74 62 61 75 64 5b |tdev[25]|, tbaud[|
|000036e0| 32 35 5d 2c 20 74 6d 64 | 6d 74 79 70 65 5b 32 35 |25], tmd|mtype[25|
|000036f0| 5d 2c 20 74 74 65 6c 6e | 6f 5b 32 35 5d 3b 0a 0a |], tteln|o[25];..|
|00003700| 09 63 75 72 3d 68 65 61 | 64 3d 28 73 74 72 75 63 |.cur=hea|d=(struc|
|00003710| 74 20 63 61 6c 6c 64 65 | 76 20 2a 29 4e 55 4c 4c |t callde|v *)NULL|
|00003720| 3b 0a 09 77 68 69 6c 65 | 20 28 28 63 3d 66 67 65 |;..while| ((c=fge|
|00003730| 74 63 28 63 66 29 29 21 | 3d 45 4f 46 29 0a 09 09 |tc(cf))!|=EOF)...|
|00003740| 69 66 20 28 63 3d 3d 27 | 23 27 20 7c 7c 20 63 3d |if (c=='|#' || c=|
|00003750| 3d 27 20 27 20 7c 7c 20 | 63 3d 3d 27 5c 74 27 20 |=' ' || |c=='\t' |
|00003760| 7c 7c 20 63 3d 3d 27 5c | 6e 27 29 0a 09 09 09 77 ||| c=='\|n')....w|
|00003770| 68 69 6c 65 20 28 28 63 | 3d 66 67 65 74 63 28 63 |hile ((c|=fgetc(c|
|00003780| 66 29 29 21 3d 27 5c 6e | 27 29 3b 0a 09 09 65 6c |f))!='\n|');...el|
|00003790| 73 65 20 7b 0a 09 09 09 | 75 6e 67 65 74 63 28 63 |se {....|ungetc(c|
|000037a0| 2c 63 66 29 3b 0a 09 09 | 09 66 73 63 61 6e 66 28 |,cf);...|.fscanf(|
|000037b0| 63 66 2c 22 25 73 20 25 | 73 20 25 73 20 25 73 20 |cf,"%s %|s %s %s |
|000037c0| 25 73 5c 6e 22 2c 74 6e | 61 6d 65 2c 74 64 65 76 |%s\n",tn|ame,tdev|
|000037d0| 2c 74 62 61 75 64 2c 74 | 6d 64 6d 74 79 70 65 2c |,tbaud,t|mdmtype,|
|000037e0| 74 74 65 6c 6e 6f 29 3b | 0a 09 09 09 69 66 20 28 |ttelno);|....if (|
|000037f0| 63 75 72 3d 3d 28 73 74 | 72 75 63 74 20 63 61 6c |cur==(st|ruct cal|
|00003800| 6c 64 65 76 20 2a 29 4e | 55 4c 4c 29 20 7b 0a 09 |ldev *)N|ULL) {..|
|00003810| 09 09 09 68 65 61 64 3d | 28 73 74 72 75 63 74 20 |...head=|(struct |
|00003820| 63 61 6c 6c 64 65 76 20 | 2a 29 6d 61 6c 6c 6f 63 |calldev |*)malloc|
|00003830| 28 73 69 7a 65 6f 66 28 | 73 74 72 75 63 74 20 63 |(sizeof(|struct c|
|00003840| 61 6c 6c 64 65 76 29 29 | 3b 0a 09 09 09 09 63 75 |alldev))|;.....cu|
|00003850| 72 3d 68 65 61 64 3b 0a | 09 09 09 7d 20 65 6c 73 |r=head;.|...} els|
|00003860| 65 20 7b 0a 09 09 09 09 | 63 75 72 2d 3e 6e 65 78 |e {.....|cur->nex|
|00003870| 74 3d 28 73 74 72 75 63 | 74 20 63 61 6c 6c 64 65 |t=(struc|t callde|
|00003880| 76 20 2a 29 6d 61 6c 6c | 6f 63 28 73 69 7a 65 6f |v *)mall|oc(sizeo|
|00003890| 66 28 73 74 72 75 63 74 | 20 63 61 6c 6c 64 65 76 |f(struct| calldev|
|000038a0| 29 29 3b 0a 09 09 09 09 | 63 75 72 3d 63 75 72 2d |));.....|cur=cur-|
|000038b0| 3e 6e 65 78 74 3b 0a 09 | 09 09 7d 0a 09 09 09 63 |>next;..|..}....c|
|000038c0| 75 72 2d 3e 6e 61 6d 65 | 3d 28 63 68 61 72 20 2a |ur->name|=(char *|
|000038d0| 29 6d 61 6c 6c 6f 63 28 | 73 74 72 6c 65 6e 28 74 |)malloc(|strlen(t|
|000038e0| 6e 61 6d 65 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |name)+1)|;....str|
|000038f0| 63 70 79 28 63 75 72 2d | 3e 6e 61 6d 65 2c 74 6e |cpy(cur-|>name,tn|
|00003900| 61 6d 65 29 3b 0a 09 09 | 09 63 75 72 2d 3e 64 65 |ame);...|.cur->de|
|00003910| 76 3d 28 63 68 61 72 20 | 2a 29 6d 61 6c 6c 6f 63 |v=(char |*)malloc|
|00003920| 28 73 74 72 6c 65 6e 28 | 74 64 65 76 29 2b 31 29 |(strlen(|tdev)+1)|
|00003930| 3b 0a 09 09 09 73 74 72 | 63 70 79 28 63 75 72 2d |;....str|cpy(cur-|
|00003940| 3e 64 65 76 2c 74 64 65 | 76 29 3b 0a 09 09 09 63 |>dev,tde|v);....c|
|00003950| 75 72 2d 3e 62 61 75 64 | 3d 28 63 68 61 72 20 2a |ur->baud|=(char *|
|00003960| 29 6d 61 6c 6c 6f 63 28 | 73 74 72 6c 65 6e 28 74 |)malloc(|strlen(t|
|00003970| 62 61 75 64 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |baud)+1)|;....str|
|00003980| 63 70 79 28 63 75 72 2d | 3e 62 61 75 64 2c 74 62 |cpy(cur-|>baud,tb|
|00003990| 61 75 64 29 3b 0a 09 09 | 09 63 75 72 2d 3e 6d 64 |aud);...|.cur->md|
|000039a0| 6d 74 79 70 65 3d 28 63 | 68 61 72 20 2a 29 6d 61 |mtype=(c|har *)ma|
|000039b0| 6c 6c 6f 63 28 73 74 72 | 6c 65 6e 28 74 6d 64 6d |lloc(str|len(tmdm|
|000039c0| 74 79 70 65 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |type)+1)|;....str|
|000039d0| 63 70 79 28 63 75 72 2d | 3e 6d 64 6d 74 79 70 65 |cpy(cur-|>mdmtype|
|000039e0| 2c 74 6d 64 6d 74 79 70 | 65 29 3b 0a 09 09 09 63 |,tmdmtyp|e);....c|
|000039f0| 75 72 2d 3e 74 65 6c 6e | 6f 3d 28 63 68 61 72 20 |ur->teln|o=(char |
|00003a00| 2a 29 6d 61 6c 6c 6f 63 | 28 73 74 72 6c 65 6e 28 |*)malloc|(strlen(|
|00003a10| 74 74 65 6c 6e 6f 29 2b | 31 29 3b 0a 09 09 09 73 |ttelno)+|1);....s|
|00003a20| 74 72 63 70 79 28 63 75 | 72 2d 3e 74 65 6c 6e 6f |trcpy(cu|r->telno|
|00003a30| 2c 74 74 65 6c 6e 6f 29 | 3b 0a 09 09 7d 0a 09 66 |,ttelno)|;...}..f|
|00003a40| 63 6c 6f 73 65 28 63 66 | 29 3b 0a 09 72 65 74 75 |close(cf|);..retu|
|00003a50| 72 6e 20 28 68 65 61 64 | 29 3b 0a 7d 0a 00 00 00 |rn (head|);.}....|
|00003a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 63 75 2d 73 68 65 6c 6c | 2f 63 61 6c 6c 2e 31 4c |cu-shell|/call.1L|
|00003c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003c80| 20 20 20 34 35 33 30 20 | 20 34 34 30 34 30 36 35 | 4530 | 4404065|
|00003c90| 31 31 30 20 20 20 36 37 | 32 32 00 20 00 00 00 00 |110 67|22. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 2e 54 48 20 43 41 4c 4c | 20 31 4c 20 6c 6f 63 61 |.TH CALL| 1L loca|
|00003e10| 6c 0a 2e 53 48 20 4e 41 | 4d 45 0a 63 61 6c 6c 20 |l..SH NA|ME.call |
|00003e20| 5c 2d 20 6d 61 6b 65 20 | 61 20 63 6f 6e 6e 65 63 |\- make |a connec|
|00003e30| 74 69 6f 6e 20 74 6f 20 | 61 6e 20 61 76 61 69 6c |tion to |an avail|
|00003e40| 61 62 6c 65 20 6d 61 63 | 68 69 6e 65 20 76 69 61 |able mac|hine via|
|00003e50| 20 63 75 20 6f 72 20 6b | 65 72 6d 69 74 0a 2e 53 | cu or k|ermit..S|
|00003e60| 48 20 53 59 4e 4f 50 53 | 49 53 0a 2e 42 20 63 61 |H SYNOPS|IS..B ca|
|00003e70| 6c 6c 20 22 5b 20 2d 64 | 20 5d 22 20 22 5b 20 2d |ll "[ -d| ]" "[ -|
|00003e80| 63 6b 20 5d 22 20 22 73 | 79 73 74 65 6d 22 0a 2e |ck ]" "s|ystem"..|
|00003e90| 50 0a 2e 42 20 63 61 6c | 6c 20 22 5b 20 2d 64 20 |P..B cal|l "[ -d |
|00003ea0| 5d 22 20 2d 6c 20 22 5b | 20 73 79 73 74 65 6d 20 |]" -l "[| system |
|00003eb0| 5d 22 0a 2e 50 0a 2e 42 | 20 63 61 6c 6c 20 22 5b |]"..P..B| call "[|
|00003ec0| 20 2d 64 20 5d 22 20 22 | 2d 73 22 0a 2e 53 48 20 | -d ]" "|-s"..SH |
|00003ed0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 2e 49 20 43 |DESCRIPT|ION..I C|
|00003ee0| 61 6c 6c 0a 70 72 6f 76 | 69 64 65 73 20 61 20 6d |all.prov|ides a m|
|00003ef0| 65 61 6e 73 20 74 6f 20 | 63 6f 6e 6e 65 63 74 20 |eans to |connect |
|00003f00| 74 6f 20 61 6e 6f 74 68 | 65 72 20 55 4e 49 58 20 |to anoth|er UNIX |
|00003f10| 73 79 73 74 65 6d 2c 20 | 61 20 74 65 72 6d 69 6e |system, |a termin|
|00003f20| 61 6c 2c 20 6f 72 20 70 | 6f 73 73 69 62 6c 79 0a |al, or p|ossibly.|
|00003f30| 61 20 6e 6f 6e 2d 55 4e | 49 58 20 73 79 73 74 65 |a non-UN|IX syste|
|00003f40| 6d 2e 20 20 49 74 20 72 | 65 73 74 72 69 63 74 73 |m. It r|estricts|
|00003f50| 20 61 63 63 65 73 73 20 | 74 6f 20 74 68 65 20 61 | access |to the a|
|00003f60| 63 74 75 61 6c 20 63 61 | 6c 6c 69 6e 67 20 70 72 |ctual ca|lling pr|
|00003f70| 6f 67 72 61 6d 73 2c 0a | 2e 49 20 63 75 0a 61 6e |ograms,.|.I cu.an|
|00003f80| 64 0a 2e 49 52 20 6b 65 | 72 6d 69 74 20 2c 0a 69 |d..IR ke|rmit ,.i|
|00003f90| 6e 20 61 6e 20 65 66 66 | 6f 72 74 20 74 6f 20 6c |n an eff|ort to l|
|00003fa0| 69 6d 69 74 20 61 63 63 | 65 73 73 20 74 6f 20 65 |imit acc|ess to e|
|00003fb0| 78 70 65 6e 73 69 76 65 | 20 72 65 73 6f 75 72 63 |xpensive| resourc|
|00003fc0| 65 73 20 28 69 65 2e 20 | 70 68 6f 6e 65 20 6c 69 |es (ie. |phone li|
|00003fd0| 6e 65 73 29 2e 0a 2e 49 | 20 43 61 6c 6c 0a 6d 61 |nes)...I| Call.ma|
|00003fe0| 69 6e 74 61 69 6e 73 20 | 61 20 6c 6f 67 20 6f 66 |intains |a log of|
|00003ff0| 20 61 6c 6c 20 61 63 74 | 69 76 69 74 79 20 6f 6e | all act|ivity on|
|00004000| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 6c | the ava|ilable l|
|00004010| 69 6e 65 73 2e 20 20 49 | 74 20 77 69 6c 6c 20 6f |ines. I|t will o|
|00004020| 6e 6c 79 20 61 6c 6c 6f | 77 0a 61 63 63 65 73 73 |nly allo|w.access|
|00004030| 20 74 6f 0a 2e 49 20 63 | 75 0a 77 69 74 68 20 61 | to..I c|u.with a|
|00004040| 20 76 61 6c 69 64 20 73 | 79 73 74 65 6d 20 6e 61 | valid s|ystem na|
|00004050| 6d 65 2c 20 74 68 75 73 | 20 70 72 65 76 65 6e 74 |me, thus| prevent|
|00004060| 69 6e 67 20 64 69 72 65 | 63 74 20 64 69 61 6c 69 |ing dire|ct diali|
|00004070| 6e 67 2e 0a 2e 50 0a 2e | 49 20 43 61 6c 6c 0a 61 |ng...P..|I Call.a|
|00004080| 6c 6c 6f 77 73 20 66 6f | 72 20 74 68 65 20 70 65 |llows fo|r the pe|
|00004090| 61 63 65 66 75 6c 20 63 | 6f 2d 65 78 69 73 74 65 |aceful c|o-existe|
|000040a0| 6e 63 65 20 6f 66 0a 2e | 49 20 6b 65 72 6d 69 74 |nce of..|I kermit|
|000040b0| 0a 77 69 74 68 20 0a 2e | 49 20 63 75 0a 61 6e 64 |.with ..|I cu.and|
|000040c0| 0a 2e 49 52 20 75 75 63 | 70 20 2c 0a 62 65 63 61 |..IR uuc|p ,.beca|
|000040d0| 75 73 65 20 69 74 20 77 | 69 6c 6c 20 6e 6f 74 20 |use it w|ill not |
|000040e0| 65 78 65 63 75 74 65 0a | 2e 49 20 6b 65 72 6d 69 |execute.|.I kermi|
|000040f0| 74 0a 75 6e 6c 65 73 73 | 20 74 68 65 20 73 70 65 |t.unless| the spe|
|00004100| 63 69 66 69 65 64 20 6c | 69 6e 65 20 69 73 20 63 |cified l|ine is c|
|00004110| 75 72 72 65 6e 74 6c 79 | 20 61 76 61 69 6c 61 62 |urrently| availab|
|00004120| 6c 65 2e 20 20 49 74 20 | 72 65 73 70 65 63 74 73 |le. It |respects|
|00004130| 20 48 6f 6e 65 79 44 41 | 4e 42 45 52 0a 6c 6f 63 | HoneyDA|NBER.loc|
|00004140| 6b 66 69 6c 65 73 20 77 | 69 74 68 20 74 68 65 20 |kfiles w|ith the |
|00004150| 70 69 64 20 6f 66 20 74 | 68 65 20 61 63 74 69 76 |pid of t|he activ|
|00004160| 65 20 70 72 6f 63 65 73 | 73 2c 20 61 6e 64 20 74 |e proces|s, and t|
|00004170| 68 65 20 6f 6c 64 65 72 | 20 6c 6f 63 6b 66 69 6c |he older| lockfil|
|00004180| 65 73 20 77 68 69 63 68 | 0a 73 69 6d 70 6c 79 20 |es which|.simply |
|00004190| 69 6e 64 69 63 61 74 65 | 20 74 68 61 74 20 74 68 |indicate| that th|
|000041a0| 65 20 6c 69 6e 65 20 69 | 73 20 75 73 65 64 2e 0a |e line i|s used..|
|000041b0| 2e 54 50 0a 2e 42 20 63 | 61 6c 6c 0a 61 63 63 65 |.TP..B c|all.acce|
|000041c0| 70 74 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |pts the |followin|
|000041d0| 67 20 6f 70 74 69 6f 6e | 73 20 61 6e 64 20 61 72 |g option|s and ar|
|000041e0| 67 75 6d 65 6e 74 73 2e | 0a 2e 54 50 0a 2d 63 0a |guments.|..TP.-c.|
|000041f0| 49 6e 76 6f 6b 65 73 0a | 2e 42 20 63 61 6c 6c 0a |Invokes.|.B call.|
|00004200| 77 69 74 68 0a 2e 49 20 | 63 75 0a 61 73 20 74 68 |with..I |cu.as th|
|00004210| 65 20 63 61 6c 6c 69 6e | 67 20 70 72 6f 67 72 61 |e callin|g progra|
|00004220| 6d 2e 20 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |m. This| is the |
|00004230| 64 65 66 61 75 6c 74 20 | 63 61 6c 6c 69 6e 67 20 |default |calling |
|00004240| 70 72 6f 67 72 61 6d 2c | 20 69 66 20 6e 65 69 74 |program,| if neit|
|00004250| 68 65 72 0a 2e 42 20 22 | 2d 63 22 0a 6f 72 0a 2e |her..B "|-c".or..|
|00004260| 42 20 22 2d 6b 22 0a 69 | 73 20 70 72 65 73 65 6e |B "-k".i|s presen|
|00004270| 74 2e 0a 2e 54 50 0a 2d | 6b 0a 49 6e 76 6f 6b 65 |t...TP.-|k.Invoke|
|00004280| 73 0a 2e 42 20 63 61 6c | 6c 0a 77 69 74 68 20 0a |s..B cal|l.with .|
|00004290| 2e 49 20 6b 65 72 6d 69 | 74 0a 61 73 20 74 68 65 |.I kermi|t.as the|
|000042a0| 20 63 61 6c 6c 69 6e 67 | 20 70 72 6f 67 72 61 6d | calling| program|
|000042b0| 2e 20 20 49 74 20 77 69 | 6c 6c 20 73 75 70 70 6c |. It wi|ll suppl|
|000042c0| 79 0a 2e 49 20 6b 65 72 | 6d 69 74 0a 77 69 74 68 |y..I ker|mit.with|
|000042d0| 20 74 68 65 20 64 65 76 | 69 63 65 20 6e 61 6d 65 | the dev|ice name|
|000042e0| 20 61 6e 64 20 62 61 75 | 64 20 72 61 74 65 2e 20 | and bau|d rate. |
|000042f0| 20 43 61 6c 6c 69 6e 67 | 20 77 69 74 68 0a 2e 49 | Calling| with..I|
|00004300| 20 6b 65 72 6d 69 74 0a | 69 73 20 6e 6f 74 20 70 | kermit.|is not p|
|00004310| 72 65 6d 69 74 74 65 64 | 20 6f 76 65 72 20 61 20 |remitted| over a |
|00004320| 64 69 61 6c 65 64 20 6c | 69 6e 65 2e 20 20 4f 6e |dialed l|ine. On|
|00004330| 6c 79 20 22 64 69 72 65 | 63 74 22 20 63 6f 6e 6e |ly "dire|ct" conn|
|00004340| 65 63 74 69 6f 6e 73 20 | 61 72 65 0a 73 75 70 70 |ections |are.supp|
|00004350| 6f 72 74 65 64 20 77 69 | 74 68 20 74 68 69 73 20 |orted wi|th this |
|00004360| 6f 70 74 69 6f 6e 2e 0a | 2e 54 50 0a 73 79 73 74 |option..|.TP.syst|
|00004370| 65 6d 0a 41 20 76 61 6c | 69 64 20 73 79 73 74 65 |em.A val|id syste|
|00004380| 6d 20 6e 61 6d 65 20 6f | 62 74 61 69 6e 65 64 20 |m name o|btained |
|00004390| 66 72 6f 6d 20 74 68 65 | 0a 2e 42 20 2f 75 73 72 |from the|..B /usr|
|000043a0| 2f 6c 69 62 2f 75 75 63 | 70 2f 43 61 6c 6c 2d 73 |/lib/uuc|p/Call-s|
|000043b0| 79 73 0a 66 69 6c 65 2e | 20 20 54 6f 20 6c 69 73 |ys.file.| To lis|
|000043c0| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |t the cu|rrently |
|000043d0| 61 76 61 69 6c 61 62 6c | 65 20 73 79 73 74 65 6d |availabl|e system|
|000043e0| 20 6e 61 6d 65 73 2c 20 | 73 65 65 20 74 68 65 0a | names, |see the.|
|000043f0| 2e 42 20 2d 73 0a 6f 70 | 74 69 6f 6e 20 62 65 6c |.B -s.op|tion bel|
|00004400| 6f 77 2e 0a 2e 54 50 0a | 2d 64 0a 54 75 72 6e 20 |ow...TP.|-d.Turn |
|00004410| 6f 6e 20 74 68 65 20 64 | 65 62 75 67 67 69 6e 67 |on the d|ebugging|
|00004420| 20 6d 6f 64 65 20 66 6f | 72 20 74 68 65 20 63 61 | mode fo|r the ca|
|00004430| 6c 6c 69 6e 67 20 70 72 | 6f 67 72 61 6d 2e 20 20 |lling pr|ogram. |
|00004440| 54 68 69 73 20 69 73 20 | 75 73 65 66 75 6c 0a 77 |This is |useful.w|
|00004450| 68 65 6e 20 63 6f 6e 6e | 65 63 74 69 6e 67 20 6f |hen conn|ecting o|
|00004460| 76 65 72 20 61 6e 20 75 | 6e 72 65 6c 69 61 62 6c |ver an u|nreliabl|
|00004470| 65 20 6c 69 6e 65 20 73 | 69 6e 63 65 20 74 68 65 |e line s|ince the|
|00004480| 20 70 72 6f 67 72 65 73 | 73 69 6f 6e 20 6f 66 20 | progres|sion of |
|00004490| 74 68 65 0a 63 6f 6e 6e | 65 63 74 69 6f 6e 20 6d |the.conn|ection m|
|000044a0| 61 79 20 62 65 20 6d 6f | 6e 69 74 6f 72 65 64 2e |ay be mo|nitored.|
|000044b0| 20 20 0a 2e 49 20 43 75 | 0a 77 69 6c 6c 20 64 69 | ..I Cu|.will di|
|000044c0| 73 70 6c 61 79 20 74 68 | 65 20 64 65 62 75 67 67 |splay th|e debugg|
|000044d0| 69 6e 67 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ing info|rmation |
|000044e0| 6f 6e 20 74 68 65 20 73 | 63 72 65 65 6e 20 77 68 |on the s|creen wh|
|000044f0| 65 72 65 61 73 0a 2e 49 | 20 6b 65 72 6d 69 74 0a |ereas..I| kermit.|
|00004500| 77 69 6c 6c 20 73 65 6e | 64 20 61 6c 6c 20 64 65 |will sen|d all de|
|00004510| 62 75 67 67 69 6e 67 20 | 69 6e 66 6f 72 6d 61 74 |bugging |informat|
|00004520| 69 6f 6e 20 74 6f 20 74 | 68 65 20 66 69 6c 65 0a |ion to t|he file.|
|00004530| 2e 42 20 64 65 62 75 67 | 2e 6c 6f 67 0a 69 6e 20 |.B debug|.log.in |
|00004540| 74 68 65 20 63 75 72 72 | 65 6e 74 20 64 69 72 65 |the curr|ent dire|
|00004550| 63 74 6f 72 79 2e 0a 2e | 54 50 0a 2d 73 0a 44 69 |ctory...|TP.-s.Di|
|00004560| 73 70 6c 61 79 20 61 20 | 6c 69 73 74 20 6f 66 20 |splay a |list of |
|00004570| 61 76 61 69 6c 61 62 6c | 65 20 73 79 73 74 65 6d |availabl|e system|
|00004580| 73 2e 20 0a 2e 54 50 0a | 2d 6c 0a 4c 69 73 74 20 |s. ..TP.|-l.List |
|00004590| 74 68 65 20 6c 6f 67 20 | 66 69 6c 65 20 66 6f 72 |the log |file for|
|000045a0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 73 | the spe|cified s|
|000045b0| 79 73 74 65 6d 20 6e 61 | 6d 65 2e 20 20 49 66 20 |ystem na|me. If |
|000045c0| 6e 6f 20 73 79 73 74 65 | 6d 20 69 73 0a 73 70 65 |no syste|m is.spe|
|000045d0| 63 69 66 69 65 64 2c 20 | 74 68 65 20 65 6e 74 69 |cified, |the enti|
|000045e0| 72 65 20 6c 6f 67 20 69 | 73 20 64 69 73 70 6c 61 |re log i|s displa|
|000045f0| 79 65 64 2c 20 73 6f 72 | 74 65 64 20 62 79 20 6d |yed, sor|ted by m|
|00004600| 61 63 68 69 6e 65 20 61 | 6e 64 20 74 68 65 6e 0a |achine a|nd then.|
|00004610| 62 79 20 74 69 6d 65 2e | 0a 2e 53 48 20 46 49 4c |by time.|..SH FIL|
|00004620| 45 53 0a 2e 50 0a 2f 75 | 73 72 2f 6c 69 62 2f 75 |ES..P./u|sr/lib/u|
|00004630| 75 63 70 2f 43 61 6c 6c | 2d 73 79 73 0a 2e 50 0a |ucp/Call|-sys..P.|
|00004640| 2f 75 73 72 2f 6c 69 62 | 2f 75 75 63 70 2f 43 61 |/usr/lib|/uucp/Ca|
|00004650| 6c 6c 2d 6c 6f 67 0a 2f | 75 73 72 2f 73 70 6f 6f |ll-log./|usr/spoo|
|00004660| 6c 2f 75 75 63 70 2f 4c | 43 4b 2e 2e 28 74 74 79 |l/uucp/L|CK..(tty|
|00004670| 2d 64 65 76 69 63 65 29 | 0a 2e 53 48 20 53 45 45 |-device)|..SH SEE|
|00004680| 20 41 4c 53 4f 0a 2e 50 | 0a 63 75 28 31 43 29 2c | ALSO..P|.cu(1C),|
|00004690| 20 75 75 63 70 28 31 43 | 29 2c 20 6b 65 72 6d 69 | uucp(1C|), kermi|
|000046a0| 74 28 31 4c 29 0a 2e 53 | 48 20 44 49 41 47 4e 4f |t(1L)..S|H DIAGNO|
|000046b0| 53 54 49 43 53 0a 2e 50 | 0a 45 78 69 74 20 63 6f |STICS..P|.Exit co|
|000046c0| 64 65 20 69 73 20 7a 65 | 72 6f 20 66 6f 72 20 6e |de is ze|ro for n|
|000046d0| 6f 72 6d 61 6c 20 65 78 | 69 74 2c 20 6e 6f 6e 2d |ormal ex|it, non-|
|000046e0| 7a 65 72 6f 20 28 76 61 | 72 69 6f 75 73 20 76 61 |zero (va|rious va|
|000046f0| 6c 75 65 73 29 20 6f 74 | 68 65 72 77 69 73 65 2e |lues) ot|herwise.|
|00004700| 0a 2e 53 48 20 42 55 47 | 53 0a 41 73 20 79 65 74 |..SH BUG|S.As yet|
|00004710| 2c 20 6e 6f 6e 65 20 68 | 61 76 65 20 62 65 65 6e |, none h|ave been|
|00004720| 20 72 65 70 6f 72 74 65 | 64 2e 0a 2e 53 48 20 41 | reporte|d...SH A|
|00004730| 55 54 48 4f 52 53 0a 2e | 50 0a 42 65 6e 6e 65 74 |UTHORS..|P.Bennet|
|00004740| 74 20 53 6d 69 74 68 0a | 2e 62 72 0a 4a 69 6d 20 |t Smith.|.br.Jim |
|00004750| 47 61 72 6c 69 63 6b 0a | 69 6e 74 20 73 68 6f 77 |Garlick.|int show|
|00004760| 6c 6f 67 28 77 68 65 72 | 65 29 0a 73 74 72 75 63 |log(wher|e).struc|
|00004770| 74 20 63 61 6c 6c 64 65 | 76 20 2a 77 68 65 72 65 |t callde|v *where|
|00004780| 3b 0a 7b 0a 09 63 68 61 | 72 20 63 6d 64 5b 31 30 |;.{..cha|r cmd[10|
|00004790| 30 5d 3b 0a 09 73 70 72 | 69 6e 74 66 28 63 6d 64 |0];..spr|intf(cmd|
|000047a0| 2c 22 2f 62 69 6e 2f 67 | 72 65 70 20 25 73 20 25 |,"/bin/g|rep %s %|
|000047b0| 73 20 32 3e 2f 64 65 76 | 2f 6e 75 6c 6c 22 2c 77 |s 2>/dev|/null",w|
|000047c0| 68 65 72 65 2d 3e 6e 61 | 6d 65 2c 4c 4f 47 46 49 |here->na|me,LOGFI|
|000047d0| 4c 45 29 3b 0a 09 73 79 | 73 74 65 6d 28 63 6d 64 |LE);..sy|stem(cmd|
|000047e0| 29 3b 0a 09 72 65 74 75 | 72 6e 20 28 30 29 3b 0a |);..retu|rn (0);.|
|000047f0| 7d 0a 0a 2f 2a 20 64 6f | 6b 65 72 6d 69 74 28 29 |}../* do|kermit()|
|00004800| 63 75 2d 73 68 65 6c 6c | 2f 43 61 6c 6c 2d 73 79 |cu-shell|/Call-sy|
|00004810| 73 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.......|........|
|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 32 |.... 6|44 . 2|
|00004870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004880| 20 20 20 31 31 30 33 20 | 20 34 34 30 34 30 36 35 | 1103 | 4404065|
|00004890| 31 31 31 20 20 20 37 32 | 31 35 00 20 00 00 00 00 |111 72|15. ....|
|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| 23 20 43 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 63 6f |# Connec|tions co|
|00004a10| 6e 74 61 69 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |ntains a| list of|
|00004a20| 20 61 6c 6c 20 76 61 6c | 69 64 20 63 6f 6e 6e 65 | all val|id conne|
|00004a30| 63 74 69 6f 6e 73 20 66 | 6f 72 20 74 68 65 20 63 |ctions f|or the c|
|00004a40| 61 6c 6c 0a 23 20 70 72 | 6f 67 72 61 6d 2e 0a 23 |all.# pr|ogram..#|
|00004a50| 0a 23 20 4c 69 6e 65 20 | 73 79 6e 74 61 78 3a 0a |.# Line |syntax:.|
|00004a60| 23 20 20 20 20 73 79 73 | 74 65 6d 20 5c 74 20 64 |# sys|tem \t d|
|00004a70| 65 76 69 63 65 20 5c 74 | 20 62 61 75 64 20 5c 74 |evice \t| baud \t|
|00004a80| 20 6d 6f 64 65 6d 74 79 | 70 65 20 5c 74 20 74 65 | modemty|pe \t te|
|00004a90| 6c 6e 6f 0a 23 0a 23 20 | 49 66 20 61 6e 20 61 72 |lno.#.# |If an ar|
|00004aa0| 67 75 6d 65 6e 74 20 64 | 6f 65 73 20 6e 6f 74 20 |gument d|oes not |
|00004ab0| 61 70 70 6c 79 2c 20 75 | 73 65 20 61 20 64 61 73 |apply, u|se a das|
|00004ac0| 68 20 27 2d 27 20 61 73 | 20 61 20 70 6c 61 63 65 |h '-' as| a place|
|00004ad0| 20 68 6f 6c 64 65 72 20 | 66 6f 72 20 69 74 2e 0a | holder |for it..|
|00004ae0| 23 20 54 68 65 72 65 20 | 6d 75 73 74 20 62 65 20 |# There |must be |
|00004af0| 35 20 61 72 67 75 6d 65 | 6e 74 73 20 70 65 72 20 |5 argume|nts per |
|00004b00| 6c 69 6e 65 2c 20 61 6e | 64 20 63 6f 6d 6d 65 6e |line, an|d commen|
|00004b10| 74 73 20 61 72 65 20 4e | 4f 54 20 61 6c 6c 6f 77 |ts are N|OT allow|
|00004b20| 65 64 20 74 6f 0a 23 20 | 66 6f 6c 6c 6f 77 20 74 |ed to.# |follow t|
|00004b30| 68 65 20 61 72 67 75 6d | 65 6e 74 73 2e 20 20 43 |he argum|ents. C|
|00004b40| 6f 6d 6d 65 6e 74 73 20 | 61 72 65 20 4f 4b 20 6f |omments |are OK o|
|00004b50| 6e 20 6f 74 68 65 72 20 | 6c 69 6e 65 73 2c 20 61 |n other |lines, a|
|00004b60| 6e 64 20 73 74 61 72 74 | 20 77 69 74 68 0a 23 20 |nd start| with.# |
|00004b70| 61 20 68 61 74 63 68 20 | 27 23 27 20 63 68 61 72 |a hatch |'#' char|
|00004b80| 61 63 74 65 72 2e 0a 23 | 0a 23 20 54 68 65 20 73 |acter..#|.# The s|
|00004b90| 79 73 74 65 6d 20 61 6e | 64 20 64 65 76 69 63 65 |ystem an|d device|
|00004ba0| 20 66 69 65 6c 64 73 20 | 61 72 65 20 61 6c 77 61 | fields |are alwa|
|00004bb0| 79 73 20 6e 65 63 65 73 | 73 61 72 79 2c 20 62 75 |ys neces|sary, bu|
|00004bc0| 74 20 74 68 65 20 62 61 | 75 64 2c 20 6d 6f 64 65 |t the ba|ud, mode|
|00004bd0| 6d 74 79 70 65 2c 0a 23 | 20 61 6e 64 20 74 65 6c |mtype,.#| and tel|
|00004be0| 6e 6f 20 66 69 65 6c 64 | 73 20 61 72 65 20 6f 6e |no field|s are on|
|00004bf0| 6c 79 20 75 73 65 64 20 | 62 79 20 6b 65 72 6d 69 |ly used |by kermi|
|00004c00| 74 2e 0a 23 0a 23 20 65 | 78 61 6d 70 6c 65 73 20 |t..#.# e|xamples |
|00004c10| 2d 0a 23 09 62 75 67 73 | 20 74 74 79 31 30 36 20 |-.#.bugs| tty106 |
|00004c20| 39 36 30 30 20 2d 20 2d | 0a 23 09 62 75 6e 6b 79 |9600 - -|.#.bunky|
|00004c30| 20 74 74 79 30 32 31 20 | 39 36 30 30 20 2d 20 2d | tty021 |9600 - -|
|00004c40| 0a 23 0a 67 72 61 6d 2c | 20 69 66 20 6e 65 69 74 |.#.gram,| if neit|
|00004c50| 68 65 72 0a 2e 42 20 22 | 2d 63 22 0a 6f 72 0a 2e |her..B "|-c".or..|
|00004c60| 42 20 22 2d 6b 22 0a 69 | 73 20 70 72 65 73 65 6e |B "-k".i|s presen|
|00004c70| 74 2e 0a 2e 54 50 0a 2d | 6b 0a 49 6e 76 6f 6b 65 |t...TP.-|k.Invoke|
|00004c80| 73 0a 2e 42 20 63 61 6c | 6c 0a 77 69 74 68 20 0a |s..B cal|l.with .|
|00004c90| 2e 49 20 6b 65 72 6d 69 | 74 0a 61 73 20 74 68 65 |.I kermi|t.as the|
|00004ca0| 20 63 61 6c 6c 69 6e 67 | 20 70 72 6f 67 72 61 6d | calling| program|
|00004cb0| 2e 20 20 49 74 20 77 69 | 6c 6c 20 73 75 70 70 6c |. It wi|ll suppl|
|00004cc0| 79 0a 2e 49 20 6b 65 72 | 6d 69 74 0a 77 69 74 68 |y..I ker|mit.with|
|00004cd0| 20 74 68 65 20 64 65 76 | 69 63 65 20 6e 61 6d 65 | the dev|ice name|
|00004ce0| 20 61 6e 64 20 62 61 75 | 64 20 72 61 74 65 2e 20 | and bau|d rate. |
|00004cf0| 20 43 61 6c 6c 69 6e 67 | 20 77 69 74 68 0a 2e 49 | Calling| with..I|
|00004d00| 20 6b 65 72 6d 69 74 0a | 69 73 20 6e 6f 74 20 70 | kermit.|is not p|
|00004d10| 72 65 6d 69 74 74 65 64 | 20 6f 76 65 72 20 61 20 |remitted| over a |
|00004d20| 64 69 61 6c 65 64 20 6c | 69 6e 65 2e 20 20 4f 6e |dialed l|ine. On|
|00004d30| 6c 79 20 22 64 69 72 65 | 63 74 22 20 63 6f 6e 6e |ly "dire|ct" conn|
|00004d40| 65 63 74 69 6f 6e 73 20 | 61 72 65 0a 73 75 70 70 |ections |are.supp|
|00004d50| 6f 72 74 65 64 20 77 69 | 74 68 20 74 68 69 73 20 |orted wi|th this |
|00004d60| 6f 70 74 69 6f 6e 2e 0a | 2e 54 50 0a 73 79 73 74 |option..|.TP.syst|
|00004d70| 65 6d 0a 41 20 76 61 6c | 69 64 20 73 79 73 74 65 |em.A val|id syste|
|00004d80| 6d 20 6e 61 6d 65 20 6f | 62 74 61 69 6e 65 64 20 |m name o|btained |
|00004d90| 66 72 6f 6d 20 74 68 65 | 0a 2e 42 20 2f 75 73 72 |from the|..B /usr|
|00004da0| 2f 6c 69 62 2f 75 75 63 | 70 2f 43 61 6c 6c 2d 73 |/lib/uuc|p/Call-s|
|00004db0| 79 73 0a 66 69 6c 65 2e | 20 20 54 6f 20 6c 69 73 |ys.file.| To lis|
|00004dc0| 74 20 74 68 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |t the cu|rrently |
|00004dd0| 61 76 61 69 6c 61 62 6c | 65 20 73 79 73 74 65 6d |availabl|e system|
|00004de0| 20 6e 61 6d 65 73 2c 20 | 73 65 65 20 74 68 65 0a | names, |see the.|
|00004df0| 2e 42 20 2d 73 0a 6f 70 | 74 69 6f 6e 20 62 65 6c |.B -s.op|tion bel|
|00004e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000050f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000051f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005200| 6e 67 20 63 6c 6f 63 6b | 3b 0a 09 0a 09 69 66 20 |ng clock|;....if |
|00005210| 28 28 6c 6f 67 3d 66 6f | 70 65 6e 28 4c 4f 47 46 |((log=fo|pen(LOGF|
|00005220| 49 4c 45 2c 22 61 22 29 | 29 3d 3d 28 46 49 4c 45 |ILE,"a")|)==(FILE|
|00005230| 20 2a 29 4e 55 4c 4c 29 | 20 7b 0a 09 09 66 70 72 | *)NULL)| {...fpr|
|00005240| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 25 73 3a |intf(std|err,"%s:|
|00005250| 20 63 6f 75 6c 64 20 6e | 6f 74 20 6f 70 65 6e 20 | could n|ot open |
|00005260| 6c 6f 67 20 66 69 6c 65 | 5c 6e 22 2c 70 6e 61 6d |log file|\n",pnam|
|00005270| 65 29 3b 0a 09 09 65 78 | 69 74 28 32 29 3b 0a 09 |e);...ex|it(2);..|
|00005280| 7d 0a 09 63 6c 6f 63 6b | 3d 74 69 6d 65 28 28 6c |}..clock|=time((l|
|00005290| 6f 6e 67 20 2a 29 30 29 | 3b 0a 09 69 66 20 28 64 |ong *)0)|;..if (d|
|000052a0| 66 6c 67 29 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |flg)...f|printf(s|
|000052b0| 74 64 65 72 72 2c 22 25 | 2d 31 30 73 20 25 2d 31 |tderr,"%|-10s %-1|
|000052c0| 30 73 20 25 2d 31 30 73 | 20 25 2d 32 30 73 20 25 |0s %-10s| %-20s %|
|000052d0| 73 22 2c 77 68 6f 63 61 | 6c 6c 2c 67 65 74 6c 6f |s",whoca|ll,getlo|
|000052e0| 67 69 6e 28 29 2c 74 79 | 70 65 63 61 6c 6c 2c 64 |gin(),ty|pecall,d|
|000052f0| 65 73 63 2c 61 73 63 74 | 69 6d 65 28 6c 6f 63 61 |esc,asct|ime(loca|
|00005300| 6c 74 69 6d 65 28 26 63 | 6c 6f 63 6b 29 29 29 3b |ltime(&c|lock)));|
|00005310| 0a 09 66 70 72 69 6e 74 | 66 28 6c 6f 67 2c 22 25 |..fprint|f(log,"%|
|00005320| 2d 31 30 73 20 25 2d 31 | 30 73 20 25 2d 31 30 73 |-10s %-1|0s %-10s|
|00005330| 20 25 2d 32 30 73 20 25 | 73 22 2c 77 68 6f 63 61 | %-20s %|s",whoca|
|00005340| 6c 6c 2c 67 65 74 6c 6f | 67 69 6e 28 29 2c 74 79 |ll,getlo|gin(),ty|
|00005350| 70 65 63 61 6c 6c 2c 64 | 65 73 63 2c 61 73 63 74 |pecall,d|esc,asct|
|00005360| 69 6d 65 28 6c 6f 63 61 | 6c 74 69 6d 65 28 26 63 |ime(loca|ltime(&c|
|00005370| 6c 6f 63 6b 29 29 29 3b | 0a 09 66 63 6c 6f 73 65 |lock)));|..fclose|
|00005380| 28 6c 6f 67 29 3b 0a 09 | 72 65 74 75 72 6e 20 28 |(log);..|return (|
|00005390| 30 29 3b 0a 7d 0a 0a 2f | 2a 20 63 68 65 63 6b 6c |0);.}../|* checkl|
|000053a0| 6f 63 6b 28 29 20 2d 20 | 63 68 65 63 6b 20 74 68 |ock() - |check th|
|000053b0| 61 74 20 74 68 65 20 64 | 65 76 69 63 65 20 77 68 |at the d|evice wh|
|000053c0| 69 63 68 20 77 65 20 77 | 61 6e 74 20 69 73 20 61 |ich we w|ant is a|
|000053d0| 76 61 69 6c 61 62 6c 65 | 20 2a 2f 0a 2f 2a 20 20 |vailable| */./* |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 | | ret|
|000053f0| 75 72 6e 3a 20 30 3d 6f | 6b 20 31 3d 64 65 76 69 |urn: 0=o|k 1=devi|
|00005400| 63 65 20 69 6e 20 75 73 | 65 20 20 20 20 20 20 20 |ce in us|e |
|00005410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2a 2f | | */|
|00005420| 0a 0a 69 6e 74 20 63 68 | 65 63 6b 6c 6f 63 6b 28 |..int ch|ecklock(|
|00005430| 64 65 76 29 0a 63 68 61 | 72 20 2a 64 65 76 3b 0a |dev).cha|r *dev;.|
|00005440| 7b 0a 09 63 68 61 72 20 | 6c 63 6b 66 69 6c 65 5b |{..char |lckfile[|
|00005450| 31 30 30 5d 3b 0a 09 69 | 6e 74 20 6c 6b 70 69 64 |100];..i|nt lkpid|
|00005460| 3b 0a 09 46 49 4c 45 20 | 2a 6c 66 3b 0a 0a 09 73 |;..FILE |*lf;...s|
|00005470| 70 72 69 6e 74 66 28 6c | 63 6b 66 69 6c 65 2c 4c |printf(l|ckfile,L|
|00005480| 4f 43 4b 46 49 4c 45 2c | 64 65 76 29 3b 0a 09 69 |OCKFILE,|dev);..i|
|00005490| 66 20 28 61 63 63 65 73 | 73 28 6c 63 6b 66 69 6c |f (acces|s(lckfil|
|000054a0| 65 2c 30 29 3d 3d 30 29 | 20 7b 20 2f 2a 20 63 68 |e,0)==0)| { /* ch|
|000054b0| 65 63 6b 20 69 66 20 6c | 6f 63 6b 66 69 6c 65 20 |eck if l|ockfile |
|000054c0| 65 78 69 73 74 73 20 2a | 2f 0a 23 69 66 64 65 66 |exists *|/.#ifdef|
|000054d0| 20 48 44 42 0a 09 09 69 | 66 20 28 28 6c 66 3d 66 | HDB...i|f ((lf=f|
|000054e0| 6f 70 65 6e 28 6c 63 6b | 66 69 6c 65 2c 22 72 22 |open(lck|file,"r"|
|000054f0| 29 29 21 3d 28 46 49 4c | 45 20 2a 29 4e 55 4c 4c |))!=(FIL|E *)NULL|
|00005500| 29 20 7b 0a 09 09 09 66 | 73 63 61 6e 66 28 6c 66 |) {....f|scanf(lf|
|00005510| 2c 22 25 64 22 2c 26 6c | 6b 70 69 64 29 3b 0a 09 |,"%d",&l|kpid);..|
|00005520| 09 09 69 66 20 28 6b 69 | 6c 6c 28 6c 6b 70 69 64 |..if (ki|ll(lkpid|
|00005530| 2c 30 29 3d 3d 28 2d 31 | 29 29 20 20 2f 2a 20 63 |,0)==(-1|)) /* c|
|00005540| 68 65 63 6b 20 69 66 20 | 6c 69 6e 65 20 61 76 61 |heck if |line ava|
|00005550| 69 6c 20 2a 2f 0a 09 09 | 09 09 72 65 74 75 72 6e |il */...|..return|
|00005560| 28 30 29 3b 20 2f 2a 20 | 70 69 64 20 69 73 20 69 |(0); /* |pid is i|
|00005570| 6e 76 61 6c 69 64 2c 20 | 6c 69 6e 65 20 61 76 61 |nvalid, |line ava|
|00005580| 69 6c 20 2a 2f 0a 09 09 | 09 65 6c 73 65 20 72 65 |il */...|.else re|
|00005590| 74 75 72 6e 20 28 31 29 | 3b 20 2f 2a 20 76 61 6c |turn (1)|; /* val|
|000055a0| 69 64 20 70 69 64 2c 20 | 6c 69 6e 65 20 62 75 73 |id pid, |line bus|
|000055b0| 79 20 2a 2f 0a 09 09 7d | 0a 23 65 6e 64 69 66 0a |y */...}|.#endif.|
|000055c0| 09 09 72 65 74 75 72 6e | 28 31 29 3b 09 0a 09 7d |..return|(1);...}|
|000055d0| 0a 09 72 65 74 75 72 6e | 28 30 29 3b 0a 7d 0a 0a |..return|(0);.}..|
|000055e0| 2f 2a 20 67 65 74 63 61 | 6c 6c 28 29 20 2d 20 72 |/* getca|ll() - r|
|000055f0| 65 61 64 20 61 6e 64 20 | 70 61 72 73 65 20 74 68 |ead and |parse th|
|00005600| 65 20 43 41 4c 4c 46 49 | 4c 45 20 61 6e 64 20 73 |e CALLFI|LE and s|
|00005610| 65 74 75 70 20 74 68 65 | 20 6c 69 6e 6b 65 64 20 |etup the| linked |
|00005620| 6c 69 73 74 20 2a 2f 0a | 2f 2a 20 20 20 20 20 20 |list */.|/* |
|00005630| 20 20 20 20 20 20 20 6f | 66 20 61 6c 6c 6f 77 65 | o|f allowe|
|00005640| 64 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 73 20 20 20 |d connec|tions |
|00005650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2a 2f 0a | | */.|
|00005670| 0a 73 74 72 75 63 74 20 | 63 61 6c 6c 64 65 76 20 |.struct |calldev |
|00005680| 2a 67 65 74 63 61 6c 6c | 28 63 66 29 0a 46 49 4c |*getcall|(cf).FIL|
|00005690| 45 20 2a 63 66 3b 0a 7b | 0a 09 73 74 72 75 63 74 |E *cf;.{|..struct|
|000056a0| 20 63 61 6c 6c 64 65 76 | 20 2a 68 65 61 64 2c 20 | calldev| *head, |
|000056b0| 2a 63 75 72 3b 0a 09 69 | 6e 74 20 63 3b 20 0a 09 |*cur;..i|nt c; ..|
|000056c0| 63 68 61 72 20 74 6e 61 | 6d 65 5b 32 35 5d 2c 20 |char tna|me[25], |
|000056d0| 74 64 65 76 5b 32 35 5d | 2c 20 74 62 61 75 64 5b |tdev[25]|, tbaud[|
|000056e0| 32 35 5d 2c 20 74 6d 64 | 6d 74 79 70 65 5b 32 35 |25], tmd|mtype[25|
|000056f0| 5d 2c 20 74 74 65 6c 6e | 6f 5b 32 35 5d 3b 0a 0a |], tteln|o[25];..|
|00005700| 09 63 75 72 3d 68 65 61 | 64 3d 28 73 74 72 75 63 |.cur=hea|d=(struc|
|00005710| 74 20 63 61 6c 6c 64 65 | 76 20 2a 29 4e 55 4c 4c |t callde|v *)NULL|
|00005720| 3b 0a 09 77 68 69 6c 65 | 20 28 28 63 3d 66 67 65 |;..while| ((c=fge|
|00005730| 74 63 28 63 66 29 29 21 | 3d 45 4f 46 29 0a 09 09 |tc(cf))!|=EOF)...|
|00005740| 69 66 20 28 63 3d 3d 27 | 23 27 20 7c 7c 20 63 3d |if (c=='|#' || c=|
|00005750| 3d 27 20 27 20 7c 7c 20 | 63 3d 3d 27 5c 74 27 20 |=' ' || |c=='\t' |
|00005760| 7c 7c 20 63 3d 3d 27 5c | 6e 27 29 0a 09 09 09 77 ||| c=='\|n')....w|
|00005770| 68 69 6c 65 20 28 28 63 | 3d 66 67 65 74 63 28 63 |hile ((c|=fgetc(c|
|00005780| 66 29 29 21 3d 27 5c 6e | 27 29 3b 0a 09 09 65 6c |f))!='\n|');...el|
|00005790| 73 65 20 7b 0a 09 09 09 | 75 6e 67 65 74 63 28 63 |se {....|ungetc(c|
|000057a0| 2c 63 66 29 3b 0a 09 09 | 09 66 73 63 61 6e 66 28 |,cf);...|.fscanf(|
|000057b0| 63 66 2c 22 25 73 20 25 | 73 20 25 73 20 25 73 20 |cf,"%s %|s %s %s |
|000057c0| 25 73 5c 6e 22 2c 74 6e | 61 6d 65 2c 74 64 65 76 |%s\n",tn|ame,tdev|
|000057d0| 2c 74 62 61 75 64 2c 74 | 6d 64 6d 74 79 70 65 2c |,tbaud,t|mdmtype,|
|000057e0| 74 74 65 6c 6e 6f 29 3b | 0a 09 09 09 69 66 20 28 |ttelno);|....if (|
|000057f0| 63 75 72 3d 3d 28 73 74 | 72 75 63 74 20 63 61 6c |cur==(st|ruct cal|
|00005800| 6c 64 65 76 20 2a 29 4e | 55 4c 4c 29 20 7b 0a 09 |ldev *)N|ULL) {..|
|00005810| 09 09 09 68 65 61 64 3d | 28 73 74 72 75 63 74 20 |...head=|(struct |
|00005820| 63 61 6c 6c 64 65 76 20 | 2a 29 6d 61 6c 6c 6f 63 |calldev |*)malloc|
|00005830| 28 73 69 7a 65 6f 66 28 | 73 74 72 75 63 74 20 63 |(sizeof(|struct c|
|00005840| 61 6c 6c 64 65 76 29 29 | 3b 0a 09 09 09 09 63 75 |alldev))|;.....cu|
|00005850| 72 3d 68 65 61 64 3b 0a | 09 09 09 7d 20 65 6c 73 |r=head;.|...} els|
|00005860| 65 20 7b 0a 09 09 09 09 | 63 75 72 2d 3e 6e 65 78 |e {.....|cur->nex|
|00005870| 74 3d 28 73 74 72 75 63 | 74 20 63 61 6c 6c 64 65 |t=(struc|t callde|
|00005880| 76 20 2a 29 6d 61 6c 6c | 6f 63 28 73 69 7a 65 6f |v *)mall|oc(sizeo|
|00005890| 66 28 73 74 72 75 63 74 | 20 63 61 6c 6c 64 65 76 |f(struct| calldev|
|000058a0| 29 29 3b 0a 09 09 09 09 | 63 75 72 3d 63 75 72 2d |));.....|cur=cur-|
|000058b0| 3e 6e 65 78 74 3b 0a 09 | 09 09 7d 0a 09 09 09 63 |>next;..|..}....c|
|000058c0| 75 72 2d 3e 6e 61 6d 65 | 3d 28 63 68 61 72 20 2a |ur->name|=(char *|
|000058d0| 29 6d 61 6c 6c 6f 63 28 | 73 74 72 6c 65 6e 28 74 |)malloc(|strlen(t|
|000058e0| 6e 61 6d 65 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |name)+1)|;....str|
|000058f0| 63 70 79 28 63 75 72 2d | 3e 6e 61 6d 65 2c 74 6e |cpy(cur-|>name,tn|
|00005900| 61 6d 65 29 3b 0a 09 09 | 09 63 75 72 2d 3e 64 65 |ame);...|.cur->de|
|00005910| 76 3d 28 63 68 61 72 20 | 2a 29 6d 61 6c 6c 6f 63 |v=(char |*)malloc|
|00005920| 28 73 74 72 6c 65 6e 28 | 74 64 65 76 29 2b 31 29 |(strlen(|tdev)+1)|
|00005930| 3b 0a 09 09 09 73 74 72 | 63 70 79 28 63 75 72 2d |;....str|cpy(cur-|
|00005940| 3e 64 65 76 2c 74 64 65 | 76 29 3b 0a 09 09 09 63 |>dev,tde|v);....c|
|00005950| 75 72 2d 3e 62 61 75 64 | 3d 28 63 68 61 72 20 2a |ur->baud|=(char *|
|00005960| 29 6d 61 6c 6c 6f 63 28 | 73 74 72 6c 65 6e 28 74 |)malloc(|strlen(t|
|00005970| 62 61 75 64 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |baud)+1)|;....str|
|00005980| 63 70 79 28 63 75 72 2d | 3e 62 61 75 64 2c 74 62 |cpy(cur-|>baud,tb|
|00005990| 61 75 64 29 3b 0a 09 09 | 09 63 75 72 2d 3e 6d 64 |aud);...|.cur->md|
|000059a0| 6d 74 79 70 65 3d 28 63 | 68 61 72 20 2a 29 6d 61 |mtype=(c|har *)ma|
|000059b0| 6c 6c 6f 63 28 73 74 72 | 6c 65 6e 28 74 6d 64 6d |lloc(str|len(tmdm|
|000059c0| 74 79 70 65 29 2b 31 29 | 3b 0a 09 09 09 73 74 72 |type)+1)|;....str|
|000059d0| 63 70 79 28 63 75 72 2d | 3e 6d 64 6d 74 79 70 65 |cpy(cur-|>mdmtype|
|000059e0| 2c 74 6d 64 6d 74 79 70 | 65 29 3b 0a 09 09 09 63 |,tmdmtyp|e);....c|
|000059f0| 75 72 2d 3e 74 65 6c 6e | 6f 3d 28 63 68 61 72 20 |ur->teln|o=(char |
|00005a00| 2a 29 6d 61 6c 6c 6f 63 | 28 73 74 72 6c 65 6e 28 |*)malloc|(strlen(|
|00005a10| 74 74 65 6c 6e 6f 29 2b | 31 29 3b 0a 09 09 09 73 |ttelno)+|1);....s|
|00005a20| 74 72 63 70 79 28 63 75 | 72 2d 3e 74 65 6c 6e 6f |trcpy(cu|r->telno|
|00005a30| 2c 74 74 65 6c 6e 6f 29 | 3b 0a 09 09 7d 0a 09 66 |,ttelno)|;...}..f|
|00005a40| 63 6c 6f 73 65 28 63 66 | 29 3b 0a 09 72 65 74 75 |close(cf|);..retu|
|00005a50| 72 6e 20 28 68 65 61 64 | 29 3b 0a 7d 0a 00 00 00 |rn (head|);.}....|
|00005a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 63 75 2d 73 68 65 6c 6c | 2f 63 61 6c 6c 2e 31 4c |cu-shell|/call.1L|
|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 32 |.... 6|44 . 2|
|00005c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005c80| 20 20 20 34 35 33 30 20 | 20 34 34 30 34 30 36 35 | 4530 | 4404065|
|00005c90| 31 31 30 20 20 20 36 37 | 32 32 00 20 00 00 00 00 |110 67|22. ....|
|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| 2e 54 48 20 43 41 4c 4c | 20 31 4c 20 6c 6f 63 61 |.TH CALL| 1L loca|
|00005e10| 6c 0a 2e 53 48 20 4e 41 | 4d 45 0a 63 61 6c 6c 20 |l..SH NA|ME.call |
|00005e20| 5c 2d 20 6d 61 6b 65 20 | 61 20 63 6f 6e 6e 65 63 |\- make |a connec|
|00005e30| 74 69 6f 6e 20 74 6f 20 | 61 6e 20 61 76 61 69 6c |tion to |an avail|
|00005e40| 61 62 6c 65 20 6d 61 63 | 68 69 6e 65 20 76 69 61 |able mac|hine via|
|00005e50| 20 63 75 20 6f 72 20 6b | 65 72 6d 69 74 0a 2e 53 | cu or k|ermit..S|
|00005e60| 48 20 53 59 4e 4f 50 53 | 49 53 0a 2e 42 20 63 61 |H SYNOPS|IS..B ca|
|00005e70| 6c 6c 20 22 5b 20 2d 64 | 20 5d 22 20 22 5b 20 2d |ll "[ -d| ]" "[ -|
|00005e80| 63 6b 20 5d 22 20 22 73 | 79 73 74 65 6d 22 0a 2e |ck ]" "s|ystem"..|
|00005e90| 50 0a 2e 42 20 63 61 6c | 6c 20 22 5b 20 2d 64 20 |P..B cal|l "[ -d |
|00005ea0| 5d 22 20 2d 6c 20 22 5b | 20 73 79 73 74 65 6d 20 |]" -l "[| system |
|00005eb0| 5d 22 0a 2e 50 0a 2e 42 | 20 63 61 6c 6c 20 22 5b |]"..P..B| call "[|
|00005ec0| 20 2d 64 20 5d 22 20 22 | 2d 73 22 0a 2e 53 48 20 | -d ]" "|-s"..SH |
|00005ed0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 2e 49 20 43 |DESCRIPT|ION..I C|
|00005ee0| 61 6c 6c 0a 70 72 6f 76 | 69 64 65 73 20 61 20 6d |all.prov|ides a m|
|00005ef0| 65 61 6e 73 20 74 6f 20 | 63 6f 6e 6e 65 63 74 20 |eans to |connect |
|00005f00| 74 6f 20 61 6e 6f 74 68 | 65 72 20 55 4e 49 58 20 |to anoth|er UNIX |
|00005f10| 73 79 73 74 65 6d 2c 20 | 61 20 74 65 72 6d 69 6e |system, |a termin|
|00005f20| 61 6c 2c 20 6f 72 20 70 | 6f 73 73 69 62 6c 79 0a |al, or p|ossibly.|
|00005f30| 61 20 6e 6f 6e 2d 55 4e | 49 58 20 73 79 73 74 65 |a non-UN|IX syste|
|00005f40| 6d 2e 20 20 49 74 20 72 | 65 73 74 72 69 63 74 73 |m. It r|estricts|
|00005f50| 20 61 63 63 65 73 73 20 | 74 6f 20 74 68 65 20 61 | access |to the a|
|00005f60| 63 74 75 61 6c 20 63 61 | 6c 6c 69 6e 67 20 70 72 |ctual ca|lling pr|
|00005f70| 6f 67 72 61 6d 73 2c 0a | 2e 49 20 63 75 0a 61 6e |ograms,.|.I cu.an|
|00005f80| 64 0a 2e 49 52 20 6b 65 | 72 6d 69 74 20 2c 0a 69 |d..IR ke|rmit ,.i|
|00005f90| 6e 20 61 6e 20 65 66 66 | 6f 72 74 20 74 6f 20 6c |n an eff|ort to l|
|00005fa0| 69 6d 69 74 20 61 63 63 | 65 73 73 20 74 6f 20 65 |imit acc|ess to e|
|00005fb0| 78 70 65 6e 73 69 76 65 | 20 72 65 73 6f 75 72 63 |xpensive| resourc|
|00005fc0| 65 73 20 28 69 65 2e 20 | 70 68 6f 6e 65 20 6c 69 |es (ie. |phone li|
|00005fd0| 6e 65 73 29 2e 0a 2e 49 | 20 43 61 6c 6c 0a 6d 61 |nes)...I| Call.ma|
|00005fe0| 69 6e 74 61 69 6e 73 20 | 61 20 6c 6f 67 20 6f 66 |intains |a log of|
|00005ff0| 20 61 6c 6c 20 61 63 74 | 69 76 69 74 79 20 6f 6e | all act|ivity on|
+--------+-------------------------+-------------------------+--------+--------+