home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: nstrings.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file nstrings/, mode 755 , uid 243 , gid 0 , size 0 , seconds 4450523346
| default
| |
98%
| file
| data
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6e 73 74 72 69 6e 67 73 | 2f 00 00 00 00 00 00 00 |nstrings|/.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 35 30 35 32 33 | 0 | 4450523|
|00000090| 33 34 36 20 20 20 35 36 | 34 35 00 20 00 00 00 00 |346 56|45. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6e 73 74 72 69 6e 67 73 | 2f 53 68 61 72 46 69 6c |nstrings|/SharFil|
|00000210| 65 2e 48 65 61 64 65 72 | 73 00 00 00 00 00 00 00 |e.Header|s.......|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00000280| 20 20 20 31 37 36 30 20 | 20 34 34 35 30 35 32 33 | 1760 | 4450523|
|00000290| 33 34 37 20 20 31 30 37 | 33 31 00 20 00 00 00 00 |347 107|31. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 6e 73 74 72 | 69 6e 67 73 2e 73 68 61 |=== nstr|ings.sha|
|00000410| 72 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |r ======|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 0a 46 72 6f 6d |========|===.From|
|00000430| 20 72 69 61 63 73 21 65 | 6f 73 21 61 6d 65 73 21 | riacs!e|os!ames!|
|00000440| 6c 6c 6c 2d 77 69 6e 6b | 65 6e 21 75 75 6e 65 74 |lll-wink|en!uunet|
|00000450| 21 61 6c 6c 62 65 72 79 | 20 4d 6f 6e 20 4a 75 6e |!allbery| Mon Jun|
|00000460| 20 20 35 20 30 39 3a 32 | 31 3a 31 38 20 50 44 54 | 5 09:2|1:18 PDT|
|00000470| 20 31 39 38 39 0a 0a 50 | 6f 73 74 69 6e 67 2d 6e | 1989..P|osting-n|
|00000480| 75 6d 62 65 72 3a 20 56 | 6f 6c 75 6d 65 20 37 2c |umber: V|olume 7,|
|00000490| 20 49 73 73 75 65 20 31 | 32 0a 53 75 62 6d 69 74 | Issue 1|2.Submit|
|000004a0| 74 65 64 2d 62 79 3a 20 | 67 72 65 69 6d 40 73 62 |ted-by: |greim@sb|
|000004b0| 73 76 61 78 2e 69 6e 66 | 6f 72 6d 61 74 69 6b 2e |svax.inf|ormatik.|
|000004c0| 75 6e 69 2d 73 61 61 72 | 6c 61 6e 64 2e 64 62 70 |uni-saar|land.dbp|
|000004d0| 2e 64 65 20 28 4d 69 63 | 68 61 65 6c 20 47 72 65 |.de (Mic|hael Gre|
|000004e0| 69 6d 29 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 |im).Arch|ive-name|
|000004f0| 3a 20 6e 73 74 72 69 6e | 67 73 2e 62 73 64 0a 0a |: nstrin|gs.bsd..|
|00000500| 5b 41 6e 79 6f 6e 65 20 | 77 61 6e 74 20 74 6f 20 |[Anyone |want to |
|00000510| 76 6f 6c 75 6e 74 65 65 | 72 20 74 6f 20 63 6f 6e |voluntee|r to con|
|00000520| 76 65 72 74 20 74 68 69 | 73 20 66 6f 72 20 43 4f |vert thi|s for CO|
|00000530| 46 46 3f 20 20 2b 2b 62 | 73 61 5d 0a 0a 48 65 72 |FF? ++b|sa]..Her|
|00000540| 65 20 69 73 20 73 74 72 | 69 6e 67 73 2c 20 61 20 |e is str|ings, a |
|00000550| 72 65 70 6c 61 63 65 6d | 65 6e 74 20 66 6f 72 20 |replacem|ent for |
|00000560| 74 68 65 20 42 53 44 20 | 70 72 6f 67 72 61 6d 20 |the BSD |program |
|00000570| 6f 66 20 74 68 65 20 73 | 61 6d 65 20 6e 61 6d 65 |of the s|ame name|
|00000580| 2c 0a 66 6f 72 20 64 69 | 73 74 72 69 62 75 74 69 |,.for di|stributi|
|00000590| 6f 6e 20 69 6e 20 63 6f | 6d 70 2e 73 6f 75 72 63 |on in co|mp.sourc|
|000005a0| 65 73 2e 6d 69 73 63 2e | 0a 0a 49 20 77 72 6f 74 |es.misc.|..I wrot|
|000005b0| 65 20 74 68 69 73 20 62 | 65 63 61 75 73 65 20 49 |e this b|ecause I|
|000005c0| 20 62 65 63 61 6d 65 20 | 61 6e 6e 6f 79 65 64 20 | became |annoyed |
|000005d0| 62 79 20 0a 2d 20 6f 6c | 64 20 73 74 72 69 6e 67 |by .- ol|d string|
|000005e0| 73 20 69 73 20 73 6c 6f | 77 0a 2d 20 6f 6c 64 20 |s is slo|w.- old |
|000005f0| 73 74 72 69 6e 67 73 20 | 69 73 20 6e 6f 74 20 63 |strings |is not c|
|00000600| 6f 72 72 65 63 74 2e 20 | 49 74 20 74 68 69 6e 6b |orrect. |It think|
|00000610| 73 20 5e 4c 20 61 6e 64 | 20 73 6f 6d 65 74 69 6d |s ^L and| sometim|
|00000620| 65 73 20 65 76 65 6e 20 | 30 78 38 30 20 74 6f 20 |es even |0x80 to |
|00000630| 62 65 0a 20 20 70 72 69 | 6e 74 61 62 6c 65 2e 20 |be. pri|ntable. |
|00000640| 28 53 65 65 20 52 45 41 | 44 4d 45 20 66 6f 72 20 |(See REA|DME for |
|00000650| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 29 0a 5b 41 |more det|ails).[A|
|00000660| 6d 65 6e 20 74 6f 20 74 | 68 61 74 21 20 20 2b 2b |men to t|hat! ++|
|00000670| 62 73 61 5d 0a 2d 20 6f | 6c 64 20 73 74 72 69 6e |bsa].- o|ld strin|
|00000680| 67 73 20 68 61 73 20 74 | 72 6f 75 62 6c 65 20 77 |gs has t|rouble w|
|00000690| 69 74 68 20 74 68 65 20 | 73 65 67 6d 65 6e 74 20 |ith the |segment |
|000006a0| 6f 66 20 69 6e 69 74 69 | 61 6c 69 7a 65 64 20 64 |of initi|alized d|
|000006b0| 61 74 61 20 6f 6e 20 73 | 6f 6d 65 0a 20 20 73 79 |ata on s|ome. sy|
|000006c0| 73 74 65 6d 73 0a 2d 20 | 6f 6e 20 73 6f 6d 65 20 |stems.- |on some |
|000006d0| 73 79 73 74 65 6d 73 20 | 74 68 65 72 65 20 69 73 |systems |there is|
|000006e0| 20 73 74 72 69 6e 67 73 | 2c 20 6f 6e 20 73 6f 6d | strings|, on som|
|000006f0| 65 20 74 68 65 72 65 20 | 69 73 6e 27 74 0a 0a 49 |e there |isn't..I|
|00000700| 74 20 69 73 20 6e 6f 74 | 20 6f 6e 6c 79 20 66 6f |t is not| only fo|
|00000710| 72 20 55 4e 49 58 20 73 | 79 73 74 65 6d 73 2c 20 |r UNIX s|ystems, |
|00000720| 62 75 74 20 49 20 68 61 | 76 65 20 6f 6e 6c 79 20 |but I ha|ve only |
|00000730| 74 72 69 65 64 20 69 74 | 20 6f 6e 20 55 4e 49 58 |tried it| on UNIX|
|00000740| 20 61 6e 64 0a 56 4d 53 | 20 73 6f 20 66 61 72 2e | and.VMS| so far.|
|00000750| 0a 0a 41 62 73 6f 72 62 | 2c 20 61 70 70 6c 79 20 |..Absorb|, apply |
|00000760| 61 6e 64 20 65 6e 6a 6f | 79 2c 0a 09 2d 6d 67 0a |and enjo|y,..-mg.|
|00000770| 0a 2d 2d 0a 4d 69 63 68 | 61 65 6c 20 47 72 65 69 |.--.Mich|ael Grei|
|00000780| 6d 20 20 20 20 45 6d 61 | 69 6c 20 3a 20 67 72 65 |m Ema|il : gre|
|00000790| 69 6d 40 73 62 73 76 61 | 78 2e 69 6e 66 6f 72 6d |im@sbsva|x.inform|
|000007a0| 61 74 69 6b 2e 75 6e 69 | 2d 73 61 61 72 6c 61 6e |atik.uni|-saarlan|
|000007b0| 64 2e 64 62 70 2e 64 65 | 0a 20 20 20 20 20 20 20 |d.dbp.de|. |
|000007c0| 20 20 20 20 20 20 20 20 | 20 20 6f 72 20 20 20 20 | | or |
|000007d0| 3a 20 2e 2e 2e 21 75 75 | 6e 65 74 21 75 6e 69 64 |: ...!uu|net!unid|
|000007e0| 6f 21 73 62 73 76 61 78 | 21 67 72 65 69 6d 0a 0a |o!sbsvax|!greim..|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 6e 73 74 72 69 6e 67 73 | 2f 43 4f 50 59 49 4e 47 |nstrings|/COPYING|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000870| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00000880| 20 20 20 32 33 36 34 20 | 20 34 34 35 30 35 32 33 | 2364 | 4450523|
|00000890| 33 32 36 20 20 20 36 37 | 37 30 00 20 00 00 00 00 |326 67|70. ....|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 0a 09 73 74 72 69 6e 67 | 73 0a 0a 09 28 43 29 20 |..string|s...(C) |
|00000a10| 43 6f 70 79 72 69 67 68 | 74 20 62 79 20 4d 69 63 |Copyrigh|t by Mic|
|00000a20| 68 61 65 6c 20 47 72 65 | 69 6d 2c 20 35 2f 32 33 |hael Gre|im, 5/23|
|00000a30| 2f 38 39 0a 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/89..---|--------|
|00000a40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a70| 2d 2d 0a 0a 54 68 65 20 | 61 75 74 68 6f 72 2c 20 |--..The |author, |
|00000a80| 4d 69 63 68 61 65 6c 20 | 47 72 65 69 6d 2c 20 61 |Michael |Greim, a|
|00000a90| 6c 6c 6f 77 73 20 61 6e | 79 6f 6e 65 20 74 6f 20 |llows an|yone to |
|00000aa0| 64 6f 20 61 6e 79 74 68 | 69 6e 67 20 68 65 2f 73 |do anyth|ing he/s|
|00000ab0| 68 65 2f 69 74 20 77 61 | 6e 74 73 20 77 69 74 68 |he/it wa|nts with|
|00000ac0| 0a 22 73 74 72 69 6e 67 | 73 22 2c 20 70 72 6f 76 |."string|s", prov|
|00000ad0| 69 64 65 64 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ided the| followi|
|00000ae0| 6e 67 20 63 6f 6e 64 69 | 74 69 6f 6e 73 20 61 72 |ng condi|tions ar|
|00000af0| 65 20 6d 65 74 3a 0a 0a | 2d 20 74 68 65 20 70 72 |e met:..|- the pr|
|00000b00| 6f 67 72 61 6d 20 6d 61 | 79 20 6e 6f 74 20 62 65 |ogram ma|y not be|
|00000b10| 20 73 6f 6c 64 20 77 69 | 74 68 6f 75 74 20 74 68 | sold wi|thout th|
|00000b20| 65 20 61 75 74 68 6f 72 | 73 20 77 72 69 74 74 65 |e author|s writte|
|00000b30| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 0a 2d 20 74 |n permis|sion.- t|
|00000b40| 68 69 73 20 6e 6f 74 69 | 63 65 20 73 74 61 79 73 |his noti|ce stays|
|00000b50| 20 69 6e 20 70 6c 61 63 | 65 0a 2d 20 61 6e 79 20 | in plac|e.- any |
|00000b60| 63 68 61 6e 67 65 73 20 | 74 6f 20 74 68 65 20 6f |changes |to the o|
|00000b70| 72 69 67 69 6e 61 6c 20 | 61 72 65 20 6d 61 72 6b |riginal |are mark|
|00000b80| 65 64 20 61 73 20 73 75 | 63 68 0a 0a 0a 54 68 65 |ed as su|ch...The|
|00000b90| 20 61 75 74 68 6f 72 20 | 65 78 70 6c 69 63 69 74 | author |explicit|
|00000ba0| 6c 79 20 61 73 6b 73 20 | 61 6e 79 62 6f 64 79 20 |ly asks |anybody |
|00000bb0| 3a 0a 0a 2d 20 74 6f 20 | 70 6f 72 74 20 74 68 69 |:..- to |port thi|
|00000bc0| 73 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 61 73 20 |s progra|m to as |
|00000bd0| 6d 75 63 68 20 63 6f 6d | 70 75 74 65 72 20 73 79 |much com|puter sy|
|00000be0| 73 74 65 6d 73 20 61 73 | 20 70 6f 73 73 69 62 6c |stems as| possibl|
|00000bf0| 65 20 61 6e 64 20 73 65 | 6e 64 0a 20 20 68 69 6d |e and se|nd. him|
|00000c00| 20 63 6f 6d 70 6c 61 69 | 6e 74 73 2c 20 72 65 73 | complai|nts, res|
|00000c10| 75 6c 74 73 2c 20 62 75 | 67 20 66 69 78 65 73 2c |ults, bu|g fixes,|
|00000c20| 20 70 72 61 69 73 65 20 | 2e 2e 2e 0a 2d 20 74 6f | praise |....- to|
|00000c30| 20 69 6e 63 6f 72 70 6f | 72 61 74 65 20 74 68 69 | incorpo|rate thi|
|00000c40| 73 20 70 72 6f 67 72 61 | 6d 20 69 6e 20 61 6e 79 |s progra|m in any|
|00000c50| 20 70 61 63 6b 61 67 65 | 20 6f 66 20 50 75 62 6c | package| of Publ|
|00000c60| 69 63 20 44 6f 6d 61 69 | 6e 20 70 72 6f 67 72 61 |ic Domai|n progra|
|00000c70| 6d 73 20 66 6f 72 0a 20 | 20 66 72 65 65 20 64 69 |ms for. | free di|
|00000c80| 73 74 72 69 62 75 74 69 | 6f 6e 20 28 47 4e 55 20 |stributi|on (GNU |
|00000c90| 77 6f 75 6c 64 20 62 65 | 20 77 65 6c 63 6f 6d 65 |would be| welcome|
|00000ca0| 29 0a 0a 0a 54 68 65 72 | 65 20 69 73 20 6e 6f 20 |)...Ther|e is no |
|00000cb0| 77 61 72 72 61 6e 74 79 | 20 6f 66 20 6d 65 72 63 |warranty| of merc|
|00000cc0| 68 61 6e 74 61 62 69 6c | 69 74 79 20 6e 6f 72 20 |hantabil|ity nor |
|00000cd0| 61 6e 79 20 77 61 72 72 | 61 6e 74 79 20 6f 66 20 |any warr|anty of |
|00000ce0| 66 69 74 6e 65 73 73 20 | 66 6f 72 20 61 0a 70 61 |fitness |for a.pa|
|00000cf0| 72 74 69 63 75 6c 61 72 | 20 70 75 72 70 6f 73 65 |rticular| purpose|
|00000d00| 20 6e 6f 72 20 61 6e 79 | 20 6f 74 68 65 72 20 77 | nor any| other w|
|00000d10| 61 72 72 61 6e 74 79 2c | 20 65 69 74 68 65 72 20 |arranty,| either |
|00000d20| 65 78 70 72 65 73 73 20 | 6f 72 20 69 6d 70 6c 69 |express |or impli|
|00000d30| 65 64 2c 20 61 73 0a 74 | 6f 20 74 68 65 20 61 63 |ed, as.t|o the ac|
|00000d40| 63 75 72 61 63 79 20 6f | 66 20 74 68 65 20 68 65 |curacy o|f the he|
|00000d50| 72 65 77 69 74 68 20 70 | 75 62 6c 69 73 68 65 64 |rewith p|ublished|
|00000d60| 20 70 72 6f 67 72 61 6d | 2c 20 6f 72 20 61 73 20 | program|, or as |
|00000d70| 74 6f 20 69 74 73 0a 73 | 75 69 74 61 62 69 6c 69 |to its.s|uitabili|
|00000d80| 74 79 20 66 6f 72 20 61 | 6e 79 20 70 61 72 74 69 |ty for a|ny parti|
|00000d90| 63 75 6c 61 72 20 70 75 | 72 70 6f 73 65 2e 0a 41 |cular pu|rpose..A|
|00000da0| 63 63 6f 72 64 69 6e 67 | 6c 79 2c 20 49 2c 20 4d |ccording|ly, I, M|
|00000db0| 69 63 68 61 65 6c 20 47 | 72 65 69 6d 2c 20 61 73 |ichael G|reim, as|
|00000dc0| 73 75 6d 65 20 6e 6f 20 | 72 65 73 70 6f 6e 73 69 |sume no |responsi|
|00000dd0| 62 69 6c 69 74 79 0a 66 | 6f 72 20 69 74 73 20 75 |bility.f|or its u|
|00000de0| 73 65 20 62 79 20 74 68 | 65 20 72 65 63 69 70 69 |se by th|e recipi|
|00000df0| 65 6e 74 2e 20 46 75 72 | 74 68 65 72 2c 20 49 2c |ent. Fur|ther, I,|
|00000e00| 20 4d 69 63 68 61 65 6c | 20 47 72 65 69 6d 2c 20 | Michael| Greim, |
|00000e10| 61 73 73 75 6d 65 20 6e | 6f 0a 6f 62 6c 69 67 61 |assume n|o.obliga|
|00000e20| 74 69 6f 6e 20 74 6f 20 | 66 75 72 6e 69 73 68 20 |tion to |furnish |
|00000e30| 61 6e 79 20 61 73 73 69 | 73 74 61 6e 63 65 20 6f |any assi|stance o|
|00000e40| 66 20 61 6e 79 20 6b 69 | 6e 64 20 77 68 61 74 73 |f any ki|nd whats|
|00000e50| 6f 65 76 65 72 2c 0a 6f | 72 20 74 6f 20 66 75 72 |oever,.o|r to fur|
|00000e60| 6e 69 73 68 20 61 6e 79 | 20 61 64 64 69 74 69 6f |nish any| additio|
|00000e70| 6e 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |nal info|rmation |
|00000e80| 6f 72 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |or docum|entation|
|00000e90| 2e 0a 0a 28 42 75 74 20 | 69 66 20 79 6f 75 20 61 |...(But |if you a|
|00000ea0| 73 6b 20 6d 65 20 6e 69 | 63 65 2c 20 49 20 6d 69 |sk me ni|ce, I mi|
|00000eb0| 67 68 74 20 63 6f 6e 73 | 69 64 65 72 20 74 6f 20 |ght cons|ider to |
|00000ec0| 74 68 69 6e 6b 20 61 62 | 6f 75 74 20 73 74 61 72 |think ab|out star|
|00000ed0| 74 69 6e 67 20 74 6f 0a | 20 73 70 65 63 75 6c 61 |ting to.| specula|
|00000ee0| 74 65 20 61 62 6f 75 74 | 20 69 74 20 2e 2e 2e 20 |te about| it ... |
|00000ef0| 3a 2d 29 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |:-).....|........|
|00000f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 6e 73 74 72 69 6e 67 73 | 2f 4d 41 4e 49 46 45 53 |nstrings|/MANIFES|
|00001010| 54 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T.......|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001070| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00001080| 20 20 20 31 34 37 36 20 | 20 34 34 35 30 35 32 33 | 1476 | 4450523|
|00001090| 33 32 37 20 20 20 37 30 | 37 32 00 20 00 00 00 00 |327 70|72. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 20 20 20 46 69 6c 65 20 | 4e 61 6d 65 09 09 41 72 | File |Name..Ar|
|00001210| 63 68 69 76 65 20 23 09 | 44 65 73 63 72 69 70 74 |chive #.|Descript|
|00001220| 69 6f 6e 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion.----|--------|
|00001230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00001260| 20 43 4f 50 59 49 4e 47 | 20 20 20 20 20 20 20 20 | COPYING| |
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 43 6f | | 1.Co|
|00001280| 70 79 72 69 67 68 74 20 | 4e 6f 74 69 63 65 2e 0a |pyright |Notice..|
|00001290| 20 4d 41 4e 49 46 45 53 | 54 20 20 20 20 20 20 20 | MANIFES|T |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 54 68 | | 1.Th|
|000012b0| 69 73 20 73 68 69 70 70 | 69 6e 67 20 6c 69 73 74 |is shipp|ing list|
|000012c0| 0a 20 4d 61 6b 65 66 69 | 6c 65 20 20 20 20 20 20 |. Makefi|le |
|000012d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 0a | | 1..|
|000012e0| 20 52 45 41 44 4d 45 20 | 20 20 20 20 20 20 20 20 | README | |
|000012f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 57 68 | | 1.Wh|
|00001300| 61 74 20 69 73 20 73 74 | 72 69 6e 67 73 20 3f 20 |at is st|rings ? |
|00001310| 48 6f 77 20 74 6f 20 70 | 6f 72 74 20 69 74 2e 20 |How to p|ort it. |
|00001320| 0a 20 63 6f 6e 66 69 67 | 2e 68 20 20 20 20 20 20 |. config|.h |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 44 | | 1.D|
|00001340| 65 66 61 75 6c 74 20 70 | 61 72 61 6d 65 74 65 72 |efault p|arameter|
|00001350| 73 20 66 6f 72 20 64 69 | 66 66 65 72 65 6e 74 20 |s for di|fferent |
|00001360| 6d 61 63 68 69 6e 65 73 | 2e 0a 20 6c 69 6d 69 74 |machines|.. limit|
|00001370| 73 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.c | |
|00001380| 20 20 20 20 20 20 31 09 | 47 65 74 20 6c 69 6d 69 | 1.|Get limi|
|00001390| 74 73 20 6f 66 20 69 6e | 69 74 69 61 6c 69 7a 65 |ts of in|itialize|
|000013a0| 64 20 64 61 74 61 20 73 | 65 67 6d 65 6e 74 2e 0a |d data s|egment..|
|000013b0| 20 6f 75 74 70 75 74 2e | 63 20 20 20 20 20 20 20 | output.|c |
|000013c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 31 09 4f 75 | | 1.Ou|
|000013d0| 74 70 75 74 20 72 6f 75 | 74 69 6e 65 73 2e 0a 20 |tput rou|tines.. |
|000013e0| 73 74 72 69 6e 67 73 2e | 31 20 20 20 20 20 20 20 |strings.|1 |
|000013f0| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 4d 61 6e | | 1.Man|
|00001400| 75 61 6c 20 65 6e 74 72 | 79 2e 0a 20 73 74 72 69 |ual entr|y.. stri|
|00001410| 6e 67 73 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |ngs.c | |
|00001420| 20 20 20 20 20 20 20 31 | 09 4d 61 69 6e 20 70 61 | 1|.Main pa|
|00001430| 72 74 20 6f 66 20 70 72 | 6f 67 72 61 6d 2e 0a 20 |rt of pr|ogram.. |
|00001440| 73 74 72 69 6e 67 73 2e | 68 20 20 20 20 20 20 20 |strings.|h |
|00001450| 20 20 20 20 20 20 20 20 | 20 20 20 31 09 0a 20 73 | | 1.. s|
|00001460| 74 72 69 6e 67 73 2e 74 | 78 74 20 20 20 20 20 20 |trings.t|xt |
|00001470| 20 20 20 20 20 20 20 20 | 20 20 31 09 4d 61 6e 75 | | 1.Manu|
|00001480| 61 6c 20 65 6e 74 72 79 | 20 61 73 20 70 6c 61 69 |al entry| as plai|
|00001490| 6e 20 74 65 78 74 20 66 | 69 6c 65 2e 0a 20 74 65 |n text f|ile.. te|
|000014a0| 73 74 5f 69 6e 70 75 74 | 20 20 20 20 20 20 20 20 |st_input| |
|000014b0| 20 20 20 20 20 20 20 20 | 20 31 09 73 61 6d 70 6c | | 1.sampl|
|000014c0| 65 20 28 62 74 6f 61 27 | 64 29 20 66 69 6c 65 20 |e (btoa'|d) file |
|000014d0| 74 6f 20 64 65 6d 6f 6e | 73 74 72 61 74 65 20 65 |to demon|strate e|
|000014e0| 72 72 6f 72 73 20 6f 66 | 20 6f 6c 64 20 22 73 74 |rrors of| old "st|
|000014f0| 72 69 6e 67 73 22 2e 0a | 20 74 75 6e 65 2e 68 20 |rings"..| tune.h |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001510| 20 20 20 20 31 09 50 61 | 72 61 6d 65 74 65 72 20 | 1.Pa|rameter |
|00001520| 73 65 74 74 69 6e 67 73 | 20 66 6f 72 20 63 75 72 |settings| for cur|
|00001530| 72 65 6e 74 20 6d 61 63 | 68 69 6e 65 2e 0a 61 63 |rent mac|hine..ac|
|00001540| 63 75 72 61 63 79 20 6f | 66 20 74 68 65 20 68 65 |curacy o|f the he|
|00001550| 72 65 77 69 74 68 20 70 | 75 62 6c 69 73 68 65 64 |rewith p|ublished|
|00001560| 20 70 72 6f 67 72 61 6d | 2c 20 6f 72 20 61 73 20 | program|, or as |
|00001570| 74 6f 20 69 74 73 0a 73 | 75 69 74 61 62 69 6c 69 |to its.s|uitabili|
|00001580| 74 79 20 66 6f 72 20 61 | 6e 79 20 70 61 72 74 69 |ty for a|ny parti|
|00001590| 63 75 6c 61 72 20 70 75 | 72 70 6f 73 65 2e 0a 41 |cular pu|rpose..A|
|000015a0| 63 63 6f 72 64 69 6e 67 | 6c 79 2c 20 49 2c 20 4d |ccording|ly, I, M|
|000015b0| 69 63 68 61 65 6c 20 47 | 72 65 69 6d 2c 20 61 73 |ichael G|reim, as|
|000015c0| 73 75 6d 65 20 6e 6f 20 | 72 65 73 70 6f 6e 73 69 |sume no |responsi|
|000015d0| 62 69 6c 69 74 79 0a 66 | 6f 72 20 69 74 73 20 75 |bility.f|or its u|
|000015e0| 73 65 20 62 79 20 74 68 | 65 20 72 65 63 69 70 69 |se by th|e recipi|
|000015f0| 65 6e 74 2e 20 46 75 72 | 74 68 65 72 2c 20 49 2c |ent. Fur|ther, I,|
|00001600| 6e 73 74 72 69 6e 67 73 | 2f 4d 61 6b 65 66 69 6c |nstrings|/Makefil|
|00001610| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001670| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00001680| 20 20 20 31 36 31 33 20 | 20 34 34 35 30 35 32 33 | 1613 | 4450523|
|00001690| 33 33 30 20 20 20 37 33 | 36 34 00 20 00 00 00 00 |330 73|64. ....|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 23 0a 23 20 4d 61 6b 65 | 66 69 6c 65 20 66 6f 72 |#.# Make|file for|
|00001810| 20 27 73 74 72 69 6e 67 | 73 27 0a 23 0a 23 20 73 | 'string|s'.#.# s|
|00001820| 63 63 73 69 64 20 3d 20 | 40 28 23 29 20 20 52 45 |ccsid = |@(#) RE|
|00001830| 4c 2e 4d 66 69 6c 65 20 | 20 28 76 31 2e 33 20 35 |L.Mfile | (v1.3 5|
|00001840| 2f 32 32 2f 38 39 29 0a | 23 0a 53 48 45 4c 4c 3d |/22/89).|#.SHELL=|
|00001850| 2f 62 69 6e 2f 73 68 0a | 0a 23 20 49 66 20 79 6f |/bin/sh.|.# If yo|
|00001860| 75 20 77 61 6e 74 20 74 | 6f 20 70 6c 61 79 20 69 |u want t|o play i|
|00001870| 74 20 73 61 66 65 2c 20 | 64 65 66 69 6e 65 20 53 |t safe, |define S|
|00001880| 41 46 45 54 59 5f 46 49 | 52 53 54 2e 20 54 68 65 |AFETY_FI|RST. The|
|00001890| 20 70 72 6f 67 72 61 6d | 20 77 69 6c 6c 20 6d 6f | program| will mo|
|000018a0| 73 74 0a 23 20 70 72 6f | 62 61 62 6c 79 20 77 6f |st.# pro|bably wo|
|000018b0| 72 6b 20 61 6e 64 20 79 | 6f 75 20 77 6f 6e 27 74 |rk and y|ou won't|
|000018c0| 20 68 61 76 65 20 74 6f | 20 73 70 65 6e 64 20 74 | have to| spend t|
|000018d0| 69 6d 65 20 6f 6e 20 70 | 6f 72 74 69 6e 67 20 69 |ime on p|orting i|
|000018e0| 74 2e 0a 23 20 49 66 20 | 79 6f 75 20 68 61 76 65 |t..# If |you have|
|000018f0| 20 64 65 66 69 6e 65 64 | 20 74 68 69 6e 67 73 20 | defined| things |
|00001900| 79 6f 75 72 73 65 6c 66 | 20 61 6e 64 20 79 6f 75 |yourself| and you|
|00001910| 20 77 61 6e 74 20 74 68 | 65 20 70 72 6f 67 72 61 | want th|e progra|
|00001920| 6d 0a 23 20 74 6f 20 75 | 73 65 20 74 68 65 73 65 |m.# to u|se these|
|00001930| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 2c 20 79 6f | definit|ions, yo|
|00001940| 75 20 6d 75 73 74 20 64 | 65 66 69 6e 65 20 55 53 |u must d|efine US|
|00001950| 45 5f 55 53 45 52 5f 44 | 45 46 49 4e 45 53 2e 0a |E_USER_D|EFINES..|
|00001960| 23 20 49 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 64 |# If you| don't d|
|00001970| 65 66 69 6e 65 20 53 41 | 46 45 54 59 5f 46 49 52 |efine SA|FETY_FIR|
|00001980| 53 54 20 61 6e 64 20 55 | 53 45 5f 55 53 45 52 5f |ST and U|SE_USER_|
|00001990| 44 45 46 49 4e 45 53 2c | 20 74 68 65 20 70 72 6f |DEFINES,| the pro|
|000019a0| 67 72 61 6d 0a 23 20 77 | 69 6c 6c 20 74 72 79 20 |gram.# w|ill try |
|000019b0| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 79 6f 75 72 |to ident|ify your|
|000019c0| 20 73 79 73 74 65 6d 20 | 61 6e 64 20 74 68 65 6e | system |and then|
|000019d0| 20 75 73 65 20 69 74 73 | 20 64 65 66 61 75 6c 74 | use its| default|
|000019e0| 73 2e 0a 55 46 4c 41 47 | 53 3d 0a 23 55 46 4c 41 |s..UFLAG|S=.#UFLA|
|000019f0| 47 53 3d 2d 44 55 53 45 | 5f 55 53 45 52 5f 44 45 |GS=-DUSE|_USER_DE|
|00001a00| 46 49 4e 45 53 0a 23 55 | 46 4c 41 47 53 3d 2d 44 |FINES.#U|FLAGS=-D|
|00001a10| 53 41 46 45 54 59 5f 46 | 49 52 53 54 0a 0a 23 20 |SAFETY_F|IRST..# |
|00001a20| 44 65 66 69 6e 65 20 44 | 45 42 55 47 20 74 6f 20 |Define D|EBUG to |
|00001a30| 67 65 74 20 61 20 6c 6f | 74 20 6f 66 20 64 65 62 |get a lo|t of deb|
|00001a40| 75 67 20 6f 75 74 70 75 | 74 20 6f 6e 20 22 70 72 |ug outpu|t on "pr|
|00001a50| 6f 74 22 2e 0a 44 45 42 | 55 47 46 4c 41 47 53 3d |ot"..DEB|UGFLAGS=|
|00001a60| 0a 0a 43 46 4c 41 47 53 | 3d 20 2d 4f 20 24 7b 44 |..CFLAGS|= -O ${D|
|00001a70| 45 42 55 47 46 4c 41 47 | 53 7d 20 24 7b 55 46 4c |EBUGFLAG|S} ${UFL|
|00001a80| 41 47 53 7d 0a 0a 48 45 | 41 44 45 52 53 3d 09 73 |AGS}..HE|ADERS=.s|
|00001a90| 74 72 69 6e 67 73 2e 68 | 20 63 6f 6e 66 69 67 2e |trings.h| config.|
|00001aa0| 68 20 74 75 6e 65 2e 68 | 0a 4f 42 4a 53 3d 09 09 |h tune.h|.OBJS=..|
|00001ab0| 73 74 72 69 6e 67 73 2e | 6f 20 6c 69 6d 69 74 73 |strings.|o limits|
|00001ac0| 2e 6f 20 6f 75 74 70 75 | 74 2e 6f 0a 0a 61 6c 6c |.o outpu|t.o..all|
|00001ad0| 3a 20 73 74 72 69 6e 67 | 73 0a 0a 73 74 72 69 6e |: string|s..strin|
|00001ae0| 67 73 3a 20 24 7b 4f 42 | 4a 53 7d 0a 09 63 63 20 |gs: ${OB|JS}..cc |
|00001af0| 2d 6f 20 73 74 72 69 6e | 67 73 20 24 7b 4f 42 4a |-o strin|gs ${OBJ|
|00001b00| 53 7d 0a 0a 24 7b 4f 42 | 4a 53 7d 3a 09 24 7b 48 |S}..${OB|JS}:.${H|
|00001b10| 45 41 44 45 52 53 7d 0a | 0a 23 73 74 72 69 6e 67 |EADERS}.|.#string|
|00001b20| 73 2e 6f 3a 20 73 74 72 | 69 6e 67 73 2e 68 20 63 |s.o: str|ings.h c|
|00001b30| 6f 6e 66 69 67 2e 68 20 | 74 75 6e 65 2e 68 0a 23 |onfig.h |tune.h.#|
|00001b40| 6c 69 6d 69 74 73 2e 6f | 20 3a 20 73 74 72 69 6e |limits.o| : strin|
|00001b50| 67 73 2e 68 20 63 6f 6e | 66 69 67 2e 68 20 74 75 |gs.h con|fig.h tu|
|00001b60| 6e 65 2e 68 0a 23 6f 75 | 74 70 75 74 2e 6f 20 3a |ne.h.#ou|tput.o :|
|00001b70| 20 73 74 72 69 6e 67 73 | 2e 68 20 63 6f 6e 66 69 | strings|.h confi|
|00001b80| 67 2e 68 20 74 75 6e 65 | 2e 68 0a 70 61 72 74 69 |g.h tune|.h.parti|
|00001b90| 63 75 6c 61 72 20 70 75 | 72 70 6f 73 65 2e 0a 41 |cular pu|rpose..A|
|00001ba0| 63 63 6f 72 64 69 6e 67 | 6c 79 2c 20 49 2c 20 4d |ccording|ly, I, M|
|00001bb0| 69 63 68 61 65 6c 20 47 | 72 65 69 6d 2c 20 61 73 |ichael G|reim, as|
|00001bc0| 73 75 6d 65 20 6e 6f 20 | 72 65 73 70 6f 6e 73 69 |sume no |responsi|
|00001bd0| 62 69 6c 69 74 79 0a 66 | 6f 72 20 69 74 73 20 75 |bility.f|or its u|
|00001be0| 73 65 20 62 79 20 74 68 | 65 20 72 65 63 69 70 69 |se by th|e recipi|
|00001bf0| 65 6e 74 2e 20 46 75 72 | 74 68 65 72 2c 20 49 2c |ent. Fur|ther, I,|
|00001c00| 6e 73 74 72 69 6e 67 73 | 2f 52 45 41 44 4d 45 00 |nstrings|/README.|
|00001c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00001c80| 20 20 31 36 36 36 31 20 | 20 34 34 35 30 35 32 33 | 16661 | 4450523|
|00001c90| 33 33 32 20 20 20 36 36 | 33 37 00 20 00 00 00 00 |332 66|37. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 31 2e 29 20 57 68 61 74 | 20 64 6f 20 77 65 20 68 |1.) What| do we h|
|00001e10| 61 76 65 20 68 65 72 65 | 3f 0a 0a 54 68 69 73 20 |ave here|?..This |
|00001e20| 69 73 20 74 68 65 20 52 | 45 41 44 4d 45 20 66 69 |is the R|EADME fi|
|00001e30| 6c 65 20 66 6f 72 20 27 | 73 74 72 69 6e 67 73 27 |le for '|strings'|
|00001e40| 2e 20 27 73 74 72 69 6e | 67 73 27 20 69 73 20 61 |. 'strin|gs' is a|
|00001e50| 20 72 65 77 72 69 74 65 | 0a 61 6e 64 20 72 65 70 | rewrite|.and rep|
|00001e60| 6c 61 63 65 6d 65 6e 74 | 20 66 6f 72 20 74 68 65 |lacement| for the|
|00001e70| 20 34 42 53 44 20 70 72 | 6f 67 72 61 6d 20 6f 66 | 4BSD pr|ogram of|
|00001e80| 20 74 68 65 20 73 61 6d | 65 20 6e 61 6d 65 2e 0a | the sam|e name..|
|00001e90| 27 73 74 72 69 6e 67 73 | 27 20 6c 6f 6f 6b 73 20 |'strings|' looks |
|00001ea0| 66 6f 72 20 73 65 71 75 | 65 6e 63 65 73 20 6f 66 |for sequ|ences of|
|00001eb0| 20 70 72 69 6e 74 61 62 | 6c 65 20 63 68 61 72 61 | printab|le chara|
|00001ec0| 63 74 65 72 73 20 69 6e | 20 61 20 66 69 6c 65 20 |cters in| a file |
|00001ed0| 61 6e 64 0a 6f 75 74 70 | 75 74 73 20 74 68 65 6d |and.outp|uts them|
|00001ee0| 2e 0a 0a 43 75 72 72 65 | 6e 74 20 76 65 72 73 69 |...Curre|nt versi|
|00001ef0| 6f 6e 20 69 73 20 31 2e | 36 2e 39 2e 0a 0a 28 54 |on is 1.|6.9...(T|
|00001f00| 6f 20 67 65 74 20 62 65 | 73 74 20 72 65 73 75 6c |o get be|st resul|
|00001f10| 74 73 20 77 68 65 6e 20 | 72 65 61 64 69 6e 67 20 |ts when |reading |
|00001f20| 74 68 65 73 65 20 66 69 | 6c 65 73 2c 20 75 73 65 |these fi|les, use|
|00001f30| 20 61 6e 20 6f 70 74 69 | 6f 6e 20 69 6e 20 79 6f | an opti|on in yo|
|00001f40| 75 72 0a 20 66 61 76 6f | 75 72 69 74 65 20 65 64 |ur. favo|urite ed|
|00001f50| 69 74 6f 72 20 74 6f 20 | 65 78 70 61 6e 64 20 61 |itor to |expand a|
|00001f60| 20 54 41 42 20 74 6f 20 | 34 20 53 50 41 43 45 73 | TAB to |4 SPACEs|
|00001f70| 2e 20 45 2e 67 2e 20 69 | 6e 20 76 69 20 69 74 20 |. E.g. i|n vi it |
|00001f80| 69 73 0a 20 22 73 65 74 | 20 74 61 62 73 74 6f 70 |is. "set| tabstop|
|00001f90| 3d 34 22 29 0a 0a 59 6f | 75 20 73 68 6f 75 6c 64 |=4")..Yo|u should|
|00001fa0| 20 68 61 76 65 20 74 68 | 65 20 66 69 6c 65 73 3a | have th|e files:|
|00001fb0| 0a 09 52 45 41 44 4d 45 | 09 09 2d 20 74 68 69 73 |..README|..- this|
|00001fc0| 20 66 69 6c 65 0a 09 43 | 4f 50 59 49 4e 47 09 09 | file..C|OPYING..|
|00001fd0| 2d 20 43 6f 70 79 72 69 | 67 68 74 20 4e 6f 74 69 |- Copyri|ght Noti|
|00001fe0| 63 65 0a 09 4d 61 6b 65 | 66 69 6c 65 09 2d 20 4d |ce..Make|file.- M|
|00001ff0| 61 6b 65 66 69 6c 65 0a | 09 73 74 72 69 6e 67 73 |akefile.|.strings|
|00002000| 2e 68 0a 09 63 6f 6e 66 | 69 67 2e 68 0a 09 74 75 |.h..conf|ig.h..tu|
|00002010| 6e 65 2e 68 0a 09 73 74 | 72 69 6e 67 73 2e 63 09 |ne.h..st|rings.c.|
|00002020| 2d 20 74 68 65 20 6d 61 | 69 6e 20 73 6f 75 72 63 |- the ma|in sourc|
|00002030| 65 0a 09 6c 69 6d 69 74 | 73 2e 63 09 2d 20 74 68 |e..limit|s.c.- th|
|00002040| 65 20 55 4e 49 58 20 28 | 74 72 61 64 65 6d 61 72 |e UNIX (|trademar|
|00002050| 6b 20 6f 66 20 41 54 26 | 54 29 20 73 70 65 63 69 |k of AT&|T) speci|
|00002060| 66 69 63 20 73 74 75 66 | 66 20 74 6f 20 69 64 65 |fic stuf|f to ide|
|00002070| 6e 74 69 66 79 0a 09 09 | 09 09 20 20 61 6e 20 69 |ntify...|.. an i|
|00002080| 6e 69 74 69 61 6c 69 7a | 65 64 20 64 61 74 61 20 |nitializ|ed data |
|00002090| 73 65 67 6d 65 6e 74 0a | 09 6f 75 74 70 75 74 2e |segment.|.output.|
|000020a0| 63 09 2d 20 6f 75 74 70 | 75 74 20 72 6f 75 74 69 |c.- outp|ut routi|
|000020b0| 6e 65 73 0a 09 74 65 73 | 74 5f 69 6e 70 75 74 09 |nes..tes|t_input.|
|000020c0| 2d 20 61 20 66 69 6c 65 | 20 63 6f 6e 74 61 69 6e |- a file| contain|
|000020d0| 69 6e 67 20 74 68 65 20 | 32 20 63 68 61 72 61 63 |ing the |2 charac|
|000020e0| 74 65 72 73 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |ters the| origina|
|000020f0| 6c 20 73 74 72 69 6e 67 | 73 0a 09 09 09 09 20 20 |l string|s..... |
|00002100| 73 74 75 6d 62 6c 65 64 | 20 6f 76 65 72 2e 20 55 |stumbled| over. U|
|00002110| 6e 70 61 63 6b 20 69 74 | 20 77 69 74 68 20 61 74 |npack it| with at|
|00002120| 6f 62 2e 0a 09 73 74 72 | 69 6e 67 73 2e 31 09 2d |ob...str|ings.1.-|
|00002130| 20 6d 61 6e 75 61 6c 20 | 70 61 67 65 2e 0a 09 73 | manual |page...s|
|00002140| 74 72 69 6e 67 73 2e 74 | 78 74 20 2d 20 6d 61 6e |trings.t|xt - man|
|00002150| 75 61 6c 20 70 61 67 65 | 20 77 69 74 68 6f 75 74 |ual page| without|
|00002160| 20 6e 72 6f 66 66 20 73 | 65 71 75 65 6e 63 65 73 | nroff s|equences|
|00002170| 0a 0a 32 2e 29 20 48 6f | 77 20 74 6f 20 62 75 69 |..2.) Ho|w to bui|
|00002180| 6c 64 20 73 74 72 69 6e | 67 73 2e 0a 0a 4e 6f 77 |ld strin|gs...Now|
|00002190| 20 74 68 61 74 20 79 6f | 75 20 68 61 76 65 20 73 | that yo|u have s|
|000021a0| 74 72 69 6e 67 73 20 79 | 6f 75 20 77 69 6c 6c 20 |trings y|ou will |
|000021b0| 77 61 6e 74 20 74 6f 20 | 62 75 69 6c 64 20 69 74 |want to |build it|
|000021c0| 2e 0a 54 68 65 20 70 72 | 6f 67 72 61 6d 20 69 73 |..The pr|ogram is|
|000021d0| 20 73 68 69 70 70 65 64 | 20 77 69 74 68 20 55 46 | shipped| with UF|
|000021e0| 4c 41 47 53 20 75 6e 64 | 65 66 69 6e 65 64 20 28 |LAGS und|efined (|
|000021f0| 73 65 65 20 62 65 6c 6f | 77 20 66 6f 72 20 61 6e |see belo|w for an|
|00002200| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 29 2e 0a 4f | explana|tion)..O|
|00002210| 6e 20 55 4e 49 58 20 28 | 74 72 61 64 65 6d 61 72 |n UNIX (|trademar|
|00002220| 6b 20 6f 66 20 41 54 26 | 54 29 20 73 79 73 74 65 |k of AT&|T) syste|
|00002230| 6d 73 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 62 |ms, you |should b|
|00002240| 65 20 61 62 6c 65 20 74 | 6f 20 62 75 69 6c 64 20 |e able t|o build |
|00002250| 74 68 65 0a 70 72 6f 67 | 72 61 6d 20 62 79 20 6a |the.prog|ram by j|
|00002260| 75 73 74 20 74 79 70 69 | 6e 67 20 22 6d 61 6b 65 |ust typi|ng "make|
|00002270| 22 2e 20 4f 6e 20 6e 6f | 6e 2d 55 4e 49 58 20 73 |". On no|n-UNIX s|
|00002280| 79 73 74 65 6d 73 20 79 | 6f 75 20 6d 69 67 68 74 |ystems y|ou might|
|00002290| 20 68 61 76 65 20 70 72 | 6f 62 6c 65 6d 73 2e 0a | have pr|oblems..|
|000022a0| 0a 61 2e 29 20 65 64 69 | 74 20 4d 61 6b 65 66 69 |.a.) edi|t Makefi|
|000022b0| 6c 65 2e 20 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |le. If y|ou want |
|000022c0| 74 6f 20 70 6c 61 79 20 | 69 74 20 73 61 66 65 2c |to play |it safe,|
|000022d0| 20 73 65 74 20 55 46 4c | 41 47 53 3d 2d 44 53 41 | set UFL|AGS=-DSA|
|000022e0| 46 45 54 59 5f 46 49 52 | 53 54 2e 0a 09 73 74 72 |FETY_FIR|ST...str|
|000022f0| 69 6e 67 73 20 73 68 6f | 75 6c 64 20 6e 6f 77 20 |ings sho|uld now |
|00002300| 63 6f 6d 70 69 6c 65 20 | 77 69 74 68 6f 75 74 20 |compile |without |
|00002310| 61 6e 79 20 70 72 6f 62 | 6c 65 6d 73 2e 0a 09 59 |any prob|lems...Y|
|00002320| 6f 75 20 77 6f 6e 27 74 | 20 67 65 74 20 74 68 65 |ou won't| get the|
|00002330| 20 55 4e 49 58 20 73 70 | 65 63 69 66 69 63 20 73 | UNIX sp|ecific s|
|00002340| 74 75 66 66 3a 20 74 68 | 65 20 70 72 6f 67 72 61 |tuff: th|e progra|
|00002350| 6d 20 64 6f 65 73 20 6e | 6f 74 0a 09 74 72 79 20 |m does n|ot..try |
|00002360| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 74 68 65 20 |to ident|ify the |
|00002370| 69 6e 69 74 69 61 6c 69 | 7a 65 64 20 64 61 74 61 |initiali|zed data|
|00002380| 20 73 65 67 6d 65 6e 74 | 2e 0a 0a 62 2e 29 20 49 | segment|...b.) I|
|00002390| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 77 61 6e 74 |f you do|n't want|
|000023a0| 20 74 6f 20 70 6c 61 79 | 20 69 74 20 73 61 66 65 | to play| it safe|
|000023b0| 2c 20 62 75 74 20 72 61 | 74 68 65 72 20 79 6f 75 |, but ra|ther you|
|000023c0| 20 77 61 6e 74 20 74 6f | 20 63 6f 6e 66 69 67 75 | want to| configu|
|000023d0| 72 65 0a 09 73 74 72 69 | 6e 67 73 20 74 6f 20 79 |re..stri|ngs to y|
|000023e0| 6f 75 72 20 73 79 73 74 | 65 6d 2c 20 74 61 6b 65 |our syst|em, take|
|000023f0| 20 61 20 6c 6f 6f 6b 20 | 61 74 20 63 6f 6e 66 69 | a look |at confi|
|00002400| 67 20 66 69 72 73 74 2e | 20 54 68 65 72 65 20 69 |g first.| There i|
|00002410| 73 20 61 0a 09 6c 69 73 | 74 20 6f 66 20 73 79 73 |s a..lis|t of sys|
|00002420| 74 65 6d 73 2e 20 49 66 | 20 6f 6e 65 20 6f 66 20 |tems. If| one of |
|00002430| 74 68 65 73 65 20 69 73 | 20 79 6f 75 72 73 2c 20 |these is| yours, |
|00002440| 65 64 69 74 20 4d 61 6b | 65 66 69 6c 65 20 61 6e |edit Mak|efile an|
|00002450| 64 0a 09 73 65 74 20 55 | 46 4c 41 47 53 20 74 6f |d..set U|FLAGS to|
|00002460| 20 6e 6f 74 68 69 6e 67 | 2e 20 57 68 65 6e 20 63 | nothing|. When c|
|00002470| 6f 6d 70 69 6c 69 6e 67 | 20 74 68 65 20 64 65 66 |ompiling| the def|
|00002480| 69 6e 65 73 20 66 6f 72 | 20 74 68 65 20 73 79 73 |ines for| the sys|
|00002490| 74 65 6d 0a 09 61 72 65 | 20 75 73 65 64 2e 0a 09 |tem..are| used...|
|000024a0| 57 41 52 4e 49 4e 47 3a | 20 73 6f 6d 65 20 74 68 |WARNING:| some th|
|000024b0| 69 6e 67 73 20 6d 61 79 | 20 64 69 66 66 65 72 20 |ings may| differ |
|000024c0| 62 65 74 77 65 65 6e 20 | 64 69 66 66 65 72 65 6e |between |differen|
|000024d0| 74 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 74 68 |t versio|ns of th|
|000024e0| 65 0a 09 73 61 6d 65 20 | 73 79 73 74 65 6d 2e 20 |e..same |system. |
|000024f0| 4f 6e 20 73 6f 6d 65 20 | 6d 61 63 68 69 6e 65 73 |On some |machines|
|00002500| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 65 61 73 | there i|s no eas|
|00002510| 79 20 77 61 79 20 74 6f | 20 64 69 73 74 69 6e 67 |y way to| disting|
|00002520| 75 69 73 68 0a 09 62 65 | 74 77 65 65 6e 20 73 75 |uish..be|tween su|
|00002530| 63 68 20 76 65 72 73 69 | 6f 6e 73 2e 0a 09 49 66 |ch versi|ons...If|
|00002540| 20 79 6f 75 20 77 65 72 | 65 20 77 72 6f 6e 67 2c | you wer|e wrong,|
|00002550| 20 61 6e 64 20 74 68 65 | 20 73 79 73 74 65 6d 20 | and the| system |
|00002560| 79 6f 75 20 61 72 65 20 | 75 73 69 6e 67 20 69 73 |you are |using is|
|00002570| 20 6e 6f 74 20 69 6e 20 | 74 68 65 0a 09 6c 69 73 | not in |the..lis|
|00002580| 74 20 6f 66 20 6b 6e 6f | 77 6e 20 73 79 6d 62 6f |t of kno|wn symbo|
|00002590| 6c 73 2c 20 74 68 65 20 | 6d 69 6e 69 6d 61 6c 20 |ls, the |minimal |
|000025a0| 64 65 66 61 75 6c 74 73 | 2c 20 6c 69 6b 65 20 69 |defaults|, like i|
|000025b0| 6e 20 61 2e 29 20 77 69 | 6c 6c 20 62 65 0a 09 75 |n a.) wi|ll be..u|
|000025c0| 73 65 64 2e 0a 0a 63 2e | 29 20 59 6f 75 20 77 61 |sed...c.|) You wa|
|000025d0| 6e 74 20 74 6f 20 63 6f | 6e 66 69 67 75 72 65 20 |nt to co|nfigure |
|000025e0| 73 74 72 69 6e 67 73 2c | 20 61 6e 64 20 79 6f 75 |strings,| and you|
|000025f0| 72 20 73 79 73 74 65 6d | 20 69 73 20 6e 6f 74 20 |r system| is not |
|00002600| 69 6e 20 74 68 65 20 6c | 69 73 74 0a 09 6f 66 20 |in the l|ist..of |
|00002610| 6b 6e 6f 77 6e 20 73 79 | 73 74 65 6d 73 2e 0a 09 |known sy|stems...|
|00002620| 45 64 69 74 20 4d 61 6b | 65 66 69 6c 65 20 61 6e |Edit Mak|efile an|
|00002630| 64 20 73 65 74 20 55 46 | 4c 41 47 53 3d 2d 44 55 |d set UF|LAGS=-DU|
|00002640| 53 45 5f 55 53 45 52 5f | 44 45 46 49 4e 45 53 2e |SE_USER_|DEFINES.|
|00002650| 0a 09 45 64 69 74 20 74 | 75 6e 65 2e 68 20 61 6e |..Edit t|une.h an|
|00002660| 64 20 73 65 74 20 74 68 | 69 6e 67 73 20 75 70 20 |d set th|ings up |
|00002670| 66 6f 72 20 79 6f 75 72 | 20 73 79 73 74 65 6d 2e |for your| system.|
|00002680| 20 54 68 65 20 76 61 72 | 69 61 62 6c 65 73 20 61 | The var|iables a|
|00002690| 72 65 0a 09 63 6f 6d 6d | 65 6e 74 65 64 2e 0a 0a |re..comm|ented...|
|000026a0| 54 68 65 72 65 20 61 72 | 65 20 33 20 68 65 61 64 |There ar|e 3 head|
|000026b0| 65 72 20 66 69 6c 65 73 | 2e 20 54 68 65 20 69 6e |er files|. The in|
|000026c0| 63 6c 75 73 69 6f 6e 20 | 77 6f 72 6b 73 20 6c 69 |clusion |works li|
|000026d0| 6b 65 20 74 68 69 73 2e | 0a 28 79 6f 75 20 63 61 |ke this.|.(you ca|
|000026e0| 6e 20 73 6b 69 70 20 74 | 68 69 73 29 0a 0a 20 20 |n skip t|his).. |
|000026f0| 20 20 20 20 20 20 28 72 | 65 61 64 69 6e 67 20 73 | (r|eading s|
|00002700| 74 72 69 6e 67 73 2e 68 | 29 0a 20 20 20 20 20 20 |trings.h|). |
|00002710| 20 20 20 20 20 20 20 20 | 20 7c 0a 20 20 20 20 20 | | |. |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 76 0a 20 20 20 20 | | v. |
|00002730| 20 20 20 20 28 69 6e 63 | 6c 75 64 69 6e 67 20 63 | (inc|luding c|
|00002740| 6f 6e 66 69 67 2e 68 29 | 0a 09 20 20 20 20 20 20 |onfig.h)|.. |
|00002750| 20 20 20 20 20 7c 0a 09 | 20 20 20 20 20 20 20 20 | |..| |
|00002760| 20 20 20 76 0a 09 3c 2d | 2d 2d 2d 2d 20 69 73 20 | v..<-|---- is |
|00002770| 53 41 46 45 54 59 5f 46 | 49 52 53 54 20 64 65 66 |SAFETY_F|IRST def|
|00002780| 69 6e 65 64 3f 0a 09 7c | 20 20 20 20 20 20 20 20 |ined?..|| |
|00002790| 20 20 7c 0a 09 7c 20 20 | 20 20 20 20 20 20 20 20 | |..| | |
|000027a0| 7c 20 2d 0a 09 7c 20 20 | 20 20 20 20 20 20 20 20 || -..| | |
|000027b0| 76 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |v | |
|000027c0| 20 20 20 20 20 20 20 2b | 0a 09 7c 20 20 69 73 20 | +|..| is |
|000027d0| 55 53 45 5f 55 53 45 52 | 5f 44 45 46 49 4e 45 53 |USE_USER|_DEFINES|
|000027e0| 20 64 65 66 69 6e 65 64 | 3f 20 2d 2d 2d 2d 3e 75 | defined|? ---->u|
|000027f0| 73 65 20 73 74 75 66 66 | 20 66 72 6f 6d 20 74 75 |se stuff| from tu|
|00002800| 6e 65 2e 68 20 2d 2d 2d | 3e 20 63 6f 6e 74 69 6e |ne.h ---|> contin|
|00002810| 75 65 0a 09 7c 20 20 20 | 20 20 20 20 20 20 20 7c |ue..| | ||
|00002820| 0a 09 7c 20 20 20 20 20 | 20 20 20 20 20 7c 20 2d |..| | | -|
|00002830| 0a 09 7c 20 20 20 20 20 | 20 20 20 20 20 76 0a 09 |..| | v..|
|00002840| 7c 20 20 20 20 20 20 69 | 73 20 74 68 69 73 20 6d || i|s this m|
|00002850| 61 63 68 69 6e 65 20 31 | 20 3f 0a 09 7c 20 20 20 |achine 1| ?..| |
|00002860| 20 20 20 20 20 20 20 7c | 0a 09 7c 20 20 20 20 20 | ||..| |
|00002870| 20 20 20 20 20 7c 20 2d | 0a 09 7c 20 20 20 20 20 | | -|..| |
|00002880| 20 20 20 20 20 76 0a 09 | 7c 20 20 20 20 20 20 69 | v..|| i|
|00002890| 73 20 74 68 69 73 20 6d | 61 63 68 69 6e 65 20 32 |s this m|achine 2|
|000028a0| 20 3f 0a 09 7c 20 20 20 | 20 20 20 20 20 20 20 7c | ?..| | ||
|000028b0| 0a 09 7c 20 20 20 20 20 | 20 20 20 20 20 7c 20 2d |..| | | -|
|000028c0| 0a 09 7c 20 20 20 20 20 | 20 20 20 20 20 76 0a 09 |..| | v..|
|000028d0| 7c 20 20 20 20 20 20 20 | 20 20 2e 2e 2e 0a 09 7c || | .....||
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 7c 0a 09 7c 20 20 | | |..| |
|000028f0| 20 20 20 20 20 20 20 20 | 7c 20 2d 0a 09 76 20 20 | || -..v |
|00002900| 20 20 20 20 20 20 20 20 | 76 0a 09 75 73 65 20 73 | |v..use s|
|00002910| 61 66 65 20 64 65 66 61 | 75 6c 74 73 0a 09 7c 0a |afe defa|ults..|.|
|00002920| 09 76 0a 09 63 6f 6e 74 | 69 6e 75 65 0a 0a 54 68 |.v..cont|inue..Th|
|00002930| 65 20 70 72 6f 67 72 61 | 6d 2c 20 6f 72 20 72 61 |e progra|m, or ra|
|00002940| 74 68 65 72 20 74 68 65 | 20 68 65 61 64 65 72 66 |ther the| headerf|
|00002950| 69 6c 65 73 20 6b 6e 6f | 77 20 61 62 6f 75 74 20 |iles kno|w about |
|00002960| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 61 |the foll|owing ma|
|00002970| 63 68 69 6e 65 73 3a 0a | 0a 2d 20 56 41 58 20 31 |chines:.|.- VAX 1|
|00002980| 31 2f 37 38 30 20 28 34 | 2e 33 20 42 53 44 29 20 |1/780 (4|.3 BSD) |
|00002990| 62 79 20 22 75 6e 69 78 | 22 20 61 6e 64 20 22 76 |by "unix|" and "v|
|000029a0| 61 78 22 20 61 6e 64 20 | 6e 6f 74 20 22 75 6c 74 |ax" and |not "ult|
|000029b0| 72 69 78 22 0a 2d 20 53 | 49 45 4d 45 4e 53 20 50 |rix".- S|IEMENS P|
|000029c0| 43 2d 4d 58 32 20 28 53 | 49 4e 49 58 20 76 32 2e |C-MX2 (S|INIX v2.|
|000029d0| 31 29 20 62 79 20 22 6e | 73 63 33 32 30 30 22 20 |1) by "n|sc3200" |
|000029e0| 61 6e 64 20 22 73 69 6e | 69 78 22 20 61 6e 64 20 |and "sin|ix" and |
|000029f0| 22 6e 73 31 36 30 30 30 | 22 0a 2d 20 53 75 6e 20 |"ns16000|".- Sun |
|00002a00| 33 2f 32 36 30 20 28 53 | 75 6e 4f 53 20 33 2e 35 |3/260 (S|unOS 3.5|
|00002a10| 29 20 62 79 20 22 75 6e | 69 78 22 20 61 6e 64 20 |) by "un|ix" and |
|00002a20| 22 73 75 6e 22 20 61 6e | 64 20 22 6d 63 36 38 30 |"sun" an|d "mc680|
|00002a30| 32 30 22 0a 2d 20 56 41 | 58 20 36 38 30 30 20 28 |20".- VA|X 6800 (|
|00002a40| 55 6c 74 72 69 78 20 32 | 2e 31 29 20 62 79 20 22 |Ultrix 2|.1) by "|
|00002a50| 75 6e 69 78 22 20 61 6e | 64 20 22 75 6c 74 72 69 |unix" an|d "ultri|
|00002a60| 78 22 20 61 6e 64 20 22 | 62 73 64 34 5f 32 22 09 |x" and "|bsd4_2".|
|00002a70| 0a 2d 20 75 56 41 58 20 | 28 56 4d 53 20 35 2e 31 |.- uVAX |(VMS 5.1|
|00002a80| 29 20 62 79 20 22 76 6d | 73 22 20 61 6e 64 20 22 |) by "vm|s" and "|
|00002a90| 76 61 78 22 0a 0a 33 2e | 29 20 57 68 79 20 69 73 |vax"..3.|) Why is|
|00002aa0| 20 74 68 69 73 20 73 74 | 72 69 6e 67 73 20 62 65 | this st|rings be|
|00002ab0| 74 74 65 72 20 74 68 61 | 6e 20 74 68 65 20 73 74 |tter tha|n the st|
|00002ac0| 61 6e 64 61 72 64 20 6f | 6e 65 3f 0a 0a 09 61 2e |andard o|ne?...a.|
|00002ad0| 29 20 54 68 69 73 20 76 | 65 72 73 69 6f 6e 20 6f |) This v|ersion o|
|00002ae0| 66 20 73 74 72 69 6e 67 | 73 20 69 73 20 61 74 20 |f string|s is at |
|00002af0| 6c 65 61 73 74 20 34 20 | 74 69 6d 65 73 20 66 61 |least 4 |times fa|
|00002b00| 73 74 65 72 20 74 68 61 | 6e 20 74 68 65 20 6f 72 |ster tha|n the or|
|00002b10| 69 67 69 6e 61 6c 0a 09 | 09 6f 6e 65 2e 20 49 66 |iginal..|.one. If|
|00002b20| 20 74 68 65 20 6d 69 6e | 69 6d 61 6c 20 73 74 72 | the min|imal str|
|00002b30| 69 6e 67 20 6c 65 6e 67 | 74 68 20 69 73 20 73 65 |ing leng|th is se|
|00002b40| 74 20 74 6f 20 73 6f 6d | 65 74 68 69 6e 67 20 65 |t to som|ething e|
|00002b50| 6c 73 65 2c 20 69 74 20 | 6d 69 67 68 74 0a 09 09 |lse, it |might...|
|00002b60| 65 76 65 6e 20 62 65 20 | 31 30 20 74 69 6d 65 73 |even be |10 times|
|00002b70| 20 66 61 73 74 65 72 2e | 0a 09 62 2e 29 20 54 68 | faster.|..b.) Th|
|00002b80| 65 20 6f 72 69 67 69 6e | 61 6c 20 6f 6e 65 20 68 |e origin|al one h|
|00002b90| 61 64 20 73 65 76 65 72 | 61 6c 20 62 75 67 73 2e |ad sever|al bugs.|
|00002ba0| 0a 09 63 2e 29 20 54 68 | 69 73 20 6f 6e 65 20 69 |..c.) Th|is one i|
|00002bb0| 73 20 70 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 2e |s public| domain.|
|00002bc0| 20 59 6f 75 20 67 65 74 | 20 73 6f 75 72 63 65 2e | You get| source.|
|00002bd0| 0a 0a 09 61 64 20 61 2e | 29 0a 09 09 48 65 72 65 |...ad a.|)...Here|
|00002be0| 20 61 72 65 20 72 65 73 | 75 6c 74 73 20 6f 66 20 | are res|ults of |
|00002bf0| 73 6f 6d 65 20 74 65 73 | 74 73 3a 0a 0a 09 09 6d |some tes|ts:....m|
|00002c00| 61 63 68 69 6e 65 3a 20 | 50 43 2d 4d 58 32 2c 20 |achine: |PC-MX2, |
|00002c10| 20 20 4f 53 3a 20 53 49 | 4e 49 58 20 76 32 2e 31 | OS: SI|NIX v2.1|
|00002c20| 09 09 66 69 6c 65 3a 20 | 2f 76 6d 73 69 6e 69 78 |..file: |/vmsinix|
|00002c30| 09 28 32 38 39 30 38 34 | 29 0a 09 09 6f 6c 64 20 |.(289084|)...old |
|00002c40| 3a 09 09 75 09 34 33 2e | 36 09 09 73 09 31 2e 31 |:..u.43.|6..s.1.1|
|00002c50| 09 09 09 3d 09 34 34 2e | 37 0a 09 09 6e 65 77 20 |...=.44.|7...new |
|00002c60| 3a 09 09 75 09 20 33 2e | 38 09 09 73 09 32 2e 33 |:..u. 3.|8..s.2.3|
|00002c70| 09 09 09 3d 09 20 36 2e | 31 0a 0a 09 09 6d 61 63 |...=. 6.|1....mac|
|00002c80| 68 69 6e 65 3a 20 56 41 | 58 20 31 31 2f 37 38 30 |hine: VA|X 11/780|
|00002c90| 09 20 20 20 4f 53 3a 20 | 34 2e 33 42 53 44 20 20 |. OS: |4.3BSD |
|00002ca0| 20 20 09 66 69 6c 65 3a | 20 2f 76 6d 75 6e 69 78 | .file:| /vmunix|
|00002cb0| 09 28 33 32 39 37 32 38 | 29 0a 09 09 6f 6c 64 20 |.(329728|)...old |
|00002cc0| 3a 09 09 75 09 31 38 2e | 30 09 09 73 09 32 2e 37 |:..u.18.|0..s.2.7|
|00002cd0| 09 09 09 3d 09 32 30 2e | 37 0a 09 09 6e 65 77 20 |...=.20.|7...new |
|00002ce0| 3a 09 09 75 09 20 31 2e | 35 09 09 73 09 30 2e 39 |:..u. 1.|5..s.0.9|
|00002cf0| 09 09 09 3d 09 20 32 2e | 34 0a 0a 09 09 6d 61 63 |...=. 2.|4....mac|
|00002d00| 68 69 6e 65 3a 20 53 55 | 4e 20 33 2f 32 36 30 20 |hine: SU|N 3/260 |
|00002d10| 09 20 20 20 4f 53 3a 20 | 53 75 6e 4f 53 20 33 2e |. OS: |SunOS 3.|
|00002d20| 35 20 09 66 69 6c 65 3a | 20 2f 76 6d 75 6e 69 78 |5 .file:| /vmunix|
|00002d30| 09 28 35 35 38 33 35 39 | 29 0a 09 09 6f 6c 64 20 |.(558359|)...old |
|00002d40| 3a 09 09 75 09 20 36 2e | 35 09 09 73 09 30 2e 36 |:..u. 6.|5..s.0.6|
|00002d50| 09 09 09 3d 09 20 37 2e | 31 0a 09 09 6e 65 77 20 |...=. 7.|1...new |
|00002d60| 3a 09 09 75 09 20 31 2e | 36 09 09 73 09 30 2e 32 |:..u. 1.|6..s.0.2|
|00002d70| 09 09 09 3d 09 20 31 2e | 38 0a 0a 09 09 6d 61 63 |...=. 1.|8....mac|
|00002d80| 68 69 6e 65 3a 20 56 41 | 58 20 36 38 30 30 20 20 |hine: VA|X 6800 |
|00002d90| 09 20 20 20 4f 53 3a 20 | 55 6c 74 72 69 78 20 32 |. OS: |Ultrix 2|
|00002da0| 2e 31 09 66 69 6c 65 3a | 20 2f 76 6d 75 6e 69 78 |.1.file:| /vmunix|
|00002db0| 09 28 36 36 32 35 32 38 | 29 0a 09 09 6f 6c 64 20 |.(662528|)...old |
|00002dc0| 3a 09 09 75 09 20 35 2e | 32 09 09 73 09 30 2e 34 |:..u. 5.|2..s.0.4|
|00002dd0| 09 09 09 3d 09 20 35 2e | 36 0a 09 09 6e 65 77 20 |...=. 5.|6...new |
|00002de0| 3a 09 09 75 09 20 30 2e | 36 09 09 73 09 30 2e 30 |:..u. 0.|6..s.0.0|
|00002df0| 09 09 09 3d 09 20 30 2e | 36 0a 0a 09 09 55 73 65 |...=. 0.|6....Use|
|00002e00| 72 2c 20 73 79 73 20 61 | 6e 64 20 74 6f 74 61 6c |r, sys a|nd total|
|00002e10| 20 74 69 6d 65 73 20 69 | 6e 20 73 65 63 6f 6e 64 | times i|n second|
|00002e20| 73 2e 0a 0a 09 61 64 20 | 62 2e 29 0a 09 09 54 68 |s....ad |b.)...Th|
|00002e30| 65 20 6f 72 69 67 69 6e | 61 6c 20 73 74 72 69 6e |e origin|al strin|
|00002e40| 67 73 0a 09 09 2d 20 74 | 68 69 6e 6b 73 20 63 6f |gs...- t|hinks co|
|00002e50| 6e 74 72 6f 6c 2d 4c 20 | 28 30 78 30 63 29 20 69 |ntrol-L |(0x0c) i|
|00002e60| 73 20 61 20 70 72 69 6e | 74 61 62 6c 65 20 63 68 |s a prin|table ch|
|00002e70| 61 72 61 63 74 65 72 0a | 09 09 2d 20 75 6e 64 65 |aracter.|..- unde|
|00002e80| 72 20 73 6f 6d 65 20 63 | 69 72 63 75 6d 73 74 61 |r some c|ircumsta|
|00002e90| 6e 63 65 73 20 74 68 69 | 6e 6b 73 20 30 78 38 30 |nces thi|nks 0x80|
|00002ea0| 20 69 73 20 70 72 69 6e | 74 61 62 6c 65 2e 20 49 | is prin|table. I|
|00002eb0| 6e 20 74 68 65 0a 09 09 | 20 20 70 61 63 6b 61 67 |n the...| packag|
|00002ec0| 65 20 74 68 65 72 65 20 | 69 73 20 61 20 66 69 6c |e there |is a fil|
|00002ed0| 65 2c 20 74 65 73 74 5f | 69 6e 70 75 74 2e 20 55 |e, test_|input. U|
|00002ee0| 6e 70 61 63 6b 20 74 68 | 69 73 20 66 69 6c 65 20 |npack th|is file |
|00002ef0| 77 69 74 68 0a 09 09 20 | 20 61 74 6f 62 2e 20 54 |with... | atob. T|
|00002f00| 68 65 20 66 69 6c 65 20 | 6e 6f 77 20 63 6f 6e 74 |he file |now cont|
|00002f10| 61 69 6e 73 20 73 65 76 | 65 72 61 6c 20 6c 69 6e |ains sev|eral lin|
|00002f20| 65 73 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 73 |es of ch|aracters|
|00002f30| 20 69 6e 63 6c 75 64 69 | 6e 67 0a 09 09 20 20 61 | includi|ng... a|
|00002f40| 20 6c 69 6e 65 20 77 69 | 74 68 20 63 6f 6e 74 72 | line wi|th contr|
|00002f50| 6f 6c 2d 4c 20 61 6e 64 | 20 6f 6e 65 20 77 69 74 |ol-L and| one wit|
|00002f60| 68 20 61 20 30 78 38 30 | 2e 20 54 68 65 20 6f 72 |h a 0x80|. The or|
|00002f70| 69 67 69 6e 61 6c 20 73 | 74 72 69 6e 67 73 0a 09 |iginal s|trings..|
|00002f80| 09 20 20 65 72 72 73 20 | 66 6f 72 20 62 6f 74 68 |. errs |for both|
|00002f90| 20 63 61 73 65 73 2e 0a | 09 09 2d 20 64 69 64 20 | cases..|..- did |
|00002fa0| 6e 6f 74 20 67 65 74 20 | 74 68 65 20 73 74 61 72 |not get |the star|
|00002fb0| 74 20 61 64 64 72 65 73 | 73 20 6f 66 20 74 68 65 |t addres|s of the|
|00002fc0| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 20 64 61 74 | initial|ized dat|
|00002fd0| 61 20 72 69 67 68 74 20 | 6f 6e 0a 09 09 20 20 73 |a right |on... s|
|00002fe0| 6f 6d 65 20 73 79 73 74 | 65 6d 73 2e 0a 09 09 2d |ome syst|ems....-|
|00002ff0| 20 68 61 64 20 70 72 6f | 62 6c 65 6d 73 20 77 68 | had pro|blems wh|
|00003000| 65 6e 20 64 65 61 6c 69 | 6e 67 20 77 69 74 68 20 |en deali|ng with |
|00003010| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 |the stan|dard inp|
|00003020| 75 74 2e 0a 09 09 54 68 | 65 20 66 69 72 73 74 20 |ut....Th|e first |
|00003030| 74 77 6f 20 62 75 67 73 | 20 68 61 76 65 20 62 65 |two bugs| have be|
|00003040| 65 6e 20 66 6f 75 6e 64 | 20 6f 6e 20 34 33 42 53 |en found| on 43BS|
|00003050| 44 2c 20 53 75 6e 4f 53 | 20 61 6e 64 20 55 4c 54 |D, SunOS| and ULT|
|00003060| 52 49 58 2c 20 74 68 65 | 0a 09 09 74 68 69 72 64 |RIX, the|...third|
|00003070| 20 6f 6e 6c 79 20 6f 6e | 20 4d 58 32 20 53 49 4e | only on| MX2 SIN|
|00003080| 49 58 20 76 32 2e 31 2e | 0a 0a 34 2e 29 20 57 68 |IX v2.1.|..4.) Wh|
|00003090| 61 74 20 61 62 6f 75 74 | 20 62 75 67 73 3f 0a 0a |at about| bugs?..|
|000030a0| 09 49 66 20 79 6f 75 20 | 66 69 6e 64 20 62 75 67 |.If you |find bug|
|000030b0| 73 2c 20 74 65 6c 6c 20 | 6d 65 2e 20 49 66 20 79 |s, tell |me. If y|
|000030c0| 6f 75 20 66 69 78 65 64 | 20 74 68 65 6d 20 6f 72 |ou fixed| them or|
|000030d0| 20 69 66 20 79 6f 75 20 | 6d 61 64 65 20 61 6e 0a | if you |made an.|
|000030e0| 09 65 78 74 65 6e 73 69 | 6f 6e 20 77 68 69 63 68 |.extensi|on which|
|000030f0| 20 72 65 61 6c 6c 79 20 | 69 73 20 6f 6e 65 2c 20 | really |is one, |
|00003100| 64 72 6f 70 20 6d 65 20 | 61 20 6e 6f 74 65 2e 0a |drop me |a note..|
|00003110| 0a 35 2e 29 20 4e 6f 74 | 65 73 0a 0a 09 54 68 69 |.5.) Not|es...Thi|
|00003120| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 61 62 6f |s progra|m is abo|
|00003130| 75 74 20 37 20 74 69 6d | 65 73 20 66 61 73 74 65 |ut 7 tim|es faste|
|00003140| 72 20 74 68 61 6e 20 74 | 68 65 20 6f 72 69 67 6e |r than t|he orign|
|00003150| 61 6c 20 6f 6e 65 2e 0a | 09 54 68 65 72 65 20 61 |al one..|.There a|
|00003160| 72 65 20 74 77 6f 20 72 | 65 61 73 6f 6e 73 20 66 |re two r|easons f|
|00003170| 6f 72 20 74 68 69 73 3a | 0a 09 2d 20 49 74 20 64 |or this:|..- It d|
|00003180| 6f 65 73 20 6e 6f 74 20 | 75 73 65 20 66 67 65 74 |oes not |use fget|
|00003190| 63 2f 66 70 75 74 63 20 | 74 6f 20 67 65 74 20 6f |c/fputc |to get o|
|000031a0| 72 20 70 75 74 20 63 68 | 61 72 61 63 74 65 72 73 |r put ch|aracters|
|000031b0| 2c 20 62 75 74 0a 09 20 | 20 72 65 61 64 73 20 63 |, but.. | reads c|
|000031c0| 68 61 72 61 63 74 65 72 | 73 20 69 6e 20 62 6c 6f |haracter|s in blo|
|000031d0| 63 6b 73 2e 20 49 74 20 | 64 6f 65 73 20 6e 6f 74 |cks. It |does not|
|000031e0| 20 63 6f 70 79 20 74 68 | 65 6d 20 62 75 74 20 72 | copy th|em but r|
|000031f0| 61 74 68 65 72 20 6d 6f | 76 65 73 0a 09 20 20 70 |ather mo|ves.. p|
|00003200| 6f 69 6e 74 65 72 73 20 | 61 72 6f 75 6e 64 20 6f |ointers |around o|
|00003210| 6e 20 74 68 65 20 69 6e | 70 75 74 20 62 75 66 66 |n the in|put buff|
|00003220| 65 72 2e 20 54 68 65 72 | 65 20 69 73 20 6e 6f 0a |er. Ther|e is no.|
|00003230| 09 20 20 70 72 6f 63 65 | 64 75 72 65 20 63 61 6c |. proce|dure cal|
|00003240| 6c 20 6e 65 65 64 65 64 | 20 74 6f 20 67 65 74 20 |l needed| to get |
|00003250| 61 74 20 65 61 63 68 20 | 63 68 61 72 61 63 74 65 |at each |characte|
|00003260| 72 2e 0a 09 20 20 57 68 | 65 6e 20 61 20 73 65 71 |r... Wh|en a seq|
|00003270| 75 65 6e 63 65 20 69 73 | 20 66 6f 75 6e 64 2c 20 |uence is| found, |
|00003280| 69 74 20 69 73 20 70 75 | 74 20 69 6e 74 6f 20 74 |it is pu|t into t|
|00003290| 68 65 20 6f 75 74 70 75 | 74 20 62 75 66 66 65 72 |he outpu|t buffer|
|000032a0| 20 69 6e 20 6f 6e 65 0a | 09 20 20 62 6c 6f 63 6b | in one.|. block|
|000032b0| 2c 20 74 68 75 73 20 74 | 68 65 72 65 20 69 73 20 |, thus t|here is |
|000032c0| 6e 6f 20 6e 65 65 64 2c | 20 6c 69 6b 65 20 69 6e |no need,| like in|
|000032d0| 20 66 70 75 74 63 2c 20 | 74 6f 20 63 68 65 63 6b | fputc, |to check|
|000032e0| 20 66 6f 72 20 70 6f 73 | 73 69 62 6c 65 0a 09 20 | for pos|sible.. |
|000032f0| 20 6f 76 65 72 66 6c 6f | 77 20 66 6f 72 20 65 61 | overflo|w for ea|
|00003300| 63 68 20 63 68 61 72 61 | 63 74 65 72 2e 0a 09 2d |ch chara|cter...-|
|00003310| 20 57 68 65 6e 20 74 68 | 65 20 70 72 6f 67 72 61 | When th|e progra|
|00003320| 6d 20 73 65 61 72 63 68 | 65 73 20 66 6f 72 20 61 |m search|es for a|
|00003330| 20 73 65 71 75 65 6e 63 | 65 20 6f 66 20 70 72 69 | sequenc|e of pri|
|00003340| 6e 74 61 62 6c 65 20 63 | 68 61 72 61 63 74 65 72 |ntable c|haracter|
|00003350| 73 0a 09 20 20 69 74 20 | 6f 6e 6c 79 20 65 78 61 |s.. it |only exa|
|00003360| 6d 69 6e 65 73 20 65 61 | 63 68 20 6d 69 6e 5f 73 |mines ea|ch min_s|
|00003370| 74 72 5f 6c 65 6e 20 63 | 68 61 72 61 63 74 65 72 |tr_len c|haracter|
|00003380| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 65 61 63 68 | instead| of each|
|00003390| 20 6f 6e 65 2e 0a 20 09 | 20 20 6d 69 6e 5f 73 74 | one.. .| min_st|
|000033a0| 72 5f 6c 65 6e 20 64 65 | 66 61 75 6c 74 73 20 74 |r_len de|faults t|
|000033b0| 6f 20 34 20 61 6e 64 20 | 63 61 6e 20 62 65 20 73 |o 4 and |can be s|
|000033c0| 65 74 20 77 69 74 68 20 | 63 6f 6d 6d 61 6e 64 20 |et with |command |
|000033d0| 6c 69 6e 65 20 6f 70 74 | 69 6f 6e 0a 09 20 20 6c |line opt|ion.. l|
|000033e0| 69 6b 65 20 22 73 74 72 | 69 6e 67 73 20 2d 33 22 |ike "str|ings -3"|
|000033f0| 2e 0a 0a 09 49 74 20 63 | 61 6e 20 62 65 20 73 70 |....It c|an be sp|
|00003400| 65 64 20 75 70 20 73 6f | 6d 65 20 6d 6f 72 65 2c |ed up so|me more,|
|00003410| 20 62 75 74 20 74 68 65 | 6e 20 69 74 20 77 6f 75 | but the|n it wou|
|00003420| 6c 64 20 62 65 20 64 69 | 66 66 69 63 75 6c 74 20 |ld be di|fficult |
|00003430| 74 6f 20 70 6f 72 74 0a | 09 69 74 20 74 6f 20 64 |to port.|.it to d|
|00003440| 69 66 66 65 72 65 6e 74 | 20 73 79 73 74 65 6d 73 |ifferent| systems|
|00003450| 2e 0a 09 45 78 61 6d 70 | 6c 65 3a 0a 09 43 75 72 |...Examp|le:..Cur|
|00003460| 72 65 6e 74 6c 79 20 74 | 68 65 20 70 72 6f 67 72 |rently t|he progr|
|00003470| 61 6d 20 74 61 6b 65 73 | 20 36 2e 30 20 73 65 63 |am takes| 6.0 sec|
|00003480| 6f 6e 64 73 20 6f 6e 20 | 4d 58 32 20 66 6f 72 20 |onds on |MX2 for |
|00003490| 2f 76 6d 73 69 6e 69 78 | 2e 0a 09 54 68 65 20 69 |/vmsinix|...The i|
|000034a0| 6d 70 72 6f 76 65 64 20 | 76 65 72 73 69 6f 6e 20 |mproved |version |
|000034b0| 6f 6e 6c 79 20 6e 65 65 | 64 73 20 35 2e 35 20 73 |only nee|ds 5.5 s|
|000034c0| 65 63 6f 6e 64 73 2e 20 | 49 74 20 69 73 20 61 6c |econds. |It is al|
|000034d0| 73 6f 20 6d 75 63 68 20 | 73 6d 61 6c 6c 65 72 3a |so much |smaller:|
|000034e0| 0a 09 36 39 37 36 20 62 | 79 74 65 73 20 63 6f 6d |..6976 b|ytes com|
|000034f0| 70 61 72 65 64 20 74 6f | 20 31 30 35 39 36 2e 0a |pared to| 10596..|
|00003500| 09 57 61 79 73 20 74 6f | 20 69 6d 70 72 6f 76 65 |.Ways to| improve|
|00003510| 20 74 68 65 20 70 72 6f | 67 72 61 6d 3a 0a 09 2d | the pro|gram:..-|
|00003520| 20 4f 6e 20 73 6f 6d 65 | 20 6d 61 63 68 69 6e 65 | On some| machine|
|00003530| 73 20 61 6e 6f 74 68 65 | 72 20 6d 65 74 68 6f 64 |s anothe|r method|
|00003540| 20 74 6f 20 74 65 73 74 | 20 77 68 65 74 68 65 72 | to test| whether|
|00003550| 20 61 20 63 68 61 72 61 | 63 74 65 72 20 69 73 20 | a chara|cter is |
|00003560| 70 72 69 6e 74 61 62 6c | 65 0a 09 20 20 77 69 6c |printabl|e.. wil|
|00003570| 6c 20 62 65 20 66 61 73 | 74 65 72 2e 20 4e 6f 77 |l be fas|ter. Now|
|00003580| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 75 73 65 | the pro|gram use|
|00003590| 73 20 61 6e 20 61 72 72 | 61 79 20 28 69 73 70 29 |s an arr|ay (isp)|
|000035a0| 2c 20 75 73 65 73 20 61 | 20 63 68 61 72 61 63 74 |, uses a| charact|
|000035b0| 65 72 0a 09 20 20 63 61 | 73 74 20 74 6f 20 61 20 |er.. ca|st to a |
|000035c0| 28 73 69 67 6e 65 64 29 | 20 69 6e 74 65 67 65 72 |(signed)| integer|
|000035d0| 20 61 73 20 69 6e 64 65 | 78 20 69 6e 74 6f 20 74 | as inde|x into t|
|000035e0| 68 69 73 20 61 72 72 61 | 79 20 28 69 73 70 5f 6d |his arra|y (isp_m|
|000035f0| 69 64 20 69 73 20 74 68 | 65 0a 09 20 20 62 61 73 |id is th|e.. bas|
|00003600| 65 20 66 72 6f 6d 20 77 | 68 69 63 68 20 6f 66 66 |e from w|hich off|
|00003610| 73 65 74 73 20 61 72 65 | 20 63 6f 6d 70 75 74 65 |sets are| compute|
|00003620| 64 29 2e 0a 09 20 20 4f | 6e 20 4d 58 32 2c 20 61 |d)... O|n MX2, a|
|00003630| 6e 64 2c 20 69 66 20 49 | 20 62 65 6c 69 65 76 65 |nd, if I| believe|
|00003640| 20 6d 79 20 74 65 73 74 | 73 2c 20 6f 6e 20 56 41 | my test|s, on VA|
|00003650| 58 2c 20 69 74 20 69 73 | 20 66 61 73 74 65 72 2c |X, it is| faster,|
|00003660| 20 74 6f 20 75 73 65 0a | 09 20 20 75 6e 73 69 67 | to use.|. unsig|
|00003670| 6e 65 64 20 63 68 61 72 | 61 63 74 65 72 73 20 61 |ned char|acters a|
|00003680| 73 20 69 6e 64 65 78 20 | 69 6e 74 6f 20 74 68 69 |s index |into thi|
|00003690| 73 20 61 72 72 61 79 2e | 0a 09 20 20 49 66 20 79 |s array.|.. If y|
|000036a0| 6f 75 20 77 61 6e 74 20 | 74 6f 20 70 6c 61 79 20 |ou want |to play |
|000036b0| 61 72 6f 75 6e 64 20 77 | 69 74 68 20 74 68 69 73 |around w|ith this|
|000036c0| 2c 20 6a 75 73 74 20 63 | 68 61 6e 67 65 20 43 48 |, just c|hange CH|
|000036d0| 41 52 5f 54 59 50 45 20 | 74 6f 0a 09 20 20 27 75 |AR_TYPE |to.. 'u|
|000036e0| 6e 73 69 67 6e 65 64 20 | 62 79 74 65 27 20 61 6e |nsigned |byte' an|
|000036f0| 64 20 64 65 66 69 6e 65 | 20 74 68 65 20 6d 61 63 |d define| the mac|
|00003700| 72 6f 20 49 53 5f 50 52 | 49 4e 54 41 42 4c 45 20 |ro IS_PR|INTABLE |
|00003710| 61 63 63 6f 72 64 69 6e | 67 6c 79 20 74 6f 0a 09 |accordin|gly to..|
|00003720| 20 20 27 28 69 73 70 5b | 63 5d 29 27 0a 09 2d 20 | '(isp[|c])'..- |
|00003730| 49 74 20 6d 61 6b 65 73 | 20 61 20 64 69 66 66 65 |It makes| a diffe|
|00003740| 72 65 6e 63 65 20 28 61 | 6c 74 68 6f 75 67 68 20 |rence (a|lthough |
|00003750| 61 20 73 6d 61 6c 6c 20 | 6f 6e 65 29 2c 20 77 68 |a small |one), wh|
|00003760| 61 74 20 62 61 73 69 63 | 20 74 79 70 65 20 79 6f |at basic| type yo|
|00003770| 75 0a 09 20 20 63 68 6f | 6f 73 65 20 66 6f 72 20 |u.. cho|ose for |
|00003780| 74 68 65 20 69 73 70 20 | 61 72 72 61 79 2e 20 4f |the isp |array. O|
|00003790| 6e 20 4d 58 32 20 73 68 | 6f 72 74 20 69 73 20 62 |n MX2 sh|ort is b|
|000037a0| 65 73 74 2c 20 62 75 74 | 20 63 68 61 72 20 69 73 |est, but| char is|
|000037b0| 20 6e 65 61 72 6c 79 0a | 09 20 20 61 73 20 67 6f | nearly.|. as go|
|000037c0| 6f 64 2e 0a 09 2d 20 59 | 6f 75 20 63 61 6e 20 6d |od...- Y|ou can m|
|000037d0| 61 6b 65 20 69 74 20 73 | 6d 61 6c 6c 65 72 2e 20 |ake it s|maller. |
|000037e0| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 64 6f 65 73 |The prog|ram does|
|000037f0| 20 6e 6f 74 20 6e 65 65 | 64 20 73 74 64 69 6f 2e | not nee|d stdio.|
|00003800| 20 42 75 74 0a 09 20 20 | 65 78 69 74 20 6e 6f 72 | But.. |exit nor|
|00003810| 6d 61 6c 6c 79 20 63 6c | 6f 73 65 73 20 66 69 6c |mally cl|oses fil|
|00003820| 65 20 64 65 73 63 72 69 | 70 74 6f 72 73 2c 20 61 |e descri|ptors, a|
|00003830| 6e 64 20 74 68 65 72 65 | 66 6f 72 65 20 69 6e 63 |nd there|fore inc|
|00003840| 6c 75 64 65 73 20 61 0a | 09 20 20 6c 61 72 67 65 |ludes a.|. large|
|00003850| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 73 74 64 | part of| the std|
|00003860| 69 6f 20 73 74 75 66 66 | 2e 20 57 65 6c 6c 2c 20 |io stuff|. Well, |
|00003870| 61 62 6f 75 74 20 34 20 | 4b 20 6f 6e 20 73 6f 6d |about 4 |K on som|
|00003880| 65 20 73 79 73 74 65 6d | 73 2e 0a 09 20 20 49 66 |e system|s... If|
|00003890| 20 79 6f 75 20 6b 6e 6f | 77 20 77 68 61 74 20 79 | you kno|w what y|
|000038a0| 6f 75 72 20 65 78 69 74 | 20 64 6f 65 73 2c 20 79 |our exit| does, y|
|000038b0| 6f 75 20 63 61 6e 20 73 | 75 62 73 74 69 74 75 74 |ou can s|ubstitut|
|000038c0| 65 20 61 20 73 75 69 74 | 61 62 6c 65 0a 09 20 20 |e a suit|able.. |
|000038d0| 72 6f 75 74 69 6e 65 20 | 6f 66 20 79 6f 75 72 20 |routine |of your |
|000038e0| 6f 77 6e 2e 20 45 2e 67 | 2e 20 6f 6e 20 4d 58 32 |own. E.g|. on MX2|
|000038f0| 2c 20 65 78 69 74 20 63 | 61 6c 6c 73 20 5f 63 6c |, exit c|alls _cl|
|00003900| 65 61 6e 75 70 2c 20 77 | 68 69 63 68 0a 09 20 20 |eanup, w|hich.. |
|00003910| 6f 6e 6c 79 20 63 6c 6f | 73 65 73 20 61 6c 6c 20 |only clo|ses all |
|00003920| 6f 70 65 6e 20 66 69 6c | 65 20 64 65 73 63 72 69 |open fil|e descri|
|00003930| 70 74 6f 72 73 2e 20 41 | 73 20 49 20 6b 6e 6f 77 |ptors. A|s I know|
|00003940| 20 74 68 61 74 20 6f 6e | 6c 79 20 74 68 65 0a 09 | that on|ly the..|
|00003950| 20 20 73 74 61 6e 64 61 | 72 64 20 64 65 73 63 72 | standa|rd descr|
|00003960| 69 70 74 6f 72 73 20 61 | 72 65 20 6f 70 65 6e 20 |iptors a|re open |
|00003970| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|00003980| 65 20 70 72 6f 67 72 61 | 6d 2c 20 49 20 63 61 6e |e progra|m, I can|
|00003990| 0a 09 20 20 77 72 69 74 | 65 20 61 20 5f 63 6c 65 |.. writ|e a _cle|
|000039a0| 61 6e 75 70 20 77 68 69 | 63 68 20 6f 6e 6c 79 20 |anup whi|ch only |
|000039b0| 64 6f 65 73 20 61 20 63 | 6c 6f 73 65 20 6f 6e 20 |does a c|lose on |
|000039c0| 30 2c 20 31 2c 20 61 6e | 64 20 32 2e 0a 0a 09 54 |0, 1, an|d 2....T|
|000039d0| 68 65 20 73 61 76 69 6e | 67 73 20 74 68 61 74 20 |he savin|gs that |
|000039e0| 79 6f 75 20 67 65 74 20 | 61 72 65 20 61 6c 6d 6f |you get |are almo|
|000039f0| 73 74 20 69 6e 76 69 73 | 69 62 6c 65 2c 20 74 68 |st invis|ible, th|
|00003a00| 65 79 20 61 72 65 20 6e | 6f 74 20 65 61 73 69 6c |ey are n|ot easil|
|00003a10| 79 0a 09 70 6f 72 74 61 | 62 6c 65 2c 20 62 75 74 |y..porta|ble, but|
|00003a20| 20 72 61 74 68 65 72 20 | 72 65 71 75 69 72 65 20 | rather |require |
|00003a30| 61 20 63 65 72 74 61 69 | 6e 20 61 6d 6f 75 6e 74 |a certai|n amount|
|00003a40| 20 6f 66 20 72 65 73 65 | 61 72 63 68 20 6f 6e 20 | of rese|arch on |
|00003a50| 70 61 72 74 0a 09 6f 66 | 20 74 68 65 20 70 65 72 |part..of| the per|
|00003a60| 73 6f 6e 20 64 6f 69 6e | 67 20 74 68 65 20 20 70 |son doin|g the p|
|00003a70| 6f 72 74 69 6e 67 2e 20 | 49 20 63 68 6f 73 65 20 |orting. |I chose |
|00003a80| 6e 6f 74 20 74 6f 20 66 | 69 74 20 74 68 65 20 70 |not to f|it the p|
|00003a90| 72 6f 67 72 61 6d 73 20 | 77 69 74 68 0a 09 6f 70 |rograms |with..op|
|00003aa0| 74 69 6f 6e 73 20 74 6f | 20 61 64 6a 75 73 74 20 |tions to| adjust |
|00003ab0| 74 68 65 73 65 20 74 68 | 69 6e 67 73 2e 0a 0a 09 |these th|ings....|
|00003ac0| 54 68 65 72 65 20 61 72 | 65 20 73 74 69 6c 6c 20 |There ar|e still |
|00003ad0| 73 6f 6d 65 20 44 45 42 | 55 47 20 73 74 61 74 65 |some DEB|UG state|
|00003ae0| 6d 65 6e 74 73 20 69 6e | 20 74 68 65 20 63 6f 64 |ments in| the cod|
|00003af0| 65 2e 20 59 6f 75 20 67 | 65 74 20 74 68 65 6d 0a |e. You g|et them.|
|00003b00| 09 69 66 20 79 6f 75 20 | 73 65 74 20 44 45 42 55 |.if you |set DEBU|
|00003b10| 47 46 4c 41 47 53 3d 2d | 44 44 45 42 55 47 2e 0a |GFLAGS=-|DDEBUG..|
|00003b20| 0a 36 2e 29 20 53 74 61 | 74 75 73 0a 0a 09 54 68 |.6.) Sta|tus...Th|
|00003b30| 69 73 20 70 72 6f 67 72 | 61 6d 20 69 73 20 70 6c |is progr|am is pl|
|00003b40| 61 63 65 64 20 69 6e 74 | 6f 20 74 68 65 20 70 75 |aced int|o the pu|
|00003b50| 62 6c 69 63 20 64 6f 6d | 61 69 6e 2e 0a 09 54 68 |blic dom|ain...Th|
|00003b60| 65 20 43 6f 70 79 72 69 | 67 68 74 20 4e 6f 74 69 |e Copyri|ght Noti|
|00003b70| 63 65 20 69 6e 20 43 4f | 50 59 49 4e 47 20 61 70 |ce in CO|PYING ap|
|00003b80| 70 6c 69 65 73 2e 0a 0a | 41 62 73 6f 72 62 2c 20 |plies...|Absorb, |
|00003b90| 61 70 70 6c 79 20 61 6e | 64 20 65 6e 6a 6f 79 2c |apply an|d enjoy,|
|00003ba0| 0a 09 09 4d 69 63 68 61 | 65 6c 20 47 72 65 69 6d |...Micha|el Greim|
|00003bb0| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 6e 73 74 72 69 6e 67 73 | 2f 63 6f 6e 66 69 67 2e |nstrings|/config.|
|00003c10| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003c70| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00003c80| 20 20 20 35 33 31 35 20 | 20 34 34 35 30 35 32 33 | 5315 | 4450523|
|00003c90| 33 33 34 20 20 20 37 33 | 35 31 00 20 00 00 00 00 |334 73|51. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 2f 2a 0a 20 2a 20 54 68 | 69 73 20 66 69 6c 65 20 |/*. * Th|is file |
|00003e10| 69 73 20 75 73 65 64 20 | 77 69 74 68 69 6e 20 73 |is used |within s|
|00003e20| 74 72 69 6e 67 73 2e 0a | 20 2a 20 59 6f 75 20 63 |trings..| * You c|
|00003e30| 61 6e 20 61 64 64 20 73 | 70 65 63 69 66 69 63 20 |an add s|pecific |
|00003e40| 64 65 66 69 6e 65 73 20 | 66 6f 72 20 61 20 6d 61 |defines |for a ma|
|00003e50| 63 68 69 6e 65 20 62 65 | 6c 6f 77 2e 20 44 65 66 |chine be|low. Def|
|00003e60| 69 6e 65 20 6e 65 69 74 | 68 65 72 0a 20 2a 20 53 |ine neit|her. * S|
|00003e70| 41 46 45 54 59 5f 46 49 | 52 53 54 20 6e 6f 72 20 |AFETY_FI|RST nor |
|00003e80| 55 53 45 5f 55 53 45 52 | 5f 44 45 46 49 4e 45 53 |USE_USER|_DEFINES|
|00003e90| 0a 20 2a 20 44 65 66 69 | 6e 65 73 20 66 6f 72 20 |. * Defi|nes for |
|00003ea0| 79 6f 75 72 20 63 75 72 | 72 65 6e 74 20 6d 61 63 |your cur|rent mac|
|00003eb0| 68 69 6e 65 20 73 68 6f | 75 6c 64 20 67 6f 20 69 |hine sho|uld go i|
|00003ec0| 6e 20 74 75 6e 65 2e 68 | 2e 20 44 65 66 69 6e 65 |n tune.h|. Define|
|00003ed0| 0a 20 2a 20 55 53 45 5f | 55 53 45 52 5f 44 45 46 |. * USE_|USER_DEF|
|00003ee0| 49 4e 45 53 2e 0a 20 2a | 0a 20 2a 20 73 63 63 73 |INES.. *|. * sccs|
|00003ef0| 69 64 20 3a 20 40 28 23 | 29 20 20 63 6f 6e 66 69 |id : @(#|) confi|
|00003f00| 67 2e 68 20 20 28 76 36 | 2e 35 20 35 2f 32 32 2f |g.h (v6|.5 5/22/|
|00003f10| 38 39 29 0a 20 2a 0a 20 | 2a 20 46 4f 55 4e 44 20 |89). *. |* FOUND |
|00003f20| 77 69 6c 6c 20 63 6f 6e | 74 61 69 6e 20 61 20 73 |will con|tain a s|
|00003f30| 74 72 69 6e 67 20 74 65 | 6c 6c 69 6e 67 20 77 68 |tring te|lling wh|
|00003f40| 61 74 20 64 65 66 69 6e | 65 73 20 68 61 76 65 20 |at defin|es have |
|00003f50| 62 65 65 6e 20 75 73 65 | 64 2e 0a 20 2a 2f 0a 0a |been use|d.. */..|
|00003f60| 23 20 69 66 6e 64 65 66 | 20 53 41 46 45 54 59 5f |# ifndef| SAFETY_|
|00003f70| 46 49 52 53 54 0a 23 09 | 69 66 64 65 66 20 55 53 |FIRST.#.|ifdef US|
|00003f80| 45 5f 55 53 45 52 5f 44 | 45 46 49 4e 45 53 0a 23 |E_USER_D|EFINES.#|
|00003f90| 09 09 64 65 66 69 6e 65 | 20 46 4f 55 4e 44 09 09 |..define| FOUND..|
|00003fa0| 22 55 73 69 6e 67 20 74 | 68 65 20 75 73 65 72 20 |"Using t|he user |
|00003fb0| 64 65 66 69 6e 65 73 2e | 22 0a 23 09 09 69 6e 63 |defines.|".#..inc|
|00003fc0| 6c 75 64 65 20 22 74 75 | 6e 65 2e 68 22 0a 23 09 |lude "tu|ne.h".#.|
|00003fd0| 65 6c 73 65 20 55 53 45 | 5f 55 53 45 52 5f 44 45 |else USE|_USER_DE|
|00003fe0| 46 49 4e 45 53 0a 09 09 | 2f 2a 0a 09 09 20 2a 20 |FINES...|/*... * |
|00003ff0| 41 64 64 20 28 61 6c 6c | 29 20 64 65 66 69 6e 65 |Add (all|) define|
|00004000| 73 20 66 6f 72 20 79 6f | 75 72 20 6d 61 63 68 69 |s for yo|ur machi|
|00004010| 6e 65 20 68 65 72 65 2e | 0a 09 09 20 2a 2f 0a 23 |ne here.|... */.#|
|00004020| 09 09 69 66 20 64 65 66 | 69 6e 65 64 28 6e 73 63 |..if def|ined(nsc|
|00004030| 33 32 30 30 30 29 20 26 | 26 20 64 65 66 69 6e 65 |32000) &|& define|
|00004040| 64 28 73 69 6e 69 78 29 | 20 26 26 20 64 65 66 69 |d(sinix)| && defi|
|00004050| 6e 65 64 28 6e 73 31 36 | 30 30 30 29 0a 23 09 09 |ned(ns16|000).#..|
|00004060| 09 64 65 66 69 6e 65 20 | 46 4f 55 4e 44 09 09 09 |.define |FOUND...|
|00004070| 09 09 09 22 55 73 69 6e | 67 20 64 65 66 61 75 6c |..."Usin|g defaul|
|00004080| 74 73 20 66 6f 72 20 73 | 69 6e 69 78 20 4d 58 32 |ts for s|inix MX2|
|00004090| 2e 22 0a 23 09 09 09 64 | 65 66 69 6e 65 20 46 43 |.".#...d|efine FC|
|000040a0| 4e 54 4c 09 09 09 09 09 | 09 32 0a 23 09 09 09 64 |NTL.....|.2.#...d|
|000040b0| 65 66 69 6e 65 20 46 41 | 53 54 5f 43 4f 50 59 28 |efine FA|ST_COPY(|
|000040c0| 66 72 6f 6d 2c 74 6f 2c | 63 6f 75 6e 74 29 09 09 |from,to,|count)..|
|000040d0| 62 63 6f 70 79 28 66 72 | 6f 6d 2c 74 6f 2c 63 6f |bcopy(fr|om,to,co|
|000040e0| 75 6e 74 29 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |unt).#..|.define |
|000040f0| 57 48 41 54 5f 4c 53 45 | 45 4b 09 09 09 09 09 31 |WHAT_LSE|EK.....1|
|00004100| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 49 5f 53 50 |.#...def|ine I_SP|
|00004110| 45 43 49 41 4c 0a 23 09 | 09 09 64 65 66 69 6e 65 |ECIAL.#.|..define|
|00004120| 20 49 4e 5f 42 55 46 5f | 4c 45 4e 09 09 09 09 09 | IN_BUF_|LEN.....|
|00004130| 31 30 32 34 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |1024.#..|.define |
|00004140| 4f 55 54 5f 42 55 46 5f | 4c 45 4e 09 09 09 09 09 |OUT_BUF_|LEN.....|
|00004150| 38 31 39 32 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |8192.#..|.define |
|00004160| 54 48 52 45 53 48 4f 4c | 44 09 09 09 09 09 31 30 |THRESHOL|D.....10|
|00004170| 32 34 0a 23 09 09 65 6e | 64 69 66 20 2f 2a 20 6e |24.#..en|dif /* n|
|00004180| 73 63 33 32 30 30 30 20 | 26 26 20 73 69 6e 69 78 |sc32000 |&& sinix|
|00004190| 20 26 26 20 6e 73 31 36 | 30 30 30 20 2a 2f 0a 23 | && ns16|000 */.#|
|000041a0| 09 09 69 66 20 64 65 66 | 69 6e 65 64 28 75 6e 69 |..if def|ined(uni|
|000041b0| 78 29 20 26 26 20 64 65 | 66 69 6e 65 64 28 76 61 |x) && de|fined(va|
|000041c0| 78 29 20 26 26 20 21 64 | 65 66 69 6e 65 64 28 75 |x) && !d|efined(u|
|000041d0| 6c 74 72 69 78 29 0a 23 | 09 09 09 64 65 66 69 6e |ltrix).#|...defin|
|000041e0| 65 20 46 4f 55 4e 44 09 | 09 09 09 09 09 22 55 73 |e FOUND.|....."Us|
|000041f0| 69 6e 67 20 64 65 66 61 | 75 6c 74 73 20 66 6f 72 |ing defa|ults for|
|00004200| 20 56 41 58 20 28 42 53 | 44 3f 29 2e 22 0a 23 09 | VAX (BS|D?).".#.|
|00004210| 09 09 64 65 66 69 6e 65 | 20 46 43 4e 54 4c 09 09 |..define| FCNTL..|
|00004220| 09 09 09 09 31 0a 23 09 | 09 09 64 65 66 69 6e 65 |....1.#.|..define|
|00004230| 20 46 41 53 54 5f 43 4f | 50 59 28 66 72 6f 6d 2c | FAST_CO|PY(from,|
|00004240| 74 6f 2c 63 6f 75 6e 74 | 29 09 09 62 63 6f 70 79 |to,count|)..bcopy|
|00004250| 28 66 72 6f 6d 2c 74 6f | 2c 63 6f 75 6e 74 29 0a |(from,to|,count).|
|00004260| 23 09 09 09 64 65 66 69 | 6e 65 20 57 48 41 54 5f |#...defi|ne WHAT_|
|00004270| 4c 53 45 45 4b 09 09 09 | 09 09 31 0a 23 09 09 09 |LSEEK...|..1.#...|
|00004280| 64 65 66 69 6e 65 20 49 | 5f 53 50 45 43 49 41 4c |define I|_SPECIAL|
|00004290| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 49 4e 5f 42 |.#...def|ine IN_B|
|000042a0| 55 46 5f 4c 45 4e 09 09 | 09 09 09 34 30 39 36 0a |UF_LEN..|...4096.|
|000042b0| 23 09 09 09 64 65 66 69 | 6e 65 20 4f 55 54 5f 42 |#...defi|ne OUT_B|
|000042c0| 55 46 5f 4c 45 4e 09 09 | 09 09 09 31 36 33 38 34 |UF_LEN..|...16384|
|000042d0| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 54 48 52 45 |.#...def|ine THRE|
|000042e0| 53 48 4f 4c 44 09 09 09 | 09 09 34 30 39 36 0a 23 |SHOLD...|..4096.#|
|000042f0| 09 09 65 6e 64 69 66 20 | 2f 2a 20 76 61 78 20 2a |..endif |/* vax *|
|00004300| 2f 0a 23 09 09 69 66 20 | 64 65 66 69 6e 65 64 28 |/.#..if |defined(|
|00004310| 75 6e 69 78 29 20 26 26 | 20 64 65 66 69 6e 65 64 |unix) &&| defined|
|00004320| 28 73 75 6e 29 20 26 26 | 20 64 65 66 69 6e 65 64 |(sun) &&| defined|
|00004330| 28 6d 63 36 38 30 32 30 | 29 0a 23 09 09 09 64 65 |(mc68020|).#...de|
|00004340| 66 69 6e 65 20 46 4f 55 | 4e 44 09 09 09 09 09 09 |fine FOU|ND......|
|00004350| 22 55 73 69 6e 67 20 64 | 65 66 61 75 6c 74 73 20 |"Using d|efaults |
|00004360| 66 6f 72 20 53 55 4e 20 | 28 53 55 4e 20 4f 53 20 |for SUN |(SUN OS |
|00004370| 33 2e 2a 29 2e 22 0a 23 | 09 09 09 64 65 66 69 6e |3.*).".#|...defin|
|00004380| 65 20 46 43 4e 54 4c 09 | 09 09 09 09 09 31 0a 23 |e FCNTL.|.....1.#|
|00004390| 09 09 09 64 65 66 69 6e | 65 20 46 41 53 54 5f 43 |...defin|e FAST_C|
|000043a0| 4f 50 59 28 66 72 6f 6d | 2c 74 6f 2c 63 6f 75 6e |OPY(from|,to,coun|
|000043b0| 74 29 09 09 62 63 6f 70 | 79 28 66 72 6f 6d 2c 74 |t)..bcop|y(from,t|
|000043c0| 6f 2c 63 6f 75 6e 74 29 | 0a 23 09 09 09 64 65 66 |o,count)|.#...def|
|000043d0| 69 6e 65 20 57 48 41 54 | 5f 4c 53 45 45 4b 09 09 |ine WHAT|_LSEEK..|
|000043e0| 09 09 09 31 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |...1.#..|.define |
|000043f0| 49 5f 53 50 45 43 49 41 | 4c 0a 23 09 09 09 64 65 |I_SPECIA|L.#...de|
|00004400| 66 69 6e 65 20 49 4e 5f | 42 55 46 5f 4c 45 4e 09 |fine IN_|BUF_LEN.|
|00004410| 09 09 09 09 34 30 39 36 | 0a 23 09 09 09 64 65 66 |....4096|.#...def|
|00004420| 69 6e 65 20 4f 55 54 5f | 42 55 46 5f 4c 45 4e 09 |ine OUT_|BUF_LEN.|
|00004430| 09 09 09 09 31 36 33 38 | 34 0a 23 09 09 09 64 65 |....1638|4.#...de|
|00004440| 66 69 6e 65 20 54 48 52 | 45 53 48 4f 4c 44 09 09 |fine THR|ESHOLD..|
|00004450| 09 09 09 34 30 39 36 0a | 23 09 09 65 6e 64 69 66 |...4096.|#..endif|
|00004460| 20 2f 2a 20 73 75 6e 20 | 2a 2f 0a 23 09 09 69 66 | /* sun |*/.#..if|
|00004470| 20 64 65 66 69 6e 65 64 | 28 75 6e 69 78 29 20 26 | defined|(unix) &|
|00004480| 26 20 64 65 66 69 6e 65 | 64 28 75 6c 74 72 69 78 |& define|d(ultrix|
|00004490| 29 20 26 26 20 64 65 66 | 69 6e 65 64 28 62 73 64 |) && def|ined(bsd|
|000044a0| 34 5f 32 29 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |4_2).#..|.define |
|000044b0| 46 4f 55 4e 44 09 09 09 | 09 09 09 22 55 73 69 6e |FOUND...|..."Usin|
|000044c0| 67 20 64 65 66 61 75 6c | 74 73 20 66 6f 72 20 56 |g defaul|ts for V|
|000044d0| 41 58 20 28 55 4c 54 52 | 49 58 20 32 2e 30 29 22 |AX (ULTR|IX 2.0)"|
|000044e0| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 46 43 4e 54 |.#...def|ine FCNT|
|000044f0| 4c 09 09 09 09 09 09 31 | 0a 23 09 09 09 64 65 66 |L......1|.#...def|
|00004500| 69 6e 65 20 46 41 53 54 | 5f 43 4f 50 59 28 66 72 |ine FAST|_COPY(fr|
|00004510| 6f 6d 2c 74 6f 2c 63 6f | 75 6e 74 29 09 09 62 63 |om,to,co|unt)..bc|
|00004520| 6f 70 79 28 66 72 6f 6d | 2c 74 6f 2c 63 6f 75 6e |opy(from|,to,coun|
|00004530| 74 29 0a 23 09 09 09 64 | 65 66 69 6e 65 20 57 48 |t).#...d|efine WH|
|00004540| 41 54 5f 4c 53 45 45 4b | 09 09 09 09 09 31 0a 23 |AT_LSEEK|.....1.#|
|00004550| 09 09 09 64 65 66 69 6e | 65 20 49 5f 53 50 45 43 |...defin|e I_SPEC|
|00004560| 49 41 4c 0a 23 09 09 09 | 64 65 66 69 6e 65 20 49 |IAL.#...|define I|
|00004570| 4e 5f 42 55 46 5f 4c 45 | 4e 09 09 09 09 09 34 30 |N_BUF_LE|N.....40|
|00004580| 39 36 0a 23 09 09 09 64 | 65 66 69 6e 65 20 4f 55 |96.#...d|efine OU|
|00004590| 54 5f 42 55 46 5f 4c 45 | 4e 09 09 09 09 09 31 36 |T_BUF_LE|N.....16|
|000045a0| 33 38 34 0a 23 09 09 09 | 64 65 66 69 6e 65 20 54 |384.#...|define T|
|000045b0| 48 52 45 53 48 4f 4c 44 | 09 09 09 09 09 34 30 39 |HRESHOLD|.....409|
|000045c0| 36 0a 23 09 09 65 6e 64 | 69 66 20 2f 2a 20 76 61 |6.#..end|if /* va|
|000045d0| 78 20 75 6c 74 72 69 78 | 20 2a 2f 0a 23 09 09 69 |x ultrix| */.#..i|
|000045e0| 66 20 64 65 66 69 6e 65 | 64 28 76 6d 73 29 20 26 |f define|d(vms) &|
|000045f0| 26 20 64 65 66 69 6e 65 | 64 28 76 61 78 29 0a 23 |& define|d(vax).#|
|00004600| 09 09 09 64 65 66 69 6e | 65 20 46 4f 55 4e 44 09 |...defin|e FOUND.|
|00004610| 09 09 09 09 09 22 55 73 | 69 6e 67 20 64 65 66 61 |....."Us|ing defa|
|00004620| 75 6c 74 73 20 66 6f 72 | 20 56 41 58 20 28 56 4d |ults for| VAX (VM|
|00004630| 53 29 22 0a 2f 2a 20 64 | 6f 6e 27 74 20 64 65 66 |S)"./* d|on't def|
|00004640| 69 6e 65 20 46 43 4e 54 | 4c 2c 20 4f 5f 52 44 4f |ine FCNT|L, O_RDO|
|00004650| 4e 4c 59 20 66 6c 61 67 | 20 69 73 20 69 6e 20 66 |NLY flag| is in f|
|00004660| 69 6c 65 2e 68 20 61 6e | 64 20 69 73 20 30 20 2a |ile.h an|d is 0 *|
|00004670| 2f 0a 23 09 09 09 64 65 | 66 69 6e 65 20 46 41 53 |/.#...de|fine FAS|
|00004680| 54 5f 43 4f 50 59 28 66 | 72 6f 6d 2c 74 6f 2c 63 |T_COPY(f|rom,to,c|
|00004690| 6f 75 6e 74 29 09 09 6d | 65 6d 63 70 79 28 74 6f |ount)..m|emcpy(to|
|000046a0| 2c 66 72 6f 6d 2c 63 6f | 75 6e 74 29 0a 23 09 09 |,from,co|unt).#..|
|000046b0| 09 64 65 66 69 6e 65 20 | 57 48 41 54 5f 4c 53 45 |.define |WHAT_LSE|
|000046c0| 45 4b 09 09 09 09 09 32 | 0a 2f 2a 09 09 09 64 65 |EK.....2|./*...de|
|000046d0| 66 69 6e 65 20 49 5f 53 | 50 45 43 49 41 4c 2a 2f |fine I_S|PECIAL*/|
|000046e0| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 49 4e 5f 42 |.#...def|ine IN_B|
|000046f0| 55 46 5f 4c 45 4e 09 09 | 09 09 09 34 30 39 36 0a |UF_LEN..|...4096.|
|00004700| 23 09 09 09 64 65 66 69 | 6e 65 20 4f 55 54 5f 42 |#...defi|ne OUT_B|
|00004710| 55 46 5f 4c 45 4e 09 09 | 09 09 09 31 36 33 38 34 |UF_LEN..|...16384|
|00004720| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 54 48 52 45 |.#...def|ine THRE|
|00004730| 53 48 4f 4c 44 09 09 09 | 09 09 34 30 39 36 0a 23 |SHOLD...|..4096.#|
|00004740| 09 09 65 6e 64 69 66 20 | 2f 2a 20 76 61 78 20 75 |..endif |/* vax u|
|00004750| 6c 74 72 69 78 20 2a 2f | 0a 23 09 65 6e 64 69 66 |ltrix */|.#.endif|
|00004760| 20 55 53 45 5f 55 53 45 | 52 5f 44 45 46 49 4e 45 | USE_USE|R_DEFINE|
|00004770| 53 0a 23 20 65 6e 64 69 | 66 20 53 41 46 45 54 59 |S.# endi|f SAFETY|
|00004780| 5f 46 49 52 53 54 0a 0a | 23 20 69 66 6e 64 65 66 |_FIRST..|# ifndef|
|00004790| 20 46 4f 55 4e 44 0a 2f | 2a 0a 20 2a 20 57 65 20 | FOUND./|*. * We |
|000047a0| 68 61 76 65 20 74 6f 20 | 75 73 65 20 74 68 65 20 |have to |use the |
|000047b0| 64 65 66 61 75 6c 74 73 | 2e 0a 20 2a 2f 0a 23 09 |defaults|.. */.#.|
|000047c0| 64 65 66 69 6e 65 20 46 | 4f 55 4e 44 09 09 09 09 |define F|OUND....|
|000047d0| 09 09 09 22 55 73 69 6e | 67 20 6d 69 6e 69 6d 61 |..."Usin|g minima|
|000047e0| 6c 20 64 65 66 61 75 6c | 74 73 2e 22 0a 2f 2a 20 |l defaul|ts."./* |
|000047f0| 64 6f 6e 74 09 64 65 66 | 69 6e 65 20 46 43 4e 54 |dont.def|ine FCNT|
|00004800| 4c 20 2a 2f 0a 2f 2a 20 | 46 41 53 54 5f 43 4f 50 |L */./* |FAST_COP|
|00004810| 59 20 77 69 6c 6c 20 62 | 65 20 61 20 72 65 61 6c |Y will b|e a real|
|00004820| 20 72 6f 75 74 69 6e 65 | 20 2a 2f 0a 23 09 64 65 | routine| */.#.de|
|00004830| 66 69 6e 65 20 57 48 41 | 54 5f 4c 53 45 45 4b 09 |fine WHA|T_LSEEK.|
|00004840| 09 09 09 09 09 31 0a 2f | 2a 20 64 6f 6e 27 74 20 |.....1./|* don't |
|00004850| 64 65 66 69 6e 65 20 49 | 5f 53 50 45 43 49 41 4c |define I|_SPECIAL|
|00004860| 20 2a 2f 0a 23 09 64 65 | 66 69 6e 65 20 49 4e 5f | */.#.de|fine IN_|
|00004870| 42 55 46 5f 4c 45 4e 09 | 09 09 09 09 09 31 30 32 |BUF_LEN.|.....102|
|00004880| 34 0a 23 09 64 65 66 69 | 6e 65 20 4f 55 54 5f 42 |4.#.defi|ne OUT_B|
|00004890| 55 46 5f 4c 45 4e 09 09 | 09 09 09 09 38 31 39 32 |UF_LEN..|....8192|
|000048a0| 0a 23 09 64 65 66 69 6e | 65 20 54 48 52 45 53 48 |.#.defin|e THRESH|
|000048b0| 4f 4c 44 09 09 09 09 09 | 09 31 30 32 34 0a 0a 23 |OLD.....|.1024..#|
|000048c0| 20 65 6e 64 69 66 20 46 | 4f 55 4e 44 0a 76 0a 09 | endif F|OUND.v..|
|000048d0| 7c 20 20 20 20 20 20 20 | 20 20 2e 2e 2e 0a 09 7c || | .....||
|000048e0| 20 20 20 20 20 20 20 20 | 20 20 7c 0a 09 7c 20 20 | | |..| |
|000048f0| 20 20 20 20 20 20 20 20 | 7c 20 2d 0a 09 76 20 20 | || -..v |
|00004900| 20 20 20 20 20 20 20 20 | 76 0a 09 75 73 65 20 73 | |v..use s|
|00004910| 61 66 65 20 64 65 66 61 | 75 6c 74 73 0a 09 7c 0a |afe defa|ults..|.|
|00004920| 09 76 0a 09 63 6f 6e 74 | 69 6e 75 65 0a 0a 54 68 |.v..cont|inue..Th|
|00004930| 65 20 70 72 6f 67 72 61 | 6d 2c 20 6f 72 20 72 61 |e progra|m, or ra|
|00004940| 74 68 65 72 20 74 68 65 | 20 68 65 61 64 65 72 66 |ther the| headerf|
|00004950| 69 6c 65 73 20 6b 6e 6f | 77 20 61 62 6f 75 74 20 |iles kno|w about |
|00004960| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 61 |the foll|owing ma|
|00004970| 63 68 69 6e 65 73 3a 0a | 0a 2d 20 56 41 58 20 31 |chines:.|.- VAX 1|
|00004980| 31 2f 37 38 30 20 28 34 | 2e 33 20 42 53 44 29 20 |1/780 (4|.3 BSD) |
|00004990| 62 79 20 22 75 6e 69 78 | 22 20 61 6e 64 20 22 76 |by "unix|" and "v|
|000049a0| 61 78 22 20 61 6e 64 20 | 6e 6f 74 20 22 75 6c 74 |ax" and |not "ult|
|000049b0| 72 69 78 22 0a 2d 20 53 | 49 45 4d 45 4e 53 20 50 |rix".- S|IEMENS P|
|000049c0| 43 2d 4d 58 32 20 28 53 | 49 4e 49 58 20 76 32 2e |C-MX2 (S|INIX v2.|
|000049d0| 31 29 20 62 79 20 22 6e | 73 63 33 32 30 30 22 20 |1) by "n|sc3200" |
|000049e0| 61 6e 64 20 22 73 69 6e | 69 78 22 20 61 6e 64 20 |and "sin|ix" and |
|000049f0| 22 6e 73 31 36 30 30 30 | 22 0a 2d 20 53 75 6e 20 |"ns16000|".- Sun |
|00004a00| 6e 73 74 72 69 6e 67 73 | 2f 6c 69 6d 69 74 73 2e |nstrings|/limits.|
|00004a10| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004a70| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00004a80| 20 20 20 32 32 33 37 20 | 20 34 34 35 30 35 32 33 | 2237 | 4450523|
|00004a90| 33 33 35 20 20 20 37 34 | 30 31 00 20 00 00 00 00 |335 74|01. ....|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 73 74 61 74 69 63 20 63 | 68 61 72 20 2a 20 73 63 |static c|har * sc|
|00004c10| 63 73 69 64 20 3d 20 22 | 40 28 23 29 20 20 6c 69 |csid = "|@(#) li|
|00004c20| 6d 69 74 73 2e 63 20 20 | 28 76 36 2e 32 20 35 2f |mits.c |(v6.2 5/|
|00004c30| 31 39 2f 38 39 29 22 3b | 0a 0a 23 20 69 6e 63 6c |19/89)";|..# incl|
|00004c40| 75 64 65 20 22 73 74 72 | 69 6e 67 73 2e 68 22 0a |ude "str|ings.h".|
|00004c50| 0a 23 20 69 66 64 65 66 | 20 49 5f 53 50 45 43 49 |.# ifdef| I_SPECI|
|00004c60| 41 4c 0a 0a 23 09 69 66 | 64 65 66 20 73 75 6e 0a |AL..#.if|def sun.|
|00004c70| 23 09 09 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |#..inclu|de <sys/|
|00004c80| 65 78 65 63 2e 68 3e 0a | 23 09 65 6e 64 69 66 20 |exec.h>.|#.endif |
|00004c90| 73 75 6e 0a 23 09 69 6e | 63 6c 75 64 65 20 3c 61 |sun.#.in|clude <a|
|00004ca0| 2e 6f 75 74 2e 68 3e 0a | 0a 67 65 74 5f 6c 69 6d |.out.h>.|.get_lim|
|00004cb0| 69 74 73 20 28 66 64 2c | 20 66 69 72 73 74 2c 20 |its (fd,| first, |
|00004cc0| 6c 61 73 74 29 0a 69 6e | 74 20 66 64 3b 0a 4c 53 |last).in|t fd;.LS|
|00004cd0| 45 45 4b 5f 54 59 50 45 | 20 2a 20 66 69 72 73 74 |EEK_TYPE| * first|
|00004ce0| 2c 20 2a 20 6c 61 73 74 | 3b 0a 2f 2a 0a 20 2a 20 |, * last|;./*. * |
|00004cf0| 48 61 76 65 20 61 20 6c | 6f 6f 6b 20 69 6e 74 6f |Have a l|ook into|
|00004d00| 20 74 68 65 20 69 6e 70 | 75 74 20 66 69 6c 65 20 | the inp|ut file |
|00004d10| 6f 70 65 6e 20 75 6e 64 | 65 72 20 66 64 2e 0a 20 |open und|er fd.. |
|00004d20| 2a 20 49 66 20 77 65 20 | 74 68 69 6e 6b 20 69 74 |* If we |think it|
|00004d30| 20 69 73 20 61 6e 20 6f | 62 6a 65 63 74 20 66 69 | is an o|bject fi|
|00004d40| 6c 65 2c 20 74 68 61 6e | 20 67 65 74 20 74 68 65 |le, than| get the|
|00004d50| 20 73 74 61 72 74 20 61 | 6e 64 0a 20 2a 20 73 69 | start a|nd. * si|
|00004d60| 7a 65 20 6f 66 20 69 6e | 69 74 69 61 6c 69 7a 65 |ze of in|itialize|
|00004d70| 64 20 64 61 74 61 20 61 | 6e 64 20 73 65 74 0a 20 |d data a|nd set. |
|00004d80| 2a 20 2a 66 69 72 73 74 | 20 3a 20 61 64 64 72 65 |* *first| : addre|
|00004d90| 73 73 20 77 68 65 72 65 | 20 65 78 61 6d 69 6e 61 |ss where| examina|
|00004da0| 74 69 6f 6e 20 6f 66 20 | 66 69 6c 65 20 77 69 6c |tion of |file wil|
|00004db0| 6c 20 73 74 61 72 74 0a | 20 2a 20 2a 6c 61 73 74 |l start.| * *last|
|00004dc0| 20 20 3a 20 66 69 72 73 | 74 20 61 64 64 72 65 73 | : firs|t addres|
|00004dd0| 73 20 77 68 69 63 68 20 | 77 69 6c 6c 20 6e 6f 74 |s which |will not|
|00004de0| 20 62 65 20 65 78 61 6d | 69 6e 65 64 2e 0a 20 2a | be exam|ined.. *|
|00004df0| 2f 0a 7b 0a 09 72 65 67 | 69 73 74 65 72 20 69 6e |/.{..reg|ister in|
|00004e00| 74 20 69 3b 0a 09 73 74 | 72 75 63 74 20 65 78 65 |t i;..st|ruct exe|
|00004e10| 63 20 65 3b 0a 09 4c 53 | 45 45 4b 5f 54 59 50 45 |c e;..LS|EEK_TYPE|
|00004e20| 20 6c 3b 0a 0a 09 2a 66 | 69 72 73 74 20 3d 20 28 | l;...*f|irst = (|
|00004e30| 4c 53 45 45 4b 5f 54 59 | 50 45 29 30 3b 0a 09 2a |LSEEK_TY|PE)0;..*|
|00004e40| 6c 61 73 74 20 3d 20 28 | 4c 53 45 45 4b 5f 54 59 |last = (|LSEEK_TY|
|00004e50| 50 45 29 28 2d 31 29 3b | 0a 09 69 66 20 28 6c 73 |PE)(-1);|..if (ls|
|00004e60| 65 65 6b 20 28 66 64 2c | 20 28 4c 53 45 45 4b 5f |eek (fd,| (LSEEK_|
|00004e70| 54 59 50 45 29 30 2c 20 | 30 29 20 21 3d 20 28 4c |TYPE)0, |0) != (L|
|00004e80| 53 45 45 4b 5f 54 59 50 | 45 29 30 29 20 7b 0a 23 |SEEK_TYP|E)0) {.#|
|00004e90| 20 69 66 64 65 66 20 44 | 45 42 55 47 0a 09 09 66 | ifdef D|EBUG...f|
|00004ea0| 70 72 69 6e 74 66 20 28 | 70 72 6f 74 2c 20 22 49 |printf (|prot, "I|
|00004eb0| 6e 70 75 74 20 6e 6f 74 | 20 73 65 65 6b 61 62 6c |nput not| seekabl|
|00004ec0| 65 5c 6e 22 29 3b 0a 23 | 20 65 6e 64 69 66 0a 09 |e\n");.#| endif..|
|00004ed0| 09 72 65 74 75 72 6e 3b | 0a 09 7d 0a 09 69 20 3d |.return;|..}..i =|
|00004ee0| 20 72 65 61 64 20 28 66 | 64 2c 20 28 63 68 61 72 | read (f|d, (char|
|00004ef0| 2a 29 28 26 65 29 2c 20 | 73 69 7a 65 6f 66 20 28 |*)(&e), |sizeof (|
|00004f00| 65 29 29 3b 0a 09 69 66 | 20 28 69 20 21 3d 20 73 |e));..if| (i != s|
|00004f10| 69 7a 65 6f 66 28 65 29 | 29 20 7b 0a 23 20 69 66 |izeof(e)|) {.# if|
|00004f20| 64 65 66 20 44 45 42 55 | 47 0a 09 09 66 70 72 69 |def DEBU|G...fpri|
|00004f30| 6e 74 66 20 28 70 72 6f | 74 2c 20 22 66 69 6c 65 |ntf (pro|t, "file|
|00004f40| 20 74 6f 6f 20 73 6d 61 | 6c 6c 5c 6e 22 29 3b 0a | too sma|ll\n");.|
|00004f50| 23 20 65 6e 64 69 66 0a | 09 09 72 65 74 75 72 6e |# endif.|..return|
|00004f60| 3b 0a 09 7d 0a 09 69 66 | 20 28 4e 5f 42 41 44 4d |;..}..if| (N_BADM|
|00004f70| 41 47 28 65 29 29 20 7b | 0a 23 20 69 66 64 65 66 |AG(e)) {|.# ifdef|
|00004f80| 20 44 45 42 55 47 0a 09 | 09 66 70 72 69 6e 74 66 | DEBUG..|.fprintf|
|00004f90| 20 28 70 72 6f 74 2c 20 | 22 62 61 64 20 6d 61 67 | (prot, |"bad mag|
|00004fa0| 69 63 5c 6e 22 29 3b 0a | 23 20 65 6e 64 69 66 0a |ic\n");.|# endif.|
|00004fb0| 09 09 72 65 74 75 72 6e | 3b 0a 09 7d 0a 09 6c 20 |..return|;..}..l |
|00004fc0| 3d 20 4e 5f 54 58 54 4f | 46 46 28 65 29 20 2b 20 |= N_TXTO|FF(e) + |
|00004fd0| 65 2e 61 5f 74 65 78 74 | 3b 0a 23 20 69 66 64 65 |e.a_text|;.# ifde|
|00004fe0| 66 20 44 45 42 55 47 0a | 09 66 70 72 69 6e 74 66 |f DEBUG.|.fprintf|
|00004ff0| 20 28 70 72 6f 74 2c 20 | 22 73 74 61 72 74 20 6f | (prot, |"start o|
|00005000| 66 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 20 64 61 |f initia|lized da|
|00005010| 74 61 20 61 74 20 25 6c | 64 5c 6e 22 2c 20 28 6c |ta at %l|d\n", (l|
|00005020| 6f 6e 67 29 69 29 3b 0a | 09 66 70 72 69 6e 74 66 |ong)i);.|.fprintf|
|00005030| 20 28 70 72 6f 74 2c 20 | 22 6c 65 6e 67 74 68 20 | (prot, |"length |
|00005040| 3d 20 25 31 6c 64 5c 6e | 22 2c 20 28 6c 6f 6e 67 |= %1ld\n|", (long|
|00005050| 29 28 65 2e 61 5f 64 61 | 74 61 29 29 3b 0a 23 20 |)(e.a_da|ta));.# |
|00005060| 65 6e 64 69 66 0a 09 2a | 66 69 72 73 74 20 3d 20 |endif..*|first = |
|00005070| 6c 3b 0a 09 2a 6c 61 73 | 74 20 3d 20 6c 20 2b 20 |l;..*las|t = l + |
|00005080| 65 2e 61 5f 64 61 74 61 | 3b 0a 7d 0a 0a 23 20 65 |e.a_data|;.}..# e|
|00005090| 6e 64 69 66 20 49 5f 53 | 50 45 43 49 41 4c 0a 64 |ndif I_S|PECIAL.d|
|000050a0| 34 5f 32 29 0a 23 09 09 | 09 64 65 66 69 6e 65 20 |4_2).#..|.define |
|000050b0| 46 4f 55 4e 44 09 09 09 | 09 09 09 22 55 73 69 6e |FOUND...|..."Usin|
|000050c0| 67 20 64 65 66 61 75 6c | 74 73 20 66 6f 72 20 56 |g defaul|ts for V|
|000050d0| 41 58 20 28 55 4c 54 52 | 49 58 20 32 2e 30 29 22 |AX (ULTR|IX 2.0)"|
|000050e0| 0a 23 09 09 09 64 65 66 | 69 6e 65 20 46 43 4e 54 |.#...def|ine FCNT|
|000050f0| 4c 09 09 09 09 09 09 31 | 0a 23 09 09 09 64 65 66 |L......1|.#...def|
|00005100| 69 6e 65 20 46 41 53 54 | 5f 43 4f 50 59 28 66 72 |ine FAST|_COPY(fr|
|00005110| 6f 6d 2c 74 6f 2c 63 6f | 75 6e 74 29 09 09 62 63 |om,to,co|unt)..bc|
|00005120| 6f 70 79 28 66 72 6f 6d | 2c 74 6f 2c 63 6f 75 6e |opy(from|,to,coun|
|00005130| 74 29 0a 23 09 09 09 64 | 65 66 69 6e 65 20 57 48 |t).#...d|efine WH|
|00005140| 41 54 5f 4c 53 45 45 4b | 09 09 09 09 09 31 0a 23 |AT_LSEEK|.....1.#|
|00005150| 09 09 09 64 65 66 69 6e | 65 20 49 5f 53 50 45 43 |...defin|e I_SPEC|
|00005160| 49 41 4c 0a 23 09 09 09 | 64 65 66 69 6e 65 20 49 |IAL.#...|define I|
|00005170| 4e 5f 42 55 46 5f 4c 45 | 4e 09 09 09 09 09 34 30 |N_BUF_LE|N.....40|
|00005180| 39 36 0a 23 09 09 09 64 | 65 66 69 6e 65 20 4f 55 |96.#...d|efine OU|
|00005190| 54 5f 42 55 46 5f 4c 45 | 4e 09 09 09 09 09 31 36 |T_BUF_LE|N.....16|
|000051a0| 33 38 34 0a 23 09 09 09 | 64 65 66 69 6e 65 20 54 |384.#...|define T|
|000051b0| 48 52 45 53 48 4f 4c 44 | 09 09 09 09 09 34 30 39 |HRESHOLD|.....409|
|000051c0| 36 0a 23 09 09 65 6e 64 | 69 66 20 2f 2a 20 76 61 |6.#..end|if /* va|
|000051d0| 78 20 75 6c 74 72 69 78 | 20 2a 2f 0a 23 09 09 69 |x ultrix| */.#..i|
|000051e0| 66 20 64 65 66 69 6e 65 | 64 28 76 6d 73 29 20 26 |f define|d(vms) &|
|000051f0| 26 20 64 65 66 69 6e 65 | 64 28 76 61 78 29 0a 23 |& define|d(vax).#|
|00005200| 6e 73 74 72 69 6e 67 73 | 2f 6f 75 74 70 75 74 2e |nstrings|/output.|
|00005210| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005270| 34 33 20 00 20 20 20 20 | 20 30 20 00 20 20 20 20 |43 . | 0 . |
|00005280| 20 20 31 33 35 30 31 20 | 20 34 34 35 30 35 32 33 | 13501 | 4450523|
|00005290| 33 33 36 20 20 20 37 34 | 35 35 00 20 00 00 00 00 |336 74|55. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 73 74 61 74 69 63 20 63 | 68 61 72 20 2a 20 73 63 |static c|har * sc|
|00005410| 63 73 69 64 20 3d 20 22 | 40 28 23 29 20 20 6f 75 |csid = "|@(#) ou|
|00005420| 74 70 75 74 2e 63 20 20 | 28 76 36 2e 35 20 35 2f |tput.c |(v6.5 5/|
|00005430| 31 39 2f 38 39 29 22 3b | 0a 2f 2a 0a 20 2a 20 4f |19/89)";|./*. * O|
|00005440| 75 74 70 75 74 20 72 6f | 75 74 69 6e 65 73 20 66 |utput ro|utines f|
|00005450| 6f 72 20 27 73 74 72 69 | 6e 67 73 27 2e 0a 20 2a |or 'stri|ngs'.. *|
|00005460| 20 57 65 20 72 6f 6c 6c | 20 6f 75 72 20 6f 77 6e | We roll| our own|
|00005470| 20 68 65 72 65 2c 20 62 | 65 63 61 75 73 65 20 73 | here, b|ecause s|
|00005480| 74 64 69 6f 20 65 69 74 | 68 65 72 20 65 78 70 65 |tdio eit|her expe|
|00005490| 63 74 73 20 4e 55 4c 20 | 74 65 72 6d 69 6e 61 74 |cts NUL |terminat|
|000054a0| 65 64 0a 20 2a 20 73 74 | 72 69 6e 67 73 2c 20 77 |ed. * st|rings, w|
|000054b0| 68 69 63 68 20 77 65 20 | 64 6f 6e 27 74 20 68 61 |hich we |don't ha|
|000054c0| 76 65 2c 20 6f 72 20 74 | 65 73 74 73 20 66 6f 72 |ve, or t|ests for|
|000054d0| 20 62 75 66 66 65 72 20 | 6f 76 65 72 66 6c 6f 77 | buffer |overflow|
|000054e0| 20 61 74 20 65 61 63 68 | 0a 20 2a 20 63 68 61 72 | at each|. * char|
|000054f0| 61 63 74 65 72 2e 20 42 | 75 74 20 77 65 20 6b 6e |acter. B|ut we kn|
|00005500| 6f 77 20 68 6f 77 20 6d | 75 63 68 20 63 68 61 72 |ow how m|uch char|
|00005510| 61 63 74 65 72 73 20 77 | 69 6c 6c 20 62 65 20 61 |acters w|ill be a|
|00005520| 64 64 65 64 20 74 6f 20 | 74 68 65 0a 20 2a 20 6f |dded to |the. * o|
|00005530| 75 74 70 75 74 20 62 6c | 6f 63 6b 2c 20 73 6f 20 |utput bl|ock, so |
|00005540| 77 65 20 63 61 6e 20 6d | 61 6b 65 20 64 6f 20 77 |we can m|ake do w|
|00005550| 69 74 68 20 74 77 6f 20 | 6f 72 20 74 68 72 65 65 |ith two |or three|
|00005560| 20 74 65 73 74 73 20 70 | 65 72 20 73 65 71 75 65 | tests p|er seque|
|00005570| 6e 63 65 0a 20 2a 20 6f | 66 20 70 72 69 6e 74 61 |nce. * o|f printa|
|00005580| 62 6c 65 20 63 68 61 72 | 61 63 74 65 72 73 2e 0a |ble char|acters..|
|00005590| 20 2a 0a 20 2a 20 53 65 | 71 75 65 6e 63 65 73 20 | *. * Se|quences |
|000055a0| 61 72 65 20 73 74 75 66 | 66 65 64 20 69 6e 74 6f |are stuf|fed into|
|000055b0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 62 75 66 66 | the out|put buff|
|000055c0| 65 72 2c 20 65 76 65 6e | 20 74 65 6d 70 6f 72 61 |er, even| tempora|
|000055d0| 72 69 6c 79 20 77 68 65 | 6e 0a 20 2a 20 77 65 20 |rily whe|n. * we |
|000055e0| 63 6f 75 6c 64 20 6e 6f | 74 20 64 65 63 69 64 65 |could no|t decide|
|000055f0| 20 77 68 61 74 20 74 6f | 20 64 6f 20 77 69 74 68 | what to| do with|
|00005600| 20 74 68 65 6d 2c 20 79 | 65 74 20 68 61 64 20 74 | them, y|et had t|
|00005610| 6f 20 72 65 6d 65 6d 62 | 65 72 20 74 68 65 0a 20 |o rememb|er the. |
|00005620| 2a 20 63 68 61 72 61 63 | 74 65 72 73 2e 20 57 68 |* charac|ters. Wh|
|00005630| 65 6e 20 61 20 74 65 6d | 70 6f 72 61 72 79 20 73 |en a tem|porary s|
|00005640| 65 71 75 65 6e 63 65 20 | 69 73 20 6d 61 64 65 20 |equence |is made |
|00005650| 70 65 72 6d 61 6e 65 6e | 74 20 6f 72 20 61 0a 20 |permanen|t or a. |
|00005660| 2a 20 70 65 72 6d 61 6e | 65 6e 74 20 73 65 71 75 |* perman|ent sequ|
|00005670| 65 6e 63 65 20 61 64 64 | 65 64 2c 20 61 6e 64 20 |ence add|ed, and |
|00005680| 74 68 65 20 6e 65 77 20 | 6c 65 6e 67 74 68 20 6f |the new |length o|
|00005690| 66 20 64 61 74 61 20 69 | 6e 20 74 68 65 20 6f 75 |f data i|n the ou|
|000056a0| 74 70 75 74 0a 20 2a 20 | 62 75 66 66 65 72 20 65 |tput. * |buffer e|
|000056b0| 78 63 65 65 64 73 20 61 | 20 74 68 72 65 73 68 6f |xceeds a| thresho|
|000056c0| 6c 64 2c 20 69 74 20 69 | 73 20 6f 75 74 70 75 74 |ld, it i|s output|
|000056d0| 2e 0a 20 2a 20 49 66 20 | 74 68 65 20 62 75 66 66 |.. * If |the buff|
|000056e0| 65 72 20 6f 76 65 72 66 | 6c 6f 77 73 20 69 6e 20 |er overf|lows in |
|000056f0| 62 65 74 77 65 65 6e 20 | 69 74 20 69 73 20 65 78 |between |it is ex|
|00005700| 74 65 6e 64 65 64 20 77 | 69 74 68 20 61 20 63 61 |tended w|ith a ca|
|00005710| 6c 6c 20 74 6f 0a 20 2a | 20 72 65 61 6c 6c 6f 63 |ll to. *| realloc|
|00005720| 2e 20 54 68 69 73 20 72 | 61 72 65 6c 79 20 65 76 |. This r|arely ev|
|00005730| 65 72 20 68 61 70 70 65 | 6e 73 2c 20 62 75 74 20 |er happe|ns, but |
|00005740| 69 66 20 69 74 20 68 61 | 70 70 65 6e 73 2c 20 74 |if it ha|ppens, t|
|00005750| 68 65 6e 0a 20 2a 20 79 | 6f 75 20 77 69 6c 6c 20 |hen. * y|ou will |
|00005760| 72 61 74 68 65 72 20 68 | 61 76 65 20 73 74 72 69 |rather h|ave stri|
|00005770| 6e 67 73 20 74 6f 20 62 | 65 20 73 6c 6f 77 69 6e |ngs to b|e slowin|
|00005780| 67 20 64 6f 77 6e 20 74 | 68 61 6e 20 64 75 6d 70 |g down t|han dump|
|00005790| 20 63 6f 72 65 2e 0a 20 | 2a 2f 0a 0a 23 20 69 6e | core.. |*/..# in|
|000057a0| 63 6c 75 64 65 20 22 73 | 74 72 69 6e 67 73 2e 68 |clude "s|trings.h|
|000057b0| 22 0a 0a 2f 2a 0a 20 2a | 20 54 68 65 20 63 68 61 |"../*. *| The cha|
|000057c0| 72 61 63 74 65 72 73 20 | 69 6e 20 6f 75 74 5f 62 |racters |in out_b|
|000057d0| 75 66 20 75 6e 74 69 6c | 20 6e 75 6d 5f 6f 75 74 |uf until| num_out|
|000057e0| 5f 62 75 66 20 61 72 65 | 20 61 6c 72 65 61 64 79 |_buf are| already|
|000057f0| 20 61 63 63 65 70 74 65 | 64 2e 0a 20 2a 20 6c 65 | accepte|d.. * le|
|00005800| 76 65 6c 20 70 6f 69 6e | 74 73 20 61 74 20 74 68 |vel poin|ts at th|
|00005810| 65 20 65 6e 64 20 6f 66 | 20 61 6c 6c 20 63 68 61 |e end of| all cha|
|00005820| 72 61 63 74 65 72 73 20 | 69 6e 20 6f 75 74 5f 62 |racters |in out_b|
|00005830| 75 66 2c 20 65 76 65 6e | 20 74 68 65 0a 20 2a 20 |uf, even| the. * |
|00005840| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 73 61 76 65 |temporar|ily save|
|00005850| 64 20 6f 6e 65 73 2e 0a | 20 2a 20 73 61 76 65 64 |d ones..| * saved|
|00005860| 20 69 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | is the |number o|
|00005870| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 74 65 6d |f charac|ters tem|
|00005880| 70 6f 72 61 72 69 6c 79 | 20 73 61 76 65 64 2e 0a |porarily| saved..|
|00005890| 20 2a 20 4e 6f 74 65 20 | 74 68 61 74 20 6c 65 76 | * Note |that lev|
|000058a0| 65 6c 20 61 6e 64 20 73 | 61 76 65 64 20 61 72 65 |el and s|aved are|
|000058b0| 20 6e 6f 74 20 74 68 65 | 20 73 61 6d 65 2e 20 49 | not the| same. I|
|000058c0| 66 20 74 68 65 72 65 20 | 61 72 65 20 6e 75 6d 62 |f there |are numb|
|000058d0| 65 72 20 62 65 66 6f 72 | 65 0a 20 2a 20 74 68 65 |er befor|e. * the|
|000058e0| 20 73 65 71 75 65 6e 63 | 65 73 2c 20 74 68 65 6e | sequenc|es, then|
|000058f0| 20 62 75 66 2b 6e 75 6d | 5f 6f 75 74 5f 62 75 66 | buf+num|_out_buf|
|00005900| 2b 73 61 76 65 64 20 21 | 3d 20 6c 65 76 65 6c 20 |+saved !|= level |
|00005910| 21 21 0a 20 2a 20 4e 6f | 74 65 20 74 68 61 74 20 |!!. * No|te that |
|00005920| 73 6f 6d 65 74 69 6d 65 | 73 20 49 20 68 61 76 65 |sometime|s I have|
|00005930| 20 74 6f 20 63 6f 6d 70 | 75 74 65 20 74 68 65 20 | to comp|ute the |
|00005940| 6e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 61 63 |number o|f charac|
|00005950| 74 65 72 73 20 62 65 74 | 77 65 65 6e 0a 20 2a 20 |ters bet|ween. * |
|00005960| 6f 75 74 5f 62 75 66 20 | 61 6e 64 20 6c 65 76 65 |out_buf |and leve|
|00005970| 6c 2e 20 49 20 64 6f 20 | 74 68 69 73 20 62 79 20 |l. I do |this by |
|00005980| 73 75 62 74 72 61 63 74 | 69 6e 67 20 74 68 65 20 |subtract|ing the |
|00005990| 74 77 6f 20 70 6f 69 6e | 74 65 72 73 2e 20 49 20 |two poin|ters. I |
|000059a0| 61 73 73 75 6d 65 0a 20 | 2a 20 74 68 61 74 20 74 |assume. |* that t|
|000059b0| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 69 6e 74 |he resul|t is int|
|000059c0| 20 6f 72 20 63 6f 6e 76 | 65 72 74 69 62 6c 65 20 | or conv|ertible |
|000059d0| 74 6f 20 69 6e 74 2c 20 | 62 75 74 20 49 20 64 6f |to int, |but I do|
|000059e0| 6e 27 74 20 68 61 76 65 | 20 74 68 65 0a 20 2a 20 |n't have| the. * |
|000059f0| 61 75 74 68 6f 72 69 74 | 79 20 61 74 20 68 61 6e |authorit|y at han|
|00005a00| 64 20 74 6f 20 70 72 6f | 76 65 20 74 68 69 73 2e |d to pro|ve this.|
|00005a10| 0a 20 2a 2f 0a 43 48 41 | 52 5f 54 59 50 45 20 2a |. */.CHA|R_TYPE *|
|00005a20| 20 6f 75 74 5f 62 75 66 | 3b 0a 69 6e 74 20 6e 75 | out_buf|;.int nu|
|00005a30| 6d 5f 6f 75 74 5f 62 75 | 66 20 3d 20 30 3b 09 09 |m_out_bu|f = 0;..|
|00005a40| 09 09 2f 2a 20 6e 75 6d | 62 65 72 73 20 6f 66 20 |../* num|bers of |
|00005a50| 63 68 61 72 73 20 69 6e | 20 6f 75 74 5f 62 75 66 |chars in| out_buf|
|00005a60| 20 2a 2f 0a 43 48 41 52 | 5f 54 59 50 45 20 2a 20 | */.CHAR|_TYPE * |
|00005a70| 6c 65 76 65 6c 3b 0a 69 | 6e 74 20 62 75 66 5f 6c |level;.i|nt buf_l|
|00005a80| 65 6e 3b 0a 69 6e 74 20 | 73 61 76 65 64 20 3d 20 |en;.int |saved = |
|00005a90| 30 3b 0a 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 69 |0;..exte|rn int i|
|00005aa0| 6e 64 5f 6f 66 66 73 65 | 74 3b 0a 65 78 74 65 72 |nd_offse|t;.exter|
|00005ab0| 6e 20 69 6e 74 20 69 6e | 64 5f 70 72 65 66 69 78 |n int in|d_prefix|
|00005ac0| 3b 0a 65 78 74 65 72 6e | 20 43 48 41 52 5f 54 59 |;.extern| CHAR_TY|
|00005ad0| 50 45 20 62 75 66 5b 5d | 3b 0a 65 78 74 65 72 6e |PE buf[]|;.extern|
|00005ae0| 20 4c 53 45 45 4b 5f 54 | 59 50 45 20 6f 66 66 73 | LSEEK_T|YPE offs|
|00005af0| 65 74 3b 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 |et;.exte|rn char |
|00005b00| 2a 20 63 75 72 5f 66 69 | 6c 65 5f 6e 61 6d 65 3b |* cur_fi|le_name;|
|00005b10| 0a 0a 65 78 74 65 72 6e | 20 63 68 61 72 20 2a 20 |..extern| char * |
|00005b20| 6d 61 6c 6c 6f 63 20 28 | 29 3b 0a 65 78 74 65 72 |malloc (|);.exter|
|00005b30| 6e 20 63 68 61 72 20 2a | 20 72 65 61 6c 6c 6f 63 |n char *| realloc|
|00005b40| 20 28 29 3b 0a 0a 69 6e | 69 74 5f 6f 75 74 70 75 | ();..in|it_outpu|
|00005b50| 74 20 28 29 0a 7b 0a 09 | 6f 75 74 5f 62 75 66 20 |t ().{..|out_buf |
|00005b60| 3d 20 28 43 48 41 52 5f | 54 59 50 45 20 2a 29 20 |= (CHAR_|TYPE *) |
|00005b70| 6d 61 6c 6c 6f 63 20 28 | 73 69 7a 65 6f 66 20 28 |malloc (|sizeof (|
|00005b80| 43 48 41 52 5f 54 59 50 | 45 29 20 2a 20 4f 55 54 |CHAR_TYP|E) * OUT|
|00005b90| 5f 42 55 46 5f 4c 45 4e | 29 3b 0a 09 6c 65 76 65 |_BUF_LEN|);..leve|
|00005ba0| 6c 20 3d 20 6f 75 74 5f | 62 75 66 3b 0a 09 6e 75 |l = out_|buf;..nu|
|00005bb0| 6d 5f 6f 75 74 5f 62 75 | 66 20 3d 20 30 3b 0a 09 |m_out_bu|f = 0;..|
|00005bc0| 62 75 66 5f 6c 65 6e 20 | 3d 20 4f 55 54 5f 42 55 |buf_len |= OUT_BU|
|00005bd0| 46 5f 4c 45 4e 3b 0a 7d | 0a 0a 66 6c 75 73 68 5f |F_LEN;.}|..flush_|
|00005be0| 6f 75 74 70 75 74 20 28 | 29 0a 2f 2a 0a 20 2a 20 |output (|)./*. * |
|00005bf0| 4e 75 6d 5f 6f 75 74 5f | 62 75 66 20 63 68 61 72 |Num_out_|buf char|
|00005c00| 61 63 74 65 72 73 20 66 | 72 6f 6d 20 74 68 65 20 |acters f|rom the |
|00005c10| 62 75 66 66 65 72 20 61 | 72 65 20 77 72 69 74 74 |buffer a|re writt|
|00005c20| 65 6e 2e 0a 20 2a 2f 0a | 7b 0a 09 69 66 20 28 6e |en.. */.|{..if (n|
|00005c30| 75 6d 5f 6f 75 74 5f 62 | 75 66 20 3e 20 30 29 20 |um_out_b|uf > 0) |
|00005c40| 7b 0a 23 20 69 66 64 65 | 66 20 44 45 42 55 47 0a |{.# ifde|f DEBUG.|
|00005c50| 09 09 66 70 72 69 6e 74 | 66 20 28 70 72 6f 74 2c |..fprint|f (prot,|
|00005c60| 20 22 66 6c 75 73 68 5f | 6f 75 74 70 75 74 20 3a | "flush_|output :|
|00005c70| 20 77 72 69 74 65 20 25 | 64 20 63 68 61 72 73 5c | write %|d chars\|
|00005c80| 6e 22 2c 20 6e 75 6d 5f | 6f 75 74 5f 62 75 66 29 |n", num_|out_buf)|
|00005c90| 3b 0a 23 20 65 6e 64 69 | 66 0a 09 09 69 66 20 28 |;.# endi|f...if (|
|00005ca0| 77 72 69 74 65 20 28 31 | 2c 20 6f 75 74 5f 62 75 |write (1|, out_bu|
|00005cb0| 66 2c 20 6e 75 6d 5f 6f | 75 74 5f 62 75 66 29 20 |f, num_o|ut_buf) |
|00005cc0| 21 3d 20 6e 75 6d 5f 6f | 75 74 5f 62 75 66 29 20 |!= num_o|ut_buf) |
|00005cd0| 7b 0a 09 09 09 6f 75 74 | 20 28 22 50 41 4e 49 43 |{....out| ("PANIC|
|00005ce0| 20 3a 20 77 72 69 74 65 | 20 65 72 72 6f 72 5c 6e | : write| error\n|
|00005cf0| 22 29 3b 0a 09 09 09 65 | 78 69 74 20 28 31 29 3b |");....e|xit (1);|
|00005d00| 0a 09 09 7d 0a 09 09 6e | 75 6d 5f 6f 75 74 5f 62 |...}...n|um_out_b|
|00005d10| 75 66 20 3d 20 30 3b 0a | 09 7d 0a 09 6c 65 76 65 |uf = 0;.|.}..leve|
|00005d20| 6c 20 3d 20 6f 75 74 5f | 62 75 66 3b 0a 7d 0a 0a |l = out_|buf;.}..|
|00005d30| 73 74 61 74 69 63 0a 6d | 61 6b 65 5f 72 6f 6f 6d |static.m|ake_room|
|00005d40| 20 28 6e 29 0a 72 65 67 | 69 73 74 65 72 20 69 6e | (n).reg|ister in|
|00005d50| 74 20 6e 3b 0a 2f 2a 0a | 20 2a 20 4d 75 73 74 20 |t n;./*.| * Must |
|00005d60| 72 65 61 6c 6c 6f 63 61 | 74 65 2e 0a 20 2a 20 42 |realloca|te.. * B|
|00005d70| 75 66 66 65 72 20 69 73 | 20 65 6e 6c 61 72 67 65 |uffer is| enlarge|
|00005d80| 64 20 62 79 20 61 74 20 | 6c 65 61 73 74 20 49 4e |d by at |least IN|
|00005d90| 5f 42 55 46 5f 4c 45 4e | 20 63 68 61 72 61 63 74 |_BUF_LEN| charact|
|00005da0| 65 72 73 2e 20 54 68 65 | 20 6c 61 72 67 65 73 74 |ers. The| largest|
|00005db0| 0a 20 2a 20 70 69 65 63 | 65 20 77 68 69 63 68 20 |. * piec|e which |
|00005dc0| 68 61 73 20 74 6f 20 62 | 65 20 70 75 74 20 69 6e |has to b|e put in|
|00005dd0| 74 6f 20 74 68 65 20 62 | 75 66 66 65 72 20 77 69 |to the b|uffer wi|
|00005de0| 6c 6c 20 62 65 20 61 74 | 20 6d 6f 73 74 20 49 4e |ll be at| most IN|
|00005df0| 5f 42 55 46 5f 4c 45 4e | 0a 20 2a 20 63 68 61 72 |_BUF_LEN|. * char|
|00005e00| 61 63 74 65 72 73 2e 20 | 49 66 20 74 68 65 72 65 |acters. |If there|
|00005e10| 20 69 73 20 61 20 73 65 | 71 75 65 6e 63 65 20 6f | is a se|quence o|
|00005e20| 66 20 70 75 74 73 2c 20 | 74 68 65 20 62 75 66 66 |f puts, |the buff|
|00005e30| 65 72 20 77 69 6c 6c 20 | 62 65 20 65 6e 6c 61 72 |er will |be enlar|
|00005e40| 67 65 64 0a 20 2a 20 65 | 61 63 68 20 74 69 6d 65 |ged. * e|ach time|
|00005e50| 2e 20 54 68 69 73 20 73 | 68 6f 75 6c 64 20 68 61 |. This s|hould ha|
|00005e60| 70 70 65 6e 20 76 65 72 | 79 20 72 61 72 65 6c 79 |ppen ver|y rarely|
|00005e70| 2e 0a 20 2a 2f 0a 7b 0a | 09 72 65 67 69 73 74 65 |.. */.{.|.registe|
|00005e80| 72 20 69 6e 74 20 69 3b | 0a 23 20 69 66 64 65 66 |r int i;|.# ifdef|
|00005e90| 20 44 45 42 55 47 0a 09 | 66 70 72 69 6e 74 66 20 | DEBUG..|fprintf |
|00005ea0| 28 70 72 6f 74 2c 20 22 | 6d 61 6b 65 5f 72 6f 6f |(prot, "|make_roo|
|00005eb0| 6d 20 3a 3a 20 52 45 41 | 4c 4c 4f 43 20 72 65 61 |m :: REA|LLOC rea|
|00005ec0| 6c 6c 6f 63 20 63 61 6c | 6c 65 64 2e 5c 6e 22 29 |lloc cal|led.\n")|
|00005ed0| 3b 0a 09 66 66 6c 75 73 | 68 20 28 70 72 6f 74 29 |;..fflus|h (prot)|
|00005ee0| 3b 0a 23 20 65 6e 64 69 | 66 0a 09 2f 2a 0a 09 20 |;.# endi|f../*.. |
|00005ef0| 2a 20 4c 65 76 65 6c 20 | 69 73 20 61 20 70 6f 69 |* Level |is a poi|
|00005f00| 6e 74 65 72 20 69 6e 74 | 6f 20 6f 75 74 5f 62 75 |nter int|o out_bu|
|00005f10| 66 2e 20 57 65 20 68 61 | 76 65 20 74 6f 20 73 61 |f. We ha|ve to sa|
|00005f20| 76 65 20 69 74 20 68 65 | 72 65 20 61 6e 64 0a 09 |ve it he|re and..|
|00005f30| 20 2a 20 72 65 73 74 6f | 72 65 20 69 74 20 6c 61 | * resto|re it la|
|00005f40| 74 65 72 2c 20 62 65 63 | 61 75 73 65 20 72 65 61 |ter, bec|ause rea|
|00005f50| 6c 6c 6f 63 20 6d 69 67 | 68 74 20 63 61 75 73 65 |lloc mig|ht cause|
|00005f60| 20 61 20 63 6f 70 79 69 | 6e 67 20 6f 66 20 74 68 | a copyi|ng of th|
|00005f70| 65 0a 09 20 2a 20 63 6f | 6e 74 65 6e 74 73 20 6f |e.. * co|ntents o|
|00005f80| 66 20 6f 75 74 5f 62 75 | 66 20 74 6f 20 61 20 6e |f out_bu|f to a n|
|00005f90| 65 77 20 61 64 64 72 65 | 73 73 2e 0a 09 20 2a 2f |ew addre|ss... */|
|00005fa0| 0a 09 69 20 3d 20 6c 65 | 76 65 6c 20 2d 20 6f 75 |..i = le|vel - ou|
|00005fb0| 74 5f 62 75 66 3b 0a 09 | 62 75 66 5f 6c 65 6e 20 |t_buf;..|buf_len |
|00005fc0| 2b 3d 20 6e 3e 49 4e 5f | 42 55 46 5f 4c 45 4e 3f |+= n>IN_|BUF_LEN?|
|00005fd0| 6e 3a 49 4e 5f 42 55 46 | 5f 4c 45 4e 3b 0a 23 20 |n:IN_BUF|_LEN;.# |
|00005fe0| 69 66 64 65 66 20 44 45 | 42 55 47 0a 09 66 70 72 |ifdef DE|BUG..fpr|
|00005ff0| 69 6e 74 66 20 28 70 72 | 6f 74 2c 20 22 6d 61 6b |intf (pr|ot, "mak|
|00006000| 65 5f 72 6f 6f 6d 20 3a | 3a 20 6f 75 74 70 75 74 |e_room :|: output|
|00006010| 20 62 75 66 66 65 72 20 | 77 69 6c 6c 20 62 65 20 | buffer |will be |
|00006020| 65 6e 6c 61 72 67 65 64 | 20 74 6f 20 25 64 5c 6e |enlarged| to %d\n|
|00006030| 22 2c 20 62 75 66 5f 6c | 65 6e 29 3b 0a 23 20 65 |", buf_l|en);.# e|
|00006040| 6e 64 69 66 0a 09 6f 75 | 74 5f 62 75 66 20 3d 20 |ndif..ou|t_buf = |
|00006050| 28 43 48 41 52 5f 54 59 | 50 45 20 2a 29 20 72 65 |(CHAR_TY|PE *) re|
|00006060| 61 6c 6c 6f 63 20 28 6f | 75 74 5f 62 75 66 2c 20 |alloc (o|ut_buf, |
|00006070| 28 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 29 62 75 |(unsigne|d int)bu|
|00006080| 66 5f 6c 65 6e 29 3b 0a | 09 69 66 20 28 6f 75 74 |f_len);.|.if (out|
|00006090| 5f 62 75 66 20 3d 3d 20 | 4e 55 4c 4c 29 20 7b 09 |_buf == |NULL) {.|
|000060a0| 09 09 2f 2a 20 70 61 6e | 69 63 20 2a 2f 0a 09 09 |../* pan|ic */...|
|000060b0| 28 76 6f 69 64 29 77 72 | 69 74 65 20 28 32 2c 20 |(void)wr|ite (2, |
|000060c0| 22 52 45 41 4c 4c 4f 43 | 20 45 52 52 4f 52 2e 5c |"REALLOC| ERROR.\|
|000060d0| 6e 22 2c 20 31 35 29 3b | 0a 09 09 65 78 69 74 20 |n", 15);|...exit |
|000060e0| 28 31 29 3b 0a 09 7d 0a | 09 6c 65 76 65 6c 20 3d |(1);..}.|.level =|
|000060f0| 20 6f 75 74 5f 62 75 66 | 20 2b 20 69 3b 0a 7d 0a | out_buf| + i;.}.|
|00006100| 0a 76 6f 69 64 0a 61 64 | 64 5f 63 75 72 5f 66 69 |.void.ad|d_cur_fi|
|00006110| 6c 65 5f 6e 61 6d 65 20 | 28 29 0a 2f 2a 0a 20 2a |le_name |()./*. *|
|00006120| 20 4f 6e 6c 79 20 63 61 | 6c 6c 65 64 20 69 66 20 | Only ca|lled if |
|00006130| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 20 66 6c 61 |command |line fla|
|00006140| 67 20 27 2d 70 27 20 77 | 61 73 20 73 70 65 63 69 |g '-p' w|as speci|
|00006150| 66 69 65 64 2e 0a 20 2a | 20 41 64 64 20 74 68 65 |fied.. *| Add the|
|00006160| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 63 75 72 | name of| the cur|
|00006170| 72 65 6e 74 20 69 6e 70 | 75 74 20 66 69 6c 65 20 |rent inp|ut file |
|00006180| 74 6f 20 74 68 65 20 6f | 75 74 70 75 74 20 73 74 |to the o|utput st|
|00006190| 72 65 61 6d 2e 0a 20 2a | 2f 0a 7b 0a 09 72 65 67 |ream.. *|/.{..reg|
|000061a0| 69 73 74 65 72 20 69 6e | 74 20 69 3b 0a 0a 09 69 |ister in|t i;...i|
|000061b0| 66 20 28 63 75 72 5f 66 | 69 6c 65 5f 6e 61 6d 65 |f (cur_f|ile_name|
|000061c0| 20 3d 3d 20 4e 55 4c 4c | 29 0a 09 09 72 65 74 75 | == NULL|)...retu|
|000061d0| 72 6e 3b 0a 09 69 20 3d | 20 73 74 72 6c 65 6e 20 |rn;..i =| strlen |
|000061e0| 28 63 75 72 5f 66 69 6c | 65 5f 6e 61 6d 65 29 3b |(cur_fil|e_name);|
|000061f0| 0a 09 2f 2a 0a 09 20 2a | 20 49 73 20 74 68 65 72 |../*.. *| Is ther|
|00006200| 65 20 73 70 61 63 65 20 | 66 6f 72 20 28 69 2b 31 |e space |for (i+1|
|00006210| 29 20 63 68 61 72 61 63 | 74 65 72 73 20 61 74 20 |) charac|ters at |
|00006220| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 6f |the end |of the o|
|00006230| 75 74 70 75 74 20 62 75 | 66 66 65 72 3f 0a 09 20 |utput bu|ffer?.. |
|00006240| 2a 20 49 66 20 6e 6f 74 | 2c 20 66 6c 75 73 68 20 |* If not|, flush |
|00006250| 69 74 2e 0a 09 20 2a 2f | 0a 09 69 66 20 28 28 69 |it... */|..if ((i|
|00006260| 6e 74 29 28 6c 65 76 65 | 6c 20 2d 20 6f 75 74 5f |nt)(leve|l - out_|
|00006270| 62 75 66 29 20 2b 20 69 | 20 2b 20 31 20 3e 20 62 |buf) + i| + 1 > b|
|00006280| 75 66 5f 6c 65 6e 29 0a | 09 09 6d 61 6b 65 5f 72 |uf_len).|..make_r|
|00006290| 6f 6f 6d 20 28 69 2b 31 | 29 3b 0a 09 46 41 53 54 |oom (i+1|);..FAST|
|000062a0| 5f 43 4f 50 59 20 28 63 | 75 72 5f 66 69 6c 65 5f |_COPY (c|ur_file_|
|000062b0| 6e 61 6d 65 2c 20 6c 65 | 76 65 6c 2c 20 69 29 3b |name, le|vel, i);|
|000062c0| 0a 09 6c 65 76 65 6c 20 | 2b 3d 20 69 3b 0a 09 2a |..level |+= i;..*|
|000062d0| 6c 65 76 65 6c 2b 2b 20 | 3d 20 27 3a 27 3b 0a 7d |level++ |= ':';.}|
|000062e0| 0a 0a 61 70 70 65 6e 64 | 20 28 62 31 2c 20 62 32 |..append| (b1, b2|
|000062f0| 2c 20 69 6e 64 5f 70 65 | 72 6d 29 0a 72 65 67 69 |, ind_pe|rm).regi|
|00006300| 73 74 65 72 20 43 48 41 | 52 5f 54 59 50 45 20 2a |ster CHA|R_TYPE *|
|00006310| 20 62 31 2c 20 2a 20 62 | 32 3b 0a 69 6e 74 20 69 | b1, * b|2;.int i|
|00006320| 6e 64 5f 70 65 72 6d 3b | 0a 2f 2a 0a 20 2a 20 41 |nd_perm;|./*. * A|
|00006330| 70 70 65 6e 64 20 61 20 | 73 65 71 75 65 6e 63 65 |ppend a |sequence|
|00006340| 20 70 65 72 6d 61 6e 65 | 6e 74 6c 79 2e 20 53 65 | permane|ntly. Se|
|00006350| 74 20 74 68 65 20 70 6f | 69 6e 74 65 72 73 2e 0a |t the po|inters..|
|00006360| 20 2a 20 49 66 20 74 68 | 65 72 65 20 61 72 65 20 | * If th|ere are |
|00006370| 6d 6f 72 65 20 74 68 61 | 6e 20 54 48 52 45 53 48 |more tha|n THRESH|
|00006380| 4f 4c 44 20 63 68 61 72 | 61 63 74 65 72 73 20 74 |OLD char|acters t|
|00006390| 68 65 6e 20 77 72 69 74 | 65 20 74 68 65 6d 2e 0a |hen writ|e them..|
|000063a0| 20 2a 2f 0a 7b 0a 09 72 | 65 67 69 73 74 65 72 20 | */.{..r|egister |
|000063b0| 69 6e 74 20 6e 3b 0a 0a | 09 2f 2a 0a 09 20 2a 20 |int n;..|./*.. * |
|000063c0| 49 66 20 74 68 65 20 75 | 73 65 72 20 77 61 6e 74 |If the u|ser want|
|000063d0| 73 20 69 74 20 61 6e 64 | 20 74 68 69 73 20 69 73 |s it and| this is|
|000063e0| 20 74 68 65 20 66 69 72 | 73 74 20 70 61 72 74 20 | the fir|st part |
|000063f0| 6f 66 20 61 20 73 65 71 | 75 65 6e 63 65 2c 0a 09 |of a seq|uence,..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.