home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 0a 46 72 |.sources|.unix.Fr|
|00000020| 6f 6d 3a 20 66 74 68 6f | 6f 64 21 65 67 72 61 79 |om: ftho|od!egray|
|00000030| 40 75 78 63 2e 63 73 6f | 2e 75 69 75 63 2e 65 64 |@uxc.cso|.uiuc.ed|
|00000040| 75 20 28 45 6d 6d 65 74 | 20 47 72 61 79 29 0a 53 |u (Emmet| Gray).S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 32 36 69 31 35 34 3a |ubject: |v26i154:|
|00000060| 20 70 63 6f 6d 6d 2d 32 | 2e 30 2e 32 20 2d 20 61 | pcomm-2|.0.2 - a|
|00000070| 20 73 65 72 69 61 6c 20 | 63 6f 6d 6d 75 6e 69 63 | serial |communic|
|00000080| 61 74 69 6f 6e 73 20 70 | 72 6f 67 72 61 6d 20 28 |ations p|rogram (|
|00000090| 63 6c 6f 6e 65 20 6f 66 | 20 50 72 6f 43 6f 6d 6d |clone of| ProComm|
|000000a0| 29 2c 20 50 61 72 74 30 | 32 2f 30 36 0a 53 65 6e |), Part0|2/06.Sen|
|000000b0| 64 65 72 3a 20 75 6e 69 | 78 2d 73 6f 75 72 63 65 |der: uni|x-source|
|000000c0| 73 2d 6d 6f 64 65 72 61 | 74 6f 72 40 76 69 78 2e |s-modera|tor@vix.|
|000000d0| 63 6f 6d 0a 41 70 70 72 | 6f 76 65 64 3a 20 70 61 |com.Appr|oved: pa|
|000000e0| 75 6c 40 76 69 78 2e 63 | 6f 6d 0a 0a 53 75 62 6d |ul@vix.c|om..Subm|
|000000f0| 69 74 74 65 64 2d 42 79 | 3a 20 66 74 68 6f 6f 64 |itted-By|: fthood|
|00000100| 21 65 67 72 61 79 40 75 | 78 63 2e 63 73 6f 2e 75 |!egray@u|xc.cso.u|
|00000110| 69 75 63 2e 65 64 75 20 | 28 45 6d 6d 65 74 20 47 |iuc.edu |(Emmet G|
|00000120| 72 61 79 29 0a 50 6f 73 | 74 69 6e 67 2d 4e 75 6d |ray).Pos|ting-Num|
|00000130| 62 65 72 3a 20 56 6f 6c | 75 6d 65 20 32 36 2c 20 |ber: Vol|ume 26, |
|00000140| 49 73 73 75 65 20 31 35 | 34 0a 41 72 63 68 69 76 |Issue 15|4.Archiv|
|00000150| 65 2d 4e 61 6d 65 3a 20 | 70 63 6f 6d 6d 2d 32 2e |e-Name: |pcomm-2.|
|00000160| 30 2e 32 2f 70 61 72 74 | 30 32 0a 0a 23 21 20 2f |0.2/part|02..#! /|
|00000170| 62 69 6e 2f 73 68 0a 23 | 20 54 68 69 73 20 69 73 |bin/sh.#| This is|
|00000180| 20 61 20 73 68 65 6c 6c | 20 61 72 63 68 69 76 65 | a shell| archive|
|00000190| 2e 20 20 52 65 6d 6f 76 | 65 20 61 6e 79 74 68 69 |. Remov|e anythi|
|000001a0| 6e 67 20 62 65 66 6f 72 | 65 20 74 68 69 73 20 6c |ng befor|e this l|
|000001b0| 69 6e 65 2c 20 74 68 65 | 6e 20 75 6e 70 61 63 6b |ine, the|n unpack|
|000001c0| 0a 23 20 69 74 20 62 79 | 20 73 61 76 69 6e 67 20 |.# it by| saving |
|000001d0| 69 74 20 69 6e 74 6f 20 | 61 20 66 69 6c 65 20 61 |it into |a file a|
|000001e0| 6e 64 20 74 79 70 69 6e | 67 20 22 73 68 20 66 69 |nd typin|g "sh fi|
|000001f0| 6c 65 22 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |le". To| overwri|
|00000200| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 23 20 66 69 |te exist|ing.# fi|
|00000210| 6c 65 73 2c 20 74 79 70 | 65 20 22 73 68 20 66 69 |les, typ|e "sh fi|
|00000220| 6c 65 20 2d 63 22 2e 20 | 20 59 6f 75 20 63 61 6e |le -c". | You can|
|00000230| 20 61 6c 73 6f 20 66 65 | 65 64 20 74 68 69 73 20 | also fe|ed this |
|00000240| 61 73 20 73 74 61 6e 64 | 61 72 64 20 69 6e 70 75 |as stand|ard inpu|
|00000250| 74 20 76 69 61 0a 23 20 | 75 6e 73 68 61 72 2c 20 |t via.# |unshar, |
|00000260| 6f 72 20 62 79 20 74 79 | 70 69 6e 67 20 22 73 68 |or by ty|ping "sh|
|00000270| 20 3c 66 69 6c 65 22 2c | 20 65 2e 67 2e 2e 20 20 | <file",| e.g.. |
|00000280| 49 66 20 74 68 69 73 20 | 61 72 63 68 69 76 65 20 |If this |archive |
|00000290| 69 73 20 63 6f 6d 70 6c | 65 74 65 2c 20 79 6f 75 |is compl|ete, you|
|000002a0| 0a 23 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |.# will |see the |
|000002b0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|000002c0| 65 20 61 74 20 74 68 65 | 20 65 6e 64 3a 0a 23 09 |e at the| end:.#.|
|000002d0| 09 22 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |."End of| archive|
|000002e0| 20 32 20 28 6f 66 20 36 | 29 2e 22 0a 23 20 43 6f | 2 (of 6|).".# Co|
|000002f0| 6e 74 65 6e 74 73 3a 20 | 20 43 6f 6e 66 69 67 75 |ntents: | Configu|
|00000300| 72 65 2e 73 68 20 50 63 | 6f 6d 6d 5f 63 6d 64 2e |re.sh Pc|omm_cmd.|
|00000310| 31 20 51 5f 61 6e 64 5f | 41 20 61 64 6d 69 6e 2e |1 Q_and_|A admin.|
|00000320| 63 20 64 5f 70 72 69 6e | 74 2e 63 0a 23 20 20 20 |c d_prin|t.c.# |
|00000330| 64 5f 70 72 6f 6d 70 74 | 2e 63 20 64 5f 72 65 76 |d_prompt|.c d_rev|
|00000340| 69 73 65 2e 63 20 65 5f | 6c 69 62 2e 63 20 6c 73 |ise.c e_|lib.c ls|
|00000350| 5f 6d 65 6e 75 2e 63 20 | 6d 61 63 72 6f 2e 63 20 |_menu.c |macro.c |
|00000360| 73 5f 61 78 66 65 72 2e | 63 0a 23 20 20 20 73 5f |s_axfer.|c.# s_|
|00000370| 65 78 74 72 6e 6c 2e 63 | 20 73 5f 67 65 6e 2e 63 |extrnl.c| s_gen.c|
|00000380| 20 73 5f 6d 65 6e 75 2e | 63 20 73 5f 70 72 6f 6d | s_menu.|c s_prom|
|00000390| 70 74 2e 63 20 73 5f 74 | 65 72 6d 2e 63 20 73 5f |pt.c s_t|erm.c s_|
|000003a0| 74 74 79 2e 63 20 73 63 | 72 69 70 74 2e 63 0a 23 |tty.c sc|ript.c.#|
|000003b0| 20 20 20 73 74 72 69 6e | 67 73 2e 63 20 74 74 79 | strin|gs.c tty|
|000003c0| 5f 61 74 74 2e 63 20 74 | 74 79 5f 75 63 62 2e 63 |_att.c t|ty_ucb.c|
|000003d0| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 76 69 |.# Wrapp|ed by vi|
|000003e0| 78 69 65 40 67 77 2e 68 | 6f 6d 65 2e 76 69 78 2e |xie@gw.h|ome.vix.|
|000003f0| 63 6f 6d 20 6f 6e 20 57 | 65 64 20 41 70 72 20 31 |com on W|ed Apr 1|
|00000400| 34 20 30 30 3a 33 38 3a | 34 31 20 31 39 39 33 0a |4 00:38:|41 1993.|
|00000410| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|00000420| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000430| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000440| 74 20 2d 66 20 27 43 6f | 6e 66 69 67 75 72 65 2e |t -f 'Co|nfigure.|
|00000450| 73 68 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |sh' -a "|${1}" !=|
|00000460| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00000470| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00000480| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00000490| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 43 6f 6e |ting fil|e \"'Con|
|000004a0| 66 69 67 75 72 65 2e 73 | 68 27 5c 22 0a 65 6c 73 |figure.s|h'\".els|
|000004b0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|000004c0| 72 61 63 74 69 6e 67 20 | 5c 22 27 43 6f 6e 66 69 |racting |\"'Confi|
|000004d0| 67 75 72 65 2e 73 68 27 | 5c 22 20 5c 28 33 37 38 |gure.sh'|\" \(378|
|000004e0| 39 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |9 charac|ters\).s|
|000004f0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 43 6f |ed "s/^X|//" >'Co|
|00000500| 6e 66 69 67 75 72 65 2e | 73 68 27 20 3c 3c 27 45 |nfigure.|sh' <<'E|
|00000510| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 3a 0a 58 |ND_OF_FI|LE'.X:.X|
|00000520| 3a 20 77 68 61 74 20 76 | 65 72 73 69 6f 6e 20 6f |: what v|ersion o|
|00000530| 66 20 55 55 43 50 20 64 | 6f 20 79 6f 75 20 68 61 |f UUCP d|o you ha|
|00000540| 76 65 3f 0a 69 66 20 5b | 20 2d 66 20 2f 75 73 72 |ve?.if [| -f /usr|
|00000550| 2f 6c 69 62 2f 75 75 63 | 70 2f 53 79 73 74 65 6d |/lib/uuc|p/System|
|00000560| 73 20 2d 6f 20 2d 66 20 | 2f 65 74 63 2f 75 75 63 |s -o -f |/etc/uuc|
|00000570| 70 2f 53 79 73 74 65 6d | 73 20 5d 20 3b 74 68 65 |p/System|s ] ;the|
|00000580| 6e 0a 58 09 65 63 68 6f | 20 22 59 6f 75 27 76 65 |n.X.echo| "You've|
|00000590| 20 67 6f 74 20 74 68 65 | 20 48 6f 6e 65 79 44 61 | got the| HoneyDa|
|000005a0| 6e 42 65 72 20 28 48 44 | 42 29 20 76 65 72 73 69 |nBer (HD|B) versi|
|000005b0| 6f 6e 20 6f 66 20 55 55 | 43 50 22 0a 58 09 65 63 |on of UU|CP".X.ec|
|000005c0| 68 6f 20 22 54 68 65 72 | 65 66 6f 72 65 20 79 6f |ho "Ther|efore yo|
|000005d0| 75 20 6e 65 65 64 3a 09 | 23 64 65 66 69 6e 65 20 |u need:.|#define |
|000005e0| 41 53 43 49 49 5f 50 49 | 44 22 0a 65 6c 73 65 0a |ASCII_PI|D".else.|
|000005f0| 58 09 69 66 20 5b 20 2d | 66 20 2f 75 73 72 2f 6c |X.if [ -|f /usr/l|
|00000600| 69 62 2f 75 75 63 70 2f | 4c 2e 73 79 73 20 5d 20 |ib/uucp/|L.sys ] |
|00000610| 3b 74 68 65 6e 0a 58 09 | 09 65 63 68 6f 20 22 59 |;then.X.|.echo "Y|
|00000620| 6f 75 27 76 65 20 67 6f | 74 20 74 68 65 20 6f 6c |ou've go|t the ol|
|00000630| 64 65 72 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 55 |der vers|ion of U|
|00000640| 55 43 50 20 28 6e 6f 74 | 20 48 44 42 29 22 0a 58 |UCP (not| HDB)".X|
|00000650| 09 09 65 63 68 6f 20 22 | 54 68 65 72 65 66 6f 72 |..echo "|Therefor|
|00000660| 65 20 79 6f 75 20 6e 65 | 65 64 3a 09 23 75 6e 64 |e you ne|ed:.#und|
|00000670| 65 66 20 41 53 43 49 49 | 5f 50 49 44 22 0a 58 09 |ef ASCII|_PID".X.|
|00000680| 65 6c 73 65 0a 58 09 09 | 65 63 68 6f 20 22 43 61 |else.X..|echo "Ca|
|00000690| 6e 27 74 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 |n't dete|rmine th|
|000006a0| 65 20 55 55 43 50 20 76 | 65 72 73 69 6f 6e 22 0a |e UUCP v|ersion".|
|000006b0| 58 09 66 69 0a 66 69 0a | 58 3a 0a 58 3a 20 63 68 |X.fi.fi.|X:.X: ch|
|000006c0| 65 63 6b 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |eck the |location|
|000006d0| 20 6f 66 20 74 68 65 20 | 55 55 43 50 20 6c 6f 63 | of the |UUCP loc|
|000006e0| 6b 20 66 69 6c 65 73 0a | 69 66 20 5b 20 2d 64 20 |k files.|if [ -d |
|000006f0| 2f 75 73 72 2f 73 70 6f | 6f 6c 2f 6c 6f 63 6b 73 |/usr/spo|ol/locks|
|00000700| 20 5d 20 3b 74 68 65 6e | 0a 58 09 65 63 68 6f 20 | ] ;then|.X.echo |
|00000710| 22 59 6f 75 72 20 55 55 | 43 50 20 6c 6f 63 6b 20 |"Your UU|CP lock |
|00000720| 66 69 6c 65 73 20 67 6f | 20 69 6e 20 2f 75 73 72 |files go| in /usr|
|00000730| 2f 73 70 6f 6f 6c 2f 6c | 6f 63 6b 73 22 0a 58 09 |/spool/l|ocks".X.|
|00000740| 65 63 68 6f 20 22 54 68 | 65 72 65 66 6f 72 65 20 |echo "Th|erefore |
|00000750| 79 6f 75 20 6e 65 65 64 | 3a 09 23 64 65 66 69 6e |you need|:.#defin|
|00000760| 65 20 4c 4f 43 4b 5f 44 | 49 52 20 5c 22 2f 75 73 |e LOCK_D|IR \"/us|
|00000770| 72 2f 73 70 6f 6f 6c 2f | 6c 6f 63 6b 73 5c 22 22 |r/spool/|locks\""|
|00000780| 0a 65 6c 73 65 0a 58 09 | 69 66 20 5b 20 2d 64 20 |.else.X.|if [ -d |
|00000790| 2f 75 73 72 2f 73 70 6f | 6f 6c 2f 75 75 63 70 2f |/usr/spo|ol/uucp/|
|000007a0| 4c 43 4b 20 5d 3b 20 74 | 68 65 6e 0a 58 09 09 65 |LCK ]; t|hen.X..e|
|000007b0| 63 68 6f 20 22 59 6f 75 | 72 20 55 55 43 50 20 6c |cho "You|r UUCP l|
|000007c0| 6f 63 6b 20 66 69 6c 65 | 73 20 67 6f 20 69 6e 20 |ock file|s go in |
|000007d0| 2f 75 73 72 2f 73 70 6f | 6f 6c 2f 75 75 63 70 2f |/usr/spo|ol/uucp/|
|000007e0| 4c 43 4b 22 0a 58 09 09 | 65 63 68 6f 20 22 54 68 |LCK".X..|echo "Th|
|000007f0| 65 72 65 66 6f 72 65 20 | 79 6f 75 20 6e 65 65 64 |erefore |you need|
|00000800| 3a 09 23 64 65 66 69 6e | 65 20 4c 4f 43 4b 5f 44 |:.#defin|e LOCK_D|
|00000810| 49 52 20 5c 22 2f 75 73 | 72 2f 73 70 6f 6f 6c 2f |IR \"/us|r/spool/|
|00000820| 75 75 63 70 2f 4c 43 4b | 5c 22 22 0a 58 09 65 6c |uucp/LCK|\"".X.el|
|00000830| 73 65 0a 58 09 09 65 63 | 68 6f 20 22 59 6f 75 72 |se.X..ec|ho "Your|
|00000840| 20 55 55 43 50 20 6c 6f | 63 6b 20 66 69 6c 65 73 | UUCP lo|ck files|
|00000850| 20 67 6f 20 69 6e 20 2f | 75 73 72 2f 73 70 6f 6f | go in /|usr/spoo|
|00000860| 6c 2f 75 75 63 70 22 0a | 58 09 09 65 63 68 6f 20 |l/uucp".|X..echo |
|00000870| 22 54 68 65 72 65 66 6f | 72 65 20 79 6f 75 20 6e |"Therefo|re you n|
|00000880| 65 65 64 3a 09 23 64 65 | 66 69 6e 65 20 4c 4f 43 |eed:.#de|fine LOC|
|00000890| 4b 5f 44 49 52 20 5c 22 | 2f 75 73 72 2f 73 70 6f |K_DIR \"|/usr/spo|
|000008a0| 6f 6c 2f 75 75 63 70 5c | 22 22 0a 58 09 66 69 0a |ol/uucp\|"".X.fi.|
|000008b0| 66 69 0a 58 3a 0a 58 3a | 20 63 68 65 63 6b 20 74 |fi.X:.X:| check t|
|000008c0| 68 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 63 75 |he versi|on of cu|
|000008d0| 72 73 65 73 0a 47 4f 54 | 5f 49 54 3d 30 0a 69 66 |rses.GOT|_IT=0.if|
|000008e0| 20 5b 20 2d 66 20 2f 75 | 73 72 2f 35 69 6e 63 6c | [ -f /u|sr/5incl|
|000008f0| 75 64 65 2f 63 75 72 73 | 65 73 2e 68 20 5d 20 3b |ude/curs|es.h ] ;|
|00000900| 74 68 65 6e 0a 58 09 47 | 4f 54 5f 49 54 3d 2f 75 |then.X.G|OT_IT=/u|
|00000910| 73 72 2f 35 69 6e 63 6c | 75 64 65 2f 63 75 72 73 |sr/5incl|ude/curs|
|00000920| 65 73 2e 68 0a 58 09 65 | 63 68 6f 20 22 59 6f 75 |es.h.X.e|cho "You|
|00000930| 27 76 65 20 67 6f 74 20 | 61 20 53 79 73 74 65 6d |'ve got |a System|
|00000940| 20 35 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 | 5 compa|tibility|
|00000950| 20 6c 69 62 72 61 72 79 | 2e 2e 2e 20 75 73 65 20 | library|... use |
|00000960| 69 74 21 22 0a 58 09 65 | 63 68 6f 20 22 45 64 69 |it!".X.e|cho "Edi|
|00000970| 74 20 74 68 65 20 4d 61 | 6b 65 66 69 6c 65 3a 09 |t the Ma|kefile:.|
|00000980| 43 43 3d 2f 75 73 72 2f | 35 62 69 6e 2f 63 63 20 |CC=/usr/|5bin/cc |
|00000990| 61 6e 64 20 4c 44 3d 2f | 75 73 72 2f 35 62 69 6e |and LD=/|usr/5bin|
|000009a0| 2f 63 63 22 0a 65 6c 73 | 65 0a 58 09 69 66 20 5b |/cc".els|e.X.if [|
|000009b0| 20 2d 66 20 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 | -f /usr|/include|
|000009c0| 2f 63 75 72 73 65 73 2e | 68 20 5d 20 3b 74 68 65 |/curses.|h ] ;the|
|000009d0| 6e 0a 58 09 09 47 4f 54 | 5f 49 54 3d 2f 75 73 72 |n.X..GOT|_IT=/usr|
|000009e0| 2f 69 6e 63 6c 75 64 65 | 2f 63 75 72 73 65 73 2e |/include|/curses.|
|000009f0| 68 0a 58 09 65 6c 73 65 | 0a 58 09 09 65 63 68 6f |h.X.else|.X..echo|
|00000a00| 20 22 43 61 6e 27 74 20 | 64 65 74 65 72 6d 69 6e | "Can't |determin|
|00000a10| 65 20 79 6f 75 72 20 76 | 65 72 73 69 6f 6e 20 6f |e your v|ersion o|
|00000a20| 66 20 63 75 72 73 65 73 | 22 0a 58 09 66 69 0a 66 |f curses|".X.fi.f|
|00000a30| 69 0a 69 66 20 5b 20 22 | 24 47 4f 54 5f 49 54 22 |i.if [ "|$GOT_IT"|
|00000a40| 20 2d 65 71 20 30 20 5d | 20 3b 74 68 65 6e 0a 58 | -eq 0 ]| ;then.X|
|00000a50| 09 69 66 20 5b 20 60 67 | 72 65 70 20 2d 63 20 41 |.if [ `g|rep -c A|
|00000a60| 43 53 5f 48 4c 49 4e 45 | 20 24 47 4f 54 5f 49 54 |CS_HLINE| $GOT_IT|
|00000a70| 60 20 2d 67 74 20 30 20 | 5d 20 3b 74 68 65 6e 0a |` -gt 0 |] ;then.|
|00000a80| 58 09 09 65 63 68 6f 20 | 22 59 6f 75 27 76 65 20 |X..echo |"You've |
|00000a90| 67 6f 74 20 74 68 65 20 | 6e 65 77 65 72 20 76 65 |got the |newer ve|
|00000aa0| 72 73 69 6f 6e 20 6f 66 | 20 63 75 72 73 65 73 22 |rsion of| curses"|
|00000ab0| 0a 58 09 09 65 63 68 6f | 20 22 54 68 65 72 65 66 |.X..echo| "Theref|
|00000ac0| 6f 72 65 20 79 6f 75 20 | 6e 65 65 64 3a 09 23 75 |ore you |need:.#u|
|00000ad0| 6e 64 65 66 20 4f 4c 44 | 43 55 52 53 45 53 22 0a |ndef OLD|CURSES".|
|00000ae0| 58 09 65 6c 73 65 0a 58 | 09 09 65 63 68 6f 20 22 |X.else.X|..echo "|
|00000af0| 59 6f 75 27 76 65 20 67 | 6f 74 20 61 6e 64 20 6f |You've g|ot and o|
|00000b00| 6c 64 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 63 75 |ld versi|on of cu|
|00000b10| 72 73 65 73 22 0a 58 09 | 09 65 63 68 6f 20 22 54 |rses".X.|.echo "T|
|00000b20| 68 65 72 65 66 6f 72 65 | 20 79 6f 75 20 6e 65 65 |herefore| you nee|
|00000b30| 64 3a 09 23 64 65 66 69 | 6e 65 20 4f 4c 44 43 55 |d:.#defi|ne OLDCU|
|00000b40| 52 53 45 53 22 0a 58 09 | 66 69 0a 66 69 0a 58 3a |RSES".X.|fi.fi.X:|
|00000b50| 0a 58 3a 20 63 68 65 63 | 6b 20 74 68 65 20 6c 69 |.X: chec|k the li|
|00000b60| 62 72 61 72 69 65 73 0a | 65 63 68 6f 20 63 68 65 |braries.|echo che|
|00000b70| 63 6b 69 6e 67 20 79 6f | 75 72 20 43 20 6c 69 62 |cking yo|ur C lib|
|00000b80| 72 61 72 79 2e 2e 2e 2e | 0a 69 66 20 5b 20 2d 66 |rary....|.if [ -f|
|00000b90| 20 2f 75 73 72 2f 35 6c | 69 62 2f 6c 69 62 63 2e | /usr/5l|ib/libc.|
|00000ba0| 61 20 5d 20 3b 74 68 65 | 6e 0a 58 09 61 72 20 74 |a ] ;the|n.X.ar t|
|00000bb0| 20 2f 75 73 72 2f 35 6c | 69 62 2f 6c 69 62 63 2e | /usr/5l|ib/libc.|
|00000bc0| 61 20 3e 20 2f 74 6d 70 | 2f 63 6f 6e 66 69 67 2e |a > /tmp|/config.|
|00000bd0| 24 24 0a 65 6c 73 65 0a | 58 09 69 66 20 5b 20 2d |$$.else.|X.if [ -|
|00000be0| 66 20 2f 75 73 72 2f 6c | 69 62 2f 6c 69 62 63 2e |f /usr/l|ib/libc.|
|00000bf0| 61 20 5d 20 3b 74 68 65 | 6e 0a 58 09 09 61 72 20 |a ] ;the|n.X..ar |
|00000c00| 74 20 2f 75 73 72 2f 6c | 69 62 2f 6c 69 62 63 2e |t /usr/l|ib/libc.|
|00000c10| 61 20 3e 20 2f 74 6d 70 | 2f 63 6f 6e 66 69 67 2e |a > /tmp|/config.|
|00000c20| 24 24 0a 58 09 65 6c 73 | 65 0a 58 09 09 69 66 20 |$$.X.els|e.X..if |
|00000c30| 5b 20 2d 66 20 2f 6c 69 | 62 2f 6c 69 62 63 2e 61 |[ -f /li|b/libc.a|
|00000c40| 20 5d 20 3b 74 68 65 6e | 0a 58 09 09 09 61 72 20 | ] ;then|.X...ar |
|00000c50| 74 20 2f 6c 69 62 2f 6c | 69 62 63 2e 61 20 3e 20 |t /lib/l|ibc.a > |
|00000c60| 2f 74 6d 70 2f 63 6f 6e | 66 69 67 2e 24 24 0a 58 |/tmp/con|fig.$$.X|
|00000c70| 09 09 65 6c 73 65 0a 58 | 09 09 09 69 66 20 5b 20 |..else.X|...if [ |
|00000c80| 2d 66 20 2f 75 73 72 2f | 63 63 73 2f 6c 69 62 2f |-f /usr/|ccs/lib/|
|00000c90| 6c 69 62 63 2e 61 20 5d | 20 3b 74 68 65 6e 0a 58 |libc.a ]| ;then.X|
|00000ca0| 09 09 09 09 61 72 20 74 | 20 2f 75 73 72 2f 63 63 |....ar t| /usr/cc|
|00000cb0| 73 2f 6c 69 62 2f 6c 69 | 62 63 2e 61 20 3e 20 2f |s/lib/li|bc.a > /|
|00000cc0| 74 6d 70 2f 63 6f 6e 66 | 69 67 2e 24 24 0a 58 09 |tmp/conf|ig.$$.X.|
|00000cd0| 09 09 66 69 0a 58 09 09 | 66 69 0a 58 09 66 69 0a |..fi.X..|fi.X.fi.|
|00000ce0| 66 69 0a 69 66 20 5b 20 | 2d 66 20 2f 74 6d 70 2f |fi.if [ |-f /tmp/|
|00000cf0| 63 6f 6e 66 69 67 2e 24 | 24 20 5d 20 3b 74 68 65 |config.$|$ ] ;the|
|00000d00| 6e 0a 58 09 69 66 20 5b | 20 60 67 72 65 70 20 2d |n.X.if [| `grep -|
|00000d10| 63 20 22 5e 70 6f 6c 6c | 2e 6f 22 20 2f 74 6d 70 |c "^poll|.o" /tmp|
|00000d20| 2f 63 6f 6e 66 69 67 2e | 24 24 60 20 2d 65 71 20 |/config.|$$` -eq |
|00000d30| 31 20 5d 20 3b 74 68 65 | 6e 0a 58 09 09 65 63 68 |1 ] ;the|n.X..ech|
|00000d40| 6f 20 22 59 6f 75 27 76 | 65 20 67 6f 74 20 74 68 |o "You'v|e got th|
|00000d50| 65 20 70 6f 6c 6c 28 29 | 20 66 75 6e 63 74 69 6f |e poll()| functio|
|00000d60| 6e 22 0a 58 09 09 65 63 | 68 6f 20 22 45 64 69 74 |n".X..ec|ho "Edit|
|00000d70| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 3a 09 49 | the Mak|efile:.I|
|00000d80| 50 43 2e 4f 3d 69 70 63 | 5f 61 74 74 2e 6f 20 61 |PC.O=ipc|_att.o a|
|00000d90| 6e 64 20 49 50 43 2e 43 | 3d 69 70 63 5f 61 74 74 |nd IPC.C|=ipc_att|
|00000da0| 2e 63 22 0a 58 09 65 6c | 73 65 0a 58 09 09 69 66 |.c".X.el|se.X..if|
|00000db0| 20 5b 20 60 67 72 65 70 | 20 2d 63 20 22 5e 73 65 | [ `grep| -c "^se|
|00000dc0| 6c 65 63 74 2e 6f 22 20 | 2f 74 6d 70 2f 63 6f 6e |lect.o" |/tmp/con|
|00000dd0| 66 69 67 2e 24 24 60 20 | 2d 65 71 20 31 20 5d 20 |fig.$$` |-eq 1 ] |
|00000de0| 3b 74 68 65 6e 0a 58 09 | 09 09 65 63 68 6f 20 22 |;then.X.|..echo "|
|00000df0| 59 6f 75 27 76 65 20 67 | 6f 74 20 74 68 65 20 73 |You've g|ot the s|
|00000e00| 65 6c 65 63 74 28 29 20 | 66 75 6e 63 74 69 6f 6e |elect() |function|
|00000e10| 22 0a 58 09 09 09 65 63 | 68 6f 20 22 45 64 69 74 |".X...ec|ho "Edit|
|00000e20| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 3a 09 49 | the Mak|efile:.I|
|00000e30| 50 43 2e 4f 3d 69 70 63 | 5f 75 63 62 2e 6f 20 61 |PC.O=ipc|_ucb.o a|
|00000e40| 6e 64 20 49 50 43 2e 43 | 3d 69 70 63 5f 75 63 62 |nd IPC.C|=ipc_ucb|
|00000e50| 2e 63 22 0a 58 09 09 65 | 6c 73 65 0a 58 09 09 09 |.c".X..e|lse.X...|
|00000e60| 65 63 68 6f 20 22 59 6f | 75 20 64 6f 6e 27 74 20 |echo "Yo|u don't |
|00000e70| 73 65 65 6d 20 74 6f 20 | 68 61 76 65 20 65 69 74 |seem to |have eit|
|00000e80| 68 65 72 20 70 6f 6c 6c | 28 29 20 6f 72 20 73 65 |her poll|() or se|
|00000e90| 6c 65 63 74 28 29 22 0a | 58 09 09 09 65 63 68 6f |lect()".|X...echo|
|00000ea0| 20 22 50 65 72 68 61 70 | 73 20 74 68 65 79 20 61 | "Perhap|s they a|
|00000eb0| 72 65 20 69 6e 20 61 6e | 6f 74 68 65 72 20 6c 69 |re in an|other li|
|00000ec0| 62 72 61 72 79 3f 22 0a | 58 09 09 66 69 0a 58 09 |brary?".|X..fi.X.|
|00000ed0| 66 69 0a 58 09 69 66 20 | 5b 20 60 67 72 65 70 20 |fi.X.if |[ `grep |
|00000ee0| 2d 63 20 22 5e 75 73 6c | 65 65 70 2e 6f 22 20 2f |-c "^usl|eep.o" /|
|00000ef0| 74 6d 70 2f 63 6f 6e 66 | 69 67 2e 24 24 60 20 2d |tmp/conf|ig.$$` -|
|00000f00| 65 71 20 31 20 5d 20 3b | 74 68 65 6e 0a 58 09 09 |eq 1 ] ;|then.X..|
|00000f10| 65 63 68 6f 20 22 59 6f | 75 27 76 65 20 67 6f 74 |echo "Yo|u've got|
|00000f20| 20 74 68 65 20 75 73 6c | 65 65 70 28 29 20 66 75 | the usl|eep() fu|
|00000f30| 6e 63 74 69 6f 6e 22 0a | 58 09 09 65 63 68 6f 20 |nction".|X..echo |
|00000f40| 22 54 68 65 72 65 66 6f | 72 65 20 79 6f 75 20 6e |"Therefo|re you n|
|00000f50| 65 65 64 3a 09 23 64 65 | 66 69 6e 65 20 48 41 56 |eed:.#de|fine HAV|
|00000f60| 45 5f 55 53 4c 45 45 50 | 22 0a 58 09 65 6c 73 65 |E_USLEEP|".X.else|
|00000f70| 0a 58 09 09 65 63 68 6f | 20 22 59 6f 75 20 64 6f |.X..echo| "You do|
|00000f80| 6e 27 74 20 68 61 76 65 | 20 74 68 65 20 75 73 6c |n't have| the usl|
|00000f90| 65 65 70 28 29 20 66 75 | 6e 63 74 69 6f 6e 22 0a |eep() fu|nction".|
|00000fa0| 58 09 09 65 63 68 6f 20 | 22 54 68 65 72 65 66 6f |X..echo |"Therefo|
|00000fb0| 72 65 20 79 6f 75 20 6e | 65 65 64 3a 09 23 75 6e |re you n|eed:.#un|
|00000fc0| 64 65 66 20 48 41 56 45 | 5f 55 53 4c 45 45 50 22 |def HAVE|_USLEEP"|
|00000fd0| 0a 58 09 66 69 0a 58 09 | 69 66 20 5b 20 60 67 72 |.X.fi.X.|if [ `gr|
|00000fe0| 65 70 20 2d 63 20 22 5e | 73 74 72 73 74 72 2e 6f |ep -c "^|strstr.o|
|00000ff0| 22 20 2f 74 6d 70 2f 63 | 6f 6e 66 69 67 2e 24 24 |" /tmp/c|onfig.$$|
|00001000| 60 20 2d 65 71 20 31 20 | 5d 20 3b 74 68 65 6e 0a |` -eq 1 |] ;then.|
|00001010| 58 09 09 65 63 68 6f 20 | 22 59 6f 75 27 76 65 20 |X..echo |"You've |
|00001020| 67 6f 74 20 74 68 65 20 | 73 74 72 73 74 72 28 29 |got the |strstr()|
|00001030| 20 66 75 6e 63 74 69 6f | 6e 22 0a 58 09 09 65 63 | functio|n".X..ec|
|00001040| 68 6f 20 22 54 68 65 72 | 65 66 6f 72 65 20 79 6f |ho "Ther|efore yo|
|00001050| 75 20 6e 65 65 64 3a 09 | 23 64 65 66 69 6e 65 20 |u need:.|#define |
|00001060| 48 41 56 45 5f 53 54 52 | 53 54 52 22 0a 58 09 65 |HAVE_STR|STR".X.e|
|00001070| 6c 73 65 0a 58 09 09 65 | 63 68 6f 20 22 59 6f 75 |lse.X..e|cho "You|
|00001080| 20 64 6f 6e 27 74 20 68 | 61 76 65 20 74 68 65 20 | don't h|ave the |
|00001090| 73 74 72 73 74 72 28 29 | 20 66 75 6e 63 74 69 6f |strstr()| functio|
|000010a0| 6e 22 0a 58 09 09 65 63 | 68 6f 20 22 54 68 65 72 |n".X..ec|ho "Ther|
|000010b0| 65 66 6f 72 65 20 79 6f | 75 20 6e 65 65 64 3a 09 |efore yo|u need:.|
|000010c0| 23 75 6e 64 65 66 20 48 | 41 56 45 5f 53 54 52 53 |#undef H|AVE_STRS|
|000010d0| 54 52 22 0a 58 09 66 69 | 0a 58 09 69 66 20 5b 20 |TR".X.fi|.X.if [ |
|000010e0| 60 67 72 65 70 20 2d 63 | 20 22 5e 6d 65 6d 6d 6f |`grep -c| "^memmo|
|000010f0| 76 65 2e 6f 22 20 2f 74 | 6d 70 2f 63 6f 6e 66 69 |ve.o" /t|mp/confi|
|00001100| 67 2e 24 24 60 20 2d 65 | 71 20 31 20 5d 20 3b 74 |g.$$` -e|q 1 ] ;t|
|00001110| 68 65 6e 0a 58 09 09 65 | 63 68 6f 20 22 59 6f 75 |hen.X..e|cho "You|
|00001120| 27 76 65 20 67 6f 74 20 | 74 68 65 20 6d 65 6d 6d |'ve got |the memm|
|00001130| 6f 76 65 28 29 20 66 75 | 6e 63 74 69 6f 6e 22 0a |ove() fu|nction".|
|00001140| 58 09 09 65 63 68 6f 20 | 22 54 68 65 72 65 66 6f |X..echo |"Therefo|
|00001150| 72 65 20 79 6f 75 20 6e | 65 65 64 3a 09 23 64 65 |re you n|eed:.#de|
|00001160| 66 69 6e 65 20 4d 45 4d | 4d 4f 56 45 28 61 2c 62 |fine MEM|MOVE(a,b|
|00001170| 2c 63 29 20 6d 65 6d 6d | 6f 76 65 28 61 2c 62 2c |,c) memm|ove(a,b,|
|00001180| 63 29 22 0a 58 09 65 6c | 73 65 0a 58 09 09 69 66 |c)".X.el|se.X..if|
|00001190| 20 5b 20 60 67 72 65 70 | 20 2d 63 20 22 5e 6d 65 | [ `grep| -c "^me|
|000011a0| 6d 63 70 79 2e 6f 22 20 | 2f 74 6d 70 2f 63 6f 6e |mcpy.o" |/tmp/con|
|000011b0| 66 69 67 2e 24 24 60 20 | 2d 65 71 20 31 20 5d 20 |fig.$$` |-eq 1 ] |
|000011c0| 3b 74 68 65 6e 0a 58 09 | 09 09 65 63 68 6f 20 22 |;then.X.|..echo "|
|000011d0| 59 6f 75 27 76 65 20 67 | 6f 74 20 74 68 65 20 6d |You've g|ot the m|
|000011e0| 65 6d 63 70 79 28 29 20 | 66 75 6e 63 74 69 6f 6e |emcpy() |function|
|000011f0| 22 0a 58 09 09 09 65 63 | 68 6f 20 22 54 68 65 72 |".X...ec|ho "Ther|
|00001200| 65 66 6f 72 65 20 79 6f | 75 20 6e 65 65 64 3a 09 |efore yo|u need:.|
|00001210| 23 64 65 66 69 6e 65 20 | 4d 45 4d 4d 4f 56 45 28 |#define |MEMMOVE(|
|00001220| 61 2c 62 2c 63 29 20 6d | 65 6d 63 70 79 28 61 2c |a,b,c) m|emcpy(a,|
|00001230| 62 2c 63 29 22 0a 58 09 | 09 65 6c 73 65 0a 58 09 |b,c)".X.|.else.X.|
|00001240| 09 09 69 66 20 5b 20 60 | 67 72 65 70 20 2d 63 20 |..if [ `|grep -c |
|00001250| 22 5e 62 63 6f 70 79 2e | 6f 22 20 2f 74 6d 70 2f |"^bcopy.|o" /tmp/|
|00001260| 63 6f 6e 66 69 67 2e 24 | 24 60 20 2d 65 71 20 31 |config.$|$` -eq 1|
|00001270| 20 5d 20 3b 74 68 65 6e | 0a 58 09 09 09 09 65 63 | ] ;then|.X....ec|
|00001280| 68 6f 20 22 59 6f 75 27 | 76 65 20 67 6f 74 20 74 |ho "You'|ve got t|
|00001290| 68 65 20 62 63 6f 70 79 | 28 29 20 66 75 6e 63 74 |he bcopy|() funct|
|000012a0| 69 6f 6e 22 0a 58 09 09 | 09 09 65 63 68 6f 20 22 |ion".X..|..echo "|
|000012b0| 54 68 65 72 65 66 6f 72 | 65 20 79 6f 75 20 6e 65 |Therefor|e you ne|
|000012c0| 65 64 3a 09 23 64 65 66 | 69 6e 65 20 4d 45 4d 4d |ed:.#def|ine MEMM|
|000012d0| 4f 56 45 28 61 2c 62 2c | 63 29 20 62 63 6f 70 79 |OVE(a,b,|c) bcopy|
|000012e0| 28 62 2c 61 2c 63 29 22 | 0a 58 09 09 09 66 69 0a |(b,a,c)"|.X...fi.|
|000012f0| 58 09 09 66 69 0a 58 09 | 66 69 0a 58 09 69 66 20 |X..fi.X.|fi.X.if |
|00001300| 5b 20 60 67 72 65 70 20 | 2d 63 20 22 5e 74 72 75 |[ `grep |-c "^tru|
|00001310| 6e 63 61 74 65 2e 6f 22 | 20 2f 74 6d 70 2f 63 6f |ncate.o"| /tmp/co|
|00001320| 6e 66 69 67 2e 24 24 60 | 20 2d 65 71 20 31 20 5d |nfig.$$`| -eq 1 ]|
|00001330| 20 3b 74 68 65 6e 0a 58 | 09 09 65 63 68 6f 20 22 | ;then.X|..echo "|
|00001340| 59 6f 75 27 76 65 20 67 | 6f 74 20 74 68 65 20 74 |You've g|ot the t|
|00001350| 72 75 6e 63 61 74 65 28 | 29 20 66 75 6e 63 74 69 |runcate(|) functi|
|00001360| 6f 6e 22 0a 58 09 09 65 | 63 68 6f 20 22 54 68 65 |on".X..e|cho "The|
|00001370| 72 65 66 6f 72 65 20 79 | 6f 75 20 6e 65 65 64 3a |refore y|ou need:|
|00001380| 09 23 64 65 66 69 6e 65 | 20 48 41 56 45 5f 54 52 |.#define| HAVE_TR|
|00001390| 55 4e 43 41 54 45 22 0a | 58 09 65 6c 73 65 0a 58 |UNCATE".|X.else.X|
|000013a0| 09 09 65 63 68 6f 20 22 | 59 6f 75 20 64 6f 6e 27 |..echo "|You don'|
|000013b0| 74 20 68 61 76 65 20 74 | 68 65 20 74 72 75 6e 63 |t have t|he trunc|
|000013c0| 61 74 65 28 29 20 66 75 | 6e 63 74 69 6f 6e 22 0a |ate() fu|nction".|
|000013d0| 58 09 09 65 63 68 6f 20 | 22 54 68 65 72 65 66 6f |X..echo |"Therefo|
|000013e0| 72 65 20 79 6f 75 20 6e | 65 65 64 3a 09 23 75 6e |re you n|eed:.#un|
|000013f0| 64 65 66 20 48 41 56 45 | 5f 54 52 55 4e 43 41 54 |def HAVE|_TRUNCAT|
|00001400| 45 22 0a 58 09 66 69 0a | 58 09 72 6d 20 2f 74 6d |E".X.fi.|X.rm /tm|
|00001410| 70 2f 63 6f 6e 66 69 67 | 2e 24 24 0a 65 6c 73 65 |p/config|.$$.else|
|00001420| 0a 58 09 65 63 68 6f 20 | 22 43 61 6e 27 74 20 64 |.X.echo |"Can't d|
|00001430| 65 74 65 72 6d 69 6e 65 | 20 79 6f 75 72 20 43 20 |etermine| your C |
|00001440| 66 75 6e 63 74 69 6f 6e | 73 22 0a 66 69 0a 45 4e |function|s".fi.EN|
|00001450| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00001460| 74 20 33 37 38 39 20 2d | 6e 65 20 60 77 63 20 2d |t 3789 -|ne `wc -|
|00001470| 63 20 3c 27 43 6f 6e 66 | 69 67 75 72 65 2e 73 68 |c <'Conf|igure.sh|
|00001480| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00001490| 6f 20 73 68 61 72 3a 20 | 5c 22 27 43 6f 6e 66 69 |o shar: |\"'Confi|
|000014a0| 67 75 72 65 2e 73 68 27 | 5c 22 20 75 6e 70 61 63 |gure.sh'|\" unpac|
|000014b0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|000014c0| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000014d0| 20 27 43 6f 6e 66 69 67 | 75 72 65 2e 73 68 27 0a | 'Config|ure.sh'.|
|000014e0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 50 |fi.if te|st -f 'P|
|000014f0| 63 6f 6d 6d 5f 63 6d 64 | 2e 31 27 20 2d 61 20 22 |comm_cmd|.1' -a "|
|00001500| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00001510| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00001520| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00001530| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00001540| 65 20 5c 22 27 50 63 6f | 6d 6d 5f 63 6d 64 2e 31 |e \"'Pco|mm_cmd.1|
|00001550| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00001560| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00001570| 22 27 50 63 6f 6d 6d 5f | 63 6d 64 2e 31 27 5c 22 |"'Pcomm_|cmd.1'\"|
|00001580| 20 5c 28 36 31 32 37 20 | 63 68 61 72 61 63 74 65 | \(6127 |characte|
|00001590| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|000015a0| 22 20 3e 27 50 63 6f 6d | 6d 5f 63 6d 64 2e 31 27 |" >'Pcom|m_cmd.1'|
|000015b0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000015c0| 0a 58 2e 69 66 20 6e 20 | 2e 64 73 20 72 71 20 22 |.X.if n |.ds rq "|
|000015d0| 22 0a 58 2e 65 6c 20 2e | 64 73 20 72 71 20 27 27 |".X.el .|ds rq ''|
|000015e0| 0a 58 2e 69 66 20 6e 20 | 2e 64 73 20 6c 71 20 22 |.X.if n |.ds lq "|
|000015f0| 22 0a 58 2e 65 6c 20 2e | 64 73 20 6c 71 20 60 60 |".X.el .|ds lq ``|
|00001600| 0a 58 2e 54 48 20 70 63 | 6f 6d 6d 5f 63 6d 64 20 |.X.TH pc|omm_cmd |
|00001610| 4c 0a 58 2e 53 48 20 4e | 41 4d 45 0a 70 63 6f 6d |L.X.SH N|AME.pcom|
|00001620| 6d 5f 63 6d 64 20 5c 2d | 20 73 65 6e 64 20 61 20 |m_cmd \-| send a |
|00001630| 63 6f 6d 6d 61 6e 64 20 | 74 6f 20 50 63 6f 6d 6d |command |to Pcomm|
|00001640| 0a 58 2e 53 48 20 53 59 | 4e 4f 50 53 49 53 0a 58 |.X.SH SY|NOPSIS.X|
|00001650| 2e 42 20 70 63 6f 6d 6d | 5f 63 6d 64 0a 58 5b 20 |.B pcomm|_cmd.X[ |
|00001660| 63 6f 6d 6d 61 6e 64 20 | 5d 20 5b 20 6f 70 74 69 |command |] [ opti|
|00001670| 6f 6e 73 20 5d 20 5b 20 | 61 72 67 75 6d 65 6e 74 |ons ] [ |argument|
|00001680| 73 20 5d 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |s ].X.SH| DESCRIP|
|00001690| 54 49 4f 4e 0a 58 2e 49 | 20 50 63 6f 6d 6d 5f 63 |TION.X.I| Pcomm_c|
|000016a0| 6d 64 0a 69 73 20 61 20 | 50 63 6f 6d 6d 20 73 75 |md.is a |Pcomm su|
|000016b0| 70 70 6f 72 74 20 70 72 | 6f 67 72 61 6d 2e 20 20 |pport pr|ogram. |
|000016c0| 49 74 20 69 73 20 75 73 | 65 64 20 66 72 6f 6d 20 |It is us|ed from |
|000016d0| 69 6e 73 69 64 65 20 73 | 68 65 6c 6c 20 73 63 72 |inside s|hell scr|
|000016e0| 69 70 74 73 20 74 6f 20 | 61 63 63 65 73 73 0a 50 |ipts to |access.P|
|000016f0| 63 6f 6d 6d 20 63 6f 6d | 6d 61 6e 64 73 2c 20 73 |comm com|mands, s|
|00001700| 75 63 68 20 61 73 0a 58 | 2e 49 20 5c 2a 28 6c 71 |uch as.X|.I \*(lq|
|00001710| 70 63 6f 6d 6d 5f 63 6d | 64 20 73 65 6e 64 20 78 |pcomm_cm|d send x|
|00001720| 6d 6f 64 65 6d 20 6a 75 | 6e 6b 5c 2a 28 72 71 0a |modem ju|nk\*(rq.|
|00001730| 66 6f 72 20 73 65 6e 64 | 69 6e 67 20 74 68 65 20 |for send|ing the |
|00001740| 66 69 6c 65 20 5c 2a 28 | 6c 71 6a 75 6e 6b 5c 2a |file \*(|lqjunk\*|
|00001750| 28 72 71 20 74 6f 20 74 | 68 65 20 72 65 6d 6f 74 |(rq to t|he remot|
|00001760| 65 20 75 73 69 6e 67 20 | 74 68 65 20 78 6d 6f 64 |e using |the xmod|
|00001770| 65 6d 20 66 69 6c 65 0a | 74 72 61 6e 73 66 65 72 |em file.|transfer|
|00001780| 20 70 72 6f 74 6f 63 6f | 6c 2e 0a 58 2e 50 50 0a | protoco|l..X.PP.|
|00001790| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 63 6f |The foll|owing co|
|000017a0| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 6f 70 74 69 6f |mmand li|ne optio|
|000017b0| 6e 73 20 61 72 65 20 73 | 75 70 70 6f 72 74 65 64 |ns are s|upported|
|000017c0| 2e 0a 58 2e 54 50 0a 53 | 45 54 20 42 41 55 44 20 |..X.TP.S|ET BAUD |
|000017d0| 5b 20 33 30 30 20 7c 20 | 31 32 30 30 20 7c 20 32 |[ 300 | |1200 | 2|
|000017e0| 34 30 30 20 7c 20 34 38 | 30 30 20 7c 20 39 36 30 |400 | 48|00 | 960|
|000017f0| 30 20 7c 20 31 39 32 30 | 30 20 7c 20 33 38 34 30 |0 | 1920|0 | 3840|
|00001800| 30 20 5d 0a 53 65 74 20 | 74 68 65 20 62 61 75 64 |0 ].Set |the baud|
|00001810| 20 72 61 74 65 20 66 6f | 72 20 74 68 65 20 63 75 | rate fo|r the cu|
|00001820| 72 72 65 6e 74 20 63 6f | 6e 6e 65 63 74 69 6f 6e |rrent co|nnection|
|00001830| 2e 20 20 54 68 69 73 20 | 66 65 61 74 75 72 65 20 |. This |feature |
|00001840| 69 73 20 66 6f 72 20 75 | 73 65 0a 77 69 74 68 20 |is for u|se.with |
|00001850| 74 68 65 20 44 49 41 4c | 20 4d 41 4e 55 41 4c 20 |the DIAL| MANUAL |
|00001860| 63 6f 6d 6d 61 6e 64 2c | 20 73 69 6e 63 65 20 74 |command,| since t|
|00001870| 68 65 20 62 61 75 64 20 | 72 61 74 65 20 69 6e 66 |he baud |rate inf|
|00001880| 6f 72 6d 61 74 69 6f 6e | 20 69 6e 20 74 68 65 0a |ormation| in the.|
|00001890| 64 69 61 6c 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |dialing |director|
|000018a0| 79 20 65 6e 74 72 69 65 | 73 20 6f 76 65 72 72 69 |y entrie|s overri|
|000018b0| 64 65 73 20 74 68 69 73 | 20 76 61 6c 75 65 2e 20 |des this| value. |
|000018c0| 0a 58 2e 54 50 0a 53 45 | 54 20 50 41 52 49 54 59 |.X.TP.SE|T PARITY|
|000018d0| 20 5b 20 45 56 45 4e 20 | 7c 20 4f 44 44 20 7c 20 | [ EVEN || ODD | |
|000018e0| 4e 4f 4e 45 20 5d 0a 53 | 65 74 20 74 68 65 20 70 |NONE ].S|et the p|
|000018f0| 61 72 69 74 79 20 66 6f | 72 20 74 68 65 20 63 75 |arity fo|r the cu|
|00001900| 72 72 65 6e 74 20 63 6f | 6e 6e 65 63 74 69 6f 6e |rrent co|nnection|
|00001910| 2e 20 20 46 6f 72 20 75 | 73 65 20 77 69 74 68 20 |. For u|se with |
|00001920| 74 68 65 20 44 49 41 4c | 20 4d 41 4e 55 41 4c 0a |the DIAL| MANUAL.|
|00001930| 63 6f 6d 6d 61 6e 64 2e | 0a 58 2e 54 50 0a 53 45 |command.|.X.TP.SE|
|00001940| 54 20 44 41 54 41 5f 42 | 49 54 53 20 5b 20 37 20 |T DATA_B|ITS [ 7 |
|00001950| 7c 20 38 20 5d 0a 54 68 | 65 20 6e 75 6d 62 65 72 || 8 ].Th|e number|
|00001960| 20 6f 66 20 64 61 74 61 | 20 62 69 74 73 20 28 77 | of data| bits (w|
|00001970| 6f 72 64 20 6c 65 6e 67 | 74 68 29 20 75 73 65 64 |ord leng|th) used|
|00001980| 20 66 6f 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | for the| current|
|00001990| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 2e 0a 58 46 6f | connect|ion..XFo|
|000019a0| 72 20 75 73 65 20 77 69 | 74 68 20 74 68 65 20 44 |r use wi|th the D|
|000019b0| 49 41 4c 20 4d 41 4e 55 | 41 4c 20 63 6f 6d 6d 61 |IAL MANU|AL comma|
|000019c0| 6e 64 2e 0a 58 2e 54 50 | 0a 53 45 54 20 53 54 4f |nd..X.TP|.SET STO|
|000019d0| 50 5f 42 49 54 53 20 5b | 20 31 20 7c 20 32 20 5d |P_BITS [| 1 | 2 ]|
|000019e0| 0a 54 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 73 |.The num|ber of s|
|000019f0| 74 6f 70 20 62 69 74 73 | 20 66 6f 72 20 74 68 65 |top bits| for the|
|00001a00| 20 63 75 72 72 65 6e 74 | 20 63 6f 6e 6e 65 63 74 | current| connect|
|00001a10| 69 6f 6e 2e 20 20 46 6f | 72 20 75 73 65 20 77 69 |ion. Fo|r use wi|
|00001a20| 74 68 20 74 68 65 0a 44 | 49 41 4c 20 4d 41 4e 55 |th the.D|IAL MANU|
|00001a30| 41 4c 20 63 6f 6d 6d 61 | 6e 64 2e 0a 58 2e 54 50 |AL comma|nd..X.TP|
|00001a40| 0a 53 45 54 20 44 55 50 | 4c 45 58 20 5b 20 48 41 |.SET DUP|LEX [ HA|
|00001a50| 4c 46 20 7c 20 46 55 4c | 4c 20 5d 0a 53 65 74 20 |LF | FUL|L ].Set |
|00001a60| 74 68 65 20 64 75 70 6c | 65 78 20 6d 6f 64 65 20 |the dupl|ex mode |
|00001a70| 28 6c 6f 63 61 6c 20 65 | 63 68 6f 29 2e 20 20 54 |(local e|cho). T|
|00001a80| 68 65 20 48 41 4c 46 20 | 6f 70 74 69 6f 6e 20 69 |he HALF |option i|
|00001a90| 73 20 75 73 65 64 20 69 | 66 20 74 68 65 20 72 65 |s used i|f the re|
|00001aa0| 6d 6f 74 65 0a 73 79 73 | 74 65 6d 20 64 6f 65 73 |mote.sys|tem does|
|00001ab0| 20 6e 6f 74 20 65 63 68 | 6f 20 63 68 61 72 61 63 | not ech|o charac|
|00001ac0| 74 65 72 73 20 61 73 20 | 74 68 65 79 20 61 72 65 |ters as |they are|
|00001ad0| 20 74 79 70 65 64 2e 0a | 58 2e 54 50 0a 53 45 54 | typed..|X.TP.SET|
|00001ae0| 20 41 55 58 20 66 69 6c | 65 6e 61 6d 65 0a 55 73 | AUX fil|ename.Us|
|00001af0| 65 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 20 61 |e the ar|gument a|
|00001b00| 73 20 74 68 65 20 61 75 | 78 69 6c 69 61 72 79 20 |s the au|xiliary |
|00001b10| 66 69 6c 65 20 61 73 73 | 6f 63 69 61 74 65 64 20 |file ass|ociated |
|00001b20| 77 69 74 68 20 74 68 65 | 20 63 75 72 72 65 6e 74 |with the| current|
|00001b30| 0a 63 6f 6e 6e 65 63 74 | 69 6f 6e 2e 20 20 53 69 |.connect|ion. Si|
|00001b40| 6e 63 65 20 63 68 61 69 | 6e 69 6e 67 20 6f 66 20 |nce chai|ning of |
|00001b50| 73 63 72 69 70 74 73 20 | 69 73 20 6e 6f 74 20 73 |scripts |is not s|
|00001b60| 75 70 70 6f 72 74 65 64 | 2c 20 74 68 69 73 20 66 |upported|, this f|
|00001b70| 65 61 74 75 72 65 0a 77 | 6f 75 6c 64 20 6f 6e 6c |eature.w|ould onl|
|00001b80| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 73 65 74 |y be use|d to set|
|00001b90| 20 74 68 65 20 54 54 59 | 20 6f 72 20 6d 6f 64 65 | the TTY| or mode|
|00001ba0| 6d 2e 0a 58 2e 54 50 0a | 53 45 54 20 48 4f 54 5f |m..X.TP.|SET HOT_|
|00001bb0| 4b 45 59 20 5b 31 2d 32 | 35 36 5d 0a 43 68 61 6e |KEY [1-2|56].Chan|
|00001bc0| 67 65 20 74 68 65 20 64 | 65 63 69 6d 61 6c 20 76 |ge the d|ecimal v|
|00001bd0| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 5c 2a 28 6c |alue of |the \*(l|
|00001be0| 71 68 6f 74 20 6b 65 79 | 5c 2a 28 72 71 20 74 6f |qhot key|\*(rq to|
|00001bf0| 20 74 68 69 73 20 76 61 | 6c 75 65 2e 0a 58 2e 54 | this va|lue..X.T|
|00001c00| 50 0a 53 45 54 20 41 53 | 43 49 49 5f 48 4f 54 20 |P.SET AS|CII_HOT |
|00001c10| 73 74 72 69 6e 67 0a 43 | 68 61 6e 67 65 20 74 68 |string.C|hange th|
|00001c20| 65 20 41 53 43 49 49 20 | 72 65 70 72 65 73 65 6e |e ASCII |represen|
|00001c30| 74 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 68 6f |tation o|f the ho|
|00001c40| 74 20 6b 65 79 20 74 6f | 20 74 68 65 20 67 69 76 |t key to| the giv|
|00001c50| 65 6e 20 61 72 67 75 6d | 65 6e 74 2e 20 20 54 68 |en argum|ent. Th|
|00001c60| 65 0a 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e.length| of the |
|00001c70| 73 74 72 69 6e 67 20 6d | 75 73 74 20 62 65 20 6e |string m|ust be n|
|00001c80| 6f 20 6d 6f 72 65 20 74 | 68 61 6e 20 34 20 63 68 |o more t|han 4 ch|
|00001c90| 61 72 61 63 74 65 72 73 | 20 77 69 64 65 2e 0a 58 |aracters| wide..X|
|00001ca0| 2e 54 50 0a 53 45 54 20 | 46 4c 4f 57 5f 43 54 52 |.TP.SET |FLOW_CTR|
|00001cb0| 4c 20 5b 20 58 4f 4e 2f | 58 4f 46 46 20 7c 20 4e |L [ XON/|XOFF | N|
|00001cc0| 4f 4e 45 20 5d 0a 53 65 | 74 20 74 68 65 20 66 6c |ONE ].Se|t the fl|
|00001cd0| 6f 77 20 63 6f 6e 74 72 | 6f 6c 20 62 65 74 77 65 |ow contr|ol betwe|
|00001ce0| 65 6e 20 74 68 65 20 6c | 6f 63 61 6c 20 61 6e 64 |en the l|ocal and|
|00001cf0| 20 72 65 6d 6f 74 65 20 | 73 79 73 74 65 6d 73 20 | remote |systems |
|00001d00| 74 6f 20 65 69 74 68 65 | 72 20 58 4f 4e 2f 58 4f |to eithe|r XON/XO|
|00001d10| 46 46 0a 6f 72 20 4e 4f | 4e 45 2e 0a 58 2e 54 50 |FF.or NO|NE..X.TP|
|00001d20| 0a 53 45 54 20 43 52 5f | 49 4e 20 5b 20 43 52 20 |.SET CR_|IN [ CR |
|00001d30| 7c 20 43 52 2f 4c 46 20 | 5d 0a 54 72 61 6e 73 6c || CR/LF |].Transl|
|00001d40| 61 74 65 20 69 6e 2d 63 | 6f 6d 6d 69 6e 67 20 63 |ate in-c|omming c|
|00001d50| 61 72 72 69 61 67 65 20 | 72 65 74 75 72 6e 73 20 |arriage |returns |
|00001d60| 63 61 72 72 69 61 67 65 | 20 72 65 74 75 72 6e 20 |carriage| return |
|00001d70| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 20 6c 69 |followed| by a li|
|00001d80| 6e 65 0a 66 65 65 64 2c | 20 6f 72 20 70 61 73 73 |ne.feed,| or pass|
|00001d90| 20 74 68 65 20 63 61 72 | 72 69 61 67 65 20 72 65 | the car|riage re|
|00001da0| 74 75 72 6e 20 74 68 72 | 6f 75 67 68 20 75 6e 63 |turn thr|ough unc|
|00001db0| 68 61 6e 67 65 64 2e 0a | 58 2e 54 50 0a 53 45 54 |hanged..|X.TP.SET|
|00001dc0| 20 43 52 5f 4f 55 54 20 | 5b 20 43 52 20 7c 20 43 | CR_OUT |[ CR | C|
|00001dd0| 52 2f 4c 46 20 5d 0a 54 | 72 61 6e 73 6c 61 74 65 |R/LF ].T|ranslate|
|00001de0| 20 6f 75 74 2d 67 6f 69 | 6e 67 20 63 61 72 72 69 | out-goi|ng carri|
|00001df0| 61 67 65 20 72 65 74 75 | 72 6e 73 20 74 6f 20 43 |age retu|rns to C|
|00001e00| 52 20 6f 72 20 43 52 2f | 4c 46 2e 0a 58 2e 54 50 |R or CR/|LF..X.TP|
|00001e10| 0a 53 45 54 20 4c 4f 47 | 46 49 4c 45 20 66 69 6c |.SET LOG|FILE fil|
|00001e20| 65 6e 61 6d 65 0a 43 68 | 61 6e 67 65 20 74 68 65 |ename.Ch|ange the|
|00001e30| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 64 65 66 | name of| the def|
|00001e40| 61 75 6c 74 20 6c 6f 67 | 20 66 69 6c 65 2e 20 20 |ault log| file. |
|00001e50| 46 6f 72 20 75 73 65 20 | 77 69 74 68 20 74 68 65 |For use |with the|
|00001e60| 20 44 41 54 41 5f 4c 4f | 47 20 63 6f 6d 6d 61 6e | DATA_LO|G comman|
|00001e70| 64 2e 0a 58 2e 54 50 0a | 53 45 54 20 44 55 4d 50 |d..X.TP.|SET DUMP|
|00001e80| 46 49 4c 45 20 66 69 6c | 65 6e 61 6d 65 0a 43 68 |FILE fil|ename.Ch|
|00001e90| 61 6e 67 65 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ange the| name of|
|00001ea0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 64 75 6d 70 | the scr|een dump|
|00001eb0| 20 66 69 6c 65 2e 20 20 | 46 6f 72 20 75 73 65 20 | file. |For use |
|00001ec0| 77 69 74 68 20 74 68 65 | 20 53 43 52 45 45 4e 5f |with the| SCREEN_|
|00001ed0| 44 55 4d 50 20 0a 63 6f | 6d 6d 61 6e 64 2e 0a 58 |DUMP .co|mmand..X|
|00001ee0| 2e 54 50 0a 53 45 54 20 | 53 54 52 49 50 20 5b 20 |.TP.SET |STRIP [ |
|00001ef0| 59 45 53 20 7c 20 4e 4f | 20 5d 0a 53 68 6f 75 6c |YES | NO| ].Shoul|
|00001f00| 64 20 74 68 65 20 69 6e | 2d 63 6f 6d 6d 69 6e 67 |d the in|-comming|
|00001f10| 20 64 61 74 61 20 62 65 | 20 73 74 72 69 70 70 65 | data be| strippe|
|00001f20| 64 20 74 6f 20 37 20 62 | 69 74 73 3f 0a 58 2e 54 |d to 7 b|its?.X.T|
|00001f30| 50 0a 53 45 54 20 4c 4f | 43 41 4c 5f 45 43 48 4f |P.SET LO|CAL_ECHO|
|00001f40| 20 5b 20 59 45 53 20 7c | 20 4e 4f 20 5d 0a 53 68 | [ YES || NO ].Sh|
|00001f50| 6f 75 6c 64 20 64 61 74 | 61 20 62 65 20 73 68 6f |ould dat|a be sho|
|00001f60| 77 6e 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |wn on th|e screen|
|00001f70| 20 64 75 72 69 6e 67 20 | 41 53 43 49 49 20 75 70 | during |ASCII up|
|00001f80| 6c 6f 61 64 73 3f 0a 58 | 2e 54 50 0a 53 45 54 20 |loads?.X|.TP.SET |
|00001f90| 45 58 50 41 4e 44 20 5b | 20 59 45 53 20 7c 20 4e |EXPAND [| YES | N|
|00001fa0| 4f 20 5d 0a 53 68 6f 75 | 6c 64 20 62 6c 61 6e 6b |O ].Shou|ld blank|
|00001fb0| 20 6c 69 6e 65 73 20 62 | 65 20 5c 2a 28 6c 71 65 | lines b|e \*(lqe|
|00001fc0| 78 70 61 6e 64 65 64 5c | 2a 28 72 71 20 74 6f 20 |xpanded\|*(rq to |
|00001fd0| 61 20 6c 69 6e 65 20 77 | 69 74 68 20 61 20 73 69 |a line w|ith a si|
|00001fe0| 6e 67 6c 65 20 73 70 61 | 63 65 3f 0a 58 46 6f 72 |ngle spa|ce?.XFor|
|00001ff0| 20 75 73 65 20 6f 6e 6c | 79 20 64 75 72 69 6e 67 | use onl|y during|
|00002000| 20 41 53 43 49 49 20 75 | 70 6c 6f 61 64 73 2e 0a | ASCII u|ploads..|
|00002010| 58 2e 54 50 0a 53 45 54 | 20 43 52 5f 44 45 4c 41 |X.TP.SET| CR_DELA|
|00002020| 59 20 5b 20 30 20 7c 20 | 31 30 30 20 7c 20 31 35 |Y [ 0 | |100 | 15|
|00002030| 30 20 5d 0a 53 65 74 20 | 74 68 65 20 64 65 6c 61 |0 ].Set |the dela|
|00002040| 79 20 66 6f 72 20 74 68 | 65 20 63 61 72 72 61 69 |y for th|e carrai|
|00002050| 67 65 20 72 65 74 75 72 | 6e 73 20 66 6f 72 20 41 |ge retur|ns for A|
|00002060| 53 43 49 49 20 75 70 6c | 6f 61 64 73 2e 0a 58 2e |SCII upl|oads..X.|
|00002070| 54 50 0a 53 45 54 20 50 | 41 43 45 20 5b 20 59 45 |TP.SET P|ACE [ YE|
|00002080| 53 20 7c 20 4e 4f 20 5d | 0a 53 68 6f 75 6c 64 20 |S | NO ]|.Should |
|00002090| 74 68 65 20 65 6e 74 69 | 72 65 20 75 70 6c 6f 61 |the enti|re uploa|
|000020a0| 64 20 62 65 20 61 72 74 | 69 66 69 63 61 6c 6c 79 |d be art|ifically|
|000020b0| 20 73 6c 6f 77 65 64 20 | 64 6f 77 6e 3f 20 20 46 | slowed |down? F|
|000020c0| 6f 72 20 75 73 65 20 64 | 75 72 69 6e 67 20 41 53 |or use d|uring AS|
|000020d0| 43 49 49 0a 75 70 6c 6f | 61 64 73 2e 0a 58 2e 54 |CII.uplo|ads..X.T|
|000020e0| 50 0a 53 45 54 20 43 52 | 5f 55 50 20 5b 20 4e 4f |P.SET CR|_UP [ NO|
|000020f0| 4e 45 20 7c 20 41 44 44 | 5f 4c 46 20 7c 20 53 54 |NE | ADD|_LF | ST|
|00002100| 52 49 50 20 5d 0a 43 6f | 6e 74 72 6f 6c 73 20 74 |RIP ].Co|ntrols t|
|00002110| 68 65 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 6f |he trans|lation o|
|00002120| 66 20 63 61 72 72 61 69 | 67 65 20 72 65 74 75 72 |f carrai|ge retur|
|00002130| 6e 73 20 64 75 72 69 6e | 67 20 41 53 43 49 49 20 |ns durin|g ASCII |
|00002140| 75 70 6c 6f 61 64 73 2e | 0a 58 2e 54 50 0a 53 45 |uploads.|.X.TP.SE|
|00002150| 54 20 4c 46 5f 55 50 20 | 5b 20 4e 4f 4e 45 20 7c |T LF_UP |[ NONE ||
|00002160| 20 41 44 44 5f 43 52 20 | 7c 20 53 54 52 49 50 20 | ADD_CR || STRIP |
|00002170| 5d 0a 43 6f 6e 74 72 6f | 6c 73 20 74 68 65 20 74 |].Contro|ls the t|
|00002180| 72 61 6e 73 6c 61 74 69 | 6f 6e 20 6f 66 20 6c 69 |ranslati|on of li|
|00002190| 6e 65 20 66 65 65 64 73 | 20 64 75 72 69 6e 67 20 |ne feeds| during |
|000021a0| 41 53 43 49 49 20 75 70 | 6c 6f 61 64 73 2e 0a 58 |ASCII up|loads..X|
|000021b0| 2e 54 50 0a 53 45 54 20 | 54 49 4d 45 52 20 5b 35 |.TP.SET |TIMER [5|
|000021c0| 2d 31 35 30 5d 0a 43 6f | 6e 74 72 6f 6c 73 20 74 |-150].Co|ntrols t|
|000021d0| 68 65 20 74 69 6d 65 72 | 20 28 69 6e 20 73 65 63 |he timer| (in sec|
|000021e0| 6f 6e 64 73 29 20 74 68 | 61 74 20 64 65 74 65 63 |onds) th|at detec|
|000021f0| 74 73 20 74 68 65 20 65 | 6e 64 20 6f 66 20 61 6e |ts the e|nd of an|
|00002200| 20 41 53 43 49 49 20 64 | 6f 77 6e 6c 6f 61 64 2e | ASCII d|ownload.|
|00002210| 0a 58 2e 54 50 0a 53 45 | 54 20 43 52 5f 44 4e 20 |.X.TP.SE|T CR_DN |
|00002220| 5b 20 4e 4f 4e 45 20 7c | 20 41 44 44 5f 4c 46 20 |[ NONE || ADD_LF |
|00002230| 7c 20 53 54 52 49 50 20 | 5d 0a 43 6f 6e 74 72 6f || STRIP |].Contro|
|00002240| 6c 73 20 74 68 65 20 74 | 72 61 6e 73 6c 61 74 69 |ls the t|ranslati|
|00002250| 6f 6e 20 6f 66 20 63 61 | 72 72 61 69 67 65 20 72 |on of ca|rraige r|
|00002260| 65 74 75 72 6e 73 20 64 | 75 72 69 6e 67 20 41 53 |eturns d|uring AS|
|00002270| 43 49 49 20 64 6f 77 6e | 6c 6f 61 64 73 2e 0a 58 |CII down|loads..X|
|00002280| 2e 54 50 0a 53 45 54 20 | 4c 46 5f 44 4e 20 5b 20 |.TP.SET |LF_DN [ |
|00002290| 4e 4f 4e 45 20 7c 20 41 | 44 44 5f 43 52 20 7c 20 |NONE | A|DD_CR | |
|000022a0| 53 54 52 49 50 20 5d 0a | 43 6f 6e 74 72 6f 6c 73 |STRIP ].|Controls|
|000022b0| 20 74 68 65 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e | the tra|nslation|
|000022c0| 20 6f 66 20 6c 69 6e 65 | 20 66 65 65 64 73 20 64 | of line| feeds d|
|000022d0| 75 72 69 6e 67 20 41 53 | 43 49 49 20 64 6f 77 6e |uring AS|CII down|
|000022e0| 6c 6f 61 64 73 2e 0a 58 | 2e 54 50 0a 51 55 45 52 |loads..X|.TP.QUER|
|000022f0| 59 20 54 54 59 5f 4e 41 | 4d 45 0a 52 65 74 75 72 |Y TTY_NA|ME.Retur|
|00002300| 6e 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ns the n|ame of t|
|00002310| 68 65 20 63 75 72 72 65 | 6e 74 20 54 54 59 20 69 |he curre|nt TTY i|
|00002320| 6e 20 75 73 65 20 6f 72 | 20 4e 4f 4e 45 2e 0a 58 |n use or| NONE..X|
|00002330| 2e 54 50 0a 51 55 45 52 | 59 20 4d 4f 44 45 4d 5f |.TP.QUER|Y MODEM_|
|00002340| 4e 41 4d 45 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |NAME.Ret|urns the|
|00002350| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 63 75 72 | name of| the cur|
|00002360| 72 65 6e 74 20 6d 6f 64 | 65 6d 20 69 6e 20 75 73 |rent mod|em in us|
|00002370| 65 20 6f 72 20 4e 4f 4e | 45 2e 0a 58 2e 54 50 0a |e or NON|E..X.TP.|
|00002380| 49 46 20 43 4f 4e 4e 45 | 43 54 45 44 0a 52 65 74 |IF CONNE|CTED.Ret|
|00002390| 75 72 6e 73 20 61 20 31 | 20 69 66 20 50 63 6f 6d |urns a 1| if Pcom|
|000023a0| 6d 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 63 |m is cur|rently c|
|000023b0| 6f 6e 6e 65 63 74 65 64 | 20 74 6f 20 61 20 72 65 |onnected| to a re|
|000023c0| 6d 6f 74 65 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |mote, ot|herwise |
|000023d0| 61 20 30 2e 0a 58 2e 54 | 50 0a 49 46 20 4c 4f 47 |a 0..X.T|P.IF LOG|
|000023e0| 5f 53 54 41 54 55 53 0a | 52 65 74 75 72 6e 73 20 |_STATUS.|Returns |
|000023f0| 61 20 31 20 69 66 20 74 | 68 65 20 64 61 74 61 20 |a 1 if t|he data |
|00002400| 6c 6f 67 67 69 6e 67 20 | 66 65 61 74 75 72 65 20 |logging |feature |
|00002410| 69 73 20 74 75 72 6e 65 | 64 20 6f 6e 2c 20 6f 74 |is turne|d on, ot|
|00002420| 68 65 72 77 69 73 65 20 | 30 2e 0a 58 2e 54 50 0a |herwise |0..X.TP.|
|00002430| 49 46 20 50 52 49 4e 54 | 45 52 5f 53 54 41 54 55 |IF PRINT|ER_STATU|
|00002440| 53 0a 52 65 74 75 72 6e | 73 20 61 20 31 20 69 66 |S.Return|s a 1 if|
|00002450| 20 74 68 65 20 70 72 69 | 6e 74 65 72 20 69 73 20 | the pri|nter is |
|00002460| 74 75 72 6e 65 64 20 6f | 6e 2c 20 6f 74 68 65 72 |turned o|n, other|
|00002470| 77 69 73 65 20 30 2e 0a | 58 2e 54 50 0a 44 49 41 |wise 0..|X.TP.DIA|
|00002480| 4c 20 5b 20 4d 41 4e 55 | 41 4c 20 70 68 6f 6e 65 |L [ MANU|AL phone|
|00002490| 5f 6e 75 6d 62 65 72 20 | 5d 20 65 6e 74 72 79 5f |_number |] entry_|
|000024a0| 6e 75 6d 62 65 72 0a 44 | 69 61 6c 20 61 6e 20 65 |number.D|ial an e|
|000024b0| 6e 74 72 79 20 66 72 6f | 6d 20 74 68 65 20 64 69 |ntry fro|m the di|
|000024c0| 61 6c 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |aling di|rectory.|
|000024d0| 20 20 54 68 65 20 4d 41 | 4e 55 41 4c 20 6f 70 74 | The MA|NUAL opt|
|000024e0| 69 6f 6e 20 69 73 20 75 | 73 65 64 20 74 6f 0a 6f |ion is u|sed to.o|
|000024f0| 70 74 69 6f 6e 61 6c 79 | 20 64 69 61 6c 20 61 20 |ptionaly| dial a |
|00002500| 70 68 6f 6e 65 20 6e 75 | 6d 62 65 72 20 77 69 74 |phone nu|mber wit|
|00002510| 68 6f 75 74 20 74 68 65 | 20 75 73 65 20 6f 66 20 |hout the| use of |
|00002520| 74 68 65 20 64 69 61 6c | 69 6e 67 20 64 69 72 65 |the dial|ing dire|
|00002530| 63 74 6f 72 79 2e 0a 44 | 49 41 4c 20 72 65 74 75 |ctory..D|IAL retu|
|00002540| 72 6e 73 20 61 66 74 65 | 72 20 31 20 61 74 74 65 |rns afte|r 1 atte|
|00002550| 6d 70 74 2e 20 20 41 20 | 72 65 74 75 72 6e 20 63 |mpt. A |return c|
|00002560| 6f 64 65 20 6f 66 20 31 | 20 6d 65 61 6e 73 20 61 |ode of 1| means a|
|00002570| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 0a 77 61 73 20 | connect|ion.was |
|00002580| 6d 61 64 65 2e 0a 58 2e | 66 74 20 49 0a 54 68 65 |made..X.|ft I.The|
|00002590| 20 64 69 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 77 | dial fu|nction w|
|000025a0| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 61 6c 6c 6f 77 |ill not |be allow|
|000025b0| 65 64 20 74 6f 20 73 77 | 69 74 63 68 20 54 54 59 |ed to sw|itch TTY|
|000025c0| 20 70 6f 72 74 73 2e 20 | 20 49 66 20 74 68 65 20 | ports. | If the |
|000025d0| 63 75 72 72 65 6e 74 0a | 54 54 59 20 69 73 20 6e |current.|TTY is n|
|000025e0| 6f 74 20 73 75 69 74 61 | 62 6c 65 20 28 69 2e 65 |ot suita|ble (i.e|
|000025f0| 2e 20 6e 6f 74 20 61 74 | 74 61 63 68 65 64 20 74 |. not at|tached t|
|00002600| 6f 20 74 68 65 20 63 6f | 72 72 65 63 74 20 6d 6f |o the co|rrect mo|
|00002610| 64 65 6d 29 2c 20 74 68 | 65 20 73 63 72 69 70 74 |dem), th|e script|
|00002620| 0a 77 69 6c 6c 20 62 65 | 20 74 65 72 6d 69 6e 61 |.will be| termina|
|00002630| 74 65 64 2e 0a 58 2e 66 | 74 0a 58 2e 54 50 0a 52 |ted..X.f|t.X.TP.R|
|00002640| 45 44 49 41 4c 20 65 6e | 74 72 79 5f 6e 75 6d 62 |EDIAL en|try_numb|
|00002650| 65 72 0a 53 69 6d 69 6c | 61 72 20 74 6f 20 74 68 |er.Simil|ar to th|
|00002660| 65 20 44 49 41 4c 20 63 | 6f 6d 6d 61 6e 64 2c 20 |e DIAL c|ommand, |
|00002670| 62 75 74 20 31 30 20 61 | 74 74 65 6d 70 74 73 20 |but 10 a|ttempts |
|00002680| 61 72 65 20 6d 61 64 65 | 2e 0a 58 2e 54 50 0a 58 |are made|..X.TP.X|
|00002690| 45 58 49 54 0a 48 61 6e | 67 20 75 70 20 74 68 65 |EXIT.Han|g up the|
|000026a0| 20 70 68 6f 6e 65 20 61 | 6e 64 20 65 78 69 74 20 | phone a|nd exit |
|000026b0| 66 72 6f 6d 20 50 63 6f | 6d 6d 2e 0a 58 2e 54 50 |from Pco|mm..X.TP|
|000026c0| 0a 43 4c 45 41 52 5f 53 | 43 52 45 45 4e 0a 43 6c |.CLEAR_S|CREEN.Cl|
|000026d0| 65 61 72 20 74 68 65 20 | 73 63 72 65 65 6e 2e 0a |ear the |screen..|
|000026e0| 58 2e 54 50 0a 43 48 47 | 5f 44 49 52 20 64 69 72 |X.TP.CHG|_DIR dir|
|000026f0| 65 63 74 6f 72 79 0a 43 | 68 61 6e 67 65 20 74 68 |ectory.C|hange th|
|00002700| 65 20 63 75 72 72 65 6e | 74 20 77 6f 72 6b 69 6e |e curren|t workin|
|00002710| 67 20 64 69 72 65 63 74 | 6f 72 79 20 74 6f 20 74 |g direct|ory to t|
|00002720| 68 65 20 67 69 76 65 6e | 20 64 69 72 65 63 74 6f |he given| directo|
|00002730| 72 79 2e 0a 58 2e 54 50 | 0a 48 41 4e 47 5f 55 50 |ry..X.TP|.HANG_UP|
|00002740| 0a 48 61 6e 67 20 75 70 | 20 74 68 65 20 70 68 6f |.Hang up| the pho|
|00002750| 6e 65 2c 20 62 75 74 20 | 72 65 6d 61 69 6e 20 69 |ne, but |remain i|
|00002760| 6e 20 50 63 6f 6d 6d 2e | 0a 58 2e 54 50 0a 50 52 |n Pcomm.|.X.TP.PR|
|00002770| 49 4e 54 45 52 20 5b 20 | 4f 4e 20 7c 20 4f 46 46 |INTER [ |ON | OFF|
|00002780| 20 5d 0a 43 6f 6e 74 72 | 6f 6c 20 74 68 65 20 6c | ].Contr|ol the l|
|00002790| 6f 67 67 69 6e 67 20 6f | 66 20 64 61 74 61 20 74 |ogging o|f data t|
|000027a0| 6f 20 74 68 65 20 70 72 | 69 6e 74 65 72 2e 0a 58 |o the pr|inter..X|
|000027b0| 2e 54 50 0a 4d 4f 44 45 | 4d 5f 42 52 45 41 4b 0a |.TP.MODE|M_BREAK.|
|000027c0| 53 65 6e 64 20 61 20 6d | 6f 64 65 6d 20 62 72 65 |Send a m|odem bre|
|000027d0| 61 6b 20 74 6f 20 74 68 | 65 20 72 65 6d 6f 74 65 |ak to th|e remote|
|000027e0| 20 73 79 73 74 65 6d 2e | 20 20 54 68 69 73 20 69 | system.| This i|
|000027f0| 73 20 74 79 70 69 63 61 | 6c 6c 79 20 75 73 65 64 |s typica|lly used|
|00002800| 20 74 6f 0a 74 65 6c 6c | 20 74 68 65 20 72 65 6d | to.tell| the rem|
|00002810| 6f 74 65 20 74 6f 20 73 | 77 69 74 63 68 20 74 6f |ote to s|witch to|
|00002820| 20 61 20 64 69 66 66 65 | 72 65 6e 74 20 62 61 75 | a diffe|rent bau|
|00002830| 64 20 72 61 74 65 2e 0a | 58 2e 54 50 0a 53 45 4e |d rate..|X.TP.SEN|
|00002840| 44 20 70 72 6f 74 6f 63 | 6f 6c 20 66 69 6c 65 6e |D protoc|ol filen|
|00002850| 61 6d 65 0a 53 65 6e 64 | 20 61 20 66 69 6c 65 20 |ame.Send| a file |
|00002860| 74 6f 20 74 68 65 20 72 | 65 6d 6f 74 65 2e 20 20 |to the r|emote. |
|00002870| 54 68 65 20 76 61 6c 69 | 64 20 70 72 6f 74 6f 63 |The vali|d protoc|
|00002880| 6f 6c 73 20 61 72 65 20 | 58 4d 4f 44 45 4d 2c 20 |ols are |XMODEM, |
|00002890| 58 4d 4f 44 45 4d 5f 31 | 4b 2c 0a 4d 4f 44 45 4d |XMODEM_1|K,.MODEM|
|000028a0| 37 2c 20 59 4d 4f 44 45 | 4d 2c 20 59 4d 4f 44 45 |7, YMODE|M, YMODE|
|000028b0| 4d 5f 47 2c 20 41 53 43 | 49 49 2c 20 45 58 54 5f |M_G, ASC|II, EXT_|
|000028c0| 31 2c 20 45 58 54 5f 32 | 2c 20 61 6e 64 20 45 58 |1, EXT_2|, and EX|
|000028d0| 54 5f 33 2e 0a 58 2e 54 | 50 0a 52 45 43 45 49 56 |T_3..X.T|P.RECEIV|
|000028e0| 45 20 70 72 6f 74 6f 63 | 6f 6c 20 66 69 6c 65 6e |E protoc|ol filen|
|000028f0| 61 6d 65 0a 52 65 63 65 | 69 76 65 20 61 20 66 69 |ame.Rece|ive a fi|
|00002900| 6c 65 20 66 72 6f 6d 20 | 74 68 65 20 72 65 6d 6f |le from |the remo|
|00002910| 74 65 2e 20 20 54 68 65 | 20 76 61 6c 69 64 20 70 |te. The| valid p|
|00002920| 72 6f 74 6f 63 6f 6c 73 | 20 61 72 65 20 58 4d 4f |rotocols| are XMO|
|00002930| 44 45 4d 2c 0a 58 58 4d | 4f 44 45 4d 5f 31 4b 2c |DEM,.XXM|ODEM_1K,|
|00002940| 20 4d 4f 44 45 4d 37 2c | 20 59 4d 4f 44 45 4d 2c | MODEM7,| YMODEM,|
|00002950| 20 59 4d 4f 44 45 4d 5f | 47 2c 20 41 53 43 49 49 | YMODEM_|G, ASCII|
|00002960| 2c 20 45 58 54 5f 31 2c | 20 45 58 54 5f 32 2c 20 |, EXT_1,| EXT_2, |
|00002970| 61 6e 64 20 45 58 54 5f | 33 2e 0a 58 2e 54 50 0a |and EXT_|3..X.TP.|
|00002980| 53 43 52 45 45 4e 5f 44 | 55 4d 50 0a 44 75 6d 70 |SCREEN_D|UMP.Dump|
|00002990| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 63 6f 6e | the cur|rent con|
|000029a0| 74 65 6e 74 73 20 6f 66 | 20 74 68 65 20 73 63 72 |tents of| the scr|
|000029b0| 65 65 6e 20 74 6f 20 74 | 68 65 20 44 55 4d 50 46 |een to t|he DUMPF|
|000029c0| 49 4c 45 2e 20 20 49 66 | 20 74 68 65 20 66 69 6c |ILE. If| the fil|
|000029d0| 65 0a 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 73 |e.alread|y exists|
|000029e0| 2c 20 74 68 65 20 6e 65 | 77 20 63 6f 6e 74 65 6e |, the ne|w conten|
|000029f0| 74 73 20 61 72 65 20 61 | 70 70 65 6e 64 65 64 20 |ts are a|ppended |
|00002a00| 74 6f 20 74 68 65 20 66 | 69 6c 65 2e 0a 58 2e 54 |to the f|ile..X.T|
|00002a10| 50 0a 44 41 54 41 5f 4c | 4f 47 20 5b 20 4f 4e 20 |P.DATA_L|OG [ ON |
|00002a20| 7c 20 4f 46 46 20 5d 0a | 43 6f 6e 74 72 6f 6c 20 || OFF ].|Control |
|00002a30| 6c 6f 67 67 69 6e 67 20 | 6f 66 20 74 68 65 20 74 |logging |of the t|
|00002a40| 65 72 6d 69 6e 61 6c 20 | 73 65 73 73 69 6f 6e 20 |erminal |session |
|00002a50| 74 6f 20 74 68 65 20 4c | 4f 47 46 49 4c 45 2e 20 |to the L|OGFILE. |
|00002a60| 20 49 66 20 74 68 65 20 | 66 69 6c 65 0a 61 6c 72 | If the |file.alr|
|00002a70| 65 61 64 79 20 65 78 69 | 73 74 73 2c 20 74 68 65 |eady exi|sts, the|
|00002a80| 20 6e 65 77 20 63 6f 6e | 74 65 6e 74 73 20 61 72 | new con|tents ar|
|00002a90| 65 20 61 70 70 65 6e 64 | 65 64 20 74 6f 20 74 68 |e append|ed to th|
|00002aa0| 65 20 66 69 6c 65 2e 0a | 58 2e 53 48 20 45 58 41 |e file..|X.SH EXA|
|00002ab0| 4d 4c 45 53 0a 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |MLES.The| followi|
|00002ac0| 6e 67 20 69 73 20 61 6e | 20 65 78 61 6d 70 6c 65 |ng is an| example|
|00002ad0| 20 6f 66 20 61 20 73 68 | 65 6c 6c 20 73 63 72 69 | of a sh|ell scri|
|00002ae0| 70 74 20 74 68 61 74 20 | 77 69 6c 6c 20 64 69 61 |pt that |will dia|
|00002af0| 6c 20 61 20 73 79 73 74 | 65 6d 2c 0a 6c 6f 67 20 |l a syst|em,.log |
|00002b00| 61 20 75 73 65 72 20 6f | 6e 2c 20 74 72 61 6e 73 |a user o|n, trans|
|00002b10| 66 65 72 20 61 20 66 69 | 6c 65 20 63 61 6c 6c 65 |fer a fi|le calle|
|00002b20| 64 20 22 6a 75 6e 6b 22 | 20 75 73 69 6e 67 20 78 |d "junk"| using x|
|00002b30| 6d 6f 64 65 6d 2c 20 6c | 6f 67 20 6f 75 74 2c 20 |modem, l|og out, |
|00002b40| 61 6e 64 0a 65 78 69 74 | 20 50 63 6f 6d 6d 2e 0a |and.exit| Pcomm..|
|00002b50| 58 2e 50 50 0a 58 2e 6e | 66 0a 58 2e 52 53 20 35 |X.PP.X.n|f.X.RS 5|
|00002b60| 0a 58 23 20 64 69 61 6c | 20 65 6e 74 72 79 20 6e |.X# dial| entry n|
|00002b70| 75 6d 62 65 72 20 32 33 | 20 69 6e 20 6d 79 20 64 |umber 23| in my d|
|00002b80| 69 61 6c 69 6e 67 20 64 | 69 72 65 63 74 6f 72 79 |ialing d|irectory|
|00002b90| 0a 70 63 6f 6d 6d 5f 63 | 6d 64 20 64 69 61 6c 20 |.pcomm_c|md dial |
|00002ba0| 32 33 0a 58 23 20 77 61 | 69 74 20 66 6f 72 20 74 |23.X# wa|it for t|
|00002bb0| 68 65 20 6c 6f 67 69 6e | 20 70 72 6f 6d 70 74 0a |he login| prompt.|
|00002bc0| 77 61 69 74 66 6f 72 20 | 6f 67 69 6e 3a 0a 58 23 |waitfor |ogin:.X#|
|00002bd0| 20 73 65 6e 64 20 6d 79 | 20 75 73 65 72 20 69 64 | send my| user id|
|00002be0| 0a 65 63 68 6f 20 65 67 | 72 61 79 0a 58 23 20 77 |.echo eg|ray.X# w|
|00002bf0| 61 69 74 20 66 6f 72 20 | 74 68 65 20 70 61 73 73 |ait for |the pass|
|00002c00| 77 6f 72 64 20 70 72 6f | 6d 70 74 0a 77 61 69 74 |word pro|mpt.wait|
|00002c10| 66 6f 72 20 61 73 73 77 | 6f 72 64 3a 0a 58 23 20 |for assw|ord:.X# |
|00002c20| 73 65 6e 64 20 6d 79 20 | 70 61 73 73 77 64 0a 65 |send my |passwd.e|
|00002c30| 63 68 6f 20 61 62 63 64 | 65 66 67 0a 58 23 20 77 |cho abcd|efg.X# w|
|00002c40| 61 69 74 20 66 6f 72 20 | 74 65 72 6d 69 6e 61 6c |ait for |terminal|
|00002c50| 20 74 79 70 65 20 70 72 | 6f 6d 70 74 0a 77 61 69 | type pr|ompt.wai|
|00002c60| 74 66 6f 72 20 76 74 31 | 30 30 0a 58 23 20 65 63 |tfor vt1|00.X# ec|
|00002c70| 68 6f 20 6d 79 20 74 79 | 70 65 0a 65 63 68 6f 20 |ho my ty|pe.echo |
|00002c80| 76 74 31 30 30 0a 58 23 | 20 77 61 69 74 20 66 6f |vt100.X#| wait fo|
|00002c90| 72 20 61 20 55 6e 69 78 | 20 70 72 6f 6d 70 74 0a |r a Unix| prompt.|
|00002ca0| 77 61 69 74 66 6f 72 20 | 24 0a 58 23 20 73 74 61 |waitfor |$.X# sta|
|00002cb0| 72 74 20 75 70 20 61 6e | 20 78 6d 6f 64 65 6d 20 |rt up an| xmodem |
|00002cc0| 66 69 6c 65 20 74 72 61 | 6e 73 66 65 72 0a 65 63 |file tra|nsfer.ec|
|00002cd0| 68 6f 20 73 78 20 6a 75 | 6e 6b 0a 58 23 20 77 61 |ho sx ju|nk.X# wa|
|00002ce0| 69 74 20 66 6f 72 20 74 | 68 65 20 73 78 20 63 6f |it for t|he sx co|
|00002cf0| 6d 6d 61 6e 64 20 74 6f | 20 73 61 79 20 69 74 73 |mmand to| say its|
|00002d00| 20 72 65 61 64 79 0a 77 | 61 69 74 66 6f 72 20 6e | ready.w|aitfor n|
|00002d10| 6f 77 0a 73 6c 65 65 70 | 20 31 0a 58 23 20 64 6f |ow.sleep| 1.X# do|
|00002d20| 20 61 20 66 69 6c 65 20 | 74 72 61 6e 73 66 65 72 | a file |transfer|
|00002d30| 0a 70 63 6f 6d 6d 5f 63 | 6d 64 20 72 65 63 65 69 |.pcomm_c|md recei|
|00002d40| 76 65 20 78 6d 6f 64 65 | 6d 20 6a 75 6e 6b 0a 58 |ve xmode|m junk.X|
|00002d50| 23 20 77 61 69 74 20 66 | 6f 72 20 74 68 65 20 70 |# wait f|or the p|
|00002d60| 72 6f 6d 70 74 0a 77 61 | 69 74 66 6f 72 20 24 0a |rompt.wa|itfor $.|
|00002d70| 58 23 20 6c 6f 67 20 6d | 65 20 6f 75 74 0a 65 63 |X# log m|e out.ec|
|00002d80| 68 6f 20 22 5e 44 22 0a | 73 6c 65 65 70 20 31 0a |ho "^D".|sleep 1.|
|00002d90| 58 23 20 65 78 69 74 20 | 70 63 6f 6d 6d 0a 70 63 |X# exit |pcomm.pc|
|00002da0| 6f 6d 6d 5f 63 6d 64 20 | 65 78 69 74 0a 58 2e 66 |omm_cmd |exit.X.f|
|00002db0| 69 0a 58 2e 52 45 0a 58 | 2e 53 48 20 22 53 45 45 |i.X.RE.X|.SH "SEE|
|00002dc0| 20 41 4c 53 4f 22 0a 70 | 63 6f 6d 6d 28 31 29 2c | ALSO".p|comm(1),|
|00002dd0| 20 77 61 69 74 66 6f 72 | 28 31 29 2c 20 6d 61 74 | waitfor|(1), mat|
|00002de0| 63 68 65 73 28 31 29 2c | 20 50 63 6f 6d 6d 20 52 |ches(1),| Pcomm R|
|00002df0| 65 66 65 72 65 6e 63 65 | 20 4d 61 6e 75 61 6c 0a |eference| Manual.|
|00002e00| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00002e10| 65 73 74 20 36 31 32 37 | 20 2d 6e 65 20 60 77 63 |est 6127| -ne `wc|
|00002e20| 20 2d 63 20 3c 27 50 63 | 6f 6d 6d 5f 63 6d 64 2e | -c <'Pc|omm_cmd.|
|00002e30| 31 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |1'`; the|n. ec|
|00002e40| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 50 63 6f 6d |ho shar:| \"'Pcom|
|00002e50| 6d 5f 63 6d 64 2e 31 27 | 5c 22 20 75 6e 70 61 63 |m_cmd.1'|\" unpac|
|00002e60| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00002e70| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00002e80| 20 27 50 63 6f 6d 6d 5f | 63 6d 64 2e 31 27 0a 66 | 'Pcomm_|cmd.1'.f|
|00002e90| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 51 5f |i.if tes|t -f 'Q_|
|00002ea0| 61 6e 64 5f 41 27 20 2d | 61 20 22 24 7b 31 7d 22 |and_A' -|a "${1}"|
|00002eb0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00002ec0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00002ed0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00002ee0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00002ef0| 51 5f 61 6e 64 5f 41 27 | 5c 22 0a 65 6c 73 65 0a |Q_and_A'|\".else.|
|00002f00| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00002f10| 63 74 69 6e 67 20 5c 22 | 27 51 5f 61 6e 64 5f 41 |cting \"|'Q_and_A|
|00002f20| 27 5c 22 20 5c 28 33 33 | 30 31 20 63 68 61 72 61 |'\" \(33|01 chara|
|00002f30| 63 74 65 72 73 5c 29 0a | 73 65 64 20 22 73 2f 5e |cters\).|sed "s/^|
|00002f40| 58 2f 2f 22 20 3e 27 51 | 5f 61 6e 64 5f 41 27 20 |X//" >'Q|_and_A' |
|00002f50| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00002f60| 58 09 09 09 51 75 65 73 | 74 69 6f 6e 73 20 61 6e |X...Ques|tions an|
|00002f70| 64 20 41 6e 73 77 65 72 | 73 0a 58 09 09 66 6f 72 |d Answer|s.X..for|
|00002f80| 20 74 68 65 20 6d 6f 73 | 74 20 63 6f 6d 6d 6f 6e | the mos|t common|
|00002f90| 20 50 63 6f 6d 6d 20 70 | 72 6f 62 6c 65 6d 73 2e | Pcomm p|roblems.|
|00002fa0| 0a 58 0a 58 31 29 20 54 | 68 65 20 22 65 6c 70 61 |.X.X1) T|he "elpa|
|00002fb0| 73 65 20 74 69 6d 65 22 | 20 64 6f 65 73 6e 27 74 |se time"| doesn't|
|00002fc0| 20 69 6e 63 72 65 6d 65 | 6e 74 20 64 75 72 69 6e | increme|nt durin|
|00002fd0| 67 20 61 20 64 69 61 6c | 69 6e 67 20 61 74 74 65 |g a dial|ing atte|
|00002fe0| 6d 70 74 2e 0a 58 0a 58 | 09 54 68 69 73 20 69 73 |mpt..X.X|.This is|
|00002ff0| 20 61 20 73 79 6d 70 74 | 6f 6d 20 6f 66 20 61 20 | a sympt|om of a |
|00003000| 62 75 67 20 69 6e 20 74 | 68 65 20 77 67 65 74 63 |bug in t|he wgetc|
|00003010| 68 28 29 20 72 6f 75 74 | 69 6e 65 20 69 6e 20 74 |h() rout|ine in t|
|00003020| 68 65 20 63 75 72 73 65 | 73 0a 58 09 6c 69 62 72 |he curse|s.X.libr|
|00003030| 61 72 79 2e 20 20 54 68 | 65 20 77 6f 72 6b 2d 61 |ary. Th|e work-a|
|00003040| 72 6f 75 6e 64 20 69 73 | 20 74 6f 20 73 65 74 20 |round is| to set |
|00003050| 57 47 45 54 43 48 5f 42 | 52 4f 4b 45 20 69 6e 20 |WGETCH_B|ROKE in |
|00003060| 74 68 65 20 63 6f 6e 66 | 69 67 2e 68 0a 58 09 66 |the conf|ig.h.X.f|
|00003070| 69 6c 65 20 61 6e 64 20 | 72 65 63 6f 6d 70 69 6c |ile and |recompil|
|00003080| 65 2e 0a 58 0a 58 32 29 | 20 49 20 63 61 6e 27 74 |e..X.X2)| I can't|
|00003090| 20 67 65 74 20 50 63 6f | 6d 6d 20 74 6f 20 64 69 | get Pco|mm to di|
|000030a0| 61 6c 2c 20 69 74 20 6a | 75 73 74 20 73 69 74 73 |al, it j|ust sits|
|000030b0| 20 74 68 65 72 65 2e 0a | 58 0a 58 09 54 68 69 73 | there..|X.X.This|
|000030c0| 20 74 79 70 69 63 61 6c | 6c 79 20 69 73 20 64 75 | typical|ly is du|
|000030d0| 65 20 74 6f 20 74 68 65 | 20 77 72 6f 6e 67 20 64 |e to the| wrong d|
|000030e0| 65 76 69 63 65 20 6e 61 | 6d 65 20 66 6f 72 20 74 |evice na|me for t|
|000030f0| 68 65 20 74 74 79 20 70 | 6f 72 74 2e 0a 58 09 53 |he tty p|ort..X.S|
|00003100| 6f 6d 65 20 73 79 73 74 | 65 6d 73 20 68 61 76 65 |ome syst|ems have|
|00003110| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 6e | more th|an one n|
|00003120| 61 6d 65 20 28 64 69 66 | 66 65 72 65 6e 74 20 6d |ame (dif|ferent m|
|00003130| 69 6e 6f 72 20 64 65 76 | 69 63 65 0a 58 09 6e 75 |inor dev|ice.X.nu|
|00003140| 6d 62 65 72 73 29 20 66 | 6f 72 20 74 68 65 20 73 |mbers) f|or the s|
|00003150| 61 6d 65 20 74 74 79 20 | 70 6f 72 74 2e 20 20 55 |ame tty |port. U|
|00003160| 55 43 50 20 6d 61 79 20 | 75 73 65 20 74 68 65 20 |UCP may |use the |
|00003170| 64 65 76 69 63 65 20 6e | 61 6d 65 0a 58 09 74 68 |device n|ame.X.th|
|00003180| 61 74 20 68 61 73 20 22 | 6d 6f 64 65 6d 20 63 6f |at has "|modem co|
|00003190| 6e 74 72 6f 6c 22 20 65 | 6e 61 62 6c 65 64 3b 20 |ntrol" e|nabled; |
|000031a0| 69 66 20 73 6f 2c 20 74 | 68 61 74 20 69 73 20 74 |if so, t|hat is t|
|000031b0| 68 65 20 6f 6e 65 20 50 | 63 6f 6d 6d 0a 58 09 6e |he one P|comm.X.n|
|000031c0| 65 65 64 73 20 74 6f 20 | 75 73 65 2e 0a 58 0a 58 |eeds to |use..X.X|
|000031d0| 33 29 20 48 6f 77 20 64 | 6f 20 79 6f 75 20 6d 61 |3) How d|o you ma|
|000031e0| 6b 65 20 53 75 6e 27 73 | 20 64 69 61 6c 20 69 6e |ke Sun's| dial in|
|000031f0| 20 61 6e 64 20 6f 75 74 | 20 6f 6e 20 74 68 65 20 | and out| on the |
|00003200| 73 61 6d 65 20 70 6f 72 | 74 3f 0a 58 0a 58 09 53 |same por|t?.X.X.S|
|00003210| 75 6e 20 53 70 61 72 63 | 20 62 6f 78 65 73 20 64 |un Sparc| boxes d|
|00003220| 6f 6e 27 74 20 63 6f 6d | 65 20 63 6f 6e 66 69 67 |on't com|e config|
|00003230| 75 72 65 64 20 66 6f 72 | 20 64 6f 69 6e 67 20 64 |ured for| doing d|
|00003240| 69 61 6c 69 6e 20 61 6e | 64 20 64 69 61 6c 6f 75 |ialin an|d dialou|
|00003250| 74 0a 58 09 6f 6e 20 74 | 68 65 20 73 61 6d 65 20 |t.X.on t|he same |
|00003260| 73 65 72 69 61 6c 20 70 | 6f 72 74 2e 20 20 48 6f |serial p|ort. Ho|
|00003270| 77 65 76 65 72 2c 20 74 | 68 65 72 65 20 69 73 20 |wever, t|here is |
|00003280| 61 20 62 6c 75 72 62 20 | 69 6e 20 74 68 65 20 70 |a blurb |in the p|
|00003290| 72 69 6e 74 65 64 0a 58 | 09 6d 61 6e 75 61 6c 20 |rinted.X|.manual |
|000032a0| 74 68 61 74 20 74 65 6c | 6c 73 20 79 6f 75 20 77 |that tel|ls you w|
|000032b0| 68 61 74 20 74 6f 20 64 | 6f 2e 2e 2e 0a 58 0a 58 |hat to d|o....X.X|
|000032c0| 09 4d 61 6b 65 20 61 20 | 6e 65 77 20 64 65 76 69 |.Make a |new devi|
|000032d0| 63 65 20 28 63 75 61 30 | 20 66 6f 72 20 74 74 79 |ce (cua0| for tty|
|000032e0| 61 2c 20 61 6e 64 2f 6f | 72 20 63 75 61 31 20 66 |a, and/o|r cua1 f|
|000032f0| 6f 72 20 74 74 79 62 29 | 0a 58 09 09 6d 6b 6e 6f |or ttyb)|.X..mkno|
|00003300| 64 20 2f 64 65 76 2f 63 | 75 61 30 20 63 20 31 32 |d /dev/c|ua0 c 12|
|00003310| 20 31 32 38 0a 58 09 09 | 6d 6b 6e 6f 64 20 2f 64 | 128.X..|mknod /d|
|00003320| 65 76 2f 63 75 61 31 20 | 63 20 31 32 20 31 32 39 |ev/cua1 |c 12 129|
|00003330| 0a 58 0a 58 09 45 64 69 | 74 20 2f 65 74 63 2f 74 |.X.X.Edi|t /etc/t|
|00003340| 74 79 74 61 62 2e 20 20 | 43 68 61 6e 67 65 20 74 |tytab. |Change t|
|00003350| 68 65 20 74 74 79 61 20 | 28 6f 72 20 74 74 79 62 |he ttya |(or ttyb|
|00003360| 29 20 6c 69 6e 65 20 74 | 6f 20 6c 6f 6f 6b 20 6c |) line t|o look l|
|00003370| 69 6b 65 0a 58 09 74 68 | 65 20 66 6f 6c 6c 6f 77 |ike.X.th|e follow|
|00003380| 69 6e 67 2e 20 20 4c 6f | 6f 6b 20 69 6e 20 74 68 |ing. Lo|ok in th|
|00003390| 65 20 2f 65 74 63 2f 67 | 65 74 74 79 74 61 62 20 |e /etc/g|ettytab |
|000033a0| 66 69 6c 65 20 66 6f 72 | 20 74 68 65 20 63 68 6f |file for| the cho|
|000033b0| 69 63 65 73 0a 58 09 66 | 6f 72 20 74 68 65 20 73 |ices.X.f|or the s|
|000033c0| 65 63 6f 6e 64 20 66 69 | 65 6c 64 20 28 73 74 64 |econd fi|eld (std|
|000033d0| 2e 33 38 34 30 30 2c 20 | 69 6e 20 74 68 69 73 20 |.38400, |in this |
|000033e0| 65 78 61 6d 70 6c 65 29 | 2e 0a 58 09 09 74 74 79 |example)|..X..tty|
|000033f0| 61 20 20 20 22 2f 75 73 | 72 2f 65 74 63 2f 67 65 |a "/us|r/etc/ge|
|00003400| 74 74 79 20 73 74 64 2e | 33 38 34 30 30 22 20 20 |tty std.|38400" |
|00003410| 64 69 61 6c 75 70 20 20 | 20 20 6f 6e 20 72 65 6d |dialup | on rem|
|00003420| 6f 74 65 20 73 65 63 75 | 72 65 0a 58 09 09 74 74 |ote secu|re.X..tt|
|00003430| 79 62 20 20 20 22 2f 75 | 73 72 2f 65 74 63 2f 67 |yb "/u|sr/etc/g|
|00003440| 65 74 74 79 20 73 74 64 | 2e 33 38 34 30 30 22 20 |etty std|.38400" |
|00003450| 20 64 69 61 6c 75 70 20 | 20 20 20 6f 6e 20 72 65 | dialup | on re|
|00003460| 6d 6f 74 65 20 73 65 63 | 75 72 65 0a 58 0a 58 09 |mote sec|ure.X.X.|
|00003470| 45 64 69 74 20 2f 65 74 | 63 2f 75 75 63 70 2f 44 |Edit /et|c/uucp/D|
|00003480| 65 76 69 63 65 73 2e 20 | 20 41 64 64 20 61 20 6c |evices. | Add a l|
|00003490| 69 6e 65 20 66 6f 72 20 | 65 61 63 68 20 73 70 65 |ine for |each spe|
|000034a0| 65 64 20 79 6f 75 72 20 | 6d 6f 64 65 6d 0a 58 09 |ed your |modem.X.|
|000034b0| 73 75 70 70 6f 72 74 73 | 2e 20 20 54 68 65 20 64 |supports|. The d|
|000034c0| 69 61 6c 65 72 20 66 69 | 65 6c 64 20 28 68 61 79 |ialer fi|eld (hay|
|000034d0| 65 73 2c 20 69 6e 20 74 | 68 69 73 20 65 78 61 6d |es, in t|his exam|
|000034e0| 70 6c 65 29 20 6d 75 73 | 74 20 6d 61 74 63 68 0a |ple) mus|t match.|
|000034f0| 58 09 77 68 61 74 65 76 | 65 72 20 79 6f 75 27 76 |X.whatev|er you'v|
|00003500| 65 20 67 6f 74 20 69 6e | 20 2f 65 74 63 2f 75 75 |e got in| /etc/uu|
|00003510| 63 70 2f 44 69 61 6c 65 | 72 73 2e 0a 58 09 09 41 |cp/Diale|rs..X..A|
|00003520| 43 55 20 63 75 61 30 20 | 63 75 61 30 20 31 32 30 |CU cua0 |cua0 120|
|00003530| 30 20 68 61 79 65 73 0a | 58 09 09 41 43 55 20 63 |0 hayes.|X..ACU c|
|00003540| 75 61 30 20 63 75 61 30 | 20 32 34 30 30 20 68 61 |ua0 cua0| 2400 ha|
|00003550| 79 65 73 0a 58 09 09 41 | 43 55 20 63 75 61 30 20 |yes.X..A|CU cua0 |
|00003560| 63 75 61 30 20 39 36 30 | 30 20 68 61 79 65 73 0a |cua0 960|0 hayes.|
|00003570| 58 09 09 41 43 55 20 63 | 75 61 30 20 63 75 61 30 |X..ACU c|ua0 cua0|
|00003580| 20 31 39 32 30 30 20 68 | 61 79 65 73 0a 58 09 09 | 19200 h|ayes.X..|
|00003590| 41 43 55 20 63 75 61 30 | 20 63 75 61 30 20 33 38 |ACU cua0| cua0 38|
|000035a0| 34 30 30 20 68 61 79 65 | 73 0a 58 0a 58 34 29 20 |400 haye|s.X.X4) |
|000035b0| 49 20 67 65 74 20 61 20 | 6d 65 61 73 61 67 65 20 |I get a |measage |
|000035c0| 74 68 61 74 20 74 65 6c | 6c 73 20 6d 65 20 49 20 |that tel|ls me I |
|000035d0| 63 61 6e 27 74 20 63 72 | 65 61 74 65 20 74 68 65 |can't cr|eate the|
|000035e0| 20 6c 6f 63 6b 66 69 6c | 65 20 28 6f 72 20 63 61 | lockfil|e (or ca|
|000035f0| 6e 27 74 0a 6f 70 65 6e | 20 74 68 65 20 74 74 79 |n't.open| the tty|
|00003600| 20 70 6f 72 74 29 2e 0a | 58 0a 58 09 50 63 6f 6d | port)..|X.X.Pcom|
|00003610| 6d 20 69 73 20 74 79 70 | 69 63 61 6c 6c 79 20 63 |m is typ|ically c|
|00003620| 6f 6e 66 69 67 75 72 65 | 64 20 74 6f 20 62 65 20 |onfigure|d to be |
|00003630| 73 65 74 2d 75 73 65 72 | 2d 69 64 20 74 6f 20 75 |set-user|-id to u|
|00003640| 75 63 70 2e 20 20 54 6f | 20 64 6f 0a 58 09 74 68 |ucp. To| do.X.th|
|00003650| 69 73 2c 20 79 6f 75 20 | 74 79 70 65 20 28 61 73 |is, you |type (as|
|00003660| 20 72 6f 6f 74 29 3a 0a | 58 09 09 63 68 6f 77 6e | root):.|X..chown|
|00003670| 20 75 75 63 70 20 70 63 | 6f 6d 6d 0a 58 09 09 63 | uucp pc|omm.X..c|
|00003680| 68 6d 6f 64 20 34 37 35 | 35 20 70 63 6f 6d 6d 0a |hmod 475|5 pcomm.|
|00003690| 58 09 09 0a 58 35 29 20 | 41 73 20 73 6f 6f 6e 20 |X...X5) |As soon |
|000036a0| 61 73 20 49 20 61 6d 20 | 63 6f 6e 6e 65 63 74 65 |as I am |connecte|
|000036b0| 64 2c 20 74 68 65 20 6d | 6f 64 65 6d 20 6c 69 67 |d, the m|odem lig|
|000036c0| 68 74 73 20 67 6f 20 63 | 72 61 7a 79 2e 0a 58 0a |hts go c|razy..X.|
|000036d0| 58 09 54 68 69 73 20 69 | 73 20 70 72 6f 62 61 62 |X.This i|s probab|
|000036e0| 6c 79 20 63 61 75 73 65 | 64 20 62 79 20 61 6e 20 |ly cause|d by an |
|000036f0| 69 6d 70 72 6f 70 65 72 | 20 55 55 43 50 20 6c 6f |improper| UUCP lo|
|00003700| 63 6b 20 66 69 6c 65 2e | 20 20 50 63 6f 6d 6d 0a |ck file.| Pcomm.|
|00003710| 58 09 75 6e 64 65 72 73 | 74 61 6e 64 73 20 73 65 |X.unders|tands se|
|00003720| 76 65 72 61 6c 20 76 61 | 72 69 61 74 69 6f 6e 73 |veral va|riations|
|00003730| 20 6f 66 20 55 55 43 50 | 20 6c 6f 63 6b 20 66 69 | of UUCP| lock fi|
|00003740| 6c 65 73 2c 20 62 75 74 | 20 6d 75 73 74 0a 58 09 |les, but| must.X.|
|00003750| 6d 61 74 63 68 20 74 68 | 65 20 6f 6e 65 20 75 73 |match th|e one us|
|00003760| 65 64 20 62 79 20 79 6f | 75 72 20 55 55 43 50 2e |ed by yo|ur UUCP.|
|00003770| 20 20 52 65 61 64 20 74 | 68 65 20 52 65 61 64 6d | Read t|he Readm|
|00003780| 65 20 66 69 6c 65 20 61 | 6e 64 20 63 68 65 63 6b |e file a|nd check|
|00003790| 0a 58 09 74 68 65 20 4c | 4f 43 4b 5f 44 49 52 2c |.X.the L|OCK_DIR,|
|000037a0| 20 41 53 43 49 49 5f 50 | 49 44 2c 20 53 56 52 34 | ASCII_P|ID, SVR4|
|000037b0| 5f 4c 4f 43 4b 53 2c 20 | 61 6e 64 20 58 45 4e 49 |_LOCKS, |and XENI|
|000037c0| 58 5f 4c 4f 43 4b 53 20 | 69 6e 20 74 68 65 0a 58 |X_LOCKS |in the.X|
|000037d0| 09 63 6f 6e 66 69 67 2e | 68 20 66 69 6c 65 2e 0a |.config.|h file..|
|000037e0| 58 0a 58 36 29 20 49 27 | 76 65 20 67 6f 74 20 61 |X.X6) I'|ve got a|
|000037f0| 20 56 2e 33 32 62 69 73 | 20 6d 6f 64 65 6d 20 62 | V.32bis| modem b|
|00003800| 75 74 20 77 69 74 68 6f | 75 74 20 6c 6f 63 6b 65 |ut witho|ut locke|
|00003810| 64 20 44 54 45 20 73 70 | 65 65 64 73 2c 20 68 6f |d DTE sp|eeds, ho|
|00003820| 77 20 64 6f 20 49 0a 73 | 65 74 75 70 20 50 63 6f |w do I.s|etup Pco|
|00003830| 6d 6d 20 66 6f 72 20 74 | 68 69 73 3f 0a 58 0a 58 |mm for t|his?.X.X|
|00003840| 09 43 68 61 6e 67 65 20 | 74 68 65 20 74 74 79 20 |.Change |the tty |
|00003850| 64 61 74 61 62 61 73 65 | 20 73 6f 20 74 68 61 74 |database| so that|
|00003860| 20 74 68 65 20 22 6c 6f | 63 6b 65 64 20 73 70 65 | the "lo|cked spe|
|00003870| 65 64 22 20 65 6e 74 72 | 79 20 69 73 20 73 65 74 |ed" entr|y is set|
|00003880| 0a 58 09 74 6f 20 7a 65 | 72 6f 2e 20 20 54 68 65 |.X.to ze|ro. The|
|00003890| 6e 20 63 68 61 6e 67 65 | 20 74 68 65 20 22 61 75 |n change| the "au|
|000038a0| 74 6f 2d 62 61 75 64 20 | 64 65 74 65 63 74 22 20 |to-baud |detect" |
|000038b0| 66 6c 61 67 20 69 6e 20 | 74 68 65 20 6d 6f 64 65 |flag in |the mode|
|000038c0| 6d 0a 58 09 64 61 74 61 | 62 61 73 65 20 74 6f 20 |m.X.data|base to |
|000038d0| 27 4e 27 2e 0a 58 0a 58 | 09 49 6e 20 74 68 69 73 |'N'..X.X|.In this|
|000038e0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 2c 20 | configu|ration, |
|000038f0| 74 68 65 20 6d 6f 64 65 | 6d 20 77 69 6c 6c 20 61 |the mode|m will a|
|00003900| 6c 77 61 79 73 20 75 73 | 65 20 74 68 65 20 44 54 |lways us|e the DT|
|00003910| 45 20 73 70 65 65 64 0a | 58 09 61 73 20 73 70 65 |E speed.|X.as spe|
|00003920| 63 69 66 69 65 64 20 69 | 6e 20 74 68 65 20 64 69 |cified i|n the di|
|00003930| 61 6c 69 6e 67 20 64 69 | 72 65 63 74 6f 72 79 2e |aling di|rectory.|
|00003940| 20 20 54 68 65 20 73 74 | 61 74 75 73 20 6c 69 6e | The st|atus lin|
|00003950| 65 20 77 69 6c 6c 0a 58 | 09 73 68 6f 77 20 74 68 |e will.X|.show th|
|00003960| 69 73 20 73 70 65 65 64 | 2c 20 72 65 67 61 72 64 |is speed|, regard|
|00003970| 6c 65 73 73 20 6f 66 20 | 74 68 65 20 61 63 74 75 |less of |the actu|
|00003980| 61 6c 20 63 6f 6e 6e 65 | 63 74 65 64 20 62 61 75 |al conne|cted bau|
|00003990| 64 20 72 61 74 65 2e 0a | 58 0a 58 37 29 20 53 6f |d rate..|X.X7) So|
|000039a0| 6d 65 20 6f 66 20 74 68 | 65 20 50 63 6f 6d 6d 20 |me of th|e Pcomm |
|000039b0| 73 63 72 65 65 6e 73 20 | 61 70 70 65 61 72 20 6d |screens |appear m|
|000039c0| 65 73 73 65 64 20 75 70 | 2e 0a 58 0a 58 09 59 65 |essed up|..X.X.Ye|
|000039d0| 73 2c 20 74 68 61 74 27 | 73 20 75 6e 66 6f 72 74 |s, that'|s unfort|
|000039e0| 75 6e 61 74 65 6c 79 20 | 71 75 69 74 65 20 63 6f |unately |quite co|
|000039f0| 6d 6d 6f 6e 2e 2e 2e 20 | 20 49 74 27 73 20 61 20 |mmon... | It's a |
|00003a00| 62 75 67 20 69 6e 20 65 | 69 74 68 65 72 0a 58 09 |bug in e|ither.X.|
|00003a10| 74 68 65 20 63 75 72 73 | 65 73 20 6c 69 62 72 61 |the curs|es libra|
|00003a20| 72 79 20 6f 72 20 74 68 | 65 20 74 65 72 6d 63 61 |ry or th|e termca|
|00003a30| 70 2f 74 65 72 6d 69 6e | 66 6f 20 64 61 74 61 62 |p/termin|fo datab|
|00003a40| 61 73 65 2e 20 20 49 27 | 76 65 0a 58 09 69 6e 63 |ase. I'|ve.X.inc|
|00003a50| 6c 75 64 65 64 20 61 20 | 74 65 72 6d 69 6e 66 6f |luded a |terminfo|
|00003a60| 20 65 6e 74 72 79 20 66 | 6f 72 20 41 54 33 38 36 | entry f|or AT386|
|00003a70| 20 69 6e 20 74 68 65 20 | 52 65 61 64 6d 65 20 66 | in the |Readme f|
|00003a80| 69 6c 65 2c 20 74 68 61 | 74 0a 58 09 73 65 65 6d |ile, tha|t.X.seem|
|00003a90| 65 64 20 74 6f 20 66 69 | 78 20 74 68 65 20 70 72 |ed to fi|x the pr|
|00003aa0| 6f 62 6c 65 6d 20 66 6f | 72 20 6d 79 20 33 38 36 |oblem fo|r my 386|
|00003ab0| 20 62 6f 78 2e 0a 58 0a | 58 38 29 20 57 68 65 72 | box..X.|X8) Wher|
|00003ac0| 65 20 64 6f 20 49 20 67 | 65 74 20 78 6d 6f 64 65 |e do I g|et xmode|
|00003ad0| 6d 2f 79 6d 6f 64 65 6d | 2f 7a 6d 6f 64 65 6d 20 |m/ymodem|/zmodem |
|00003ae0| 73 74 61 6e 64 2d 61 6c | 6f 6e 65 20 70 72 6f 67 |stand-al|one prog|
|00003af0| 72 61 6d 73 20 66 6f 72 | 20 55 6e 69 78 3f 0a 58 |rams for| Unix?.X|
|00003b00| 0a 58 09 49 20 75 73 65 | 20 58 6d 6f 64 65 6d 20 |.X.I use| Xmodem |
|00003b10| 76 33 2e 38 20 62 79 20 | 53 74 65 76 65 20 47 72 |v3.8 by |Steve Gr|
|00003b20| 61 6e 64 69 2c 20 61 6e | 64 20 61 6e 20 6f 6c 64 |andi, an|d an old|
|00003b30| 65 72 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 72 7a |er versi|on of rz|
|00003b40| 73 7a 0a 58 09 62 79 20 | 4f 6d 65 6e 20 54 65 63 |sz.X.by |Omen Tec|
|00003b50| 68 6e 6f 6c 6f 67 69 65 | 73 2e 20 20 42 6f 74 68 |hnologie|s. Both|
|00003b60| 20 6f 66 20 74 68 65 73 | 65 20 73 68 6f 75 6c 64 | of thes|e should|
|00003b70| 20 62 65 20 61 76 61 69 | 6c 61 62 6c 65 20 61 74 | be avai|lable at|
|00003b80| 20 61 0a 58 09 6e 65 69 | 67 68 62 6f 72 69 6e 67 | a.X.nei|ghboring|
|00003b90| 20 61 72 63 68 69 76 65 | 20 73 69 74 65 2e 0a 58 | archive| site..X|
|00003ba0| 0a 58 39 29 20 49 20 63 | 61 6e 27 74 20 67 65 74 |.X9) I c|an't get|
|00003bb0| 20 74 68 65 20 65 78 74 | 65 72 6e 61 6c 20 7a 6d | the ext|ernal zm|
|00003bc0| 6f 64 65 6d 20 70 72 6f | 67 72 61 6d 73 20 22 72 |odem pro|grams "r|
|00003bd0| 7a 22 20 61 6e 64 20 22 | 73 7a 22 20 74 6f 20 77 |z" and "|sz" to w|
|00003be0| 6f 72 6b 20 66 72 6f 6d | 0a 69 6e 73 69 64 65 20 |ork from|.inside |
|00003bf0| 50 63 6f 6d 6d 2e 0a 58 | 0a 58 09 54 68 65 20 61 |Pcomm..X|.X.The a|
|00003c00| 75 74 68 6f 72 73 20 6f | 66 20 72 7a 20 61 6e 64 |uthors o|f rz and|
|00003c10| 20 73 7a 20 68 61 76 65 | 20 64 65 6c 69 62 65 72 | sz have| deliber|
|00003c20| 61 74 65 6c 79 20 62 72 | 6f 6b 65 6e 20 74 68 65 |ately br|oken the|
|00003c30| 20 70 72 6f 67 72 61 6d | 20 73 6f 0a 58 09 74 68 | program| so.X.th|
|00003c40| 61 74 20 69 74 20 77 69 | 6c 6c 20 6e 6f 74 20 77 |at it wi|ll not w|
|00003c50| 6f 72 6b 20 66 72 6f 6d | 20 69 6e 73 69 64 65 20 |ork from| inside |
|00003c60| 61 6e 6f 74 68 65 72 20 | 70 72 6f 67 72 61 6d 2e |another |program.|
|00003c70| 20 20 53 65 65 20 69 66 | 20 79 6f 75 0a 58 09 63 | See if| you.X.c|
|00003c80| 61 6e 20 66 69 6e 64 20 | 61 6e 20 6f 6c 64 65 72 |an find |an older|
|00003c90| 20 76 65 72 73 69 6f 6e | 2e 0a 45 4e 44 5f 4f 46 | version|..END_OF|
|00003ca0| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 33 33 |_FILE.if| test 33|
|00003cb0| 30 31 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |01 -ne `|wc -c <'|
|00003cc0| 51 5f 61 6e 64 5f 41 27 | 60 3b 20 74 68 65 6e 0a |Q_and_A'|`; then.|
|00003cd0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00003ce0| 22 27 51 5f 61 6e 64 5f | 41 27 5c 22 20 75 6e 70 |"'Q_and_|A'\" unp|
|00003cf0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003d00| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003d10| 6f 66 20 27 51 5f 61 6e | 64 5f 41 27 0a 66 69 0a |of 'Q_an|d_A'.fi.|
|00003d20| 69 66 20 74 65 73 74 20 | 2d 66 20 27 61 64 6d 69 |if test |-f 'admi|
|00003d30| 6e 2e 63 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |n.c' -a |"${1}" !|
|00003d40| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00003d50| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00003d60| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00003d70| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 61 64 |sting fi|le \"'ad|
|00003d80| 6d 69 6e 2e 63 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |min.c'\"|.else.ec|
|00003d90| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00003da0| 69 6e 67 20 5c 22 27 61 | 64 6d 69 6e 2e 63 27 5c |ing \"'a|dmin.c'\|
|00003db0| 22 20 5c 28 32 39 34 32 | 20 63 68 61 72 61 63 74 |" \(2942| charact|
|00003dc0| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00003dd0| 2f 22 20 3e 27 61 64 6d | 69 6e 2e 63 27 20 3c 3c |/" >'adm|in.c' <<|
|00003de0| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2f |'END_OF_|FILE'.X/|
|00003df0| 2a 0a 58 20 2a 20 50 65 | 72 66 6f 72 6d 20 61 64 |*.X * Pe|rform ad|
|00003e00| 6d 69 6e 69 73 74 72 61 | 74 69 76 65 20 66 75 6e |ministra|tive fun|
|00003e10| 63 74 69 6f 6e 73 2e 20 | 20 43 68 65 63 6b 20 74 |ctions. | Check t|
|00003e20| 6f 20 73 65 65 20 69 66 | 20 74 68 65 20 75 73 65 |o see if| the use|
|00003e30| 72 20 68 61 73 0a 58 20 | 2a 20 70 65 72 6d 69 73 |r has.X |* permis|
|00003e40| 73 69 6f 6e 20 74 6f 20 | 6d 61 6b 65 20 6c 6f 6e |sion to |make lon|
|00003e50| 67 20 64 69 73 74 61 6e | 63 65 20 63 61 6c 6c 73 |g distan|ce calls|
|00003e60| 2c 20 61 6e 64 20 72 65 | 63 6f 72 64 20 61 6c 6c |, and re|cord all|
|00003e70| 20 70 68 6f 6e 65 20 63 | 61 6c 6c 73 0a 58 20 2a | phone c|alls.X *|
|00003e80| 20 6d 61 64 65 20 62 79 | 20 50 63 6f 6d 6d 2e 0a | made by| Pcomm..|
|00003e90| 58 20 2a 2f 0a 58 0a 58 | 23 69 6e 63 6c 75 64 65 |X */.X.X|#include|
|00003ea0| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 58 23 69 6e 63 | <stdio.|h>.X#inc|
|00003eb0| 6c 75 64 65 20 3c 67 72 | 70 2e 68 3e 0a 58 23 69 |lude <gr|p.h>.X#i|
|00003ec0| 6e 63 6c 75 64 65 20 22 | 63 6f 6e 66 69 67 2e 68 |nclude "|config.h|
|00003ed0| 22 0a 58 23 69 6e 63 6c | 75 64 65 20 22 64 69 61 |".X#incl|ude "dia|
|00003ee0| 6c 5f 64 69 72 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |l_dir.h"|.X#inclu|
|00003ef0| 64 65 20 22 70 61 72 61 | 6d 2e 68 22 0a 58 0a 73 |de "para|m.h".X.s|
|00003f00| 74 61 74 69 63 20 63 68 | 61 72 20 2a 62 75 69 6c |tatic ch|ar *buil|
|00003f10| 64 5f 6e 75 6d 28 29 3b | 0a 58 0a 58 2f 2a 0a 58 |d_num();|.X.X/*.X|
|00003f20| 20 2a 20 4d 61 6b 65 20 | 61 20 6c 6f 67 20 6f 66 | * Make |a log of|
|00003f30| 20 61 6c 6c 20 63 61 6c | 6c 73 20 6d 61 64 65 20 | all cal|ls made |
|00003f40| 62 79 20 50 63 6f 6d 6d | 2e 20 20 54 68 65 20 61 |by Pcomm|. The a|
|00003f50| 72 67 75 6d 65 6e 74 20 | 69 73 20 74 68 65 20 69 |rgument |is the i|
|00003f60| 6e 64 65 78 0a 58 20 2a | 20 69 6e 74 6f 20 74 68 |ndex.X *| into th|
|00003f70| 65 20 71 75 65 75 65 2e | 0a 58 20 2a 2f 0a 58 0a |e queue.|.X */.X.|
|00003f80| 58 2f 2a 20 41 52 47 53 | 55 53 45 44 20 2a 2f 0a |X/* ARGS|USED */.|
|00003f90| 76 6f 69 64 0a 6c 6f 67 | 5f 63 61 6c 6c 73 28 69 |void.log|_calls(i|
|00003fa0| 29 0a 69 6e 74 20 69 3b | 0a 58 7b 0a 58 23 69 66 |).int i;|.X{.X#if|
|00003fb0| 64 65 66 20 4c 4f 47 5f | 43 41 4c 4c 53 0a 58 09 |def LOG_|CALLS.X.|
|00003fc0| 46 49 4c 45 20 2a 66 70 | 3b 0a 58 09 63 68 61 72 |FILE *fp|;.X.char|
|00003fd0| 20 2a 6e 75 6d 62 65 72 | 2c 20 2a 64 61 74 65 2c | *number|, *date,|
|00003fe0| 20 2a 63 74 69 6d 65 28 | 29 2c 20 2a 67 65 74 6c | *ctime(|), *getl|
|00003ff0| 6f 67 69 6e 28 29 2c 20 | 62 75 66 5b 38 30 5d 3b |ogin(), |buf[80];|
|00004000| 0a 58 09 6c 6f 6e 67 20 | 6e 6f 77 2c 20 74 69 6d |.X.long |now, tim|
|00004010| 65 28 29 3b 0a 58 09 76 | 6f 69 64 20 65 72 72 6f |e();.X.v|oid erro|
|00004020| 72 5f 77 69 6e 28 29 3b | 0a 58 09 09 09 09 09 2f |r_win();|.X...../|
|00004030| 2a 20 62 75 69 6c 64 20 | 74 68 65 20 63 6f 6d 70 |* build |the comp|
|00004040| 6c 65 74 65 20 70 68 6f | 6e 65 20 6e 75 6d 62 65 |lete pho|ne numbe|
|00004050| 72 20 2a 2f 0a 58 09 6e | 75 6d 62 65 72 20 3d 20 |r */.X.n|umber = |
|00004060| 62 75 69 6c 64 5f 6e 75 | 6d 28 69 29 3b 0a 58 09 |build_nu|m(i);.X.|
|00004070| 09 09 09 09 2f 2a 20 62 | 75 69 6c 64 20 64 61 74 |..../* b|uild dat|
|00004080| 65 20 61 6e 64 20 74 69 | 6d 65 20 2a 2f 0a 58 09 |e and ti|me */.X.|
|00004090| 74 69 6d 65 28 26 6e 6f | 77 29 3b 0a 58 09 64 61 |time(&no|w);.X.da|
|000040a0| 74 65 20 3d 20 63 74 69 | 6d 65 28 26 6e 6f 77 29 |te = cti|me(&now)|
|000040b0| 3b 0a 58 09 64 61 74 65 | 5b 31 30 5d 20 3d 20 27 |;.X.date|[10] = '|
|000040c0| 5c 30 27 3b 0a 58 09 64 | 61 74 65 5b 31 36 5d 20 |\0';.X.d|ate[16] |
|000040d0| 3d 20 27 5c 30 27 3b 0a | 58 0a 58 09 69 66 20 28 |= '\0';.|X.X.if (|
|000040e0| 21 28 66 70 20 3d 20 66 | 6f 70 65 6e 28 4c 4f 47 |!(fp = f|open(LOG|
|000040f0| 5f 46 49 4c 45 2c 20 22 | 61 2b 22 29 29 29 20 7b |_FILE, "|a+"))) {|
|00004100| 0a 58 09 09 09 09 09 2f | 2a 20 66 61 74 61 6c 21 |.X...../|* fatal!|
|00004110| 20 28 74 6f 20 70 72 65 | 76 65 6e 74 20 68 61 6e | (to pre|vent han|
|00004120| 6b 79 20 70 61 6e 6b 79 | 29 20 2a 2f 0a 58 09 09 |ky panky|) */.X..|
|00004130| 73 70 72 69 6e 74 66 28 | 62 75 66 2c 20 22 43 61 |sprintf(|buf, "Ca|
|00004140| 6e 27 74 20 6f 70 65 6e | 20 6c 6f 67 20 66 69 6c |n't open| log fil|
|00004150| 65 20 5c 22 25 73 5c 22 | 22 2c 20 4c 4f 47 5f 46 |e \"%s\"|", LOG_F|
|00004160| 49 4c 45 29 3b 0a 58 09 | 09 65 72 72 6f 72 5f 77 |ILE);.X.|.error_w|
|00004170| 69 6e 28 31 2c 20 62 75 | 66 2c 20 22 43 6f 6e 74 |in(1, bu|f, "Cont|
|00004180| 61 63 74 20 79 6f 75 72 | 20 73 79 73 74 65 6d 20 |act your| system |
|00004190| 61 64 6d 69 6e 69 73 74 | 72 61 74 6f 72 22 29 3b |administ|rator");|
|000041a0| 0a 58 09 7d 0a 58 0a 58 | 09 66 70 72 69 6e 74 66 |.X.}.X.X|.fprintf|
|000041b0| 28 66 70 2c 20 22 70 63 | 6f 6d 6d 3a 20 25 73 20 |(fp, "pc|omm: %s |
|000041c0| 63 61 6c 6c 65 64 20 25 | 73 20 61 74 20 25 73 20 |called %|s at %s |
|000041d0| 6f 6e 20 25 73 5c 6e 22 | 2c 20 67 65 74 6c 6f 67 |on %s\n"|, getlog|
|000041e0| 69 6e 28 29 2c 20 6e 75 | 6d 62 65 72 2c 20 26 64 |in(), nu|mber, &d|
|000041f0| 61 74 65 5b 31 31 5d 2c | 20 64 61 74 65 29 3b 0a |ate[11],| date);.|
|00004200| 58 09 66 63 6c 6f 73 65 | 28 66 70 29 3b 0a 58 23 |X.fclose|(fp);.X#|
|00004210| 65 6e 64 69 66 20 2f 2a | 20 4c 4f 47 5f 43 41 4c |endif /*| LOG_CAL|
|00004220| 4c 53 20 2a 2f 0a 58 09 | 72 65 74 75 72 6e 3b 0a |LS */.X.|return;.|
|00004230| 58 7d 0a 58 0a 58 2f 2a | 0a 58 20 2a 20 43 68 65 |X}.X.X/*|.X * Che|
|00004240| 63 6b 20 74 6f 20 73 65 | 65 20 69 66 20 6c 6f 6e |ck to se|e if lon|
|00004250| 67 20 64 69 73 74 61 6e | 63 65 20 28 74 6f 6c 6c |g distan|ce (toll|
|00004260| 29 20 63 61 6c 6c 20 69 | 73 20 61 75 74 68 6f 72 |) call i|s author|
|00004270| 69 7a 65 64 2e 20 20 54 | 68 65 20 61 72 67 75 6d |ized. T|he argum|
|00004280| 65 6e 74 0a 58 20 2a 20 | 69 73 20 74 68 65 20 69 |ent.X * |is the i|
|00004290| 6e 64 65 78 20 69 6e 74 | 6f 20 74 68 65 20 71 75 |ndex int|o the qu|
|000042a0| 65 75 65 2e 0a 58 20 2a | 2f 0a 58 0a 58 2f 2a 20 |eue..X *|/.X.X/* |
|000042b0| 41 52 47 53 55 53 45 44 | 20 2a 2f 0a 69 6e 74 0a |ARGSUSED| */.int.|
|000042c0| 6c 69 6d 69 74 5f 6c 64 | 28 69 29 0a 69 6e 74 20 |limit_ld|(i).int |
|000042d0| 69 3b 0a 58 7b 0a 58 23 | 69 66 64 65 66 20 4c 49 |i;.X{.X#|ifdef LI|
|000042e0| 4d 49 54 5f 4c 44 0a 58 | 09 63 68 61 72 20 2a 6e |MIT_LD.X|.char *n|
|000042f0| 75 6d 62 65 72 2c 20 2a | 6e 61 6d 65 2c 20 2a 67 |umber, *|name, *g|
|00004300| 65 74 6c 6f 67 69 6e 28 | 29 3b 0a 58 09 73 74 72 |etlogin(|);.X.str|
|00004310| 75 63 74 20 67 72 6f 75 | 70 20 2a 67 65 74 67 72 |uct grou|p *getgr|
|00004320| 6e 61 6d 28 29 2c 20 2a | 67 72 70 62 75 66 3b 0a |nam(), *|grpbuf;.|
|00004330| 58 0a 58 09 09 09 09 09 | 2f 2a 20 69 66 20 6e 6f |X.X.....|/* if no|
|00004340| 20 67 72 6f 75 70 2c 20 | 64 6f 6e 27 74 20 62 6f | group, |don't bo|
|00004350| 74 68 65 72 20 2a 2f 0a | 58 09 67 72 70 62 75 66 |ther */.|X.grpbuf|
|00004360| 20 3d 20 67 65 74 67 72 | 6e 61 6d 28 47 52 4f 55 | = getgr|nam(GROU|
|00004370| 50 5f 4e 41 4d 45 29 3b | 0a 58 09 69 66 20 28 67 |P_NAME);|.X.if (g|
|00004380| 72 70 62 75 66 20 3d 3d | 20 4e 55 4c 4c 20 7c 7c |rpbuf ==| NULL |||
|00004390| 20 2a 67 72 70 62 75 66 | 2d 3e 67 72 5f 6d 65 6d | *grpbuf|->gr_mem|
|000043a0| 20 3d 3d 20 27 5c 30 27 | 29 0a 58 09 09 72 65 74 | == '\0'|).X..ret|
|000043b0| 75 72 6e 28 30 29 3b 0a | 58 09 09 09 09 09 2f 2a |urn(0);.|X...../*|
|000043c0| 20 61 72 65 20 79 6f 75 | 20 69 6e 20 74 68 65 20 | are you| in the |
|000043d0| 67 72 6f 75 70 3f 20 2a | 2f 0a 58 09 6e 61 6d 65 |group? *|/.X.name|
|000043e0| 20 3d 20 67 65 74 6c 6f | 67 69 6e 28 29 3b 0a 58 | = getlo|gin();.X|
|000043f0| 09 66 6f 72 20 28 3b 20 | 2a 67 72 70 62 75 66 2d |.for (; |*grpbuf-|
|00004400| 3e 67 72 5f 6d 65 6d 21 | 3d 27 5c 30 27 3b 20 67 |>gr_mem!|='\0'; g|
|00004410| 72 70 62 75 66 2d 3e 67 | 72 5f 6d 65 6d 2b 2b 29 |rpbuf->g|r_mem++)|
|00004420| 20 7b 0a 58 09 09 69 66 | 20 28 21 73 74 72 63 6d | {.X..if| (!strcm|
|00004430| 70 28 2a 67 72 70 62 75 | 66 2d 3e 67 72 5f 6d 65 |p(*grpbu|f->gr_me|
|00004440| 6d 2c 20 6e 61 6d 65 29 | 29 0a 58 09 09 09 72 65 |m, name)|).X...re|
|00004450| 74 75 72 6e 28 30 29 3b | 0a 58 09 7d 0a 58 09 09 |turn(0);|.X.}.X..|
|00004460| 09 09 09 2f 2a 20 6e 75 | 6d 62 65 72 73 20 6f 6e |.../* nu|mbers on|
|00004470| 6c 79 2e 2e 2e 20 2a 2f | 0a 58 09 6e 75 6d 62 65 |ly... */|.X.numbe|
|00004480| 72 20 3d 20 62 75 69 6c | 64 5f 6e 75 6d 28 69 29 |r = buil|d_num(i)|
|00004490| 3b 0a 58 0a 58 09 2f 2a | 0a 58 09 20 2a 20 56 45 |;.X.X./*|.X. * VE|
|000044a0| 52 59 20 53 49 54 45 20 | 53 50 45 43 49 46 49 43 |RY SITE |SPECIFIC|
|000044b0| 21 21 21 20 20 57 65 20 | 75 73 65 20 61 20 22 39 |!!! We |use a "9|
|000044c0| 22 20 74 6f 20 67 65 74 | 20 61 6e 20 6f 75 74 73 |" to get| an outs|
|000044d0| 69 64 65 20 6c 69 6e 65 | 2c 0a 58 09 20 2a 20 73 |ide line|,.X. * s|
|000044e0| 6f 20 61 6e 79 20 39 20 | 66 6f 6c 6c 6f 77 65 64 |o any 9 |followed|
|000044f0| 20 62 79 20 61 20 31 20 | 69 73 20 61 20 74 6f 6c | by a 1 |is a tol|
|00004500| 6c 20 63 61 6c 6c 20 28 | 65 78 63 65 70 74 20 66 |l call (|except f|
|00004510| 6f 72 20 31 2d 38 30 30 | 0a 58 09 20 2a 20 6e 75 |or 1-800|.X. * nu|
|00004520| 6d 62 65 72 73 29 2e 0a | 58 09 20 2a 2f 0a 58 09 |mbers)..|X. */.X.|
|00004530| 69 66 20 28 21 73 74 72 | 6e 63 6d 70 28 6e 75 6d |if (!str|ncmp(num|
|00004540| 62 65 72 2c 20 22 39 31 | 22 2c 20 32 29 20 26 26 |ber, "91|", 2) &&|
|00004550| 20 73 74 72 6e 63 6d 70 | 28 6e 75 6d 62 65 72 2c | strncmp|(number,|
|00004560| 20 22 39 31 38 30 30 22 | 2c 20 35 29 29 20 7b 0a | "91800"|, 5)) {.|
|00004570| 58 09 09 65 72 72 6f 72 | 5f 77 69 6e 28 30 2c 20 |X..error|_win(0, |
|00004580| 22 59 6f 75 20 61 72 65 | 20 6e 6f 74 20 61 75 74 |"You are| not aut|
|00004590| 68 6f 72 69 7a 65 64 20 | 74 6f 20 70 6c 61 63 65 |horized |to place|
|000045a0| 20 6c 6f 6e 67 20 64 69 | 73 74 61 6e 63 65 20 28 | long di|stance (|
|000045b0| 74 6f 6c 6c 29 20 63 61 | 6c 6c 73 22 2c 20 22 22 |toll) ca|lls", ""|
|000045c0| 29 3b 0a 58 09 09 72 65 | 74 75 72 6e 28 31 29 3b |);.X..re|turn(1);|
|000045d0| 0a 58 09 7d 0a 58 0a 58 | 09 69 66 20 28 2a 6e 75 |.X.}.X.X|.if (*nu|
|000045e0| 6d 62 65 72 20 3d 3d 20 | 27 5c 30 27 29 20 7b 0a |mber == |'\0') {.|
|000045f0| 58 09 09 65 72 72 6f 72 | 5f 77 69 6e 28 30 2c 20 |X..error|_win(0, |
|00004600| 22 59 6f 75 20 61 72 65 | 20 6e 6f 74 20 61 75 74 |"You are| not aut|
|00004610| 68 6f 72 69 7a 65 64 20 | 64 69 72 65 63 74 20 61 |horized |direct a|
|00004620| 63 63 65 73 73 20 74 6f | 20 74 68 65 20 6c 69 6e |ccess to| the lin|
|00004630| 65 22 2c 20 22 55 73 65 | 20 74 68 65 20 61 75 74 |e", "Use| the aut|
|00004640| 6f 6d 61 74 69 63 20 64 | 69 61 6c 69 6e 67 20 66 |omatic d|ialing f|
|00004650| 65 61 74 75 72 65 22 29 | 3b 0a 58 09 09 72 65 74 |eature")|;.X..ret|
|00004660| 75 72 6e 28 31 29 3b 0a | 58 09 7d 0a 58 23 65 6e |urn(1);.|X.}.X#en|
|00004670| 64 69 66 20 2f 2a 20 4c | 49 4d 49 54 5f 4c 44 20 |dif /* L|IMIT_LD |
|00004680| 2a 2f 0a 58 09 72 65 74 | 75 72 6e 28 30 29 3b 0a |*/.X.ret|urn(0);.|
|00004690| 58 7d 0a 58 0a 58 23 69 | 66 20 64 65 66 69 6e 65 |X}.X.X#i|f define|
|000046a0| 64 28 4c 4f 47 5f 43 41 | 4c 4c 53 29 20 7c 7c 20 |d(LOG_CA|LLS) || |
|000046b0| 64 65 66 69 6e 65 64 28 | 4c 49 4d 49 54 5f 4c 44 |defined(|LIMIT_LD|
|000046c0| 29 0a 58 2f 2a 0a 58 20 | 2a 20 50 75 74 20 74 6f |).X/*.X |* Put to|
|000046d0| 67 65 74 68 65 72 20 74 | 68 65 20 63 6f 6d 70 6c |gether t|he compl|
|000046e0| 65 74 65 20 70 68 6f 6e | 65 20 6e 75 6d 62 65 72 |ete phon|e number|
|000046f0| 20 62 75 74 20 73 74 72 | 69 70 20 6f 75 74 20 74 | but str|ip out t|
|00004700| 68 65 20 65 78 74 72 61 | 6e 65 6f 75 73 0a 58 20 |he extra|neous.X |
|00004710| 2a 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 58 20 |* charac|ters..X |
|00004720| 2a 2f 0a 58 0a 73 74 61 | 74 69 63 20 63 68 61 72 |*/.X.sta|tic char|
|00004730| 20 2a 0a 62 75 69 6c 64 | 5f 6e 75 6d 28 69 29 0a | *.build|_num(i).|
|00004740| 69 6e 74 20 69 3b 0a 58 | 7b 0a 58 09 69 6e 74 20 |int i;.X|{.X.int |
|00004750| 6a 3b 0a 58 09 63 68 61 | 72 20 2a 74 2c 20 74 65 |j;.X.cha|r *t, te|
|00004760| 6d 70 5b 38 30 5d 2c 20 | 2a 73 74 72 63 70 79 28 |mp[80], |*strcpy(|
|00004770| 29 2c 20 2a 73 74 72 63 | 61 74 28 29 3b 0a 58 09 |), *strc|at();.X.|
|00004780| 73 74 61 74 69 63 20 63 | 68 61 72 20 61 6e 73 5b |static c|har ans[|
|00004790| 38 30 5d 3b 0a 58 0a 58 | 09 74 65 6d 70 5b 30 5d |80];.X.X|.temp[0]|
|000047a0| 20 3d 20 27 5c 30 27 3b | 0a 58 09 09 09 09 09 2f | = '\0';|.X...../|
|000047b0| 2a 20 61 64 64 20 4c 44 | 20 63 6f 64 65 73 3f 20 |* add LD| codes? |
|000047c0| 2a 2f 0a 58 09 73 77 69 | 74 63 68 20 28 64 69 72 |*/.X.swi|tch (dir|
|000047d0| 2d 3e 71 5f 6c 64 5b 69 | 5d 29 20 7b 0a 58 09 09 |->q_ld[i|]) {.X..|
|000047e0| 63 61 73 65 20 30 3a 0a | 58 09 09 09 62 72 65 61 |case 0:.|X...brea|
|000047f0| 6b 3b 0a 58 09 09 63 61 | 73 65 20 27 2b 27 3a 0a |k;.X..ca|se '+':.|
|00004800| 58 09 09 09 73 74 72 63 | 70 79 28 74 65 6d 70 2c |X...strc|py(temp,|
|00004810| 20 70 61 72 61 6d 2d 3e | 6c 64 5f 70 6c 75 73 29 | param->|ld_plus)|
|00004820| 3b 0a 58 09 09 09 62 72 | 65 61 6b 3b 0a 58 09 09 |;.X...br|eak;.X..|
|00004830| 63 61 73 65 20 27 2d 27 | 3a 0a 58 09 09 09 73 74 |case '-'|:.X...st|
|00004840| 72 63 70 79 28 74 65 6d | 70 2c 20 70 61 72 61 6d |rcpy(tem|p, param|
|00004850| 2d 3e 6c 64 5f 6d 69 6e | 75 73 29 3b 0a 58 09 09 |->ld_min|us);.X..|
|00004860| 09 62 72 65 61 6b 3b 0a | 58 09 09 63 61 73 65 20 |.break;.|X..case |
|00004870| 27 40 27 3a 0a 58 09 09 | 09 73 74 72 63 70 79 28 |'@':.X..|.strcpy(|
|00004880| 74 65 6d 70 2c 20 70 61 | 72 61 6d 2d 3e 6c 64 5f |temp, pa|ram->ld_|
|00004890| 61 74 29 3b 0a 58 09 09 | 09 62 72 65 61 6b 3b 0a |at);.X..|.break;.|
|000048a0| 58 09 09 63 61 73 65 20 | 27 23 27 3a 0a 58 09 09 |X..case |'#':.X..|
|000048b0| 09 73 74 72 63 70 79 28 | 74 65 6d 70 2c 20 70 61 |.strcpy(|temp, pa|
|000048c0| 72 61 6d 2d 3e 6c 64 5f | 70 6f 75 6e 64 29 3b 0a |ram->ld_|pound);.|
|000048d0| 58 09 09 09 62 72 65 61 | 6b 3b 0a 58 09 7d 0a 58 |X...brea|k;.X.}.X|
|000048e0| 09 09 09 09 09 2f 2a 20 | 61 64 64 20 74 68 65 20 |...../* |add the |
|000048f0| 6e 75 6d 62 65 72 20 2a | 2f 0a 58 09 73 74 72 63 |number *|/.X.strc|
|00004900| 61 74 28 74 65 6d 70 2c | 20 64 69 72 2d 3e 6e 75 |at(temp,| dir->nu|
|00004910| 6d 62 65 72 5b 64 69 72 | 2d 3e 71 5f 6e 75 6d 5b |mber[dir|->q_num[|
|00004920| 69 5d 5d 29 3b 0a 58 0a | 58 09 09 09 09 09 2f 2a |i]]);.X.|X...../*|
|00004930| 20 63 6f 70 79 20 6f 6e | 6c 79 20 64 69 67 69 74 | copy on|ly digit|
|00004940| 73 20 2a 2f 0a 58 09 6a | 20 3d 20 30 3b 0a 58 09 |s */.X.j| = 0;.X.|
|00004950| 74 20 3d 20 74 65 6d 70 | 3b 0a 58 09 77 68 69 6c |t = temp|;.X.whil|
|00004960| 65 20 28 2a 74 29 20 7b | 0a 58 09 09 69 66 20 28 |e (*t) {|.X..if (|
|00004970| 2a 74 20 3e 3d 20 27 30 | 27 20 26 26 20 2a 74 20 |*t >= '0|' && *t |
|00004980| 3c 3d 20 27 39 27 29 0a | 58 09 09 09 61 6e 73 5b |<= '9').|X...ans[|
|00004990| 6a 2b 2b 5d 20 3d 20 2a | 74 3b 0a 58 09 09 74 2b |j++] = *|t;.X..t+|
|000049a0| 2b 3b 0a 58 09 7d 0a 58 | 09 61 6e 73 5b 6a 5d 20 |+;.X.}.X|.ans[j] |
|000049b0| 3d 20 27 5c 30 27 3b 0a | 58 0a 58 09 72 65 74 75 |= '\0';.|X.X.retu|
|000049c0| 72 6e 28 61 6e 73 29 3b | 0a 58 7d 0a 58 23 65 6e |rn(ans);|.X}.X#en|
|000049d0| 64 69 66 20 2f 2a 20 4c | 4f 47 5f 43 41 4c 4c 53 |dif /* L|OG_CALLS|
|000049e0| 20 7c 7c 20 4c 49 4d 49 | 54 5f 4c 44 20 2a 2f 0a | || LIMI|T_LD */.|
|000049f0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|00004a00| 65 73 74 20 32 39 34 32 | 20 2d 6e 65 20 60 77 63 |est 2942| -ne `wc|
|00004a10| 20 2d 63 20 3c 27 61 64 | 6d 69 6e 2e 63 27 60 3b | -c <'ad|min.c'`;|
|00004a20| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00004a30| 68 61 72 3a 20 5c 22 27 | 61 64 6d 69 6e 2e 63 27 |har: \"'|admin.c'|
|00004a40| 5c 22 20 75 6e 70 61 63 | 6b 65 64 20 77 69 74 68 |\" unpac|ked with|
|00004a50| 20 77 72 6f 6e 67 20 73 | 69 7a 65 21 0a 66 69 0a | wrong s|ize!.fi.|
|00004a60| 23 20 65 6e 64 20 6f 66 | 20 27 61 64 6d 69 6e 2e |# end of| 'admin.|
|00004a70| 63 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |c'.fi.if| test -f|
|00004a80| 20 27 64 5f 70 72 69 6e | 74 2e 63 27 20 2d 61 20 | 'd_prin|t.c' -a |
|00004a90| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00004aa0| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00004ab0| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00004ac0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00004ad0| 6c 65 20 5c 22 27 64 5f | 70 72 69 6e 74 2e 63 27 |le \"'d_|print.c'|
|00004ae0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00004af0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00004b00| 27 64 5f 70 72 69 6e 74 | 2e 63 27 5c 22 20 5c 28 |'d_print|.c'\" \(|
|00004b10| 33 39 38 36 20 63 68 61 | 72 61 63 74 65 72 73 5c |3986 cha|racters\|
|00004b20| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|00004b30| 27 64 5f 70 72 69 6e 74 | 2e 63 27 20 3c 3c 27 45 |'d_print|.c' <<'E|
|00004b40| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2f 2a 0a |ND_OF_FI|LE'.X/*.|
|00004b50| 58 20 2a 20 54 68 65 20 | 70 72 69 6e 74 20 6f 70 |X * The |print op|
|00004b60| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 64 69 61 6c |tion of |the dial|
|00004b70| 69 6e 67 20 64 69 72 65 | 63 74 6f 72 79 2e 20 20 |ing dire|ctory. |
|00004b80| 41 20 63 61 72 72 69 61 | 67 65 20 72 65 74 75 72 |A carria|ge retur|
|00004b90| 6e 20 77 69 6c 6c 0a 58 | 20 2a 20 73 65 6e 64 20 |n will.X| * send |
|00004ba0| 74 68 65 20 64 69 61 6c | 69 6e 67 20 64 69 72 65 |the dial|ing dire|
|00004bb0| 63 74 6f 72 79 20 74 6f | 20 74 68 65 20 70 72 69 |ctory to| the pri|
|00004bc0| 6e 74 20 73 70 6f 6f 6c | 20 70 72 6f 67 72 61 6d |nt spool| program|
|00004bd0| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 74 68 65 0a |, otherw|ise the.|
|00004be0| 58 20 2a 20 73 65 6c 65 | 63 74 65 64 20 66 69 6c |X * sele|cted fil|
|00004bf0| 65 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 2e 0a |e will b|e used..|
|00004c00| 58 20 2a 2f 0a 58 0a 58 | 23 64 65 66 69 6e 65 20 |X */.X.X|#define |
|00004c10| 4d 41 58 5f 53 54 52 49 | 4e 47 09 38 30 0a 58 0a |MAX_STRI|NG.80.X.|
|00004c20| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |X#includ|e <stdio|
|00004c30| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 63 |.h>.X#in|clude <c|
|00004c40| 75 72 73 65 73 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |urses.h>|.X#inclu|
|00004c50| 64 65 20 22 63 6f 6e 66 | 69 67 2e 68 22 0a 58 23 |de "conf|ig.h".X#|
|00004c60| 69 6e 63 6c 75 64 65 20 | 22 64 69 61 6c 5f 64 69 |include |"dial_di|
|00004c70| 72 2e 68 22 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |r.h".X#i|nclude "|
|00004c80| 6d 69 73 63 2e 68 22 0a | 58 0a 73 74 61 74 69 63 |misc.h".|X.static|
|00004c90| 20 63 68 61 72 20 2a 65 | 5f 67 65 74 5f 73 74 72 | char *e|_get_str|
|00004ca0| 28 29 3b 0a 58 0a 76 6f | 69 64 0a 70 72 69 6e 74 |();.X.vo|id.print|
|00004cb0| 5f 64 69 72 28 29 0a 58 | 7b 0a 58 09 46 49 4c 45 |_dir().X|{.X.FILE|
|00004cc0| 20 2a 66 70 2c 20 2a 6e | 5f 70 6f 70 65 6e 28 29 | *fp, *n|_popen()|
|00004cd0| 2c 20 2a 75 69 64 5f 66 | 6f 70 65 6e 28 29 3b 0a |, *uid_f|open();.|
|00004ce0| 58 09 57 49 4e 44 4f 57 | 20 2a 70 5f 77 69 6e 2c |X.WINDOW| *p_win,|
|00004cf0| 20 2a 6e 65 77 77 69 6e | 28 29 3b 0a 58 09 63 68 | *newwin|();.X.ch|
|00004d00| 61 72 20 2a 61 6e 73 2c | 20 2a 66 69 6c 65 2c 20 |ar *ans,| *file, |
|00004d10| 62 75 66 5b 31 30 30 5d | 2c 20 2a 65 78 70 61 6e |buf[100]|, *expan|
|00004d20| 64 28 29 3b 0a 58 09 69 | 6e 74 20 69 73 5f 70 72 |d();.X.i|nt is_pr|
|00004d30| 69 6e 74 65 72 2c 20 69 | 3b 0a 58 09 76 6f 69 64 |inter, i|;.X.void|
|00004d40| 20 65 72 72 6f 72 5f 77 | 69 6e 28 29 3b 0a 58 09 | error_w|in();.X.|
|00004d50| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 73 6c 65 |unsigned| int sle|
|00004d60| 65 70 28 29 3b 0a 58 0a | 58 09 70 5f 77 69 6e 20 |ep();.X.|X.p_win |
|00004d70| 3d 20 6e 65 77 77 69 6e | 28 35 2c 20 35 34 2c 20 |= newwin|(5, 54, |
|00004d80| 30 2c 20 32 36 29 3b 0a | 58 0a 58 09 6d 76 77 61 |0, 26);.|X.X.mvwa|
|00004d90| 64 64 73 74 72 28 70 5f | 77 69 6e 2c 20 32 2c 20 |ddstr(p_|win, 2, |
|00004da0| 33 2c 20 22 50 72 69 6e | 74 20 74 6f 3a 20 28 70 |3, "Prin|t to: (p|
|00004db0| 72 69 6e 74 65 72 29 22 | 29 3b 0a 58 09 62 6f 78 |rinter)"|);.X.box|
|00004dc0| 28 70 5f 77 69 6e 2c 20 | 56 45 52 54 2c 20 48 4f |(p_win, |VERT, HO|
|00004dd0| 52 5a 29 3b 0a 58 09 77 | 6d 6f 76 65 28 70 5f 77 |RZ);.X.w|move(p_w|
|00004de0| 69 6e 2c 20 32 2c 20 31 | 33 29 3b 0a 58 09 77 72 |in, 2, 1|3);.X.wr|
|00004df0| 65 66 72 65 73 68 28 70 | 5f 77 69 6e 29 3b 0a 58 |efresh(p|_win);.X|
|00004e00| 0a 58 09 2f 2a 0a 58 09 | 20 2a 20 54 68 69 73 20 |.X./*.X.| * This |
|00004e10| 69 73 20 61 20 73 70 65 | 63 69 61 6c 20 76 65 72 |is a spe|cial ver|
|00004e20| 73 69 6f 6e 20 6f 66 20 | 67 65 74 5f 73 74 72 28 |sion of |get_str(|
|00004e30| 29 20 74 68 61 74 20 6c | 6f 6f 6b 73 20 61 74 20 |) that l|ooks at |
|00004e40| 74 68 65 0a 58 09 20 2a | 20 66 69 72 73 74 20 63 |the.X. *| first c|
|00004e50| 68 61 72 61 63 74 65 72 | 20 74 6f 20 73 65 65 20 |haracter| to see |
|00004e60| 69 66 20 69 74 20 73 68 | 6f 75 6c 64 20 65 72 61 |if it sh|ould era|
|00004e70| 73 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 61 |se the d|efault a|
|00004e80| 6e 73 77 65 72 0a 58 09 | 20 2a 20 61 6c 72 65 61 |nswer.X.| * alrea|
|00004e90| 64 79 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |dy on th|e screen|
|00004ea0| 2e 0a 58 09 20 2a 2f 0a | 58 09 69 66 20 28 28 61 |..X. */.|X.if ((a|
|00004eb0| 6e 73 20 3d 20 65 5f 67 | 65 74 5f 73 74 72 28 70 |ns = e_g|et_str(p|
|00004ec0| 5f 77 69 6e 2c 20 38 30 | 29 29 20 3d 3d 20 4e 55 |_win, 80|)) == NU|
|00004ed0| 4c 4c 29 20 7b 0a 58 09 | 09 09 09 09 2f 2a 20 65 |LL) {.X.|..../* e|
|00004ee0| 72 61 73 65 20 62 65 63 | 61 75 73 65 20 69 74 20 |rase bec|ause it |
|00004ef0| 6f 76 65 72 6c 61 70 73 | 20 64 6d 5f 77 69 6e 20 |overlaps| dm_win |
|00004f00| 2a 2f 0a 58 09 09 77 65 | 72 61 73 65 28 70 5f 77 |*/.X..we|rase(p_w|
|00004f10| 69 6e 29 3b 0a 58 09 09 | 77 72 65 66 72 65 73 68 |in);.X..|wrefresh|
|00004f20| 28 70 5f 77 69 6e 29 3b | 0a 58 09 09 64 65 6c 77 |(p_win);|.X..delw|
|00004f30| 69 6e 28 70 5f 77 69 6e | 29 3b 0a 58 09 09 72 65 |in(p_win|);.X..re|
|00004f40| 74 75 72 6e 3b 0a 58 09 | 7d 0a 58 09 66 69 6c 65 |turn;.X.|}.X.file|
|00004f50| 20 3d 20 65 78 70 61 6e | 64 28 61 6e 73 29 3b 0a | = expan|d(ans);.|
|00004f60| 58 09 69 73 5f 70 72 69 | 6e 74 65 72 20 3d 20 30 |X.is_pri|nter = 0|
|00004f70| 3b 0a 58 09 09 09 09 09 | 2f 2a 20 74 68 65 20 64 |;.X.....|/* the d|
|00004f80| 65 66 61 75 6c 74 20 28 | 70 72 69 6e 74 65 72 29 |efault (|printer)|
|00004f90| 20 2a 2f 0a 58 09 69 66 | 20 28 2a 66 69 6c 65 20 | */.X.if| (*file |
|00004fa0| 3d 3d 20 27 5c 30 27 29 | 20 7b 0a 58 09 09 69 66 |== '\0')| {.X..if|
|00004fb0| 20 28 21 28 66 70 20 3d | 20 6e 5f 70 6f 70 65 6e | (!(fp =| n_popen|
|00004fc0| 28 4c 50 52 49 4e 54 2c | 20 22 77 22 29 29 29 20 |(LPRINT,| "w"))) |
|00004fd0| 7b 0a 58 09 09 09 73 70 | 72 69 6e 74 66 28 62 75 |{.X...sp|rintf(bu|
|00004fe0| 66 2c 20 22 5c 22 25 73 | 5c 22 22 2c 20 4c 50 52 |f, "\"%s|\"", LPR|
|00004ff0| 49 4e 54 29 3b 0a 58 09 | 09 09 65 72 72 6f 72 5f |INT);.X.|..error_|
|00005000| 77 69 6e 28 30 2c 20 22 | 43 61 6e 27 74 20 6f 70 |win(0, "|Can't op|
|00005010| 65 6e 20 70 72 69 6e 74 | 65 72 20 70 72 6f 67 72 |en print|er progr|
|00005020| 61 6d 22 2c 20 62 75 66 | 29 3b 0a 58 09 09 09 77 |am", buf|);.X...w|
|00005030| 65 72 61 73 65 28 70 5f | 77 69 6e 29 3b 0a 58 09 |erase(p_|win);.X.|
|00005040| 09 09 77 72 65 66 72 65 | 73 68 28 70 5f 77 69 6e |..wrefre|sh(p_win|
|00005050| 29 3b 0a 58 09 09 09 64 | 65 6c 77 69 6e 28 70 5f |);.X...d|elwin(p_|
|00005060| 77 69 6e 29 3b 0a 58 09 | 09 09 72 65 74 75 72 6e |win);.X.|..return|
|00005070| 3b 0a 58 09 09 7d 0a 58 | 09 09 69 73 5f 70 72 69 |;.X..}.X|..is_pri|
|00005080| 6e 74 65 72 2b 2b 3b 0a | 58 09 7d 0a 58 09 09 09 |nter++;.|X.}.X...|
|00005090| 09 09 2f 2a 20 74 68 65 | 20 72 65 71 75 65 73 74 |../* the| request|
|000050a0| 65 64 20 66 69 6c 65 20 | 2a 2f 0a 58 09 65 6c 73 |ed file |*/.X.els|
|000050b0| 65 20 7b 0a 58 09 09 2f | 2a 0a 58 09 09 20 2a 20 |e {.X../|*.X.. * |
|000050c0| 43 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |Check to| see if |
|000050d0| 74 68 65 20 66 69 6c 65 | 20 61 6c 72 65 61 64 79 |the file| already|
|000050e0| 20 65 78 69 73 74 73 20 | 28 61 6e 64 20 69 66 20 | exists |(and if |
|000050f0| 79 6f 75 0a 58 09 09 20 | 2a 20 68 61 76 65 20 77 |you.X.. |* have w|
|00005100| 72 69 74 65 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |rite per|mission |
|00005110| 74 6f 6f 29 2e 20 20 43 | 75 72 72 65 6e 74 6c 79 |too). C|urrently|
|00005120| 20 6f 6e 6c 79 20 61 6c | 6c 6f 77 73 0a 58 09 09 | only al|lows.X..|
|00005130| 20 2a 20 79 6f 75 20 74 | 6f 20 62 61 69 6c 20 6f | * you t|o bail o|
|00005140| 75 74 20 6f 72 20 6f 76 | 65 72 77 72 69 74 65 20 |ut or ov|erwrite |
|00005150| 74 68 65 20 66 69 6c 65 | 20 28 6e 6f 20 61 70 70 |the file| (no app|
|00005160| 65 6e 64 29 2e 0a 58 09 | 09 20 2a 2f 0a 58 09 09 |end)..X.|. */.X..|
|00005170| 73 77 69 74 63 68 28 63 | 61 6e 5f 77 72 69 74 65 |switch(c|an_write|
|00005180| 28 66 69 6c 65 29 29 20 | 7b 0a 58 09 09 09 63 61 |(file)) |{.X...ca|
|00005190| 73 65 20 44 45 4e 49 45 | 44 3a 0a 58 09 09 09 09 |se DENIE|D:.X....|
|000051a0| 73 70 72 69 6e 74 66 28 | 62 75 66 2c 20 22 5c 22 |sprintf(|buf, "\"|
|000051b0| 25 73 5c 22 22 2c 20 66 | 69 6c 65 29 3b 0a 58 09 |%s\"", f|ile);.X.|
|000051c0| 09 09 09 65 72 72 6f 72 | 5f 77 69 6e 28 30 2c 20 |...error|_win(0, |
|000051d0| 22 4e 6f 20 77 72 69 74 | 65 20 70 65 72 6d 69 73 |"No writ|e permis|
|000051e0| 73 69 6f 6e 20 6f 6e 20 | 66 69 6c 65 22 2c 20 62 |sion on |file", b|
|000051f0| 75 66 29 3b 0a 58 09 09 | 09 09 77 65 72 61 73 65 |uf);.X..|..werase|
|00005200| 28 70 5f 77 69 6e 29 3b | 0a 58 09 09 09 09 77 72 |(p_win);|.X....wr|
|00005210| 65 66 72 65 73 68 28 70 | 5f 77 69 6e 29 3b 0a 58 |efresh(p|_win);.X|
|00005220| 09 09 09 09 64 65 6c 77 | 69 6e 28 70 5f 77 69 6e |....delw|in(p_win|
|00005230| 29 3b 0a 58 09 09 09 09 | 72 65 74 75 72 6e 3b 0a |);.X....|return;.|
|00005240| 58 09 09 09 63 61 73 65 | 20 4f 4b 5f 42 55 54 5f |X...case| OK_BUT_|
|00005250| 45 58 49 53 54 53 3a 0a | 58 09 09 09 09 77 65 72 |EXISTS:.|X....wer|
|00005260| 61 73 65 28 70 5f 77 69 | 6e 29 3b 0a 58 09 09 09 |ase(p_wi|n);.X...|
|00005270| 09 6d 76 77 70 72 69 6e | 74 77 28 70 5f 77 69 6e |.mvwprin|tw(p_win|
|00005280| 2c 20 32 2c 20 33 2c 20 | 22 46 69 6c 65 20 5c 22 |, 2, 3, |"File \"|
|00005290| 25 73 5c 22 20 61 6c 72 | 65 61 64 79 20 65 78 69 |%s\" alr|eady exi|
|000052a0| 73 74 73 21 22 2c 20 66 | 69 6c 65 29 3b 0a 58 09 |sts!", f|ile);.X.|
|000052b0| 09 09 09 62 65 65 70 28 | 29 3b 0a 58 09 09 09 09 |...beep(|);.X....|
|000052c0| 62 6f 78 28 70 5f 77 69 | 6e 2c 20 56 45 52 54 2c |box(p_wi|n, VERT,|
|000052d0| 20 48 4f 52 5a 29 3b 0a | 58 09 09 09 09 69 66 20 | HORZ);.|X....if |
|000052e0| 28 21 79 65 73 5f 70 72 | 6f 6d 70 74 28 70 5f 77 |(!yes_pr|ompt(p_w|
|000052f0| 69 6e 2c 20 33 2c 20 33 | 2c 20 41 5f 42 4f 4c 44 |in, 3, 3|, A_BOLD|
|00005300| 2c 20 22 4f 76 65 72 77 | 72 69 74 65 22 29 29 20 |, "Overw|rite")) |
|00005310| 7b 0a 58 09 09 09 09 09 | 77 65 72 61 73 65 28 70 |{.X.....|werase(p|
|00005320| 5f 77 69 6e 29 3b 0a 58 | 09 09 09 09 09 77 72 65 |_win);.X|.....wre|
|00005330| 66 72 65 73 68 28 70 5f | 77 69 6e 29 3b 0a 58 09 |fresh(p_|win);.X.|
|00005340| 09 09 09 09 64 65 6c 77 | 69 6e 28 70 5f 77 69 6e |....delw|in(p_win|
|00005350| 29 3b 0a 58 09 09 09 09 | 09 72 65 74 75 72 6e 3b |);.X....|.return;|
|00005360| 0a 58 09 09 09 09 7d 0a | 58 09 09 09 09 2f 2a 20 |.X....}.|X..../* |
|00005370| 46 41 4c 4c 54 48 52 55 | 20 2a 2f 0a 58 09 09 09 |FALLTHRU| */.X...|
|00005380| 63 61 73 65 20 57 52 49 | 54 45 5f 4f 4b 3a 0a 58 |case WRI|TE_OK:.X|
|00005390| 09 09 09 09 69 66 20 28 | 21 28 66 70 20 3d 20 75 |....if (|!(fp = u|
|000053a0| 69 64 5f 66 6f 70 65 6e | 28 66 69 6c 65 2c 20 22 |id_fopen|(file, "|
|000053b0| 77 22 29 29 29 20 7b 0a | 58 09 09 09 09 09 73 70 |w"))) {.|X.....sp|
|000053c0| 72 69 6e 74 66 28 62 75 | 66 2c 20 22 5c 22 25 73 |rintf(bu|f, "\"%s|
|000053d0| 5c 22 22 2c 20 66 69 6c | 65 29 3b 0a 58 09 09 09 |\"", fil|e);.X...|
|000053e0| 09 09 65 72 72 6f 72 5f | 77 69 6e 28 30 2c 20 22 |..error_|win(0, "|
|000053f0| 43 61 6e 27 74 20 6f 70 | 65 6e 20 66 69 6c 65 22 |Can't op|en file"|
|00005400| 2c 20 62 75 66 29 3b 0a | 58 09 09 09 09 09 77 65 |, buf);.|X.....we|
|00005410| 72 61 73 65 28 70 5f 77 | 69 6e 29 3b 0a 58 09 09 |rase(p_w|in);.X..|
|00005420| 09 09 09 77 72 65 66 72 | 65 73 68 28 70 5f 77 69 |...wrefr|esh(p_wi|
|00005430| 6e 29 3b 0a 58 09 09 09 | 09 09 64 65 6c 77 69 6e |n);.X...|..delwin|
|00005440| 28 70 5f 77 69 6e 29 3b | 0a 58 09 09 09 09 09 72 |(p_win);|.X.....r|
|00005450| 65 74 75 72 6e 3b 0a 58 | 09 09 09 09 7d 0a 58 09 |eturn;.X|....}.X.|
|00005460| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 7d 0a 58 |...break|;.X..}.X|
|00005470| 09 7d 0a 58 0a 58 09 77 | 65 72 61 73 65 28 70 5f |.}.X.X.w|erase(p_|
|00005480| 77 69 6e 29 3b 0a 58 09 | 6d 76 77 61 64 64 73 74 |win);.X.|mvwaddst|
|00005490| 72 28 70 5f 77 69 6e 2c | 20 32 2c 20 31 33 2c 20 |r(p_win,| 2, 13, |
|000054a0| 22 50 72 69 6e 74 69 6e | 67 20 50 63 6f 6d 6d 20 |"Printin|g Pcomm |
|000054b0| 64 69 72 65 63 74 6f 72 | 79 22 29 3b 0a 58 09 62 |director|y");.X.b|
|000054c0| 6f 78 28 70 5f 77 69 6e | 2c 20 56 45 52 54 2c 20 |ox(p_win|, VERT, |
|000054d0| 48 4f 52 5a 29 3b 0a 58 | 09 77 72 65 66 72 65 73 |HORZ);.X|.wrefres|
|000054e0| 68 28 70 5f 77 69 6e 29 | 3b 0a 58 0a 58 09 2f 2a |h(p_win)|;.X.X./*|
|000054f0| 0a 58 09 20 2a 20 4f 6e | 6c 79 20 70 72 69 6e 74 |.X. * On|ly print|
|00005500| 73 20 75 70 20 74 6f 20 | 74 68 65 20 65 6e 64 20 |s up to |the end |
|00005510| 6f 66 20 74 68 65 20 70 | 68 79 73 69 63 61 6c 20 |of the p|hysical |
|00005520| 66 69 6c 65 2c 20 6e 6f | 74 20 74 68 65 20 65 6e |file, no|t the en|
|00005530| 74 69 72 65 0a 58 09 20 | 2a 20 73 74 72 75 63 74 |tire.X. |* struct|
|00005540| 75 72 65 2e 20 20 49 20 | 67 61 76 65 20 73 6f 6d |ure. I |gave som|
|00005550| 65 20 74 68 6f 75 67 68 | 74 20 61 62 6f 75 74 20 |e though|t about |
|00005560| 6e 6f 74 20 70 72 69 6e | 74 69 6e 67 20 65 6d 70 |not prin|ting emp|
|00005570| 74 79 20 65 6e 74 72 69 | 65 73 2c 0a 58 09 20 2a |ty entri|es,.X. *|
|00005580| 20 62 75 74 2e 2e 2e 0a | 58 09 20 2a 2f 0a 58 09 | but....|X. */.X.|
|00005590| 66 6f 72 20 28 69 3d 31 | 3b 20 69 3c 3d 64 69 72 |for (i=1|; i<=dir|
|000055a0| 2d 3e 64 5f 65 6e 74 72 | 69 65 73 3b 20 69 2b 2b |->d_entr|ies; i++|
|000055b0| 29 0a 58 09 09 66 70 72 | 69 6e 74 66 28 66 70 2c |).X..fpr|intf(fp,|
|000055c0| 20 22 25 34 64 2d 20 25 | 2d 32 30 2e 32 30 73 20 | "%4d- %|-20.20s |
|000055d0| 25 31 38 2e 31 38 73 20 | 20 25 35 64 2d 25 63 2d |%18.18s | %5d-%c-|
|000055e0| 25 64 2d 25 64 20 20 25 | 63 20 20 25 2d 31 34 2e |%d-%d %|c %-14.|
|000055f0| 31 34 73 5c 6e 22 2c 0a | 58 09 09 20 69 2c 20 64 |14s\n",.|X.. i, d|
|00005600| 69 72 2d 3e 6e 61 6d 65 | 5b 69 5d 2c 20 64 69 72 |ir->name|[i], dir|
|00005610| 2d 3e 6e 75 6d 62 65 72 | 5b 69 5d 2c 20 64 69 72 |->number|[i], dir|
|00005620| 2d 3e 62 61 75 64 5b 69 | 5d 2c 20 64 69 72 2d 3e |->baud[i|], dir->|
|00005630| 70 61 72 69 74 79 5b 69 | 5d 2c 0a 58 09 09 20 64 |parity[i|],.X.. d|
|00005640| 69 72 2d 3e 64 61 74 61 | 5f 62 69 74 73 5b 69 5d |ir->data|_bits[i]|
|00005650| 2c 20 64 69 72 2d 3e 73 | 74 6f 70 5f 62 69 74 73 |, dir->s|top_bits|
|00005660| 5b 69 5d 2c 20 64 69 72 | 2d 3e 64 75 70 6c 65 78 |[i], dir|->duplex|
|00005670| 5b 69 5d 2c 0a 58 09 09 | 20 64 69 72 2d 3e 61 75 |[i],.X..| dir->au|
|00005680| 78 5b 69 5d 29 3b 0a 58 | 0a 58 09 69 66 20 28 69 |x[i]);.X|.X.if (i|
|00005690| 73 5f 70 72 69 6e 74 65 | 72 29 0a 58 09 09 6e 5f |s_printe|r).X..n_|
|000056a0| 70 63 6c 6f 73 65 28 66 | 70 29 3b 0a 58 09 65 6c |pclose(f|p);.X.el|
|000056b0| 73 65 20 7b 0a 58 09 09 | 09 09 09 2f 2a 20 61 20 |se {.X..|.../* a |
|000056c0| 64 72 61 6d 61 74 69 63 | 20 64 65 6c 61 79 2e 2e |dramatic| delay..|
|000056d0| 2e 20 2a 2f 0a 58 09 09 | 73 6c 65 65 70 28 31 29 |. */.X..|sleep(1)|
|000056e0| 3b 0a 58 09 09 66 63 6c | 6f 73 65 28 66 70 29 3b |;.X..fcl|ose(fp);|
|000056f0| 0a 58 09 7d 0a 58 0a 58 | 09 77 65 72 61 73 65 28 |.X.}.X.X|.werase(|
|00005700| 70 5f 77 69 6e 29 3b 0a | 58 09 77 72 65 66 72 65 |p_win);.|X.wrefre|
|00005710| 73 68 28 70 5f 77 69 6e | 29 3b 0a 58 09 64 65 6c |sh(p_win|);.X.del|
|00005720| 77 69 6e 28 70 5f 77 69 | 6e 29 3b 0a 58 09 72 65 |win(p_wi|n);.X.re|
|00005730| 74 75 72 6e 3b 0a 58 7d | 0a 58 0a 58 2f 2a 0a 58 |turn;.X}|.X.X/*.X|
|00005740| 20 2a 20 47 65 74 20 61 | 20 73 74 72 69 6e 67 20 | * Get a| string |
|00005750| 66 72 6f 6d 20 61 20 77 | 69 6e 64 6f 77 20 62 75 |from a w|indow bu|
|00005760| 74 20 65 72 61 73 65 20 | 74 68 65 20 6c 69 6e 65 |t erase |the line|
|00005770| 20 66 69 72 73 74 2e 0a | 58 20 2a 2f 0a 58 0a 73 | first..|X */.X.s|
|00005780| 74 61 74 69 63 20 63 68 | 61 72 20 2a 0a 65 5f 67 |tatic ch|ar *.e_g|
|00005790| 65 74 5f 73 74 72 28 77 | 69 6e 2c 20 6e 75 6d 29 |et_str(w|in, num)|
|000057a0| 0a 57 49 4e 44 4f 57 20 | 2a 77 69 6e 3b 0a 69 6e |.WINDOW |*win;.in|
|000057b0| 74 20 6e 75 6d 3b 0a 58 | 7b 0a 58 09 69 6e 74 20 |t num;.X|{.X.int |
|000057c0| 63 6f 75 6e 74 2c 20 78 | 2c 20 79 2c 20 64 6f 6e |count, x|, y, don|
|000057d0| 65 5f 69 74 3b 0a 58 09 | 63 68 61 72 20 61 6e 73 |e_it;.X.|char ans|
|000057e0| 3b 0a 58 09 73 74 61 74 | 69 63 20 63 68 61 72 20 |;.X.stat|ic char |
|000057f0| 62 75 66 5b 4d 41 58 5f | 53 54 52 49 4e 47 5d 3b |buf[MAX_|STRING];|
|00005800| 0a 58 0a 58 09 64 6f 6e | 65 5f 69 74 20 3d 20 30 |.X.X.don|e_it = 0|
|00005810| 3b 0a 58 09 63 6f 75 6e | 74 20 3d 20 30 3b 0a 58 |;.X.coun|t = 0;.X|
|00005820| 09 77 68 69 6c 65 20 28 | 28 61 6e 73 20 3d 20 77 |.while (|(ans = w|
|00005830| 67 65 74 63 68 28 77 69 | 6e 29 29 20 21 3d 20 27 |getch(wi|n)) != '|
|00005840| 5c 72 27 29 20 7b 0a 58 | 09 09 09 09 09 2f 2a 20 |\r') {.X|...../* |
|00005850| 64 6f 20 6f 75 72 20 6f | 77 6e 20 62 61 63 6b 73 |do our o|wn backs|
|00005860| 70 61 63 65 20 2a 2f 0a | 58 09 09 69 66 20 28 61 |pace */.|X..if (a|
|00005870| 6e 73 20 3d 3d 20 42 53 | 20 7c 7c 20 61 6e 73 20 |ns == BS| || ans |
|00005880| 3d 3d 20 44 45 4c 29 20 | 7b 0a 58 09 09 09 69 66 |== DEL) |{.X...if|
|00005890| 20 28 21 63 6f 75 6e 74 | 29 20 7b 0a 58 09 09 09 | (!count|) {.X...|
|000058a0| 09 62 65 65 70 28 29 3b | 0a 58 09 09 09 09 63 6f |.beep();|.X....co|
|000058b0| 6e 74 69 6e 75 65 3b 0a | 58 09 09 09 7d 0a 58 09 |ntinue;.|X...}.X.|
|000058c0| 09 09 63 6f 75 6e 74 2d | 2d 3b 0a 58 09 09 09 62 |..count-|-;.X...b|
|000058d0| 75 66 5b 63 6f 75 6e 74 | 5d 20 3d 20 27 5c 30 27 |uf[count|] = '\0'|
|000058e0| 3b 0a 58 09 09 09 67 65 | 74 79 78 28 77 69 6e 2c |;.X...ge|tyx(win,|
|000058f0| 20 79 2c 20 78 29 3b 0a | 58 09 09 09 78 2d 2d 3b | y, x);.|X...x--;|
|00005900| 0a 58 09 09 09 77 6d 6f | 76 65 28 77 69 6e 2c 20 |.X...wmo|ve(win, |
|00005910| 79 2c 20 78 29 3b 0a 58 | 09 09 09 77 61 64 64 63 |y, x);.X|...waddc|
|00005920| 68 28 77 69 6e 2c 20 28 | 63 68 74 79 70 65 29 20 |h(win, (|chtype) |
|00005930| 27 20 27 29 3b 0a 58 09 | 09 09 77 6d 6f 76 65 28 |' ');.X.|..wmove(|
|00005940| 77 69 6e 2c 20 79 2c 20 | 78 29 3b 0a 58 09 09 09 |win, y, |x);.X...|
|00005950| 77 72 65 66 72 65 73 68 | 28 77 69 6e 29 3b 0a 58 |wrefresh|(win);.X|
|00005960| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 58 09 09 |...conti|nue;.X..|
|00005970| 7d 0a 58 09 09 09 09 09 | 2f 2a 20 65 78 63 65 65 |}.X.....|/* excee|
|00005980| 64 65 64 20 74 68 65 20 | 6d 61 78 3f 20 2a 2f 0a |ded the |max? */.|
|00005990| 58 09 09 69 66 20 28 63 | 6f 75 6e 74 20 3e 3d 20 |X..if (c|ount >= |
|000059a0| 6e 75 6d 20 7c 7c 20 63 | 6f 75 6e 74 20 3e 3d 20 |num || c|ount >= |
|000059b0| 4d 41 58 5f 53 54 52 49 | 4e 47 29 20 7b 0a 58 09 |MAX_STRI|NG) {.X.|
|000059c0| 09 09 62 65 65 70 28 29 | 3b 0a 58 09 09 09 63 6f |..beep()|;.X...co|
|000059d0| 6e 74 69 6e 75 65 3b 0a | 58 09 09 7d 0a 58 09 09 |ntinue;.|X..}.X..|
|000059e0| 09 09 09 2f 2a 20 69 6c | 6c 65 67 61 6c 20 63 68 |.../* il|legal ch|
|000059f0| 61 72 61 63 74 65 72 3f | 20 2a 2f 0a 58 09 09 69 |aracter?| */.X..i|
|00005a00| 66 20 28 61 6e 73 20 3d | 3d 20 27 5c 6e 27 29 20 |f (ans =|= '\n') |
|00005a10| 7b 0a 58 09 09 09 62 65 | 65 70 28 29 3b 0a 58 09 |{.X...be|ep();.X.|
|00005a20| 09 09 63 6f 6e 74 69 6e | 75 65 3b 0a 58 09 09 7d |..contin|ue;.X..}|
|00005a30| 0a 58 09 09 09 09 09 2f | 2a 20 61 6e 20 3c 45 53 |.X...../|* an <ES|
|00005a40| 43 3e 20 61 6e 79 77 68 | 65 72 65 20 69 6e 20 74 |C> anywh|ere in t|
|00005a50| 68 65 20 73 74 72 69 6e | 67 20 2a 2f 0a 58 09 09 |he strin|g */.X..|
|00005a60| 69 66 20 28 61 6e 73 20 | 3d 3d 20 45 53 43 29 0a |if (ans |== ESC).|
|00005a70| 58 09 09 09 72 65 74 75 | 72 6e 28 4e 55 4c 4c 29 |X...retu|rn(NULL)|
|00005a80| 3b 0a 58 09 09 09 09 09 | 2f 2a 20 65 72 61 73 65 |;.X.....|/* erase|
|00005a90| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 61 6e 73 | the def|ault ans|
|00005aa0| 77 65 72 20 2a 2f 0a 58 | 09 09 69 66 20 28 21 64 |wer */.X|..if (!d|
|00005ab0| 6f 6e 65 5f 69 74 29 20 | 7b 0a 58 09 09 09 77 61 |one_it) |{.X...wa|
|00005ac0| 64 64 73 74 72 28 77 69 | 6e 2c 20 22 20 20 20 20 |ddstr(wi|n, " |
|00005ad0| 20 20 20 20 20 22 29 3b | 0a 58 09 09 09 77 6d 6f | ");|.X...wmo|
|00005ae0| 76 65 28 77 69 6e 2c 20 | 32 2c 20 31 33 29 3b 0a |ve(win, |2, 13);.|
|00005af0| 58 09 09 09 77 72 65 66 | 72 65 73 68 28 77 69 6e |X...wref|resh(win|
|00005b00| 29 3b 0a 58 09 09 09 64 | 6f 6e 65 5f 69 74 2b 2b |);.X...d|one_it++|
|00005b10| 3b 0a 58 09 09 7d 0a 58 | 0a 58 09 09 62 75 66 5b |;.X..}.X|.X..buf[|
|00005b20| 63 6f 75 6e 74 5d 20 3d | 20 61 6e 73 3b 0a 58 09 |count] =| ans;.X.|
|00005b30| 09 77 61 64 64 63 68 28 | 77 69 6e 2c 20 28 63 68 |.waddch(|win, (ch|
|00005b40| 74 79 70 65 29 20 61 6e | 73 29 3b 0a 58 09 09 77 |type) an|s);.X..w|
|00005b50| 72 65 66 72 65 73 68 28 | 77 69 6e 29 3b 0a 58 09 |refresh(|win);.X.|
|00005b60| 09 63 6f 75 6e 74 2b 2b | 3b 0a 58 09 7d 0a 58 09 |.count++|;.X.}.X.|
|00005b70| 62 75 66 5b 63 6f 75 6e | 74 5d 20 3d 20 27 5c 30 |buf[coun|t] = '\0|
|00005b80| 27 3b 0a 58 09 72 65 74 | 75 72 6e 28 62 75 66 29 |';.X.ret|urn(buf)|
|00005b90| 3b 0a 58 7d 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |;.X}.END|_OF_FILE|
|00005ba0| 0a 69 66 20 74 65 73 74 | 20 33 39 38 36 20 2d 6e |.if test| 3986 -n|
|00005bb0| 65 20 60 77 63 20 2d 63 | 20 3c 27 64 5f 70 72 69 |e `wc -c| <'d_pri|
|00005bc0| 6e 74 2e 63 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |nt.c'`; |then. |
|00005bd0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 64 | echo sh|ar: \"'d|
|00005be0| 5f 70 72 69 6e 74 2e 63 | 27 5c 22 20 75 6e 70 61 |_print.c|'\" unpa|
|00005bf0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00005c00| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00005c10| 66 20 27 64 5f 70 72 69 | 6e 74 2e 63 27 0a 66 69 |f 'd_pri|nt.c'.fi|
|00005c20| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 64 5f 70 |.if test| -f 'd_p|
|00005c30| 72 6f 6d 70 74 2e 63 27 | 20 2d 61 20 22 24 7b 31 |rompt.c'| -a "${1|
|00005c40| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00005c50| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00005c60| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00005c70| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00005c80| 22 27 64 5f 70 72 6f 6d | 70 74 2e 63 27 5c 22 0a |"'d_prom|pt.c'\".|
|00005c90| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00005ca0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 64 5f |Extracti|ng \"'d_|
|00005cb0| 70 72 6f 6d 70 74 2e 63 | 27 5c 22 20 5c 28 36 31 |prompt.c|'\" \(61|
|00005cc0| 33 31 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |31 chara|cters\).|
|00005cd0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 64 |sed "s/^|X//" >'d|
|00005ce0| 5f 70 72 6f 6d 70 74 2e | 63 27 20 3c 3c 27 45 4e |_prompt.|c' <<'EN|
|00005cf0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 2f 2a 0a 58 |D_OF_FIL|E'.X/*.X|
|00005d00| 20 2a 20 50 72 6f 6d 70 | 74 20 66 6f 72 20 64 69 | * Promp|t for di|
|00005d10| 72 65 63 74 6f 72 79 20 | 65 6e 74 72 79 20 63 68 |rectory |entry ch|
|00005d20| 61 6e 67 65 73 2e 20 20 | 43 6f 70 69 65 73 20 74 |anges. |Copies t|
|00005d30| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 76 61 6c 75 |he origi|nal valu|
|00005d40| 65 73 20 69 6e 0a 58 20 | 2a 20 63 61 73 65 20 79 |es in.X |* case y|
|00005d50| 6f 75 20 63 68 61 6e 67 | 65 20 79 6f 75 72 20 6d |ou chang|e your m|
|00005d60| 69 6e 64 20 68 61 6c 66 | 20 77 61 79 20 74 68 72 |ind half| way thr|
|00005d70| 75 2e 20 20 41 20 6e 6f | 6e 2d 7a 65 72 6f 20 72 |u. A no|n-zero r|
|00005d80| 65 74 75 72 6e 20 63 6f | 64 65 20 6d 65 61 6e 73 |eturn co|de means|
|00005d90| 0a 58 20 2a 20 74 68 65 | 20 65 6e 74 72 79 20 77 |.X * the| entry w|
|00005da0| 61 73 20 63 68 61 6e 67 | 65 64 2e 0a 58 20 2a 2f |as chang|ed..X */|
|00005db0| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.X.X#inc|lude <st|
|00005dc0| 64 69 6f 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dio.h>.X|#include|
|00005dd0| 20 3c 63 75 72 73 65 73 | 2e 68 3e 0a 58 23 69 6e | <curses|.h>.X#in|
|00005de0| 63 6c 75 64 65 20 22 64 | 69 61 6c 5f 64 69 72 2e |clude "d|ial_dir.|
|00005df0| 68 22 0a 58 23 69 6e 63 | 6c 75 64 65 20 22 6d 69 |h".X#inc|lude "mi|
|00005e00| 73 63 2e 68 22 0a 58 0a | 69 6e 74 0a 70 72 6f 6d |sc.h".X.|int.prom|
|00005e10| 70 74 5f 6c 69 62 28 77 | 69 6e 2c 20 69 29 0a 57 |pt_lib(w|in, i).W|
|00005e20| 49 4e 44 4f 57 20 2a 77 | 69 6e 3b 0a 69 6e 74 20 |INDOW *w|in;.int |
|00005e30| 69 3b 0a 58 7b 0a 58 09 | 65 78 74 65 72 6e 20 69 |i;.X{.X.|extern i|
|00005e40| 6e 74 20 78 6d 63 3b 0a | 58 09 65 78 74 65 72 6e |nt xmc;.|X.extern|
|00005e50| 20 63 68 61 72 20 2a 6e | 75 6c 6c 5f 70 74 72 3b | char *n|ull_ptr;|
|00005e60| 0a 58 09 69 6e 74 20 6e | 2c 20 64 62 69 74 73 2c |.X.int n|, dbits,|
|00005e70| 20 73 62 69 74 73 2c 20 | 73 70 6f 74 3b 0a 58 09 | sbits, |spot;.X.|
|00005e80| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 62 61 75 |unsigned| int bau|
|00005e90| 64 3b 0a 58 09 73 74 61 | 74 69 63 20 75 6e 73 69 |d;.X.sta|tic unsi|
|00005ea0| 67 6e 65 64 20 69 6e 74 | 20 76 61 6c 69 64 5f 62 |gned int| valid_b|
|00005eb0| 61 75 64 5b 37 5d 20 3d | 20 7b 33 30 30 2c 20 31 |aud[7] =| {300, 1|
|00005ec0| 32 30 30 2c 20 32 34 30 | 30 2c 20 34 38 30 30 2c |200, 240|0, 4800,|
|00005ed0| 20 39 36 30 30 2c 0a 58 | 09 31 39 32 30 30 2c 20 | 9600,.X|.19200, |
|00005ee0| 33 38 34 30 30 7d 3b 0a | 58 09 73 74 61 74 69 63 |38400};.|X.static|
|00005ef0| 20 63 68 61 72 20 2a 76 | 61 6c 69 64 5f 70 61 72 | char *v|alid_par|
|00005f00| 69 74 79 5b 33 5d 20 3d | 20 7b 22 45 76 65 6e 22 |ity[3] =| {"Even"|
|00005f10| 2c 20 22 4f 64 64 22 2c | 20 22 4e 6f 6e 65 22 7d |, "Odd",| "None"}|
|00005f20| 3b 0a 58 09 63 68 61 72 | 20 2a 61 6e 73 2c 20 2a |;.X.char| *ans, *|
|00005f30| 67 65 74 5f 73 74 72 28 | 29 2c 20 63 2c 20 74 65 |get_str(|), c, te|
|00005f40| 6d 70 2c 20 6e 61 6d 65 | 5b 34 30 5d 2c 20 6e 75 |mp, name|[40], nu|
|00005f50| 6d 62 65 72 5b 34 30 5d | 2c 20 61 75 78 5b 34 30 |mber[40]|, aux[40|
|00005f60| 5d 3b 0a 58 09 63 68 61 | 72 20 70 61 72 69 74 79 |];.X.cha|r parity|
|00005f70| 2c 20 64 75 70 6c 65 78 | 2c 20 2a 73 74 72 5f 72 |, duplex|, *str_r|
|00005f80| 65 70 28 29 2c 20 2a 73 | 74 72 63 70 79 28 29 2c |ep(), *s|trcpy(),|
|00005f90| 20 62 75 66 5b 34 30 5d | 3b 0a 58 09 76 6f 69 64 | buf[40]|;.X.void|
|00005fa0| 20 66 72 65 65 5f 70 74 | 72 28 29 3b 0a 58 09 09 | free_pt|r();.X..|
|00005fb0| 09 09 09 2f 2a 20 6d 61 | 6b 65 20 63 6f 70 69 65 |.../* ma|ke copie|
|00005fc0| 73 20 2a 2f 0a 58 09 73 | 74 72 63 70 79 28 6e 61 |s */.X.s|trcpy(na|
|00005fd0| 6d 65 2c 20 64 69 72 2d | 3e 6e 61 6d 65 5b 69 5d |me, dir-|>name[i]|
|00005fe0| 29 3b 0a 58 09 73 74 72 | 63 70 79 28 6e 75 6d 62 |);.X.str|cpy(numb|
|00005ff0| 65 72 2c 20 64 69 72 2d | 3e 6e 75 6d 62 65 72 5b |er, dir-|>number[|
|00006000| 69 5d 29 3b 0a 58 09 62 | 61 75 64 20 3d 20 64 69 |i]);.X.b|aud = di|
|00006010| 72 2d 3e 62 61 75 64 5b | 69 5d 3b 0a 58 09 70 61 |r->baud[|i];.X.pa|
|00006020| 72 69 74 79 20 3d 20 64 | 69 72 2d 3e 70 61 72 69 |rity = d|ir->pari|
|00006030| 74 79 5b 69 5d 3b 0a 58 | 09 64 62 69 74 73 20 3d |ty[i];.X|.dbits =|
|00006040| 20 64 69 72 2d 3e 64 61 | 74 61 5f 62 69 74 73 5b | dir->da|ta_bits[|
|00006050| 69 5d 3b 0a 58 09 73 62 | 69 74 73 20 3d 20 64 69 |i];.X.sb|its = di|
|00006060| 72 2d 3e 73 74 6f 70 5f | 62 69 74 73 5b 69 5d 3b |r->stop_|bits[i];|
|00006070| 0a 58 09 64 75 70 6c 65 | 78 20 3d 20 64 69 72 2d |.X.duple|x = dir-|
|00006080| 3e 64 75 70 6c 65 78 5b | 69 5d 3b 0a 58 09 73 74 |>duplex[|i];.X.st|
|00006090| 72 63 70 79 28 61 75 78 | 2c 20 64 69 72 2d 3e 61 |rcpy(aux|, dir->a|
|000060a0| 75 78 5b 69 5d 29 3b 0a | 58 09 09 09 09 09 2f 2a |ux[i]);.|X...../*|
|000060b0| 20 64 69 73 70 6c 61 79 | 20 6f 72 69 67 69 6e 61 | display| origina|
|000060c0| 6c 20 76 61 6c 75 65 73 | 20 2a 2f 0a 58 09 77 65 |l values| */.X.we|
|000060d0| 72 61 73 65 28 77 69 6e | 29 3b 0a 58 09 6d 76 77 |rase(win|);.X.mvw|
|000060e0| 70 72 69 6e 74 77 28 77 | 69 6e 2c 20 32 2c 20 35 |printw(w|in, 2, 5|
|000060f0| 2c 20 22 25 2d 32 30 2e | 32 30 73 20 25 31 38 2e |, "%-20.|20s %18.|
|00006100| 31 38 73 20 20 25 35 64 | 2d 25 63 2d 25 64 2d 25 |18s %5d|-%c-%d-%|
|00006110| 64 20 20 25 63 20 20 25 | 2d 31 34 2e 31 34 73 5c |d %c %|-14.14s\|
|00006120| 6e 22 2c 0a 58 09 20 64 | 69 72 2d 3e 6e 61 6d 65 |n",.X. d|ir->name|
|00006130| 5b 69 5d 2c 20 64 69 72 | 2d 3e 6e 75 6d 62 65 72 |[i], dir|->number|
|00006140| 5b 69 5d 2c 20 64 69 72 | 2d 3e 62 61 75 64 5b 69 |[i], dir|->baud[i|
|00006150| 5d 2c 20 64 69 72 2d 3e | 70 61 72 69 74 79 5b 69 |], dir->|parity[i|
|00006160| 5d 2c 0a 58 09 20 64 69 | 72 2d 3e 64 61 74 61 5f |],.X. di|r->data_|
|00006170| 62 69 74 73 5b 69 5d 2c | 20 64 69 72 2d 3e 73 74 |bits[i],| dir->st|
|00006180| 6f 70 5f 62 69 74 73 5b | 69 5d 2c 20 64 69 72 2d |op_bits[|i], dir-|
|00006190| 3e 64 75 70 6c 65 78 5b | 69 5d 2c 20 64 69 72 2d |>duplex[|i], dir-|
|000061a0| 3e 61 75 78 5b 69 5d 29 | 3b 0a 58 09 62 6f 78 28 |>aux[i])|;.X.box(|
|000061b0| 77 69 6e 2c 20 56 45 52 | 54 2c 20 48 4f 52 5a 29 |win, VER|T, HORZ)|
|000061c0| 3b 0a 58 0a 58 09 09 09 | 09 09 2f 2a 20 70 72 6f |;.X.X...|../* pro|
|000061d0| 6d 70 74 20 66 6f 72 20 | 6e 61 6d 65 20 2a 2f 0a |mpt for |name */.|
|000061e0| 58 09 6d 76 77 61 64 64 | 73 74 72 28 77 69 6e 2c |X.mvwadd|str(win,|
|000061f0| 20 34 2c 20 34 2c 20 22 | 4e 61 6d 65 3a 20 22 29 | 4, 4, "|Name: ")|
|00006200| 3b 0a 58 09 77 72 65 66 | 72 65 73 68 28 77 69 6e |;.X.wref|resh(win|
|00006210| 29 3b 0a 58 0a 58 09 69 | 66 20 28 28 61 6e 73 20 |);.X.X.i|f ((ans |
|00006220| 3d 20 67 65 74 5f 73 74 | 72 28 77 69 6e 2c 20 32 |= get_st|r(win, 2|
|00006230| 30 2c 20 22 22 2c 20 22 | 3b 5c 6e 22 29 29 20 3d |0, "", "|;\n")) =|
|00006240| 3d 20 4e 55 4c 4c 29 0a | 58 09 09 72 65 74 75 72 |= NULL).|X..retur|
|00006250| 6e 28 30 29 3b 0a 58 09 | 69 66 20 28 2a 61 6e 73 |n(0);.X.|if (*ans|
|00006260| 20 21 3d 20 27 5c 30 27 | 29 20 7b 0a 58 09 09 73 | != '\0'|) {.X..s|
|00006270| 74 72 63 70 79 28 6e 61 | 6d 65 2c 20 61 6e 73 29 |trcpy(na|me, ans)|
|00006280| 3b 0a 58 09 09 6d 76 77 | 61 64 64 73 74 72 28 77 |;.X..mvw|addstr(w|
|00006290| 69 6e 2c 20 32 2c 20 35 | 2c 20 22 20 20 20 20 20 |in, 2, 5|, " |
|000062a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 22 | | "|
|000062b0| 29 3b 0a 58 09 09 77 72 | 65 66 72 65 73 68 28 77 |);.X..wr|efresh(w|
|000062c0| 69 6e 29 3b 0a 58 09 09 | 6d 76 77 61 74 74 72 73 |in);.X..|mvwattrs|
|000062d0| 74 72 28 77 69 6e 2c 20 | 32 2c 20 35 2c 20 41 5f |tr(win, |2, 5, A_|
|000062e0| 42 4f 4c 44 2c 20 6e 61 | 6d 65 29 3b 0a 58 09 7d |BOLD, na|me);.X.}|
|000062f0| 0a 58 09 09 09 09 09 2f | 2a 20 70 72 6f 6d 70 74 |.X...../|* prompt|
|00006300| 20 66 6f 72 20 6e 75 6d | 62 65 72 20 2a 2f 0a 58 | for num|ber */.X|
|00006310| 09 63 6c 65 61 72 5f 6c | 69 6e 65 28 77 69 6e 2c |.clear_l|ine(win,|
|00006320| 20 34 2c 20 34 2c 20 54 | 52 55 45 29 3b 0a 58 09 | 4, 4, T|RUE);.X.|
|00006330| 77 61 64 64 73 74 72 28 | 77 69 6e 2c 20 22 4e 75 |waddstr(|win, "Nu|
|00006340| 6d 62 65 72 3a 20 22 29 | 3b 0a 58 09 77 72 65 66 |mber: ")|;.X.wref|
|00006350| 72 65 73 68 28 77 69 6e | 29 3b 0a 58 0a 58 09 69 |resh(win|);.X.X.i|
|00006360| 66 20 28 28 61 6e 73 20 | 3d 20 67 65 74 5f 73 74 |f ((ans |= get_st|
|00006370| 72 28 77 69 6e 2c 20 31 | 38 2c 20 22 22 2c 20 22 |r(win, 1|8, "", "|
|00006380| 3b 5c 6e 22 29 29 20 3d | 3d 20 4e 55 4c 4c 29 0a |;\n")) =|= NULL).|
|00006390| 58 09 09 72 65 74 75 72 | 6e 28 30 29 3b 0a 58 09 |X..retur|n(0);.X.|
|000063a0| 69 66 20 28 2a 61 6e 73 | 20 21 3d 20 27 5c 30 27 |if (*ans| != '\0'|
|000063b0| 29 20 7b 0a 58 09 09 73 | 74 72 63 70 79 28 6e 75 |) {.X..s|trcpy(nu|
|000063c0| 6d 62 65 72 2c 20 61 6e | 73 29 3b 0a 58 09 09 6d |mber, an|s);.X..m|
|000063d0| 76 77 61 64 64 73 74 72 | 28 77 69 6e 2c 20 32 2c |vwaddstr|(win, 2,|
|000063e0| 20 32 36 2c 20 22 20 20 | 20 20 20 20 20 20 20 20 | 26, " | |
|000063f0| 20 20 20 20 20 20 20 20 | 22 29 3b 0a 58 09 09 77 | |");.X..w|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.