home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 31 37 69 30 36 |Subject:| v17i06|
|00000010| 34 3a 20 20 5a 6f 6f 20 | 61 72 63 68 69 76 65 20 |4: Zoo |archive |
|00000020| 70 72 6f 67 72 61 6d 2c | 20 50 61 72 74 30 31 2f |program,| Part01/|
|00000030| 31 30 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |10.Newsg|roups: c|
|00000040| 6f 6d 70 2e 73 6f 75 72 | 63 65 73 2e 75 6e 69 78 |omp.sour|ces.unix|
|00000050| 0a 41 70 70 72 6f 76 65 | 64 3a 20 72 73 61 6c 7a |.Approve|d: rsalz|
|00000060| 40 75 75 6e 65 74 2e 55 | 55 2e 4e 45 54 0a 0a 53 |@uunet.U|U.NET..S|
|00000070| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 52 61 68 |ubmitted|-by: Rah|
|00000080| 75 6c 20 44 68 65 73 69 | 20 3c 62 73 75 2d 63 73 |ul Dhesi| <bsu-cs|
|00000090| 21 64 68 65 73 69 40 69 | 75 76 61 78 2e 63 73 2e |!dhesi@i|uvax.cs.|
|000000a0| 69 6e 64 69 61 6e 61 2e | 65 64 75 3e 0a 50 6f 73 |indiana.|edu>.Pos|
|000000b0| 74 69 6e 67 2d 6e 75 6d | 62 65 72 3a 20 56 6f 6c |ting-num|ber: Vol|
|000000c0| 75 6d 65 20 31 37 2c 20 | 49 73 73 75 65 20 36 34 |ume 17, |Issue 64|
|000000d0| 0a 41 72 63 68 69 76 65 | 2d 6e 61 6d 65 3a 20 7a |.Archive|-name: z|
|000000e0| 6f 6f 32 2f 70 61 72 74 | 30 31 0a 0a 54 68 65 20 |oo2/part|01..The |
|000000f0| 7a 6f 6f 20 61 72 63 68 | 69 76 65 20 70 72 6f 67 |zoo arch|ive prog|
|00000100| 72 61 6d 20 6d 61 69 6e | 74 61 69 6e 73 20 61 72 |ram main|tains ar|
|00000110| 63 68 69 76 65 73 20 6f | 66 20 66 69 6c 65 73 20 |chives o|f files |
|00000120| 69 6e 20 63 6f 6d 70 72 | 65 73 73 65 64 0a 66 6f |in compr|essed.fo|
|00000130| 72 6d 2e 20 20 53 75 62 | 64 69 72 65 63 74 6f 72 |rm. Sub|director|
|00000140| 79 20 73 74 72 75 63 74 | 75 72 65 20 63 61 6e 20 |y struct|ure can |
|00000150| 62 65 20 70 72 65 73 65 | 72 76 65 64 20 61 63 72 |be prese|rved acr|
|00000160| 6f 73 73 20 64 69 73 73 | 69 6d 69 6c 61 72 0a 73 |oss diss|imilar.s|
|00000170| 79 73 74 65 6d 73 2e 20 | 20 54 69 6d 65 7a 6f 6e |ystems. | Timezon|
|00000180| 65 20 61 6e 64 20 66 69 | 6c 65 20 61 74 74 72 69 |e and fi|le attri|
|00000190| 62 75 74 65 73 20 63 61 | 6e 20 62 65 20 70 72 65 |butes ca|n be pre|
|000001a0| 73 65 72 76 65 64 2e 20 | 20 4d 75 6c 74 69 70 6c |served. | Multipl|
|000001b0| 65 0a 67 65 6e 65 72 61 | 74 69 6f 6e 73 20 6f 66 |e.genera|tions of|
|000001c0| 20 74 68 65 20 73 61 6d | 65 20 66 69 6c 65 20 63 | the sam|e file c|
|000001d0| 61 6e 20 62 65 20 73 74 | 6f 72 65 64 2c 20 61 6e |an be st|ored, an|
|000001e0| 64 20 74 68 65 20 75 73 | 65 72 20 6d 61 79 20 73 |d the us|er may s|
|000001f0| 70 65 63 69 66 79 0a 68 | 6f 77 20 6d 61 6e 79 20 |pecify.h|ow many |
|00000200| 67 65 6e 65 72 61 74 69 | 6f 6e 73 20 6f 66 20 61 |generati|ons of a|
|00000210| 20 66 69 6c 65 20 73 68 | 6f 75 6c 64 20 62 65 20 | file sh|ould be |
|00000220| 6b 65 70 74 2e 20 20 41 | 20 63 6f 6d 6d 65 6e 74 |kept. A| comment|
|00000230| 20 6d 61 79 20 62 65 0a | 61 74 74 61 63 68 65 64 | may be.|attached|
|00000240| 20 74 6f 20 65 61 63 68 | 20 61 72 63 68 69 76 65 | to each| archive|
|00000250| 64 20 66 69 6c 65 20 6f | 72 20 74 6f 20 74 68 65 |d file o|r to the|
|00000260| 20 61 72 63 68 69 76 65 | 20 61 73 20 61 20 77 68 | archive| as a wh|
|00000270| 6f 6c 65 2e 20 20 46 69 | 6c 65 6e 61 6d 65 73 0a |ole. Fi|lenames.|
|00000280| 74 6f 20 62 65 20 61 72 | 63 68 69 76 65 64 20 6d |to be ar|chived m|
|00000290| 61 79 20 62 65 20 66 65 | 64 20 66 72 6f 6d 20 73 |ay be fe|d from s|
|000002a0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 6f 72 |tandard |input or|
|000002b0| 20 73 75 70 70 6c 69 65 | 64 20 61 73 0a 61 72 67 | supplie|d as.arg|
|000002c0| 75 6d 65 6e 74 73 2e 0a | 0a 54 68 69 73 20 69 73 |uments..|.This is|
|000002d0| 20 61 20 70 6f 73 74 69 | 6e 67 20 6f 66 20 74 68 | a posti|ng of th|
|000002e0| 65 20 28 72 65 6c 61 74 | 69 76 65 6c 79 29 20 70 |e (relat|ively) p|
|000002f0| 6f 72 74 61 62 6c 65 20 | 43 20 73 6f 75 72 63 65 |ortable |C source|
|00000300| 20 66 6f 72 20 76 65 72 | 73 69 6f 6e 0a 32 2e 30 | for ver|sion.2.0|
|00000310| 31 2e 20 20 49 74 20 69 | 73 20 72 65 61 64 79 20 |1. It i|s ready |
|00000320| 66 6f 72 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |for comp|ilation |
|00000330| 75 6e 64 65 72 20 56 41 | 58 2f 56 4d 53 20 34 2e |under VA|X/VMS 4.|
|00000340| 36 2c 20 34 2e 33 42 53 | 44 2c 20 58 65 6e 69 78 |6, 4.3BS|D, Xenix|
|00000350| 2c 0a 53 79 73 74 65 6d | 20 56 20 52 65 6c 65 61 |,.System| V Relea|
|00000360| 73 65 20 32 20 28 69 6e | 63 6c 75 64 69 6e 67 20 |se 2 (in|cluding |
|00000370| 4d 69 63 72 6f 70 6f 72 | 74 20 53 79 73 74 65 6d |Micropor|t System|
|00000380| 20 56 2f 41 54 29 2c 20 | 61 6e 64 20 6f 74 68 65 | V/AT), |and othe|
|00000390| 72 20 73 69 6d 69 6c 61 | 72 0a 73 79 73 74 65 6d |r simila|r.system|
|000003a0| 73 2e 20 20 41 20 73 79 | 73 74 65 6d 2d 64 65 70 |s. A sy|stem-dep|
|000003b0| 65 6e 64 65 6e 74 20 73 | 75 70 70 6f 72 74 20 70 |endent s|upport p|
|000003c0| 61 63 6b 61 67 65 2c 20 | 77 68 69 63 68 20 77 69 |ackage, |which wi|
|000003d0| 6c 6c 20 61 6c 6c 6f 77 | 20 74 68 69 73 0a 70 72 |ll allow| this.pr|
|000003e0| 65 73 65 6e 74 20 73 6f | 75 72 63 65 20 70 6f 73 |esent so|urce pos|
|000003f0| 74 69 6e 67 20 74 6f 20 | 62 65 20 63 6f 6d 70 69 |ting to |be compi|
|00000400| 6c 65 64 20 75 6e 64 65 | 72 20 4d 53 2d 44 4f 53 |led unde|r MS-DOS|
|00000410| 2c 20 77 69 6c 6c 20 62 | 65 20 70 6f 73 74 65 64 |, will b|e posted|
|00000420| 20 74 6f 0a 63 6f 6d 70 | 2e 62 69 6e 61 72 69 65 | to.comp|.binarie|
|00000430| 73 2e 69 62 6d 2e 70 63 | 20 73 65 70 61 72 61 74 |s.ibm.pc| separat|
|00000440| 65 6c 79 2e 20 20 42 69 | 6e 61 72 69 65 73 20 66 |ely. Bi|naries f|
|00000450| 6f 72 20 41 6d 69 67 61 | 44 4f 53 20 61 6e 64 20 |or Amiga|DOS and |
|00000460| 4d 53 2d 44 4f 53 2c 0a | 68 61 76 65 20 61 70 70 |MS-DOS,.|have app|
|00000470| 65 61 72 65 64 20 6f 72 | 20 77 69 6c 6c 20 61 70 |eared or| will ap|
|00000480| 70 65 61 72 20 69 6e 20 | 61 70 70 72 6f 70 72 69 |pear in |appropri|
|00000490| 61 74 65 20 6e 65 77 73 | 67 72 6f 75 70 73 2e 20 |ate news|groups. |
|000004a0| 20 41 20 73 6d 61 6c 6c | 2c 0a 6d 65 6d 6f 72 79 | A small|,.memory|
|000004b0| 2d 65 66 66 69 63 69 65 | 6e 74 20 7a 6f 6f 20 61 |-efficie|nt zoo a|
|000004c0| 72 63 68 69 76 65 20 65 | 78 74 72 61 63 74 6f 72 |rchive e|xtractor|
|000004d0| 20 63 61 6c 6c 65 64 20 | 22 62 6f 6f 7a 22 20 68 | called |"booz" h|
|000004e0| 61 73 20 61 6c 72 65 61 | 64 79 0a 61 70 70 65 61 |as alrea|dy.appea|
|000004f0| 72 65 64 20 69 6e 20 63 | 6f 6d 70 2e 73 6f 75 72 |red in c|omp.sour|
|00000500| 63 65 73 2e 6d 69 73 63 | 2e 0a 0a 52 61 68 75 6c |ces.misc|...Rahul|
|00000510| 20 44 68 65 73 69 20 20 | 20 20 20 20 20 20 20 55 | Dhesi | U|
|00000520| 55 43 50 3a 20 20 3c 62 | 61 63 6b 62 6f 6e 65 73 |UCP: <b|ackbones|
|00000530| 3e 21 7b 69 75 76 61 78 | 2c 70 75 72 2d 65 65 2c |>!{iuvax|,pur-ee,|
|00000540| 75 75 6e 65 74 7d 21 62 | 73 75 2d 63 73 21 64 68 |uunet}!b|su-cs!dh|
|00000550| 65 73 69 0a 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |esi..#! |/bin/sh.|
|00000560| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|00000570| 6c 20 61 72 63 68 69 76 | 65 2e 20 20 52 65 6d 6f |l archiv|e. Remo|
|00000580| 76 65 20 61 6e 79 74 68 | 69 6e 67 20 62 65 66 6f |ve anyth|ing befo|
|00000590| 72 65 20 74 68 69 73 20 | 6c 69 6e 65 2c 20 74 68 |re this |line, th|
|000005a0| 65 6e 20 75 6e 70 61 63 | 6b 0a 23 20 69 74 20 62 |en unpac|k.# it b|
|000005b0| 79 20 73 61 76 69 6e 67 | 20 69 74 20 69 6e 74 6f |y saving| it into|
|000005c0| 20 61 20 66 69 6c 65 20 | 61 6e 64 20 74 79 70 69 | a file |and typi|
|000005d0| 6e 67 20 22 73 68 20 66 | 69 6c 65 22 2e 20 20 54 |ng "sh f|ile". T|
|000005e0| 6f 20 6f 76 65 72 77 72 | 69 74 65 20 65 78 69 73 |o overwr|ite exis|
|000005f0| 74 69 6e 67 0a 23 20 66 | 69 6c 65 73 2c 20 74 79 |ting.# f|iles, ty|
|00000600| 70 65 20 22 73 68 20 66 | 69 6c 65 20 2d 63 22 2e |pe "sh f|ile -c".|
|00000610| 20 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 66 | You ca|n also f|
|00000620| 65 65 64 20 74 68 69 73 | 20 61 73 20 73 74 61 6e |eed this| as stan|
|00000630| 64 61 72 64 20 69 6e 70 | 75 74 20 76 69 61 0a 23 |dard inp|ut via.#|
|00000640| 20 75 6e 73 68 61 72 2c | 20 6f 72 20 62 79 20 74 | unshar,| or by t|
|00000650| 79 70 69 6e 67 20 22 73 | 68 20 3c 66 69 6c 65 22 |yping "s|h <file"|
|00000660| 2c 20 65 2e 67 2e 2e 20 | 20 49 66 20 74 68 69 73 |, e.g.. | If this|
|00000670| 20 61 72 63 68 69 76 65 | 20 69 73 20 63 6f 6d 70 | archive| is comp|
|00000680| 6c 65 74 65 2c 20 79 6f | 75 0a 23 20 77 69 6c 6c |lete, yo|u.# will|
|00000690| 20 73 65 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | see the| followi|
|000006a0| 6e 67 20 6d 65 73 73 61 | 67 65 20 61 74 20 74 68 |ng messa|ge at th|
|000006b0| 65 20 65 6e 64 3a 0a 23 | 09 09 22 45 6e 64 20 6f |e end:.#|.."End o|
|000006c0| 66 20 61 72 63 68 69 76 | 65 20 31 20 28 6f 66 20 |f archiv|e 1 (of |
|000006d0| 31 30 29 2e 22 0a 23 20 | 57 72 61 70 70 65 64 20 |10).".# |Wrapped |
|000006e0| 62 79 20 72 73 61 6c 7a | 40 70 61 70 61 79 61 2e |by rsalz|@papaya.|
|000006f0| 62 62 6e 2e 63 6f 6d 20 | 6f 6e 20 54 68 75 20 46 |bbn.com |on Thu F|
|00000700| 65 62 20 20 32 20 31 38 | 3a 30 33 3a 35 35 20 31 |eb 2 18|:03:55 1|
|00000710| 39 38 39 0a 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |989.PATH|=/bin:/u|
|00000720| 73 72 2f 62 69 6e 3a 2f | 75 73 72 2f 75 63 62 20 |sr/bin:/|usr/ucb |
|00000730| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 69 66 |; export| PATH.if|
|00000740| 20 74 65 73 74 20 2d 66 | 20 27 43 68 61 6e 67 65 | test -f| 'Change|
|00000750| 73 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |s' -a "$|{1}" != |
|00000760| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|00000770| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|00000780| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|00000790| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 43 68 61 6e |ing file| \"'Chan|
|000007a0| 67 65 73 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |ges'\".e|lse.echo|
|000007b0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000007c0| 67 20 5c 22 27 43 68 61 | 6e 67 65 73 27 5c 22 20 |g \"'Cha|nges'\" |
|000007d0| 5c 28 32 34 39 37 20 63 | 68 61 72 61 63 74 65 72 |\(2497 c|haracter|
|000007e0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000007f0| 20 3e 27 43 68 61 6e 67 | 65 73 27 20 3c 3c 27 45 | >'Chang|es' <<'E|
|00000800| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 0a 58 0a |ND_OF_FI|LE'.X.X.|
|00000810| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 43 48 41 4e 47 45 53 | 0a 58 0a 58 0a 58 53 75 | CHANGES|.X.X.XSu|
|00000840| 6d 6d 61 72 79 20 6f 66 | 20 43 68 61 6e 67 65 73 |mmary of| Changes|
|00000850| 20 66 72 6f 6d 20 5a 6f | 6f 20 76 65 72 73 69 6f | from Zo|o versio|
|00000860| 6e 20 31 2e 35 31 20 74 | 6f 20 76 65 72 73 69 6f |n 1.51 t|o versio|
|00000870| 6e 20 32 2e 30 2e 0a 58 | 0a 58 20 20 20 2d 20 4e |n 2.0..X|.X - N|
|00000880| 65 77 20 6d 6f 64 69 66 | 69 65 72 73 20 74 6f 20 |ew modif|iers to |
|00000890| 74 68 65 20 6c 69 73 74 | 20 63 6f 6d 6d 61 6e 64 |the list| command|
|000008a0| 73 20 70 65 72 6d 69 74 | 20 73 65 76 65 72 61 6c |s permit| several|
|000008b0| 20 6e 65 77 20 6f 75 74 | 70 75 74 0a 58 20 20 20 | new out|put.X |
|000008c0| 20 20 66 6f 72 6d 61 74 | 73 2e 0a 58 0a 58 20 20 | format|s..X.X |
|000008d0| 20 2d 20 54 69 6d 65 7a | 6f 6e 65 73 20 61 72 65 | - Timez|ones are|
|000008e0| 20 68 61 6e 64 6c 65 64 | 2e 0a 58 0a 58 20 20 20 | handled|..X.X |
|000008f0| 2d 20 41 20 62 75 67 20 | 77 61 73 20 66 69 78 65 |- A bug |was fixe|
|00000900| 64 20 74 68 61 74 20 68 | 61 64 20 6d 61 64 65 20 |d that h|ad made |
|00000910| 69 74 20 69 6d 70 6f 73 | 73 69 62 6c 65 20 74 6f |it impos|sible to|
|00000920| 20 69 6e 64 69 76 69 64 | 75 61 6c 6c 79 20 75 70 | individ|ually up|
|00000930| 64 61 74 65 0a 58 20 20 | 20 20 20 63 6f 6d 6d 65 |date.X | comme|
|00000940| 6e 74 73 20 66 6f 72 20 | 61 20 66 69 6c 65 20 77 |nts for |a file w|
|00000950| 68 6f 73 65 20 6e 61 6d | 65 20 64 69 64 20 6e 6f |hose nam|e did no|
|00000960| 74 20 63 6f 72 72 65 73 | 70 6f 6e 64 20 74 6f 20 |t corres|pond to |
|00000970| 4d 53 2d 44 4f 53 20 66 | 6f 72 6d 61 74 2e 0a 58 |MS-DOS f|ormat..X|
|00000980| 0a 58 20 20 20 2d 20 54 | 68 65 20 73 68 61 72 65 |.X - T|he share|
|00000990| 64 20 6c 69 62 72 61 72 | 79 20 6f 6e 20 74 68 65 |d librar|y on the|
|000009a0| 20 2a 2a 49 58 20 50 43 | 20 63 61 6e 20 62 65 20 | **IX PC| can be |
|000009b0| 75 73 65 64 2e 0a 58 0a | 58 20 20 20 2d 20 56 41 |used..X.|X - VA|
|000009c0| 58 2f 56 4d 53 20 69 73 | 20 6e 6f 77 20 73 75 70 |X/VMS is| now sup|
|000009d0| 70 6f 72 74 65 64 20 72 | 65 61 73 6f 6e 61 62 6c |ported r|easonabl|
|000009e0| 79 20 77 65 6c 6c 2e 0a | 58 0a 58 20 20 20 2d 20 |y well..|X.X - |
|000009f0| 41 20 63 6f 6d 6d 65 6e | 74 20 6d 61 79 20 6e 6f |A commen|t may no|
|00000a00| 77 20 62 65 20 61 74 74 | 61 63 68 65 64 20 74 6f |w be att|ached to|
|00000a10| 20 74 68 65 20 61 72 63 | 68 69 76 65 20 69 74 73 | the arc|hive its|
|00000a20| 65 6c 66 2e 0a 58 0a 58 | 20 20 20 2d 20 45 78 74 |elf..X.X| - Ext|
|00000a30| 72 61 63 74 65 64 20 66 | 69 6c 65 73 20 63 61 6e |racted f|iles can|
|00000a40| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 20 62 65 20 66 | optiona|lly be f|
|00000a50| 6f 72 63 65 64 20 74 6f | 20 6f 76 65 72 77 72 69 |orced to| overwri|
|00000a60| 74 65 20 65 78 69 73 74 | 69 6e 67 0a 58 20 20 20 |te exist|ing.X |
|00000a70| 20 20 72 65 61 64 2d 6f | 6e 6c 79 20 66 69 6c 65 | read-o|nly file|
|00000a80| 73 2e 0a 58 0a 58 20 20 | 20 2d 20 45 78 74 72 61 |s..X.X | - Extra|
|00000a90| 63 74 65 64 20 66 69 6c | 65 73 20 77 69 6c 6c 20 |cted fil|es will |
|00000aa0| 6e 6f 74 20 6f 76 65 72 | 77 72 69 74 65 20 6e 65 |not over|write ne|
|00000ab0| 77 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |wer exis|ting fil|
|00000ac0| 65 73 20 75 6e 6c 65 73 | 73 0a 58 20 20 20 20 20 |es unles|s.X |
|00000ad0| 73 70 65 63 69 66 69 63 | 61 6c 6c 79 20 72 65 71 |specific|ally req|
|00000ae0| 75 65 73 74 65 64 2e 0a | 58 0a 58 20 20 20 2d 20 |uested..|X.X - |
|00000af0| 46 69 6c 65 20 61 74 74 | 72 69 62 75 74 65 73 20 |File att|ributes |
|00000b00| 28 6c 6f 77 65 73 74 20 | 6e 69 6e 65 20 6d 6f 64 |(lowest |nine mod|
|00000b10| 65 20 62 69 74 73 29 20 | 61 72 65 20 70 72 65 73 |e bits) |are pres|
|00000b20| 65 72 76 65 64 20 66 6f | 72 20 2a 2a 49 58 0a 58 |erved fo|r **IX.X|
|00000b30| 20 20 20 20 20 73 79 73 | 74 65 6d 73 2e 0a 58 0a | sys|tems..X.|
|00000b40| 58 20 20 20 2d 20 4d 75 | 6c 74 69 70 6c 65 20 67 |X - Mu|ltiple g|
|00000b50| 65 6e 65 72 61 74 69 6f | 6e 73 20 6f 66 20 74 68 |eneratio|ns of th|
|00000b60| 65 20 73 61 6d 65 20 66 | 69 6c 65 20 61 72 65 20 |e same f|ile are |
|00000b70| 73 75 70 70 6f 72 74 65 | 64 2e 0a 58 0a 58 20 20 |supporte|d..X.X |
|00000b80| 20 2d 20 5a 6f 6f 20 77 | 69 6c 6c 20 6e 6f 77 20 | - Zoo w|ill now |
|00000b90| 61 63 74 20 61 73 20 61 | 20 70 75 72 65 20 63 6f |act as a| pure co|
|00000ba0| 6d 70 72 65 73 73 69 6f | 6e 20 6f 72 20 75 6e 63 |mpressio|n or unc|
|00000bb0| 6f 6d 70 72 65 73 73 69 | 6f 6e 20 66 69 6c 74 65 |ompressi|on filte|
|00000bc0| 72 20 6f 6e 20 61 0a 58 | 20 20 20 20 20 73 69 6e |r on a.X| sin|
|00000bd0| 67 6c 65 20 69 6e 70 75 | 74 20 64 61 74 61 20 73 |gle inpu|t data s|
|00000be0| 74 72 65 61 6d 2e 0a 58 | 0a 58 20 20 20 2d 20 41 |tream..X|.X - A|
|00000bf0| 20 62 75 67 20 77 61 73 | 20 66 69 78 65 64 20 74 | bug was| fixed t|
|00000c00| 68 61 74 20 63 6f 75 6c | 64 20 63 61 75 73 65 20 |hat coul|d cause |
|00000c10| 72 65 6d 6f 76 61 6c 20 | 6f 66 20 61 20 64 69 72 |removal |of a dir|
|00000c20| 65 63 74 6f 72 79 20 6c | 69 6e 6b 20 62 79 20 74 |ectory l|ink by t|
|00000c30| 68 65 0a 58 20 20 20 20 | 20 73 75 70 65 72 75 73 |he.X | superus|
|00000c40| 65 72 2e 0a 58 0a 58 20 | 20 20 2d 20 54 68 65 20 |er..X.X | - The |
|00000c50| 61 62 69 6c 69 74 79 20 | 6f 66 20 5a 6f 6f 20 74 |ability |of Zoo t|
|00000c60| 6f 20 72 65 63 6f 76 65 | 72 20 64 61 74 61 20 66 |o recove|r data f|
|00000c70| 72 6f 6d 20 64 61 6d 61 | 67 65 64 20 61 72 63 68 |rom dama|ged arch|
|00000c80| 69 76 65 73 20 69 73 20 | 67 72 65 61 74 6c 79 0a |ives is |greatly.|
|00000c90| 58 20 20 20 20 20 69 6d | 70 72 6f 76 65 64 2e 0a |X im|proved..|
|00000ca0| 58 0a 58 0a 58 53 75 6d | 6d 61 72 79 20 6f 66 20 |X.X.XSum|mary of |
|00000cb0| 43 68 61 6e 67 65 73 20 | 66 72 6f 6d 20 5a 6f 6f |Changes |from Zoo|
|00000cc0| 20 76 65 72 73 69 6f 6e | 20 32 2e 30 30 20 74 6f | version| 2.00 to|
|00000cd0| 20 76 65 72 73 69 6f 6e | 20 32 2e 30 31 2e 0a 58 | version| 2.01..X|
|00000ce0| 0a 58 20 20 20 2d 20 41 | 20 62 75 67 20 77 61 73 |.X - A| bug was|
|00000cf0| 20 66 69 78 65 64 20 74 | 68 61 74 20 68 61 64 20 | fixed t|hat had |
|00000d00| 63 61 75 73 65 64 20 74 | 68 65 20 66 69 72 73 74 |caused t|he first|
|00000d10| 20 67 65 6e 65 72 61 74 | 69 6f 6e 20 6f 66 20 61 | generat|ion of a|
|00000d20| 20 66 69 6c 65 20 74 6f | 0a 58 20 20 20 20 20 73 | file to|.X s|
|00000d30| 6f 6d 65 74 69 6d 65 73 | 20 75 6e 65 78 70 65 63 |ometimes| unexpec|
|00000d40| 74 65 64 6c 79 20 73 68 | 6f 77 20 75 70 20 69 6e |tedly sh|ow up in|
|00000d50| 20 61 72 63 68 69 76 65 | 20 6c 69 73 74 69 6e 67 | archive| listing|
|00000d60| 73 2e 0a 58 0a 58 20 20 | 20 2d 20 41 20 62 75 67 |s..X.X | - A bug|
|00000d70| 20 77 61 73 20 66 69 78 | 65 64 20 74 68 61 74 20 | was fix|ed that |
|00000d80| 68 61 64 20 63 61 75 73 | 65 64 20 74 68 65 20 4d |had caus|ed the M|
|00000d90| 53 2d 44 4f 53 20 76 65 | 72 73 69 6f 6e 20 74 6f |S-DOS ve|rsion to|
|00000da0| 20 73 69 6c 65 6e 74 6c | 79 20 73 6b 69 70 0a 58 | silentl|y skip.X|
|00000db0| 20 20 20 20 20 65 78 74 | 72 61 63 74 69 6e 67 20 | ext|racting |
|00000dc0| 66 69 6c 65 73 20 66 6f | 72 20 77 68 69 63 68 20 |files fo|r which |
|00000dd0| 74 68 65 72 65 20 77 61 | 73 20 6e 6f 74 20 73 75 |there wa|s not su|
|00000de0| 66 66 69 63 69 65 6e 74 | 20 64 69 73 6b 20 73 70 |fficient| disk sp|
|00000df0| 61 63 65 3b 20 61 6e 0a | 58 20 20 20 20 20 65 72 |ace; an.|X er|
|00000e00| 72 6f 72 20 6d 65 73 73 | 61 67 65 20 77 69 6c 6c |ror mess|age will|
|00000e10| 20 6e 6f 77 20 62 65 20 | 67 69 76 65 6e 2e 0a 58 | now be |given..X|
|00000e20| 0a 58 20 20 20 2d 20 41 | 20 62 75 67 20 77 61 73 |.X - A| bug was|
|00000e30| 20 66 69 78 65 64 20 74 | 68 61 74 20 68 61 64 20 | fixed t|hat had |
|00000e40| 73 6f 6d 65 74 69 6d 65 | 73 20 6d 61 64 65 20 69 |sometime|s made i|
|00000e50| 74 20 69 6d 70 6f 73 73 | 69 62 6c 65 20 74 6f 0a |t imposs|ible to.|
|00000e60| 58 20 20 20 20 20 73 65 | 6c 65 63 74 69 76 65 6c |X se|lectivel|
|00000e70| 79 20 65 78 74 72 61 63 | 74 20 61 20 66 69 6c 65 |y extrac|t a file|
|00000e80| 20 62 79 20 73 70 65 63 | 69 66 79 69 6e 67 20 69 | by spec|ifying i|
|00000e90| 74 73 20 6e 61 6d 65 2c | 20 65 76 65 6e 20 74 68 |ts name,| even th|
|00000ea0| 6f 75 67 68 20 61 6c 6c | 0a 58 20 20 20 20 20 66 |ough all|.X f|
|00000eb0| 69 6c 65 73 20 63 6f 75 | 6c 64 20 62 65 20 65 78 |iles cou|ld be ex|
|00000ec0| 74 72 61 63 74 65 64 20 | 66 72 6f 6d 20 74 68 65 |tracted |from the|
|00000ed0| 20 61 72 63 68 69 76 65 | 20 62 79 20 6e 6f 74 20 | archive| by not |
|00000ee0| 73 70 65 63 69 66 79 69 | 6e 67 20 61 6e 79 0a 58 |specifyi|ng any.X|
|00000ef0| 20 20 20 20 20 66 69 6c | 65 6e 61 6d 65 73 2e 20 | fil|enames. |
|00000f00| 20 54 68 69 73 20 6f 63 | 63 75 72 72 65 64 20 77 | This oc|curred w|
|00000f10| 68 65 6e 20 61 20 66 69 | 6c 65 20 68 61 64 20 62 |hen a fi|le had b|
|00000f20| 65 65 6e 20 61 72 63 68 | 69 76 65 64 20 6f 6e 20 |een arch|ived on |
|00000f30| 61 0a 58 20 20 20 20 20 | 6c 6f 6e 67 65 72 2d 66 |a.X |longer-f|
|00000f40| 69 6c 65 6e 61 6d 65 20 | 73 79 73 74 65 6d 20 28 |ilename |system (|
|00000f50| 65 2e 67 2e 20 41 6d 69 | 67 61 44 4f 53 29 20 61 |e.g. Ami|gaDOS) a|
|00000f60| 6e 64 20 65 78 74 72 61 | 63 74 69 6f 6e 20 77 61 |nd extra|ction wa|
|00000f70| 73 20 61 74 74 65 6d 70 | 74 65 64 0a 58 20 20 20 |s attemp|ted.X |
|00000f80| 20 20 6f 6e 20 61 20 73 | 68 6f 72 74 65 72 2d 66 | on a s|horter-f|
|00000f90| 69 6c 65 6e 61 6d 65 20 | 73 79 73 74 65 6d 20 28 |ilename |system (|
|00000fa0| 65 2e 67 2e 20 4d 53 2d | 44 4f 53 29 2e 0a 58 0a |e.g. MS-|DOS)..X.|
|00000fb0| 58 20 20 20 2d 20 41 20 | 63 68 61 6e 67 65 20 77 |X - A |change w|
|00000fc0| 61 73 20 6d 61 64 65 20 | 74 68 61 74 20 77 69 6c |as made |that wil|
|00000fd0| 6c 20 6d 61 6b 65 20 7a | 6f 6f 20 70 72 65 73 65 |l make z|oo prese|
|00000fe0| 72 76 65 20 74 68 65 20 | 6d 6f 64 65 20 28 66 69 |rve the |mode (fi|
|00000ff0| 6c 65 0a 58 20 20 20 20 | 20 70 72 6f 74 65 63 74 |le.X | protect|
|00001000| 69 6f 6e 29 20 6f 66 20 | 61 20 7a 6f 6f 20 61 72 |ion) of |a zoo ar|
|00001010| 63 68 69 76 65 20 77 68 | 65 6e 20 69 74 20 69 73 |chive wh|en it is|
|00001020| 20 70 61 63 6b 65 64 2e | 20 20 54 68 69 73 20 69 | packed.| This i|
|00001030| 73 20 65 66 66 65 63 74 | 69 76 65 0a 58 20 20 20 |s effect|ive.X |
|00001040| 20 20 6f 6e 6c 79 20 69 | 66 20 7a 6f 6f 20 69 73 | only i|f zoo is|
|00001050| 20 63 6f 6d 70 69 6c 65 | 64 20 74 6f 20 70 72 65 | compile|d to pre|
|00001060| 73 65 72 76 65 20 61 6e | 64 20 72 65 73 74 6f 72 |serve an|d restor|
|00001070| 65 20 66 69 6c 65 20 61 | 74 74 72 69 62 75 74 65 |e file a|ttribute|
|00001080| 73 2e 0a 58 20 20 20 20 | 20 43 75 72 72 65 6e 74 |s..X | Current|
|00001090| 6c 79 20 74 68 69 73 20 | 69 73 20 73 6f 20 6f 6e |ly this |is so on|
|000010a0| 6c 79 20 66 6f 72 20 2a | 2a 49 58 20 73 79 73 74 |ly for *|*IX syst|
|000010b0| 65 6d 73 2e 0a 58 0a 58 | 20 20 20 2d 20 41 20 62 |ems..X.X| - A b|
|000010c0| 75 67 20 77 61 73 20 66 | 69 78 65 64 20 74 68 61 |ug was f|ixed tha|
|000010d0| 74 20 68 61 64 20 63 61 | 75 73 65 64 20 61 6e 20 |t had ca|used an |
|000010e0| 75 70 64 61 74 65 20 6f | 66 20 61 6e 20 61 72 63 |update o|f an arc|
|000010f0| 68 69 76 65 20 74 6f 20 | 6e 6f 74 0a 58 20 20 20 |hive to |not.X |
|00001100| 20 20 61 6c 77 61 79 73 | 20 61 64 64 20 61 6c 6c | always| add all|
|00001110| 20 6e 65 77 65 72 20 66 | 69 6c 65 73 2e 0a 58 0a | newer f|iles..X.|
|00001120| 58 20 20 20 2d 20 42 6c | 61 6e 6b 73 20 61 72 6f |X - Bl|anks aro|
|00001130| 75 6e 64 20 65 71 75 61 | 6c 20 73 69 67 6e 73 20 |und equa|l signs |
|00001140| 69 6e 20 63 6f 6d 6d 61 | 6e 64 73 20 67 69 76 65 |in comma|nds give|
|00001150| 6e 20 74 6f 20 22 6d 61 | 6b 65 22 20 77 65 72 65 |n to "ma|ke" were|
|00001160| 20 72 65 6d 6f 76 65 64 | 0a 58 20 20 20 20 20 66 | removed|.X f|
|00001170| 72 6f 6d 20 74 68 65 20 | 6d 6b 2a 20 73 63 72 69 |rom the |mk* scri|
|00001180| 70 74 73 20 66 6f 72 20 | 62 65 74 74 65 72 20 63 |pts for |better c|
|00001190| 6f 6d 70 61 74 69 62 6c | 69 74 79 20 77 69 74 68 |ompatibl|ity with|
|000011a0| 20 6d 6f 72 65 20 2a 2a | 49 58 0a 58 20 20 20 20 | more **|IX.X |
|000011b0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 73 | impleme|ntations|
|000011c0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 53 75 6e 27 73 | includi|ng Sun's|
|000011d0| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |..X.X | |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011f0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 52 61 68 | | -- Rah|
|00001200| 75 6c 20 44 68 65 73 69 | 20 31 39 38 38 2f 30 38 |ul Dhesi| 1988/08|
|00001210| 2f 32 35 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |/25.END_|OF_FILE.|
|00001220| 69 66 20 74 65 73 74 20 | 32 34 39 37 20 2d 6e 65 |if test |2497 -ne|
|00001230| 20 60 77 63 20 2d 63 20 | 3c 27 43 68 61 6e 67 65 | `wc -c |<'Change|
|00001240| 73 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |s'`; the|n. ec|
|00001250| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 43 68 61 6e |ho shar:| \"'Chan|
|00001260| 67 65 73 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ges'\" u|npacked |
|00001270| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00001280| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 43 68 |.fi.# en|d of 'Ch|
|00001290| 61 6e 67 65 73 27 0a 66 | 69 0a 69 66 20 74 65 73 |anges'.f|i.if tes|
|000012a0| 74 20 2d 66 20 27 4c 61 | 74 65 6e 65 77 73 27 20 |t -f 'La|tenews' |
|000012b0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|000012c0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|000012d0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|000012e0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|000012f0| 20 66 69 6c 65 20 5c 22 | 27 4c 61 74 65 6e 65 77 | file \"|'Latenew|
|00001300| 73 27 5c 22 0a 65 6c 73 | 65 0a 65 63 68 6f 20 73 |s'\".els|e.echo s|
|00001310| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00001320| 5c 22 27 4c 61 74 65 6e | 65 77 73 27 5c 22 20 5c |\"'Laten|ews'\" \|
|00001330| 28 31 32 30 37 20 63 68 | 61 72 61 63 74 65 72 73 |(1207 ch|aracters|
|00001340| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|00001350| 3e 27 4c 61 74 65 6e 65 | 77 73 27 20 3c 3c 27 45 |>'Latene|ws' <<'E|
|00001360| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 20 20 20 |ND_OF_FI|LE'.X |
|00001370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001380| 20 20 20 20 20 20 20 20 | 20 20 20 4c 61 74 65 20 | | Late |
|00001390| 62 72 65 61 6b 69 6e 67 | 20 63 6f 6d 6d 65 6e 74 |breaking| comment|
|000013a0| 73 0a 58 0a 58 6f 20 20 | 20 20 49 20 68 61 76 65 |s.X.Xo | I have|
|000013b0| 20 6e 6f 74 20 74 72 69 | 65 64 20 63 6f 6d 70 69 | not tri|ed compi|
|000013c0| 6c 69 6e 67 20 61 6e 64 | 20 65 78 65 63 75 74 69 |ling and| executi|
|000013d0| 6e 67 20 61 6c 6c 20 73 | 6f 75 72 63 65 20 66 69 |ng all s|ource fi|
|000013e0| 6c 65 73 20 77 69 74 68 | 20 4e 44 45 42 55 47 0a |les with| NDEBUG.|
|000013f0| 58 20 20 20 20 20 2a 6e | 6f 74 2a 20 64 65 66 69 |X *n|ot* defi|
|00001400| 6e 65 64 2e 20 20 57 68 | 65 6e 20 4e 44 45 42 55 |ned. Wh|en NDEBU|
|00001410| 47 20 69 73 20 6e 6f 74 | 20 64 65 66 69 6e 65 64 |G is not| defined|
|00001420| 2c 20 6d 61 6e 79 20 61 | 73 73 65 72 74 69 6f 6e |, many a|ssertion|
|00001430| 73 20 69 6e 20 74 68 65 | 20 63 6f 64 65 0a 58 20 |s in the| code.X |
|00001440| 20 20 20 20 67 65 74 20 | 65 6e 61 62 6c 65 64 20 | get |enabled |
|00001450| 61 6e 64 20 77 69 6c 6c | 20 67 69 76 65 20 65 72 |and will| give er|
|00001460| 72 6f 72 20 6d 65 73 73 | 61 67 65 73 20 69 66 20 |ror mess|ages if |
|00001470| 74 68 65 79 20 66 61 69 | 6c 2e 20 20 52 65 63 65 |they fai|l. Rece|
|00001480| 6e 74 0a 58 20 20 20 20 | 20 72 65 76 69 73 69 6f |nt.X | revisio|
|00001490| 6e 73 20 6d 61 79 20 68 | 61 76 65 20 6d 61 64 65 |ns may h|ave made|
|000014a0| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 73 65 20 61 | some of| these a|
|000014b0| 73 73 65 72 74 69 6f 6e | 73 20 69 6e 76 61 6c 69 |ssertion|s invali|
|000014c0| 64 2e 0a 58 0a 58 6f 20 | 20 20 20 4f 6e 20 73 79 |d..X.Xo | On sy|
|000014d0| 73 74 65 6d 73 20 77 69 | 74 68 20 69 6e 74 73 20 |stems wi|th ints |
|000014e0| 6c 6f 6e 67 65 72 20 74 | 68 61 6e 20 33 32 20 62 |longer t|han 32 b|
|000014f0| 69 74 73 2c 20 74 68 65 | 72 65 20 77 65 72 65 20 |its, the|re were |
|00001500| 73 6f 6d 65 20 6d 69 6e | 6f 72 0a 58 20 20 20 20 |some min|or.X |
|00001510| 20 70 6f 72 74 61 62 69 | 6c 69 74 79 20 70 72 6f | portabi|lity pro|
|00001520| 62 6c 65 6d 73 20 72 65 | 70 6f 72 74 65 64 20 69 |blems re|ported i|
|00001530| 6e 20 74 68 65 20 70 61 | 73 74 2e 20 20 49 20 73 |n the pa|st. I s|
|00001540| 75 67 67 65 73 74 65 64 | 20 73 6f 6d 65 20 66 69 |uggested| some fi|
|00001550| 78 65 73 20 28 77 68 69 | 63 68 0a 58 20 20 20 20 |xes (whi|ch.X |
|00001560| 20 61 72 65 20 69 6e 63 | 6f 72 70 6f 72 61 74 65 | are inc|orporate|
|00001570| 64 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |d in the| current|
|00001580| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 29 20 62 | distrib|ution) b|
|00001590| 75 74 20 77 61 73 20 75 | 6e 61 62 6c 65 20 74 6f |ut was u|nable to|
|000015a0| 20 63 6f 6e 66 69 72 6d | 0a 58 20 20 20 20 20 69 | confirm|.X i|
|000015b0| 66 20 74 68 65 79 20 77 | 6f 72 6b 65 64 2e 20 20 |f they w|orked. |
|000015c0| 49 66 20 79 6f 75 20 67 | 65 74 20 7a 6f 6f 20 32 |If you g|et zoo 2|
|000015d0| 2e 30 20 77 6f 72 6b 69 | 6e 67 20 6f 6e 20 61 20 |.0 worki|ng on a |
|000015e0| 43 72 61 79 2c 20 43 44 | 43 2c 20 6f 72 20 73 69 |Cray, CD|C, or si|
|000015f0| 6d 69 6c 61 72 0a 58 20 | 20 20 20 20 6d 61 63 68 |milar.X | mach|
|00001600| 69 6e 65 20 77 69 74 68 | 20 76 65 72 79 20 6c 61 |ine with| very la|
|00001610| 72 67 65 20 69 6e 74 73 | 2c 20 70 6c 65 61 73 65 |rge ints|, please|
|00001620| 20 6c 65 74 20 6d 65 20 | 6b 6e 6f 77 2e 0a 58 0a | let me |know..X.|
|00001630| 58 6f 20 20 20 20 48 61 | 6e 64 6c 69 6e 67 20 6f |Xo Ha|ndling o|
|00001640| 66 20 70 61 74 68 6e 61 | 6d 65 73 20 6c 6f 6e 67 |f pathna|mes long|
|00001650| 65 72 20 74 68 61 6e 20 | 32 35 35 20 63 68 61 72 |er than |255 char|
|00001660| 61 63 74 65 72 73 20 69 | 73 20 70 72 6f 62 61 62 |acters i|s probab|
|00001670| 6c 79 20 6e 6f 74 20 72 | 6f 62 75 73 74 0a 58 20 |ly not r|obust.X |
|00001680| 20 20 20 20 61 74 20 74 | 68 69 73 20 74 69 6d 65 | at t|his time|
|00001690| 2e 20 20 5a 6f 6f 20 73 | 68 6f 75 6c 64 20 62 65 |. Zoo s|hould be|
|000016a0| 20 61 62 6c 65 20 74 6f | 20 68 61 6e 64 6c 65 20 | able to| handle |
|000016b0| 70 61 74 68 61 6e 6d 65 | 73 20 6f 66 20 75 70 20 |pathanme|s of up |
|000016c0| 74 6f 20 35 31 30 0a 58 | 20 20 20 20 20 63 68 61 |to 510.X| cha|
|000016d0| 72 61 63 74 65 72 73 2c | 20 77 69 74 68 20 74 68 |racters,| with th|
|000016e0| 65 20 66 69 6c 65 6e 61 | 6d 65 20 70 61 72 74 20 |e filena|me part |
|000016f0| 61 6e 64 20 74 68 65 20 | 64 69 72 65 63 74 6f 72 |and the |director|
|00001700| 79 20 70 72 65 66 69 78 | 20 70 61 72 74 20 65 61 |y prefix| part ea|
|00001710| 63 68 0a 58 20 20 20 20 | 20 62 65 69 6e 67 20 32 |ch.X | being 2|
|00001720| 35 35 20 63 68 61 72 61 | 63 74 65 72 73 20 6f 72 |55 chara|cters or|
|00001730| 20 6c 65 73 73 2e 20 20 | 42 75 74 20 69 74 20 77 | less. |But it w|
|00001740| 69 6c 6c 20 70 72 6f 62 | 61 62 6c 79 20 63 68 6f |ill prob|ably cho|
|00001750| 6b 65 20 6f 6e 20 61 6e | 79 20 70 61 74 68 6e 61 |ke on an|y pathna|
|00001760| 6d 65 0a 58 20 20 20 20 | 20 74 68 61 74 20 69 73 |me.X | that is|
|00001770| 20 6c 6f 6e 67 65 72 20 | 74 68 61 6e 20 32 35 35 | longer |than 255|
|00001780| 20 63 68 61 72 61 63 74 | 65 72 73 2e 0a 58 0a 58 | charact|ers..X.X|
|00001790| 6f 20 20 20 20 54 68 65 | 20 2a 2a 49 58 20 22 66 |o The| **IX "f|
|000017a0| 69 6c 65 22 20 63 6f 6d | 6d 61 6e 64 2c 20 61 74 |ile" com|mand, at|
|000017b0| 20 6c 65 61 73 74 20 6f | 6e 20 53 79 73 74 65 6d | least o|n System|
|000017c0| 20 56 20 52 65 6c 65 61 | 73 65 20 32 20 61 6e 64 | V Relea|se 2 and|
|000017d0| 20 6f 6e 20 34 2e 33 42 | 53 44 2c 0a 58 20 20 20 | on 4.3B|SD,.X |
|000017e0| 20 20 63 61 6e 20 62 65 | 20 6d 61 64 65 20 74 6f | can be| made to|
|000017f0| 20 72 65 63 6f 67 6e 69 | 7a 65 20 7a 6f 6f 20 61 | recogni|ze zoo a|
|00001800| 72 63 68 69 76 65 73 2e | 20 20 49 6e 73 74 72 75 |rchives.| Instru|
|00001810| 63 74 69 6f 6e 73 20 61 | 72 65 20 69 6e 20 74 68 |ctions a|re in th|
|00001820| 65 20 66 69 6c 65 0a 58 | 20 20 20 20 20 22 66 69 |e file.X| "fi|
|00001830| 6c 65 2e 66 69 78 22 2e | 0a 45 4e 44 5f 4f 46 5f |le.fix".|.END_OF_|
|00001840| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 31 32 30 |FILE.if |test 120|
|00001850| 37 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 27 4c |7 -ne `w|c -c <'L|
|00001860| 61 74 65 6e 65 77 73 27 | 60 3b 20 74 68 65 6e 0a |atenews'|`; then.|
|00001870| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|00001880| 22 27 4c 61 74 65 6e 65 | 77 73 27 5c 22 20 75 6e |"'Latene|ws'\" un|
|00001890| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000018a0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|000018b0| 20 6f 66 20 27 4c 61 74 | 65 6e 65 77 73 27 0a 66 | of 'Lat|enews'.f|
|000018c0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 61 64 |i.if tes|t -f 'ad|
|000018d0| 64 62 66 63 72 63 2e 63 | 27 20 2d 61 20 22 24 7b |dbfcrc.c|' -a "${|
|000018e0| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|000018f0| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00001900| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00001910| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00001920| 5c 22 27 61 64 64 62 66 | 63 72 63 2e 63 27 5c 22 |\"'addbf|crc.c'\"|
|00001930| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00001940| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 61 | Extract|ing \"'a|
|00001950| 64 64 62 66 63 72 63 2e | 63 27 5c 22 20 5c 28 38 |ddbfcrc.|c'\" \(8|
|00001960| 35 32 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |52 chara|cters\).|
|00001970| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 61 |sed "s/^|X//" >'a|
|00001980| 64 64 62 66 63 72 63 2e | 63 27 20 3c 3c 27 45 4e |ddbfcrc.|c' <<'EN|
|00001990| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 69 66 6e |D_OF_FIL|E'.X#ifn|
|000019a0| 64 65 66 20 4c 49 4e 54 | 0a 58 73 74 61 74 69 63 |def LINT|.Xstatic|
|000019b0| 20 63 68 61 72 20 73 63 | 63 73 69 64 5b 5d 3d 22 | char sc|csid[]="|
|000019c0| 40 28 23 29 20 61 64 64 | 62 66 63 72 63 2e 63 20 |@(#) add|bfcrc.c |
|000019d0| 32 2e 32 20 38 38 2f 30 | 31 2f 32 39 20 31 37 3a |2.2 88/0|1/29 17:|
|000019e0| 30 34 3a 33 31 22 3b 0a | 58 23 65 6e 64 69 66 20 |04:31";.|X#endif |
|000019f0| 2f 2a 20 4c 49 4e 54 20 | 2a 2f 0a 58 0a 58 23 69 |/* LINT |*/.X.X#i|
|00001a00| 6e 63 6c 75 64 65 20 22 | 6f 70 74 69 6f 6e 73 2e |nclude "|options.|
|00001a10| 68 22 0a 58 2f 2a 0a 58 | 61 64 64 62 66 63 72 63 |h".X/*.X|addbfcrc|
|00001a20| 28 29 20 61 63 63 65 70 | 74 73 20 61 20 62 75 66 |() accep|ts a buf|
|00001a30| 66 65 72 20 61 64 64 72 | 65 73 73 20 61 6e 64 20 |fer addr|ess and |
|00001a40| 61 20 63 6f 75 6e 74 20 | 61 6e 64 20 61 64 64 73 |a count |and adds|
|00001a50| 20 74 68 65 20 43 52 43 | 20 66 6f 72 0a 58 61 6c | the CRC| for.Xal|
|00001a60| 6c 20 62 79 74 65 73 20 | 69 6e 20 74 68 65 20 62 |l bytes |in the b|
|00001a70| 75 66 66 65 72 20 74 6f | 20 74 68 65 20 67 6c 6f |uffer to| the glo|
|00001a80| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 20 63 72 63 |bal vari|able crc|
|00001a90| 63 6f 64 65 20 75 73 69 | 6e 67 0a 58 43 52 43 2d |code usi|ng.XCRC-|
|00001aa0| 31 36 2e 0a 58 0a 58 43 | 52 43 20 63 6f 6d 70 75 |16..X.XC|RC compu|
|00001ab0| 74 61 74 69 6f 6e 20 61 | 6c 67 6f 72 69 74 68 6d |tation a|lgorithm|
|00001ac0| 20 6f 72 69 67 69 6e 61 | 6c 6c 79 20 66 72 6f 6d | origina|lly from|
|00001ad0| 20 61 6e 20 61 72 74 69 | 63 6c 65 20 62 79 20 44 | an arti|cle by D|
|00001ae0| 61 76 69 64 20 53 63 68 | 77 61 64 65 72 65 72 20 |avid Sch|waderer |
|00001af0| 0a 58 69 6e 20 74 68 65 | 20 41 70 72 69 6c 20 31 |.Xin the| April 1|
|00001b00| 39 38 35 20 69 73 73 75 | 65 20 6f 66 20 50 43 20 |985 issu|e of PC |
|00001b10| 54 65 63 68 20 4a 6f 75 | 72 6e 61 6c 2e 0a 58 0a |Tech Jou|rnal..X.|
|00001b20| 58 4c 6f 6f 70 20 6f 70 | 74 69 6d 69 7a 61 74 69 |XLoop op|timizati|
|00001b30| 6f 6e 20 64 6f 6e 65 20 | 62 79 20 4a 2e 20 42 72 |on done |by J. Br|
|00001b40| 69 61 6e 20 57 61 74 65 | 72 73 2e 0a 58 0a 58 49 |ian Wate|rs..X.XI|
|00001b50| 20 63 6c 61 69 6d 20 6e | 6f 20 63 6f 70 79 72 69 | claim n|o copyri|
|00001b60| 67 68 74 20 6f 76 65 72 | 20 74 68 65 20 63 6f 6e |ght over| the con|
|00001b70| 74 65 6e 74 73 20 6f 66 | 20 74 68 69 73 20 66 69 |tents of| this fi|
|00001b80| 6c 65 2e 0a 58 0a 58 20 | 20 20 20 20 20 20 20 20 |le..X.X | |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 52 61 | | -- Ra|
|00001bb0| 68 75 6c 20 44 68 65 73 | 69 20 31 39 38 36 2f 30 |hul Dhes|i 1986/0|
|00001bc0| 38 2f 32 37 0a 58 0a 58 | 2a 2f 0a 58 0a 58 65 78 |8/27.X.X|*/.X.Xex|
|00001bd0| 74 65 72 6e 20 75 6e 73 | 69 67 6e 65 64 20 69 6e |tern uns|igned in|
|00001be0| 74 20 63 72 63 63 6f 64 | 65 3b 0a 58 65 78 74 65 |t crccod|e;.Xexte|
|00001bf0| 72 6e 20 75 6e 73 69 67 | 6e 65 64 20 63 72 63 74 |rn unsig|ned crct|
|00001c00| 61 62 5b 5d 3b 0a 58 0a | 58 76 6f 69 64 20 61 64 |ab[];.X.|Xvoid ad|
|00001c10| 64 62 66 63 72 63 28 62 | 75 66 66 65 72 2c 63 6f |dbfcrc(b|uffer,co|
|00001c20| 75 6e 74 29 0a 58 72 65 | 67 69 73 74 65 72 20 63 |unt).Xre|gister c|
|00001c30| 68 61 72 20 2a 62 75 66 | 66 65 72 3b 0a 58 72 65 |har *buf|fer;.Xre|
|00001c40| 67 69 73 74 65 72 20 69 | 6e 74 20 63 6f 75 6e 74 |gister i|nt count|
|00001c50| 3b 0a 58 0a 58 7b 0a 58 | 20 20 20 72 65 67 69 73 |;.X.X{.X| regis|
|00001c60| 74 65 72 20 75 6e 73 69 | 67 6e 65 64 20 69 6e 74 |ter unsi|gned int|
|00001c70| 20 6c 6f 63 61 6c 63 72 | 63 3b 0a 58 20 20 20 6c | localcr|c;.X l|
|00001c80| 6f 63 61 6c 63 72 63 20 | 3d 20 63 72 63 63 6f 64 |ocalcrc |= crccod|
|00001c90| 65 3b 0a 58 0a 58 20 20 | 20 66 6f 72 20 28 3b 20 |e;.X.X | for (; |
|00001ca0| 63 6f 75 6e 74 2d 2d 3b | 20 29 0a 58 20 20 20 20 |count--;| ).X |
|00001cb0| 20 20 6c 6f 63 61 6c 63 | 72 63 20 3d 20 28 6c 6f | localc|rc = (lo|
|00001cc0| 63 61 6c 63 72 63 3e 3e | 38 29 20 5e 20 63 72 63 |calcrc>>|8) ^ crc|
|00001cd0| 74 61 62 5b 28 6c 6f 63 | 61 6c 63 72 63 20 5e 20 |tab[(loc|alcrc ^ |
|00001ce0| 28 2a 62 75 66 66 65 72 | 2b 2b 29 29 20 26 20 30 |(*buffer|++)) & 0|
|00001cf0| 78 30 30 66 66 5d 3b 0a | 58 20 20 20 63 72 63 63 |x00ff];.|X crcc|
|00001d00| 6f 64 65 20 3d 20 6c 6f | 63 61 6c 63 72 63 3b 0a |ode = lo|calcrc;.|
|00001d10| 58 7d 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |X}.END_O|F_FILE.i|
|00001d20| 66 20 74 65 73 74 20 38 | 35 32 20 2d 6e 65 20 60 |f test 8|52 -ne `|
|00001d30| 77 63 20 2d 63 20 3c 27 | 61 64 64 62 66 63 72 63 |wc -c <'|addbfcrc|
|00001d40| 2e 63 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |.c'`; th|en. e|
|00001d50| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 61 64 64 |cho shar|: \"'add|
|00001d60| 62 66 63 72 63 2e 63 27 | 5c 22 20 75 6e 70 61 63 |bfcrc.c'|\" unpac|
|00001d70| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00001d80| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00001d90| 20 27 61 64 64 62 66 63 | 72 63 2e 63 27 0a 66 69 | 'addbfc|rc.c'.fi|
|00001da0| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 61 73 73 |.if test| -f 'ass|
|00001db0| 65 72 74 2e 68 27 20 2d | 61 20 22 24 7b 31 7d 22 |ert.h' -|a "${1}"|
|00001dc0| 20 21 3d 20 22 2d 63 22 | 20 3b 20 74 68 65 6e 20 | != "-c"| ; then |
|00001dd0| 0a 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 57 69 |. echo |shar: Wi|
|00001de0| 6c 6c 20 6e 6f 74 20 63 | 6c 6f 62 62 65 72 20 65 |ll not c|lobber e|
|00001df0| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 5c 22 27 |xisting |file \"'|
|00001e00| 61 73 73 65 72 74 2e 68 | 27 5c 22 0a 65 6c 73 65 |assert.h|'\".else|
|00001e10| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00001e20| 61 63 74 69 6e 67 20 5c | 22 27 61 73 73 65 72 74 |acting \|"'assert|
|00001e30| 2e 68 27 5c 22 20 5c 28 | 31 33 34 31 20 63 68 61 |.h'\" \(|1341 cha|
|00001e40| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00001e50| 2f 5e 58 2f 2f 22 20 3e | 27 61 73 73 65 72 74 2e |/^X//" >|'assert.|
|00001e60| 68 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |h' <<'EN|D_OF_FIL|
|00001e70| 45 27 0a 58 2f 2a 20 40 | 28 23 29 20 61 73 73 65 |E'.X/* @|(#) asse|
|00001e80| 72 74 2e 68 20 32 2e 31 | 20 38 37 2f 31 32 2f 32 |rt.h 2.1| 87/12/2|
|00001e90| 35 20 31 32 3a 32 31 3a | 33 32 20 2a 2f 0a 58 0a |5 12:21:|32 */.X.|
|00001ea0| 58 2f 2a 0a 58 54 68 65 | 20 63 6f 6e 74 65 6e 74 |X/*.XThe| content|
|00001eb0| 73 20 6f 66 20 74 68 69 | 73 20 66 69 6c 65 20 61 |s of thi|s file a|
|00001ec0| 72 65 20 68 65 72 65 62 | 79 20 72 65 6c 65 61 73 |re hereb|y releas|
|00001ed0| 65 64 20 74 6f 20 74 68 | 65 20 70 75 62 6c 69 63 |ed to th|e public|
|00001ee0| 20 64 6f 6d 61 69 6e 2e | 0a 58 0a 58 20 20 20 20 | domain.|.X.X |
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 20 20 20 20 20 20 2d | 2d 20 52 61 68 75 6c 20 | -|- Rahul |
|00001f10| 44 68 65 73 69 20 31 39 | 38 36 2f 31 31 2f 31 34 |Dhesi 19|86/11/14|
|00001f20| 0a 58 0a 58 44 65 66 69 | 6e 65 73 20 61 20 6d 61 |.X.XDefi|nes a ma|
|00001f30| 63 72 6f 20 61 73 73 65 | 72 74 28 29 20 74 68 61 |cro asse|rt() tha|
|00001f40| 74 20 63 61 75 73 65 73 | 20 61 6e 20 61 73 73 65 |t causes| an asse|
|00001f50| 72 74 69 6f 6e 20 65 72 | 72 6f 72 20 69 66 20 74 |rtion er|ror if t|
|00001f60| 68 65 20 61 73 73 65 72 | 74 69 6f 6e 0a 58 66 61 |he asser|tion.Xfa|
|00001f70| 69 6c 73 2e 20 20 46 6f | 72 20 73 6f 6d 65 20 75 |ils. Fo|r some u|
|00001f80| 73 65 66 75 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |seful in|formatio|
|00001f90| 6e 20 61 62 6f 75 74 20 | 74 68 69 73 20 73 65 65 |n about |this see|
|00001fa0| 20 22 52 65 6c 69 61 62 | 6c 65 20 44 61 74 61 0a | "Reliab|le Data.|
|00001fb0| 58 53 74 72 75 63 74 75 | 72 65 73 20 69 6e 20 43 |XStructu|res in C|
|00001fc0| 22 20 62 79 20 54 68 6f | 6d 61 73 20 50 6c 75 6d |" by Tho|mas Plum|
|00001fd0| 20 70 61 67 65 20 31 2d | 32 31 2e 0a 58 0a 58 43 | page 1-|21..X.XC|
|00001fe0| 6f 6e 64 69 74 69 6f 6e | 61 6c 20 63 6f 6d 70 69 |ondition|al compi|
|00001ff0| 6c 61 74 69 6f 6e 3a 0a | 58 0a 58 20 20 20 49 66 |lation:.|X.X If|
|00002000| 20 4e 44 45 42 55 47 20 | 69 73 20 64 65 66 69 6e | NDEBUG |is defin|
|00002010| 65 64 20 74 68 65 6e 0a | 58 20 20 20 20 20 20 61 |ed then.|X a|
|00002020| 73 73 65 72 74 28 29 20 | 69 73 20 64 65 66 69 6e |ssert() |is defin|
|00002030| 65 64 20 61 73 20 6e 75 | 6c 6c 20 73 6f 20 61 6c |ed as nu|ll so al|
|00002040| 6c 20 61 73 73 65 72 74 | 69 6f 6e 73 20 76 61 6e |l assert|ions van|
|00002050| 69 73 68 0a 58 20 20 20 | 65 6c 73 65 0a 58 20 20 |ish.X |else.X |
|00002060| 20 20 20 20 69 66 20 44 | 55 4d 42 5f 41 53 53 20 | if D|UMB_ASS |
|00002070| 69 73 20 64 65 66 69 6e | 65 64 20 74 68 65 6e 20 |is defin|ed then |
|00002080| 20 20 2d 2d 20 75 73 65 | 20 64 75 6d 62 20 61 73 | -- use| dumb as|
|00002090| 73 65 72 74 69 6f 6e 73 | 0a 58 20 20 20 20 20 20 |sertions|.X |
|000020a0| 20 20 20 61 73 73 65 72 | 74 69 6f 6e 73 20 70 72 | asser|tions pr|
|000020b0| 69 6e 74 20 61 20 6d 65 | 73 73 61 67 65 20 62 75 |int a me|ssage bu|
|000020c0| 74 20 6e 6f 74 20 74 68 | 65 20 66 69 6c 65 6e 61 |t not th|e filena|
|000020d0| 6d 65 20 61 6e 64 20 6c | 69 6e 65 20 6e 75 6d 62 |me and l|ine numb|
|000020e0| 65 72 0a 58 20 20 20 20 | 20 20 65 6c 73 65 0a 58 |er.X | else.X|
|000020f0| 20 20 20 20 20 20 20 20 | 20 61 73 73 65 72 74 69 | | asserti|
|00002100| 6f 6e 73 20 70 72 69 6e | 74 20 6d 65 73 73 61 67 |ons prin|t messag|
|00002110| 65 20 69 6e 63 6c 75 64 | 69 6e 67 20 66 69 6c 65 |e includ|ing file|
|00002120| 6e 61 6d 65 20 61 6e 64 | 20 6c 69 6e 65 20 6e 75 |name and| line nu|
|00002130| 6d 62 65 72 0a 58 20 20 | 20 20 20 20 65 6e 64 69 |mber.X | endi|
|00002140| 66 0a 58 20 20 20 65 6e | 64 69 66 0a 58 0a 58 4e |f.X en|dif.X.XN|
|00002150| 6f 74 65 3a 0a 58 20 20 | 20 44 55 4d 42 5f 41 53 |ote:.X | DUMB_AS|
|00002160| 53 20 73 68 6f 75 6c 64 | 20 62 65 20 64 65 66 69 |S should| be defi|
|00002170| 6e 65 64 20 69 66 20 74 | 68 65 20 70 72 65 70 72 |ned if t|he prepr|
|00002180| 6f 63 65 73 73 6f 72 20 | 64 6f 65 73 20 6e 6f 74 |ocessor |does not|
|00002190| 20 73 75 70 70 6f 72 74 | 20 74 68 65 20 0a 58 20 | support| the .X |
|000021a0| 20 20 76 61 72 79 69 6e | 67 20 63 6f 6e 73 74 61 | varyin|g consta|
|000021b0| 6e 74 73 20 5f 5f 46 49 | 4c 45 5f 5f 20 61 6e 64 |nts __FI|LE__ and|
|000021c0| 20 5f 5f 4c 49 4e 45 5f | 5f 2c 20 77 68 69 63 68 | __LINE_|_, which|
|000021d0| 20 61 72 65 20 73 75 70 | 70 6f 73 65 64 20 74 6f | are sup|posed to|
|000021e0| 20 68 6f 6c 64 20 74 68 | 65 20 0a 58 20 20 20 6e | hold th|e .X n|
|000021f0| 61 6d 65 20 6f 66 20 74 | 68 65 20 63 75 72 72 65 |ame of t|he curre|
|00002200| 6e 74 20 66 69 6c 65 20 | 61 6e 64 20 74 68 65 20 |nt file |and the |
|00002210| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 63 75 |number o|f the cu|
|00002220| 72 72 65 6e 74 20 6c 69 | 6e 65 2e 0a 58 0a 58 2a |rrent li|ne..X.X*|
|00002230| 2f 0a 58 0a 58 23 69 66 | 6e 64 65 66 20 4e 44 45 |/.X.X#if|ndef NDE|
|00002240| 42 55 47 0a 58 2f 2a 20 | 61 73 73 65 72 74 28 29 |BUG.X/* |assert()|
|00002250| 20 6d 61 63 72 6f 20 64 | 65 66 69 6e 65 64 20 6f | macro d|efined o|
|00002260| 6e 6c 79 20 69 66 20 4e | 44 45 42 55 47 20 69 73 |nly if N|DEBUG is|
|00002270| 20 75 6e 64 65 66 69 6e | 65 64 20 2a 2f 0a 58 23 | undefin|ed */.X#|
|00002280| 69 66 64 65 66 20 44 55 | 4d 42 5f 41 53 53 0a 58 |ifdef DU|MB_ASS.X|
|00002290| 23 64 65 66 69 6e 65 20 | 61 73 73 65 72 74 28 45 |#define |assert(E|
|000022a0| 29 20 5c 0a 58 20 20 20 | 7b 20 69 66 20 28 21 28 |) \.X |{ if (!(|
|000022b0| 45 29 29 20 5c 0a 58 20 | 20 20 20 20 20 70 72 74 |E)) \.X | prt|
|000022c0| 65 72 72 6f 72 20 28 27 | 77 27 2c 20 22 41 73 73 |error ('|w', "Ass|
|000022d0| 65 72 74 69 6f 6e 20 65 | 72 72 6f 72 2e 5c 6e 22 |ertion e|rror.\n"|
|000022e0| 29 3b 20 5c 0a 58 20 20 | 20 7d 0a 58 23 65 6c 73 |); \.X | }.X#els|
|000022f0| 65 0a 58 2f 2a 20 65 6c | 73 65 20 6e 6f 74 20 44 |e.X/* el|se not D|
|00002300| 55 4d 42 5f 41 53 53 20 | 2a 2f 0a 58 23 64 65 66 |UMB_ASS |*/.X#def|
|00002310| 69 6e 65 20 61 73 73 65 | 72 74 28 45 29 20 5c 0a |ine asse|rt(E) \.|
|00002320| 58 20 20 20 7b 20 69 66 | 20 28 21 28 45 29 29 20 |X { if| (!(E)) |
|00002330| 5c 0a 58 20 20 20 20 20 | 20 70 72 74 65 72 72 6f |\.X | prterro|
|00002340| 72 20 28 27 77 27 2c 22 | 41 73 73 65 72 74 69 6f |r ('w',"|Assertio|
|00002350| 6e 20 65 72 72 6f 72 20 | 69 6e 20 25 73 3a 25 64 |n error |in %s:%d|
|00002360| 2e 5c 6e 22 2c 20 5f 5f | 46 49 4c 45 5f 5f 2c 20 |.\n", __|FILE__, |
|00002370| 5f 5f 4c 49 4e 45 5f 5f | 29 3b 20 5c 0a 58 20 20 |__LINE__|); \.X |
|00002380| 20 7d 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 6e 6f | }.X#end|if /* no|
|00002390| 74 20 44 55 4d 42 5f 41 | 53 53 20 2a 2f 0a 58 23 |t DUMB_A|SS */.X#|
|000023a0| 65 6c 73 65 0a 58 2f 2a | 20 65 6c 73 65 20 4e 44 |else.X/*| else ND|
|000023b0| 45 42 55 47 20 2a 2f 0a | 58 23 64 65 66 69 6e 65 |EBUG */.|X#define|
|000023c0| 20 61 73 73 65 72 74 28 | 45 29 0a 58 23 65 6e 64 | assert(|E).X#end|
|000023d0| 69 66 20 2f 2a 20 4e 44 | 45 42 55 47 20 2a 2f 0a |if /* ND|EBUG */.|
|000023e0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000023f0| 65 73 74 20 31 33 34 31 | 20 2d 6e 65 20 60 77 63 |est 1341| -ne `wc|
|00002400| 20 2d 63 20 3c 27 61 73 | 73 65 72 74 2e 68 27 60 | -c <'as|sert.h'`|
|00002410| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00002420| 73 68 61 72 3a 20 5c 22 | 27 61 73 73 65 72 74 2e |shar: \"|'assert.|
|00002430| 68 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |h'\" unp|acked wi|
|00002440| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00002450| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 61 73 73 65 |i.# end |of 'asse|
|00002460| 72 74 2e 68 27 0a 66 69 | 0a 69 66 20 74 65 73 74 |rt.h'.fi|.if test|
|00002470| 20 2d 66 20 27 62 73 64 | 2e 63 27 20 2d 61 20 22 | -f 'bsd|.c' -a "|
|00002480| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00002490| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|000024a0| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|000024b0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|000024c0| 65 20 5c 22 27 62 73 64 | 2e 63 27 5c 22 0a 65 6c |e \"'bsd|.c'\".el|
|000024d0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000024e0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 62 73 64 2e |tracting| \"'bsd.|
|000024f0| 63 27 5c 22 20 5c 28 32 | 33 37 37 20 63 68 61 72 |c'\" \(2|377 char|
|00002500| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00002510| 5e 58 2f 2f 22 20 3e 27 | 62 73 64 2e 63 27 20 3c |^X//" >'|bsd.c' <|
|00002520| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00002530| 23 69 66 6e 64 65 66 20 | 4c 49 4e 54 0a 58 73 74 |#ifndef |LINT.Xst|
|00002540| 61 74 69 63 20 63 68 61 | 72 20 62 73 64 69 64 5b |atic cha|r bsdid[|
|00002550| 5d 3d 22 40 28 23 29 20 | 62 73 64 2e 63 20 32 2e |]="@(#) |bsd.c 2.|
|00002560| 33 20 38 38 2f 30 31 2f | 31 30 20 31 34 3a 34 35 |3 88/01/|10 14:45|
|00002570| 3a 31 39 22 3b 0a 58 23 | 65 6e 64 69 66 20 2f 2a |:19";.X#|endif /*|
|00002580| 20 4c 49 4e 54 20 2a 2f | 0a 58 0a 58 2f 2a 20 6d | LINT */|.X.X/* m|
|00002590| 61 63 68 69 6e 65 2e 63 | 20 66 6f 72 20 34 2e 33 |achine.c| for 4.3|
|000025a0| 42 53 44 2e 20 2a 2f 0a | 58 0a 58 2f 2a 0a 58 54 |BSD. */.|X.X/*.XT|
|000025b0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|000025c0| 68 69 73 20 66 69 6c 65 | 20 61 72 65 20 68 65 72 |his file| are her|
|000025d0| 65 62 79 20 72 65 6c 65 | 61 73 65 64 20 74 6f 20 |eby rele|ased to |
|000025e0| 74 68 65 20 70 75 62 6c | 69 63 20 64 6f 6d 61 69 |the publ|ic domai|
|000025f0| 6e 2e 0a 58 0a 58 20 20 | 20 20 20 20 20 20 20 20 |n..X.X | |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002610| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 52 61 68 | | -- Rah|
|00002620| 75 6c 20 44 68 65 73 69 | 20 20 31 39 38 37 2f 30 |ul Dhesi| 1987/0|
|00002630| 37 2f 32 33 0a 58 2a 2f | 0a 58 0a 58 2f 2a 20 0a |7/23.X*/|.X.X/* .|
|00002640| 58 57 41 52 4e 49 4e 47 | 3a 20 20 54 68 69 73 20 |XWARNING|: This |
|00002650| 66 69 6c 65 20 61 73 73 | 75 6d 65 73 20 74 68 61 |file ass|umes tha|
|00002660| 74 20 5a 4f 4f 46 49 4c | 45 20 69 73 20 61 20 73 |t ZOOFIL|E is a s|
|00002670| 74 61 6e 64 61 72 64 20 | 62 75 66 66 65 72 65 64 |tandard |buffered|
|00002680| 0a 58 66 69 6c 65 2e 20 | 20 49 74 20 77 69 6c 6c |.Xfile. | It will|
|00002690| 20 68 61 76 65 20 74 6f | 20 62 65 20 6d 6f 64 69 | have to| be modi|
|000026a0| 66 69 65 64 20 69 66 20 | 5a 4f 4f 46 49 4c 45 20 |fied if |ZOOFILE |
|000026b0| 69 73 20 63 68 61 6e 67 | 65 64 20 74 6f 0a 58 62 |is chang|ed to.Xb|
|000026c0| 65 20 61 6e 20 75 6e 62 | 75 66 66 65 72 65 64 20 |e an unb|uffered |
|000026d0| 66 69 6c 65 20 64 65 73 | 63 72 69 70 74 6f 72 20 |file des|criptor |
|000026e0| 6f 72 20 74 6f 20 61 6e | 79 20 6f 74 68 65 72 20 |or to an|y other |
|000026f0| 6b 69 6e 64 20 6f 66 20 | 66 69 6c 65 2e 0a 58 2a |kind of |file..X*|
|00002700| 2f 0a 58 0a 58 23 69 66 | 64 65 66 20 55 4e 42 55 |/.X.X#if|def UNBU|
|00002710| 46 5f 49 4f 0a 58 2f 2a | 0a 58 46 75 6e 63 74 69 |F_IO.X/*|.XFuncti|
|00002720| 6f 6e 20 74 65 6c 6c 28 | 29 20 72 65 74 75 72 6e |on tell(|) return|
|00002730| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 65 |s the cu|rrent se|
|00002740| 65 6b 20 70 6f 73 69 74 | 69 6f 6e 20 66 6f 72 20 |ek posit|ion for |
|00002750| 61 20 66 69 6c 65 20 0a | 58 64 65 73 63 72 69 70 |a file .|Xdescrip|
|00002760| 74 6f 72 2e 20 20 34 2e | 33 42 53 44 20 6f 6e 20 |tor. 4.|3BSD on |
|00002770| 56 41 58 2d 31 31 2f 37 | 38 35 20 68 61 73 20 61 |VAX-11/7|85 has a|
|00002780| 6e 20 75 6e 64 6f 63 75 | 6d 65 6e 74 65 64 20 74 |n undocu|mented t|
|00002790| 65 6c 6c 28 29 20 66 75 | 6e 63 74 69 6f 6e 0a 58 |ell() fu|nction.X|
|000027a0| 62 75 74 20 69 74 20 6d | 61 79 20 6e 6f 74 20 65 |but it m|ay not e|
|000027b0| 78 69 73 74 20 6f 6e 20 | 61 6c 6c 20 69 6d 70 6c |xist on |all impl|
|000027c0| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 2c 20 73 6f 20 |ementati|ons, so |
|000027d0| 77 65 20 63 6f 64 65 20 | 6f 6e 65 20 68 65 72 65 |we code |one here|
|000027e0| 0a 58 74 6f 20 62 65 20 | 6f 6e 20 74 68 65 20 73 |.Xto be |on the s|
|000027f0| 61 66 65 20 73 69 64 65 | 2e 20 20 49 74 20 69 73 |afe side|. It is|
|00002800| 20 6e 65 65 64 65 64 20 | 66 6f 72 20 75 6e 62 75 | needed |for unbu|
|00002810| 66 66 65 72 65 64 20 49 | 2f 4f 20 6f 6e 6c 79 2e |ffered I|/O only.|
|00002820| 0a 58 2a 2f 0a 58 6c 6f | 6e 67 20 6c 73 65 65 6b |.X*/.Xlo|ng lseek|
|00002830| 20 50 41 52 4d 53 20 28 | 28 69 6e 74 2c 20 6c 6f | PARMS (|(int, lo|
|00002840| 6e 67 2c 20 69 6e 74 29 | 29 3b 0a 58 6c 6f 6e 67 |ng, int)|);.Xlong|
|00002850| 20 74 65 6c 6c 20 28 66 | 64 29 0a 58 69 6e 74 20 | tell (f|d).Xint |
|00002860| 66 64 3b 0a 58 7b 20 72 | 65 74 75 72 6e 20 28 6c |fd;.X{ r|eturn (l|
|00002870| 73 65 65 6b 20 28 66 64 | 2c 20 30 4c 2c 20 31 29 |seek (fd|, 0L, 1)|
|00002880| 29 3b 20 7d 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 |); }.X#e|ndif.X.X|
|00002890| 6c 6f 6e 67 20 66 74 65 | 6c 6c 28 29 3b 0a 58 0a |long fte|ll();.X.|
|000028a0| 58 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |X/******|********|
|000028b0| 2a 2a 0a 58 46 75 6e 63 | 74 69 6f 6e 20 74 72 75 |**.XFunc|tion tru|
|000028c0| 6e 63 28 29 20 74 72 75 | 6e 63 61 74 65 73 20 61 |nc() tru|ncates a|
|000028d0| 20 66 69 6c 65 2e 0a 58 | 2a 2f 0a 58 0a 58 69 6e | file..X|*/.X.Xin|
|000028e0| 74 20 74 72 75 6e 63 20 | 28 66 29 0a 58 5a 4f 4f |t trunc |(f).XZOO|
|000028f0| 46 49 4c 45 20 66 3b 0a | 58 7b 0a 58 09 66 66 6c |FILE f;.|X{.X.ffl|
|00002900| 75 73 68 20 28 66 29 3b | 09 09 09 09 09 09 09 09 |ush (f);|........|
|00002910| 09 2f 2a 20 6a 75 73 74 | 20 69 6e 20 63 61 73 65 |./* just| in case|
|00002920| 20 69 74 20 6d 61 74 74 | 65 72 73 20 2a 2f 0a 58 | it matt|ers */.X|
|00002930| 20 20 20 66 74 72 75 6e | 63 61 74 65 20 28 66 69 | ftrun|cate (fi|
|00002940| 6c 65 6e 6f 20 28 66 29 | 2c 20 66 74 65 6c 6c 20 |leno (f)|, ftell |
|00002950| 28 66 29 29 3b 0a 58 7d | 0a 58 0a 58 2f 2a 2a 2a |(f));.X}|.X.X/***|
|00002960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 58 46 |********|*****.XF|
|00002970| 75 6e 63 74 69 6f 6e 20 | 66 69 78 66 6e 61 6d 65 |unction |fixfname|
|00002980| 28 29 20 63 6f 6e 76 65 | 72 74 73 20 74 68 65 20 |() conve|rts the |
|00002990| 73 75 70 70 6c 69 65 64 | 20 66 69 6c 65 6e 61 6d |supplied| filenam|
|000029a0| 65 20 74 6f 20 61 20 73 | 79 6e 74 61 78 0a 58 6c |e to a s|yntax.Xl|
|000029b0| 65 67 61 6c 20 66 6f 72 | 20 74 68 65 20 68 6f 73 |egal for| the hos|
|000029c0| 74 20 73 79 73 74 65 6d | 2e 20 20 49 74 20 69 73 |t system|. It is|
|000029d0| 20 75 73 65 64 20 64 75 | 72 69 6e 67 20 65 78 74 | used du|ring ext|
|000029e0| 72 61 63 74 69 6f 6e 2e | 0a 58 2a 2f 0a 58 0a 58 |raction.|.X*/.X.X|
|000029f0| 63 68 61 72 20 2a 66 69 | 78 66 6e 61 6d 65 28 66 |char *fi|xfname(f|
|00002a00| 6e 61 6d 65 29 0a 58 63 | 68 61 72 20 2a 66 6e 61 |name).Xc|har *fna|
|00002a10| 6d 65 3b 0a 58 7b 0a 58 | 20 20 20 72 65 74 75 72 |me;.X{.X| retur|
|00002a20| 6e 20 28 66 6e 61 6d 65 | 29 3b 20 2f 2a 20 64 65 |n (fname|); /* de|
|00002a30| 66 61 75 6c 74 20 69 73 | 20 6e 6f 2d 6f 70 20 2a |fault is| no-op *|
|00002a40| 2f 0a 58 7d 0a 58 0a 58 | 2f 2a 2a 2a 2a 2a 2a 2a |/.X}.X.X|/*******|
|00002a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 58 44 61 74 65 20 |********|*.XDate |
|00002a60| 61 6e 64 20 74 69 6d 65 | 20 66 75 6e 63 74 69 6f |and time| functio|
|00002a70| 6e 73 20 61 72 65 20 73 | 74 61 6e 64 61 72 64 20 |ns are s|tandard |
|00002a80| 55 4e 49 58 2d 73 74 79 | 6c 65 20 66 75 6e 63 74 |UNIX-sty|le funct|
|00002a90| 69 6f 6e 73 2e 20 20 22 | 6e 69 78 74 69 6d 65 2e |ions. "|nixtime.|
|00002aa0| 69 22 0a 58 77 69 6c 6c | 20 62 65 20 69 6e 63 6c |i".Xwill| be incl|
|00002ab0| 75 64 65 64 20 62 79 20 | 6d 61 63 68 69 6e 65 2e |uded by |machine.|
|00002ac0| 63 2e 0a 58 2a 2f 0a 58 | 0a 58 23 69 6e 63 6c 75 |c..X*/.X|.X#inclu|
|00002ad0| 64 65 20 3c 73 79 73 2f | 74 79 70 65 73 2e 68 3e |de <sys/|types.h>|
|00002ae0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00002af0| 73 74 61 74 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |stat.h>.|X#includ|
|00002b00| 65 20 3c 73 79 73 2f 74 | 69 6d 65 2e 68 3e 0a 58 |e <sys/t|ime.h>.X|
|00002b10| 0a 58 2f 2a 20 46 75 6e | 63 74 69 6f 6e 20 69 73 |.X/* Fun|ction is|
|00002b20| 61 64 69 72 28 29 20 72 | 65 74 75 72 6e 73 20 31 |adir() r|eturns 1|
|00002b30| 20 69 66 20 74 68 65 20 | 73 75 70 70 6c 69 65 64 | if the |supplied|
|00002b40| 20 68 61 6e 64 6c 65 20 | 69 73 20 61 20 64 69 72 | handle |is a dir|
|00002b50| 65 63 74 6f 72 79 2c 20 | 0a 58 65 6c 73 65 20 69 |ectory, |.Xelse i|
|00002b60| 74 20 72 65 74 75 72 6e | 73 20 30 2e 20 20 0a 58 |t return|s 0. .X|
|00002b70| 2a 2f 0a 58 0a 58 69 6e | 74 20 69 73 61 64 69 72 |*/.X.Xin|t isadir|
|00002b80| 20 28 66 29 0a 58 5a 4f | 4f 46 49 4c 45 20 66 3b | (f).XZO|OFILE f;|
|00002b90| 0a 58 7b 0a 58 20 20 20 | 73 74 72 75 63 74 20 73 |.X{.X |struct s|
|00002ba0| 74 61 74 20 62 75 66 3b | 20 20 20 20 20 20 20 20 |tat buf;| |
|00002bb0| 20 20 20 2f 2a 20 62 75 | 66 66 65 72 20 74 6f 20 | /* bu|ffer to |
|00002bc0| 68 6f 6c 64 20 66 69 6c | 65 20 69 6e 66 6f 72 6d |hold fil|e inform|
|00002bd0| 61 74 69 6f 6e 20 2a 2f | 0a 58 20 20 20 69 66 20 |ation */|.X if |
|00002be0| 28 66 73 74 61 74 20 28 | 66 69 6c 65 6e 6f 20 28 |(fstat (|fileno (|
|00002bf0| 66 29 2c 20 26 62 75 66 | 29 20 3d 3d 20 2d 31 29 |f), &buf|) == -1)|
|00002c00| 20 7b 0a 58 20 20 20 20 | 20 20 72 65 74 75 72 6e | {.X | return|
|00002c10| 20 28 30 29 3b 20 20 20 | 20 20 20 20 20 20 20 20 | (0); | |
|00002c20| 20 20 2f 2a 20 69 6e 61 | 63 63 65 73 73 69 62 6c | /* ina|ccessibl|
|00002c30| 65 20 2d 2d 20 61 73 73 | 75 6d 65 20 6e 6f 74 20 |e -- ass|ume not |
|00002c40| 64 69 72 20 2a 2f 0a 58 | 20 20 20 7d 20 65 6c 73 |dir */.X| } els|
|00002c50| 65 20 7b 0a 58 20 20 20 | 20 20 20 69 66 20 28 62 |e {.X | if (b|
|00002c60| 75 66 2e 73 74 5f 6d 6f | 64 65 20 26 20 53 5f 49 |uf.st_mo|de & S_I|
|00002c70| 46 44 49 52 29 0a 58 20 | 20 20 20 20 20 20 20 20 |FDIR).X | |
|00002c80| 72 65 74 75 72 6e 20 28 | 31 29 3b 0a 58 20 20 20 |return (|1);.X |
|00002c90| 20 20 20 65 6c 73 65 0a | 58 20 20 20 20 20 20 20 | else.|X |
|00002ca0| 20 20 72 65 74 75 72 6e | 20 28 30 29 3b 0a 58 20 | return| (0);.X |
|00002cb0| 20 20 7d 0a 58 7d 0a 58 | 0a 58 2f 2a 20 46 75 6e | }.X}.X|.X/* Fun|
|00002cc0| 63 74 69 6f 6e 20 67 65 | 74 74 7a 28 29 2c 20 72 |ction ge|ttz(), r|
|00002cd0| 65 74 75 72 6e 73 20 74 | 68 65 20 6f 66 66 73 65 |eturns t|he offse|
|00002ce0| 74 20 66 72 6f 6d 20 47 | 4d 54 20 69 6e 20 73 65 |t from G|MT in se|
|00002cf0| 63 6f 6e 64 73 20 2a 2f | 0a 58 6c 6f 6e 67 20 67 |conds */|.Xlong g|
|00002d00| 65 74 74 7a 28 29 0a 58 | 7b 0a 58 20 20 20 73 74 |ettz().X|{.X st|
|00002d10| 72 75 63 74 20 74 69 6d | 65 76 61 6c 20 74 70 3b |ruct tim|eval tp;|
|00002d20| 0a 58 20 20 20 73 74 72 | 75 63 74 20 74 69 6d 65 |.X str|uct time|
|00002d30| 7a 6f 6e 65 20 74 7a 70 | 3b 0a 58 20 20 20 67 65 |zone tzp|;.X ge|
|00002d40| 74 74 69 6d 65 6f 66 64 | 61 79 20 28 26 74 70 2c |ttimeofd|ay (&tp,|
|00002d50| 20 26 74 7a 70 29 3b 20 | 20 20 20 20 20 20 20 20 | &tzp); | |
|00002d60| 20 20 20 20 20 2f 2a 20 | 73 70 65 63 69 66 69 63 | /* |specific|
|00002d70| 20 74 6f 20 34 2e 33 42 | 53 44 20 2a 2f 0a 58 0a | to 4.3B|SD */.X.|
|00002d80| 58 20 20 20 2f 2a 20 72 | 65 74 75 72 6e 20 28 74 |X /* r|eturn (t|
|00002d90| 7a 70 2e 74 7a 5f 6d 69 | 6e 75 74 65 73 77 65 73 |zp.tz_mi|nuteswes|
|00002da0| 74 20 2a 20 36 30 29 3b | 20 2a 2f 20 2f 2a 20 6f |t * 60);| */ /* o|
|00002db0| 6c 64 20 69 6e 63 6f 72 | 72 65 63 74 20 63 6f 64 |ld incor|rect cod|
|00002dc0| 65 20 2a 2f 0a 58 09 2f | 2a 20 54 69 6d 65 7a 6f |e */.X./|* Timezo|
|00002dd0| 6e 65 20 66 69 78 20 74 | 68 61 6e 6b 73 20 74 6f |ne fix t|hanks to|
|00002de0| 20 42 69 6c 6c 20 44 61 | 76 69 64 73 65 6e 20 3c | Bill Da|vidsen <|
|00002df0| 77 65 64 75 40 67 65 2d | 63 72 64 2e 41 52 50 41 |wedu@ge-|crd.ARPA|
|00002e00| 3e 20 2a 2f 0a 58 20 20 | 20 72 65 74 75 72 6e 20 |> */.X | return |
|00002e10| 28 74 7a 70 2e 74 7a 5f | 6d 69 6e 75 74 65 73 77 |(tzp.tz_|minutesw|
|00002e20| 65 73 74 20 2a 20 36 30 | 20 2d 20 74 7a 70 2e 74 |est * 60| - tzp.t|
|00002e30| 7a 5f 64 73 74 74 69 6d | 65 20 2a 20 33 36 30 30 |z_dsttim|e * 3600|
|00002e40| 4c 29 3b 0a 58 7d 0a 58 | 0a 58 2f 2a 20 53 74 61 |L);.X}.X|.X/* Sta|
|00002e50| 6e 64 61 72 64 20 55 4e | 49 58 2d 63 6f 6d 70 61 |ndard UN|IX-compa|
|00002e60| 74 69 62 6c 65 20 74 69 | 6d 65 20 72 6f 75 74 69 |tible ti|me routi|
|00002e70| 6e 65 73 20 2a 2f 0a 58 | 23 69 6e 63 6c 75 64 65 |nes */.X|#include|
|00002e80| 20 22 6e 69 78 74 69 6d | 65 2e 69 22 0a 58 0a 58 | "nixtim|e.i".X.X|
|00002e90| 2f 2a 20 53 74 61 6e 64 | 61 72 64 20 55 4e 49 58 |/* Stand|ard UNIX|
|00002ea0| 2d 73 70 65 63 69 66 69 | 63 20 66 69 6c 65 20 61 |-specifi|c file a|
|00002eb0| 74 74 72 69 62 75 74 65 | 20 72 6f 75 74 69 6e 65 |ttribute| routine|
|00002ec0| 73 20 2a 2f 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |s */.X#i|nclude "|
|00002ed0| 6e 69 78 6d 6f 64 65 2e | 69 22 0a 45 4e 44 5f 4f |nixmode.|i".END_O|
|00002ee0| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|00002ef0| 33 37 37 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |377 -ne |`wc -c <|
|00002f00| 27 62 73 64 2e 63 27 60 | 3b 20 74 68 65 6e 0a 20 |'bsd.c'`|; then. |
|00002f10| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00002f20| 27 62 73 64 2e 63 27 5c | 22 20 75 6e 70 61 63 6b |'bsd.c'\|" unpack|
|00002f30| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00002f40| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00002f50| 27 62 73 64 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |'bsd.c'.|fi.if te|
|00002f60| 73 74 20 2d 66 20 27 63 | 72 63 64 65 66 73 2e 63 |st -f 'c|rcdefs.c|
|00002f70| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00002f80| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00002f90| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00002fa0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00002fb0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 63 72 63 64 65 |ng file |\"'crcde|
|00002fc0| 66 73 2e 63 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |fs.c'\".|else.ech|
|00002fd0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00002fe0| 6e 67 20 5c 22 27 63 72 | 63 64 65 66 73 2e 63 27 |ng \"'cr|cdefs.c'|
|00002ff0| 5c 22 20 5c 28 32 34 34 | 36 20 63 68 61 72 61 63 |\" \(244|6 charac|
|00003000| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00003010| 2f 2f 22 20 3e 27 63 72 | 63 64 65 66 73 2e 63 27 |//" >'cr|cdefs.c'|
|00003020| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00003030| 0a 58 23 69 66 6e 64 65 | 66 20 4c 49 4e 54 0a 58 |.X#ifnde|f LINT.X|
|00003040| 73 74 61 74 69 63 20 63 | 68 61 72 20 73 63 63 73 |static c|har sccs|
|00003050| 69 64 5b 5d 3d 22 40 28 | 23 29 20 63 72 63 64 65 |id[]="@(|#) crcde|
|00003060| 66 73 2e 63 20 32 2e 31 | 20 38 37 2f 31 32 2f 32 |fs.c 2.1| 87/12/2|
|00003070| 35 20 31 32 3a 32 31 3a | 35 38 22 3b 0a 58 23 65 |5 12:21:|58";.X#e|
|00003080| 6e 64 69 66 20 2f 2a 20 | 4c 49 4e 54 20 2a 2f 0a |ndif /* |LINT */.|
|00003090| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 22 6f 70 74 |X.X#incl|ude "opt|
|000030a0| 69 6f 6e 73 2e 68 22 0a | 58 0a 58 2f 2a 0a 58 47 |ions.h".|X.X/*.XG|
|000030b0| 6c 6f 62 61 6c 20 64 65 | 66 69 6e 69 74 69 6f 6e |lobal de|finition|
|000030c0| 73 20 66 6f 72 20 43 52 | 43 20 63 61 6c 63 75 6c |s for CR|C calcul|
|000030d0| 61 74 69 6f 6e 2e 20 20 | 49 20 63 6c 61 69 6d 20 |ation. |I claim |
|000030e0| 6e 6f 20 63 6f 70 79 72 | 69 67 68 74 20 6f 76 65 |no copyr|ight ove|
|000030f0| 72 0a 58 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |r.Xthe c|ontents |
|00003100| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 2e 0a 58 0a |of this |file..X.|
|00003110| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003130| 20 20 20 2d 2d 20 52 61 | 68 75 6c 20 44 68 65 73 | -- Ra|hul Dhes|
|00003140| 69 20 31 39 38 37 2f 30 | 38 2f 32 37 0a 58 2a 2f |i 1987/0|8/27.X*/|
|00003150| 0a 58 0a 58 75 6e 73 69 | 67 6e 65 64 20 69 6e 74 |.X.Xunsi|gned int|
|00003160| 20 63 72 63 63 6f 64 65 | 3b 0a 58 75 6e 73 69 67 | crccode|;.Xunsig|
|00003170| 6e 65 64 20 69 6e 74 20 | 63 72 63 74 61 62 5b 5d |ned int |crctab[]|
|00003180| 20 3d 20 7b 0a 58 20 20 | 20 30 78 30 30 30 30 2c | = {.X | 0x0000,|
|00003190| 20 30 78 63 30 63 31 2c | 20 30 78 63 31 38 31 2c | 0xc0c1,| 0xc181,|
|000031a0| 20 30 78 30 31 34 30 2c | 20 30 78 63 33 30 31 2c | 0x0140,| 0xc301,|
|000031b0| 20 30 78 30 33 63 30 2c | 20 30 78 30 32 38 30 2c | 0x03c0,| 0x0280,|
|000031c0| 20 30 78 63 32 34 31 2c | 0a 58 09 30 78 63 36 30 | 0xc241,|.X.0xc60|
|000031d0| 31 2c 20 30 78 30 36 63 | 30 2c 20 30 78 30 37 38 |1, 0x06c|0, 0x078|
|000031e0| 30 2c 20 30 78 63 37 34 | 31 2c 20 30 78 30 35 30 |0, 0xc74|1, 0x050|
|000031f0| 30 2c 20 30 78 63 35 63 | 31 2c 20 30 78 63 34 38 |0, 0xc5c|1, 0xc48|
|00003200| 31 2c 20 30 78 30 34 34 | 30 2c 20 0a 58 09 30 78 |1, 0x044|0, .X.0x|
|00003210| 63 63 30 31 2c 20 30 78 | 30 63 63 30 2c 20 30 78 |cc01, 0x|0cc0, 0x|
|00003220| 30 64 38 30 2c 20 30 78 | 63 64 34 31 2c 20 30 78 |0d80, 0x|cd41, 0x|
|00003230| 30 46 30 30 2c 20 30 78 | 63 46 63 31 2c 20 30 78 |0F00, 0x|cFc1, 0x|
|00003240| 63 65 38 31 2c 20 30 78 | 30 65 34 30 2c 20 0a 58 |ce81, 0x|0e40, .X|
|00003250| 09 30 78 30 61 30 30 2c | 20 30 78 63 61 63 31 2c |.0x0a00,| 0xcac1,|
|00003260| 20 30 78 63 62 38 31 2c | 20 30 78 30 62 34 30 2c | 0xcb81,| 0x0b40,|
|00003270| 20 30 78 63 39 30 31 2c | 20 30 78 30 39 63 30 2c | 0xc901,| 0x09c0,|
|00003280| 20 30 78 30 38 38 30 2c | 20 30 78 63 38 34 31 2c | 0x0880,| 0xc841,|
|00003290| 20 0a 58 09 30 78 64 38 | 30 31 2c 20 30 78 31 38 | .X.0xd8|01, 0x18|
|000032a0| 63 30 2c 20 30 78 31 39 | 38 30 2c 20 30 78 64 39 |c0, 0x19|80, 0xd9|
|000032b0| 34 31 2c 20 30 78 31 62 | 30 30 2c 20 30 78 64 62 |41, 0x1b|00, 0xdb|
|000032c0| 63 31 2c 20 30 78 64 61 | 38 31 2c 20 30 78 31 61 |c1, 0xda|81, 0x1a|
|000032d0| 34 30 2c 20 0a 58 09 30 | 78 31 65 30 30 2c 20 30 |40, .X.0|x1e00, 0|
|000032e0| 78 64 65 63 31 2c 20 30 | 78 64 46 38 31 2c 20 30 |xdec1, 0|xdF81, 0|
|000032f0| 78 31 46 34 30 2c 20 30 | 78 64 64 30 31 2c 20 30 |x1F40, 0|xdd01, 0|
|00003300| 78 31 64 63 30 2c 20 30 | 78 31 63 38 30 2c 20 30 |x1dc0, 0|x1c80, 0|
|00003310| 78 64 63 34 31 2c 20 0a | 58 09 30 78 31 34 30 30 |xdc41, .|X.0x1400|
|00003320| 2c 20 30 78 64 34 63 31 | 2c 20 30 78 64 35 38 31 |, 0xd4c1|, 0xd581|
|00003330| 2c 20 30 78 31 35 34 30 | 2c 20 30 78 64 37 30 31 |, 0x1540|, 0xd701|
|00003340| 2c 20 30 78 31 37 63 30 | 2c 20 30 78 31 36 38 30 |, 0x17c0|, 0x1680|
|00003350| 2c 20 30 78 64 36 34 31 | 2c 20 0a 58 09 30 78 64 |, 0xd641|, .X.0xd|
|00003360| 32 30 31 2c 20 30 78 31 | 32 63 30 2c 20 30 78 31 |201, 0x1|2c0, 0x1|
|00003370| 33 38 30 2c 20 30 78 64 | 33 34 31 2c 20 30 78 31 |380, 0xd|341, 0x1|
|00003380| 31 30 30 2c 20 30 78 64 | 31 63 31 2c 20 30 78 64 |100, 0xd|1c1, 0xd|
|00003390| 30 38 31 2c 20 30 78 31 | 30 34 30 2c 20 0a 58 09 |081, 0x1|040, .X.|
|000033a0| 30 78 46 30 30 31 2c 20 | 30 78 33 30 63 30 2c 20 |0xF001, |0x30c0, |
|000033b0| 30 78 33 31 38 30 2c 20 | 30 78 46 31 34 31 2c 20 |0x3180, |0xF141, |
|000033c0| 30 78 33 33 30 30 2c 20 | 30 78 46 33 63 31 2c 20 |0x3300, |0xF3c1, |
|000033d0| 30 78 46 32 38 31 2c 20 | 30 78 33 32 34 30 2c 20 |0xF281, |0x3240, |
|000033e0| 0a 58 20 20 20 30 78 33 | 36 30 30 2c 20 30 78 46 |.X 0x3|600, 0xF|
|000033f0| 36 63 31 2c 20 30 78 46 | 37 38 31 2c 20 30 78 33 |6c1, 0xF|781, 0x3|
|00003400| 37 34 30 2c 20 30 78 46 | 35 30 31 2c 20 30 78 33 |740, 0xF|501, 0x3|
|00003410| 35 63 30 2c 20 30 78 33 | 34 38 30 2c 20 30 78 46 |5c0, 0x3|480, 0xF|
|00003420| 34 34 31 2c 20 0a 58 09 | 30 78 33 63 30 30 2c 20 |441, .X.|0x3c00, |
|00003430| 30 78 46 63 63 31 2c 20 | 30 78 46 64 38 31 2c 20 |0xFcc1, |0xFd81, |
|00003440| 30 78 33 64 34 30 2c 20 | 30 78 46 46 30 31 2c 20 |0x3d40, |0xFF01, |
|00003450| 30 78 33 46 63 30 2c 20 | 30 78 33 65 38 30 2c 20 |0x3Fc0, |0x3e80, |
|00003460| 30 78 46 65 34 31 2c 20 | 0a 58 09 30 78 46 61 30 |0xFe41, |.X.0xFa0|
|00003470| 31 2c 20 30 78 33 61 63 | 30 2c 20 30 78 33 62 38 |1, 0x3ac|0, 0x3b8|
|00003480| 30 2c 20 30 78 46 62 34 | 31 2c 20 30 78 33 39 30 |0, 0xFb4|1, 0x390|
|00003490| 30 2c 20 30 78 46 39 63 | 31 2c 20 30 78 46 38 38 |0, 0xF9c|1, 0xF88|
|000034a0| 31 2c 20 30 78 33 38 34 | 30 2c 20 0a 58 09 30 78 |1, 0x384|0, .X.0x|
|000034b0| 32 38 30 30 2c 20 30 78 | 65 38 63 31 2c 20 30 78 |2800, 0x|e8c1, 0x|
|000034c0| 65 39 38 31 2c 20 30 78 | 32 39 34 30 2c 20 30 78 |e981, 0x|2940, 0x|
|000034d0| 65 62 30 31 2c 20 30 78 | 32 62 63 30 2c 20 30 78 |eb01, 0x|2bc0, 0x|
|000034e0| 32 61 38 30 2c 20 30 78 | 65 61 34 31 2c 20 0a 58 |2a80, 0x|ea41, .X|
|000034f0| 09 30 78 65 65 30 31 2c | 20 30 78 32 65 63 30 2c |.0xee01,| 0x2ec0,|
|00003500| 20 30 78 32 46 38 30 2c | 20 30 78 65 46 34 31 2c | 0x2F80,| 0xeF41,|
|00003510| 20 30 78 32 64 30 30 2c | 20 30 78 65 64 63 31 2c | 0x2d00,| 0xedc1,|
|00003520| 20 30 78 65 63 38 31 2c | 20 30 78 32 63 34 30 2c | 0xec81,| 0x2c40,|
|00003530| 20 0a 58 09 30 78 65 34 | 30 31 2c 20 30 78 32 34 | .X.0xe4|01, 0x24|
|00003540| 63 30 2c 20 30 78 32 35 | 38 30 2c 20 30 78 65 35 |c0, 0x25|80, 0xe5|
|00003550| 34 31 2c 20 30 78 32 37 | 30 30 2c 20 30 78 65 37 |41, 0x27|00, 0xe7|
|00003560| 63 31 2c 20 30 78 65 36 | 38 31 2c 20 30 78 32 36 |c1, 0xe6|81, 0x26|
|00003570| 34 30 2c 20 0a 58 09 30 | 78 32 32 30 30 2c 20 30 |40, .X.0|x2200, 0|
|00003580| 78 65 32 63 31 2c 20 30 | 78 65 33 38 31 2c 20 30 |xe2c1, 0|xe381, 0|
|00003590| 78 32 33 34 30 2c 20 30 | 78 65 31 30 31 2c 20 30 |x2340, 0|xe101, 0|
|000035a0| 78 32 31 63 30 2c 20 30 | 78 32 30 38 30 2c 20 30 |x21c0, 0|x2080, 0|
|000035b0| 78 65 30 34 31 2c 20 0a | 58 09 30 78 61 30 30 31 |xe041, .|X.0xa001|
|000035c0| 2c 20 30 78 36 30 63 30 | 2c 20 30 78 36 31 38 30 |, 0x60c0|, 0x6180|
|000035d0| 2c 20 30 78 61 31 34 31 | 2c 20 30 78 36 33 30 30 |, 0xa141|, 0x6300|
|000035e0| 2c 20 30 78 61 33 63 31 | 2c 20 30 78 61 32 38 31 |, 0xa3c1|, 0xa281|
|000035f0| 2c 20 30 78 36 32 34 30 | 2c 20 0a 58 09 30 78 36 |, 0x6240|, .X.0x6|
|00003600| 36 30 30 2c 20 30 78 61 | 36 63 31 2c 20 30 78 61 |600, 0xa|6c1, 0xa|
|00003610| 37 38 31 2c 20 30 78 36 | 37 34 30 2c 20 30 78 61 |781, 0x6|740, 0xa|
|00003620| 35 30 31 2c 20 30 78 36 | 35 63 30 2c 20 30 78 36 |501, 0x6|5c0, 0x6|
|00003630| 34 38 30 2c 20 30 78 61 | 34 34 31 2c 20 0a 58 20 |480, 0xa|441, .X |
|00003640| 20 20 30 78 36 63 30 30 | 2c 20 30 78 61 63 63 31 | 0x6c00|, 0xacc1|
|00003650| 2c 20 30 78 61 64 38 31 | 2c 20 30 78 36 64 34 30 |, 0xad81|, 0x6d40|
|00003660| 2c 20 30 78 61 46 30 31 | 2c 20 30 78 36 46 63 30 |, 0xaF01|, 0x6Fc0|
|00003670| 2c 20 30 78 36 65 38 30 | 2c 20 30 78 61 65 34 31 |, 0x6e80|, 0xae41|
|00003680| 2c 20 0a 58 09 30 78 61 | 61 30 31 2c 20 30 78 36 |, .X.0xa|a01, 0x6|
|00003690| 61 63 30 2c 20 30 78 36 | 62 38 30 2c 20 30 78 61 |ac0, 0x6|b80, 0xa|
|000036a0| 62 34 31 2c 20 30 78 36 | 39 30 30 2c 20 30 78 61 |b41, 0x6|900, 0xa|
|000036b0| 39 63 31 2c 20 30 78 61 | 38 38 31 2c 20 30 78 36 |9c1, 0xa|881, 0x6|
|000036c0| 38 34 30 2c 20 0a 58 09 | 30 78 37 38 30 30 2c 20 |840, .X.|0x7800, |
|000036d0| 30 78 62 38 63 31 2c 20 | 30 78 62 39 38 31 2c 20 |0xb8c1, |0xb981, |
|000036e0| 30 78 37 39 34 30 2c 20 | 30 78 62 62 30 31 2c 20 |0x7940, |0xbb01, |
|000036f0| 30 78 37 62 63 30 2c 20 | 30 78 37 61 38 30 2c 20 |0x7bc0, |0x7a80, |
|00003700| 30 78 62 61 34 31 2c 20 | 0a 58 09 30 78 62 65 30 |0xba41, |.X.0xbe0|
|00003710| 31 2c 20 30 78 37 65 63 | 30 2c 20 30 78 37 46 38 |1, 0x7ec|0, 0x7F8|
|00003720| 30 2c 20 30 78 62 46 34 | 31 2c 20 30 78 37 64 30 |0, 0xbF4|1, 0x7d0|
|00003730| 30 2c 20 30 78 62 64 63 | 31 2c 20 30 78 62 63 38 |0, 0xbdc|1, 0xbc8|
|00003740| 31 2c 20 30 78 37 63 34 | 30 2c 20 0a 58 09 30 78 |1, 0x7c4|0, .X.0x|
|00003750| 62 34 30 31 2c 20 30 78 | 37 34 63 30 2c 20 30 78 |b401, 0x|74c0, 0x|
|00003760| 37 35 38 30 2c 20 30 78 | 62 35 34 31 2c 20 30 78 |7580, 0x|b541, 0x|
|00003770| 37 37 30 30 2c 20 30 78 | 62 37 63 31 2c 20 30 78 |7700, 0x|b7c1, 0x|
|00003780| 62 36 38 31 2c 20 30 78 | 37 36 34 30 2c 20 0a 58 |b681, 0x|7640, .X|
|00003790| 09 30 78 37 32 30 30 2c | 20 30 78 62 32 63 31 2c |.0x7200,| 0xb2c1,|
|000037a0| 20 30 78 62 33 38 31 2c | 20 30 78 37 33 34 30 2c | 0xb381,| 0x7340,|
|000037b0| 20 30 78 62 31 30 31 2c | 20 30 78 37 31 63 30 2c | 0xb101,| 0x71c0,|
|000037c0| 20 30 78 37 30 38 30 2c | 20 30 78 62 30 34 31 2c | 0x7080,| 0xb041,|
|000037d0| 20 0a 58 09 30 78 35 30 | 30 30 2c 20 30 78 39 30 | .X.0x50|00, 0x90|
|000037e0| 63 31 2c 20 30 78 39 31 | 38 31 2c 20 30 78 35 31 |c1, 0x91|81, 0x51|
|000037f0| 34 30 2c 20 30 78 39 33 | 30 31 2c 20 30 78 35 33 |40, 0x93|01, 0x53|
|00003800| 63 30 2c 20 30 78 35 32 | 38 30 2c 20 30 78 39 32 |c0, 0x52|80, 0x92|
|00003810| 34 31 2c 20 0a 58 09 30 | 78 39 36 30 31 2c 20 30 |41, .X.0|x9601, 0|
|00003820| 78 35 36 63 30 2c 20 30 | 78 35 37 38 30 2c 20 30 |x56c0, 0|x5780, 0|
|00003830| 78 39 37 34 31 2c 20 30 | 78 35 35 30 30 2c 20 30 |x9741, 0|x5500, 0|
|00003840| 78 39 35 63 31 2c 20 30 | 78 39 34 38 31 2c 20 30 |x95c1, 0|x9481, 0|
|00003850| 78 35 34 34 30 2c 20 0a | 58 09 30 78 39 63 30 31 |x5440, .|X.0x9c01|
|00003860| 2c 20 30 78 35 63 63 30 | 2c 20 30 78 35 64 38 30 |, 0x5cc0|, 0x5d80|
|00003870| 2c 20 30 78 39 64 34 31 | 2c 20 30 78 35 46 30 30 |, 0x9d41|, 0x5F00|
|00003880| 2c 20 30 78 39 46 63 31 | 2c 20 30 78 39 65 38 31 |, 0x9Fc1|, 0x9e81|
|00003890| 2c 20 30 78 35 65 34 30 | 2c 20 0a 58 20 20 20 30 |, 0x5e40|, .X 0|
|000038a0| 78 35 61 30 30 2c 20 30 | 78 39 61 63 31 2c 20 30 |x5a00, 0|x9ac1, 0|
|000038b0| 78 39 62 38 31 2c 20 30 | 78 35 62 34 30 2c 20 30 |x9b81, 0|x5b40, 0|
|000038c0| 78 39 39 30 31 2c 20 30 | 78 35 39 63 30 2c 20 30 |x9901, 0|x59c0, 0|
|000038d0| 78 35 38 38 30 2c 20 30 | 78 39 38 34 31 2c 20 0a |x5880, 0|x9841, .|
|000038e0| 58 09 30 78 38 38 30 31 | 2c 20 30 78 34 38 63 30 |X.0x8801|, 0x48c0|
|000038f0| 2c 20 30 78 34 39 38 30 | 2c 20 30 78 38 39 34 31 |, 0x4980|, 0x8941|
|00003900| 2c 20 30 78 34 62 30 30 | 2c 20 30 78 38 62 63 31 |, 0x4b00|, 0x8bc1|
|00003910| 2c 20 30 78 38 61 38 31 | 2c 20 30 78 34 61 34 30 |, 0x8a81|, 0x4a40|
|00003920| 2c 20 0a 58 09 30 78 34 | 65 30 30 2c 20 30 78 38 |, .X.0x4|e00, 0x8|
|00003930| 65 63 31 2c 20 30 78 38 | 46 38 31 2c 20 30 78 34 |ec1, 0x8|F81, 0x4|
|00003940| 46 34 30 2c 20 30 78 38 | 64 30 31 2c 20 30 78 34 |F40, 0x8|d01, 0x4|
|00003950| 64 63 30 2c 20 30 78 34 | 63 38 30 2c 20 30 78 38 |dc0, 0x4|c80, 0x8|
|00003960| 63 34 31 2c 20 0a 58 09 | 30 78 34 34 30 30 2c 20 |c41, .X.|0x4400, |
|00003970| 30 78 38 34 63 31 2c 20 | 30 78 38 35 38 31 2c 20 |0x84c1, |0x8581, |
|00003980| 30 78 34 35 34 30 2c 20 | 30 78 38 37 30 31 2c 20 |0x4540, |0x8701, |
|00003990| 30 78 34 37 63 30 2c 20 | 30 78 34 36 38 30 2c 20 |0x47c0, |0x4680, |
|000039a0| 30 78 38 36 34 31 2c 20 | 0a 58 09 30 78 38 32 30 |0x8641, |.X.0x820|
|000039b0| 31 2c 20 30 78 34 32 63 | 30 2c 20 30 78 34 33 38 |1, 0x42c|0, 0x438|
|000039c0| 30 2c 20 30 78 38 33 34 | 31 2c 20 30 78 34 31 30 |0, 0x834|1, 0x410|
|000039d0| 30 2c 20 30 78 38 31 63 | 31 2c 20 30 78 38 30 38 |0, 0x81c|1, 0x808|
|000039e0| 31 2c 20 30 78 34 30 34 | 30 20 0a 58 7d 3b 0a 45 |1, 0x404|0 .X};.E|
|000039f0| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 69 66 20 74 65 |ND_OF_FI|LE.if te|
|00003a00| 73 74 20 32 34 34 36 20 | 2d 6e 65 20 60 77 63 20 |st 2446 |-ne `wc |
|00003a10| 2d 63 20 3c 27 63 72 63 | 64 65 66 73 2e 63 27 60 |-c <'crc|defs.c'`|
|00003a20| 3b 20 74 68 65 6e 0a 20 | 20 20 20 65 63 68 6f 20 |; then. | echo |
|00003a30| 73 68 61 72 3a 20 5c 22 | 27 63 72 63 64 65 66 73 |shar: \"|'crcdefs|
|00003a40| 2e 63 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |.c'\" un|packed w|
|00003a50| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00003a60| 66 69 0a 23 20 65 6e 64 | 20 6f 66 20 27 63 72 63 |fi.# end| of 'crc|
|00003a70| 64 65 66 73 2e 63 27 0a | 66 69 0a 69 66 20 74 65 |defs.c'.|fi.if te|
|00003a80| 73 74 20 2d 66 20 27 64 | 65 62 75 67 2e 68 27 20 |st -f 'd|ebug.h' |
|00003a90| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00003aa0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00003ab0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00003ac0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00003ad0| 20 66 69 6c 65 20 5c 22 | 27 64 65 62 75 67 2e 68 | file \"|'debug.h|
|00003ae0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00003af0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00003b00| 22 27 64 65 62 75 67 2e | 68 27 5c 22 20 5c 28 36 |"'debug.|h'\" \(6|
|00003b10| 31 35 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |15 chara|cters\).|
|00003b20| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 64 |sed "s/^|X//" >'d|
|00003b30| 65 62 75 67 2e 68 27 20 | 3c 3c 27 45 4e 44 5f 4f |ebug.h' |<<'END_O|
|00003b40| 46 5f 46 49 4c 45 27 0a | 58 2f 2a 20 40 28 23 29 |F_FILE'.|X/* @(#)|
|00003b50| 20 64 65 62 75 67 2e 68 | 20 32 2e 31 20 38 37 2f | debug.h| 2.1 87/|
|00003b60| 31 32 2f 32 35 20 31 32 | 3a 32 32 3a 30 32 20 2a |12/25 12|:22:02 *|
|00003b70| 2f 0a 58 0a 58 2f 2a 20 | 0a 58 54 68 65 20 63 6f |/.X.X/* |.XThe co|
|00003b80| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 69 73 20 66 |ntents o|f this f|
|00003b90| 69 6c 65 20 61 72 65 20 | 68 65 72 65 62 79 20 72 |ile are |hereby r|
|00003ba0| 65 6c 65 61 73 65 64 20 | 74 6f 20 74 68 65 20 70 |eleased |to the p|
|00003bb0| 75 62 6c 69 63 20 64 6f | 6d 61 69 6e 2e 0a 58 0a |ublic do|main..X.|
|00003bc0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00003bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 20 52 | | -- R|
|00003be0| 61 68 75 6c 20 44 68 65 | 73 69 20 31 39 38 36 2f |ahul Dhe|si 1986/|
|00003bf0| 31 31 2f 31 34 0a 58 0a | 58 64 65 66 69 6e 65 73 |11/14.X.|Xdefines|
|00003c00| 20 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 20 66 75 6e | conditi|onal fun|
|00003c10| 63 74 69 6f 6e 20 63 61 | 6c 6c 73 20 0a 58 0a 58 |ction ca|lls .X.X|
|00003c20| 55 73 61 67 65 3a 20 20 | 54 68 65 20 73 74 61 74 |Usage: |The stat|
|00003c30| 65 6d 65 6e 74 0a 58 0a | 58 20 20 20 64 65 62 75 |ement.X.|X debu|
|00003c40| 67 28 28 70 72 69 6e 74 | 66 28 22 79 20 3d 20 25 |g((print|f("y = %|
|00003c50| 64 5c 6e 22 2c 20 79 29 | 29 29 0a 58 0a 58 6d 61 |d\n", y)|)).X.Xma|
|00003c60| 79 20 62 65 20 70 6c 61 | 63 65 64 20 61 6e 79 77 |y be pla|ced anyw|
|00003c70| 68 65 72 65 20 77 68 65 | 72 65 20 74 77 6f 20 6f |here whe|re two o|
|00003c80| 72 20 6d 6f 72 65 20 73 | 74 61 74 65 6d 65 6e 74 |r more s|tatement|
|00003c90| 73 20 63 6f 75 6c 64 20 | 62 65 20 75 73 65 64 2e |s could |be used.|
|00003ca0| 20 20 49 74 20 77 69 6c | 6c 20 0a 58 70 72 69 6e | It wil|l .Xprin|
|00003cb0| 74 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 79 |t the va|lue of y|
|00003cc0| 20 61 74 20 74 68 61 74 | 20 70 6f 69 6e 74 2e 0a | at that| point..|
|00003cd0| 58 0a 58 43 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 63 |X.XCondi|tional c|
|00003ce0| 6f 6d 70 69 6c 61 74 69 | 6f 6e 3a 0a 58 0a 58 20 |ompilati|on:.X.X |
|00003cf0| 20 20 69 66 20 44 45 42 | 55 47 20 69 73 20 64 65 | if DEB|UG is de|
|00003d00| 66 69 6e 65 64 0a 58 20 | 20 20 20 20 20 64 65 66 |fined.X | def|
|00003d10| 69 6e 65 20 74 68 65 20 | 6d 61 63 72 6f 20 64 65 |ine the |macro de|
|00003d20| 62 75 67 28 58 29 20 74 | 6f 20 65 78 65 63 75 74 |bug(X) t|o execut|
|00003d30| 65 20 73 74 61 74 65 6d | 65 6e 74 20 58 0a 58 20 |e statem|ent X.X |
|00003d40| 20 20 65 6c 73 65 0a 58 | 20 20 20 20 20 20 64 65 | else.X| de|
|00003d50| 66 69 6e 65 20 74 68 65 | 20 6d 61 63 72 6f 20 64 |fine the| macro d|
|00003d60| 65 62 75 67 28 58 29 20 | 74 6f 20 62 65 20 6e 75 |ebug(X) |to be nu|
|00003d70| 6c 6c 0a 58 20 20 20 65 | 6e 64 69 66 0a 58 2a 2f |ll.X e|ndif.X*/|
|00003d80| 0a 58 0a 58 23 69 66 64 | 65 66 20 44 45 42 55 47 |.X.X#ifd|ef DEBUG|
|00003d90| 0a 58 23 64 65 66 69 6e | 65 20 20 64 65 62 75 67 |.X#defin|e debug|
|00003da0| 28 78 29 20 20 20 20 78 | 3b 0a 58 23 65 6c 73 65 |(x) x|;.X#else|
|00003db0| 0a 58 23 64 65 66 69 6e | 65 20 20 64 65 62 75 67 |.X#defin|e debug|
|00003dc0| 28 78 29 0a 58 23 65 6e | 64 69 66 0a 58 0a 45 4e |(x).X#en|dif.X.EN|
|00003dd0| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00003de0| 74 20 36 31 35 20 2d 6e | 65 20 60 77 63 20 2d 63 |t 615 -n|e `wc -c|
|00003df0| 20 3c 27 64 65 62 75 67 | 2e 68 27 60 3b 20 74 68 | <'debug|.h'`; th|
|00003e00| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00003e10| 3a 20 5c 22 27 64 65 62 | 75 67 2e 68 27 5c 22 20 |: \"'deb|ug.h'\" |
|00003e20| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00003e30| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00003e40| 6e 64 20 6f 66 20 27 64 | 65 62 75 67 2e 68 27 0a |nd of 'd|ebug.h'.|
|00003e50| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 64 |fi.if te|st -f 'd|
|00003e60| 65 73 63 72 69 70 2e 6d | 6d 73 27 20 2d 61 20 22 |escrip.m|ms' -a "|
|00003e70| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00003e80| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00003e90| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00003ea0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00003eb0| 65 20 5c 22 27 64 65 73 | 63 72 69 70 2e 6d 6d 73 |e \"'des|crip.mms|
|00003ec0| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00003ed0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00003ee0| 22 27 64 65 73 63 72 69 | 70 2e 6d 6d 73 27 5c 22 |"'descri|p.mms'\"|
|00003ef0| 20 5c 28 32 32 34 38 20 | 63 68 61 72 61 63 74 65 | \(2248 |characte|
|00003f00| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00003f10| 22 20 3e 27 64 65 73 63 | 72 69 70 2e 6d 6d 73 27 |" >'desc|rip.mms'|
|00003f20| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00003f30| 0a 58 23 20 40 28 23 29 | 20 64 65 73 63 72 69 70 |.X# @(#)| descrip|
|00003f40| 2e 6d 6d 73 20 32 2e 32 | 20 38 38 2f 30 31 2f 30 |.mms 2.2| 88/01/0|
|00003f50| 39 20 31 32 3a 31 30 3a | 34 39 0a 58 23 4d 61 6b |9 12:10:|49.X#Mak|
|00003f60| 65 20 5a 6f 6f 20 66 6f | 72 20 56 41 58 2f 56 4d |e Zoo fo|r VAX/VM|
|00003f70| 53 0a 58 23 0a 58 23 54 | 68 65 20 63 6f 6e 74 65 |S.X#.X#T|he conte|
|00003f80| 6e 74 73 20 6f 66 20 74 | 68 69 73 20 6d 61 6b 65 |nts of t|his make|
|00003f90| 66 69 6c 65 20 61 72 65 | 20 68 65 72 65 62 79 20 |file are| hereby |
|00003fa0| 72 65 6c 65 61 73 65 64 | 20 74 6f 20 74 68 65 20 |released| to the |
|00003fb0| 70 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 2e 0a 58 |public d|omain..X|
|00003fc0| 23 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |# | |
|00003fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fe0| 20 20 20 2d 2d 20 52 61 | 68 75 6c 20 44 68 65 73 | -- Ra|hul Dhes|
|00003ff0| 69 20 31 39 38 37 2f 30 | 37 2f 32 33 0a 58 0a 58 |i 1987/0|7/23.X.X|
|00004000| 43 43 20 3d 20 63 63 0a | 58 63 73 77 69 74 63 68 |CC = cc.|Xcswitch|
|00004010| 20 3d 0a 58 65 78 74 72 | 61 20 3d 20 2f 64 65 66 | =.Xextr|a = /def|
|00004020| 69 6e 65 3d 28 42 49 47 | 5f 4d 45 4d 2c 4e 44 45 |ine=(BIG|_MEM,NDE|
|00004030| 42 55 47 2c 56 4d 53 29 | 0a 58 6c 64 73 77 69 74 |BUG,VMS)|.Xldswit|
|00004040| 63 68 20 3d 0a 58 0a 58 | 23 4c 69 73 74 20 6f 66 |ch =.X.X|#List of|
|00004050| 20 61 6c 6c 20 6f 62 6a | 65 63 74 20 66 69 6c 65 | all obj|ect file|
|00004060| 73 20 63 72 65 61 74 65 | 64 20 66 6f 72 20 5a 6f |s create|d for Zo|
|00004070| 6f 0a 58 5a 4f 4f 4f 42 | 4a 53 20 3d 20 61 64 64 |o.XZOOOB|JS = add|
|00004080| 62 66 63 72 63 2e 6f 62 | 6a 2c 20 61 64 64 66 6e |bfcrc.ob|j, addfn|
|00004090| 61 6d 65 2e 6f 62 6a 2c | 20 62 61 73 65 6e 61 6d |ame.obj,| basenam|
|000040a0| 65 2e 6f 62 6a 2c 20 63 | 6f 6d 6d 65 6e 74 2e 6f |e.obj, c|omment.o|
|000040b0| 62 6a 2c 20 2d 0a 58 20 | 63 72 63 64 65 66 73 2e |bj, -.X |crcdefs.|
|000040c0| 6f 62 6a 2c 20 67 65 74 | 66 69 6c 65 2e 6f 62 6a |obj, get|file.obj|
|000040d0| 2c 20 6c 7a 63 2e 6f 62 | 6a 2c 20 6c 7a 64 2e 6f |, lzc.ob|j, lzd.o|
|000040e0| 62 6a 2c 20 6d 61 63 68 | 69 6e 65 2e 6f 62 6a 2c |bj, mach|ine.obj,|
|000040f0| 20 2d 0a 58 20 6d 61 6b | 65 6c 69 73 74 2e 6f 62 | -.X mak|elist.ob|
|00004100| 6a 2c 20 6d 69 73 63 2e | 6f 62 6a 2c 20 6d 69 73 |j, misc.|obj, mis|
|00004110| 63 32 2e 6f 62 6a 2c 20 | 6e 65 78 74 66 69 6c 65 |c2.obj, |nextfile|
|00004120| 2e 6f 62 6a 2c 20 2d 0a | 58 20 6e 65 65 64 65 64 |.obj, -.|X needed|
|00004130| 2e 6f 62 6a 2c 20 6f 70 | 74 69 6f 6e 73 2e 6f 62 |.obj, op|tions.ob|
|00004140| 6a 2c 20 70 61 72 73 65 | 2e 6f 62 6a 2c 20 70 6f |j, parse|.obj, po|
|00004150| 72 74 61 62 6c 65 2e 6f | 62 6a 2c 20 70 72 74 65 |rtable.o|bj, prte|
|00004160| 72 72 6f 72 2e 6f 62 6a | 2c 20 2d 0a 58 20 76 65 |rror.obj|, -.X ve|
|00004170| 72 73 69 6f 6e 2e 6f 62 | 6a 2c 20 7a 6f 6f 2e 6f |rsion.ob|j, zoo.o|
|00004180| 62 6a 2c 20 7a 6f 6f 61 | 64 64 2e 6f 62 6a 2c 20 |bj, zooa|dd.obj, |
|00004190| 7a 6f 6f 61 64 64 32 2e | 6f 62 6a 2c 20 7a 6f 6f |zooadd2.|obj, zoo|
|000041a0| 64 65 6c 2e 6f 62 6a 2c | 20 2d 0a 58 20 7a 6f 6f |del.obj,| -.X zoo|
|000041b0| 65 78 74 2e 6f 62 6a 2c | 20 7a 6f 6f 6c 69 73 74 |ext.obj,| zoolist|
|000041c0| 2e 6f 62 6a 2c 20 7a 6f | 6f 70 61 63 6b 2e 6f 62 |.obj, zo|opack.ob|
|000041d0| 6a 0a 58 0a 58 46 49 5a | 4f 42 4a 53 20 3d 20 66 |j.X.XFIZ|OBJS = f|
|000041e0| 69 7a 2e 6f 62 6a 2c 20 | 61 64 64 62 66 63 72 63 |iz.obj, |addbfcrc|
|000041f0| 2e 6f 62 6a 2c 20 70 6f | 72 74 61 62 6c 65 2e 6f |.obj, po|rtable.o|
|00004200| 62 6a 2c 20 63 72 63 64 | 65 66 73 2e 6f 62 6a 0a |bj, crcd|efs.obj.|
|00004210| 58 0a 58 2e 63 2e 6f 62 | 6a 20 3a 0a 58 09 24 28 |X.X.c.ob|j :.X.$(|
|00004220| 43 43 29 20 24 28 63 73 | 77 69 74 63 68 29 20 24 |CC) $(cs|witch) $|
|00004230| 28 65 78 74 72 61 29 20 | 24 2a 2e 63 0a 58 0a 58 |(extra) |$*.c.X.X|
|00004240| 7a 6f 6f 2e 65 78 65 20 | 3a 20 24 28 5a 4f 4f 4f |zoo.exe |: $(ZOOO|
|00004250| 42 4a 53 29 0a 58 09 6c | 69 6e 6b 2f 65 78 65 63 |BJS).X.l|ink/exec|
|00004260| 75 74 61 62 6c 65 3d 7a | 6f 6f 2e 65 78 65 20 24 |utable=z|oo.exe $|
|00004270| 28 6c 64 73 77 69 74 63 | 68 29 20 24 28 5a 4f 4f |(ldswitc|h) $(ZOO|
|00004280| 4f 42 4a 53 29 2c 20 6f | 70 74 69 6f 6e 73 2f 6f |OBJS), o|ptions/o|
|00004290| 70 74 0a 58 0a 58 23 62 | 69 67 67 65 72 20 62 75 |pt.X.X#b|igger bu|
|000042a0| 74 20 6d 6f 72 65 20 70 | 6f 72 74 61 62 6c 65 20 |t more p|ortable |
|000042b0| 61 63 72 6f 73 73 20 6d | 61 63 68 69 6e 65 73 20 |across m|achines |
|000042c0| 2d 2d 20 6e 6f 20 73 68 | 61 72 65 64 20 6c 69 62 |-- no sh|ared lib|
|000042d0| 72 61 72 69 65 73 0a 58 | 7a 6f 6f 62 69 67 2e 65 |raries.X|zoobig.e|
|000042e0| 78 65 20 3a 20 24 28 5a | 4f 4f 4f 42 4a 53 29 0a |xe : $(Z|OOOBJS).|
|000042f0| 58 09 6c 69 6e 6b 2f 65 | 78 65 63 75 74 61 62 6c |X.link/e|xecutabl|
|00004300| 65 3d 7a 6f 6f 62 69 67 | 2e 65 78 65 20 24 28 6c |e=zoobig|.exe $(l|
|00004310| 64 73 77 69 74 63 68 29 | 20 24 28 5a 4f 4f 4f 42 |dswitch)| $(ZOOOB|
|00004320| 4a 53 29 0a 58 0a 58 66 | 69 7a 20 3a 20 24 28 46 |JS).X.Xf|iz : $(F|
|00004330| 49 5a 4f 42 4a 53 29 0a | 58 09 6c 69 6e 6b 2f 65 |IZOBJS).|X.link/e|
|00004340| 78 65 63 75 74 61 62 6c | 65 3d 66 69 7a 2e 65 78 |xecutabl|e=fiz.ex|
|00004350| 65 20 24 28 6c 64 73 77 | 69 74 63 68 29 20 24 28 |e $(ldsw|itch) $(|
|00004360| 46 49 5a 4f 42 4a 53 29 | 2c 20 6f 70 74 69 6f 6e |FIZOBJS)|, option|
|00004370| 73 2f 6f 70 74 0a 58 0a | 58 6c 7a 64 2e 6f 62 6a |s/opt.X.|Xlzd.obj|
|00004380| 20 3a 20 6c 7a 64 2e 63 | 20 7a 6f 6f 6d 65 6d 2e | : lzd.c| zoomem.|
|00004390| 68 0a 58 09 24 28 43 43 | 29 20 24 28 63 73 77 69 |h.X.$(CC|) $(cswi|
|000043a0| 74 63 68 29 20 24 28 65 | 78 74 72 61 29 20 24 2a |tch) $(e|xtra) $*|
|000043b0| 2e 63 0a 58 0a 58 6c 7a | 63 2e 6f 62 6a 20 3a 20 |.c.X.Xlz|c.obj : |
|000043c0| 6c 7a 63 2e 63 20 7a 6f | 6f 6d 65 6d 2e 68 0a 58 |lzc.c zo|omem.h.X|
|000043d0| 09 24 28 43 43 29 20 24 | 28 63 73 77 69 74 63 68 |.$(CC) $|(cswitch|
|000043e0| 29 20 24 28 65 78 74 72 | 61 29 20 24 2a 2e 63 0a |) $(extr|a) $*.c.|
|000043f0| 58 0a 58 61 64 64 62 66 | 63 72 63 2e 6f 62 6a 20 |X.Xaddbf|crc.obj |
|00004400| 3a 20 61 64 64 62 66 63 | 72 63 2e 63 0a 58 0a 58 |: addbfc|rc.c.X.X|
|00004410| 61 64 64 66 6e 61 6d 65 | 2e 6f 62 6a 20 3a 20 61 |addfname|.obj : a|
|00004420| 64 64 66 6e 61 6d 65 2e | 63 0a 58 0a 58 62 61 73 |ddfname.|c.X.Xbas|
|00004430| 65 6e 61 6d 65 2e 6f 62 | 6a 20 3a 20 62 61 73 65 |ename.ob|j : base|
|00004440| 6e 61 6d 65 2e 63 0a 58 | 0a 58 63 6f 6d 6d 65 6e |name.c.X|.Xcommen|
|00004450| 74 2e 6f 62 6a 20 3a 20 | 63 6f 6d 6d 65 6e 74 2e |t.obj : |comment.|
|00004460| 63 20 7a 6f 6f 69 6f 2e | 68 0a 58 09 24 28 43 43 |c zooio.|h.X.$(CC|
|00004470| 29 20 24 28 63 73 77 69 | 74 63 68 29 20 24 28 65 |) $(cswi|tch) $(e|
|00004480| 78 74 72 61 29 20 24 2a | 2e 63 0a 58 0a 58 63 72 |xtra) $*|.c.X.Xcr|
|00004490| 63 64 65 66 73 2e 6f 62 | 6a 20 3a 20 63 72 63 64 |cdefs.ob|j : crcd|
|000044a0| 65 66 73 2e 63 0a 58 0a | 58 67 65 74 66 69 6c 65 |efs.c.X.|Xgetfile|
|000044b0| 2e 6f 62 6a 20 3a 20 67 | 65 74 66 69 6c 65 2e 63 |.obj : g|etfile.c|
|000044c0| 20 7a 6f 6f 6d 65 6d 2e | 68 0a 58 09 24 28 43 43 | zoomem.|h.X.$(CC|
|000044d0| 29 20 24 28 63 73 77 69 | 74 63 68 29 20 24 28 65 |) $(cswi|tch) $(e|
|000044e0| 78 74 72 61 29 20 24 2a | 2e 63 0a 58 0a 58 6d 61 |xtra) $*|.c.X.Xma|
|000044f0| 63 68 69 6e 65 2e 6f 62 | 6a 20 3a 20 6d 61 63 68 |chine.ob|j : mach|
|00004500| 69 6e 65 2e 63 20 6e 69 | 78 74 69 6d 65 2e 69 20 |ine.c ni|xtime.i |
|00004510| 76 6d 73 2e 63 0a 58 09 | 24 28 43 43 29 20 24 28 |vms.c.X.|$(CC) $(|
|00004520| 63 73 77 69 74 63 68 29 | 20 24 28 65 78 74 72 61 |cswitch)| $(extra|
|00004530| 29 20 24 2a 2e 63 0a 58 | 0a 58 6d 61 6b 65 6c 69 |) $*.c.X|.Xmakeli|
|00004540| 73 74 2e 6f 62 6a 20 3a | 20 6d 61 6b 65 6c 69 73 |st.obj :| makelis|
|00004550| 74 2e 63 0a 58 0a 58 6d | 69 73 63 2e 6f 62 6a 20 |t.c.X.Xm|isc.obj |
|00004560| 3a 20 6d 69 73 63 2e 63 | 20 7a 6f 6f 69 6f 2e 68 |: misc.c| zooio.h|
|00004570| 0a 58 09 24 28 43 43 29 | 20 24 28 63 73 77 69 74 |.X.$(CC)| $(cswit|
|00004580| 63 68 29 20 24 28 65 78 | 74 72 61 29 20 24 2a 2e |ch) $(ex|tra) $*.|
|00004590| 63 0a 58 0a 58 6d 69 73 | 63 32 2e 6f 62 6a 20 3a |c.X.Xmis|c2.obj :|
|000045a0| 20 6d 69 73 63 32 2e 63 | 20 7a 6f 6f 6d 65 6d 2e | misc2.c| zoomem.|
|000045b0| 68 0a 58 09 24 28 43 43 | 29 20 24 28 63 73 77 69 |h.X.$(CC|) $(cswi|
|000045c0| 74 63 68 29 20 24 28 65 | 78 74 72 61 29 20 24 2a |tch) $(e|xtra) $*|
|000045d0| 2e 63 0a 58 0a 58 6f 70 | 74 69 6f 6e 73 2e 6f 62 |.c.X.Xop|tions.ob|
|000045e0| 6a 20 3a 20 6f 70 74 69 | 6f 6e 73 2e 63 0a 58 0a |j : opti|ons.c.X.|
|000045f0| 58 6e 65 78 74 66 69 6c | 65 2e 6f 62 6a 20 3a 20 |Xnextfil|e.obj : |
|00004600| 20 6e 65 78 74 66 69 6c | 65 2e 63 0a 58 0a 58 6e | nextfil|e.c.X.Xn|
|00004610| 65 65 64 65 64 2e 6f 62 | 6a 20 3a 20 6e 65 65 64 |eeded.ob|j : need|
|00004620| 65 64 2e 63 0a 58 0a 58 | 70 61 72 73 65 2e 6f 62 |ed.c.X.X|parse.ob|
|00004630| 6a 20 3a 20 70 61 72 73 | 65 2e 63 0a 58 0a 58 70 |j : pars|e.c.X.Xp|
|00004640| 6f 72 74 61 62 6c 65 2e | 6f 62 6a 20 3a 20 70 6f |ortable.|obj : po|
|00004650| 72 74 61 62 6c 65 2e 63 | 0a 58 0a 58 70 72 74 65 |rtable.c|.X.Xprte|
|00004660| 72 72 6f 72 2e 6f 62 6a | 20 3a 20 70 72 74 65 72 |rror.obj| : prter|
|00004670| 72 6f 72 2e 63 0a 58 0a | 58 7a 6f 6f 2e 6f 62 6a |ror.c.X.|Xzoo.obj|
|00004680| 20 3a 20 20 20 7a 6f 6f | 2e 63 20 7a 6f 6f 6d 65 | : zoo|.c zoome|
|00004690| 6d 2e 68 20 65 72 72 6f | 72 73 2e 69 0a 58 09 24 |m.h erro|rs.i.X.$|
|000046a0| 28 43 43 29 20 24 28 63 | 73 77 69 74 63 68 29 20 |(CC) $(c|switch) |
|000046b0| 24 28 65 78 74 72 61 29 | 20 24 2a 2e 63 0a 58 0a |$(extra)| $*.c.X.|
|000046c0| 58 7a 6f 6f 61 64 64 2e | 6f 62 6a 20 3a 20 7a 6f |Xzooadd.|obj : zo|
|000046d0| 6f 69 6f 2e 68 20 7a 6f | 6f 61 64 64 2e 63 0a 58 |oio.h zo|oadd.c.X|
|000046e0| 09 24 28 43 43 29 20 24 | 28 63 73 77 69 74 63 68 |.$(CC) $|(cswitch|
|000046f0| 29 20 24 28 65 78 74 72 | 61 29 20 24 2a 2e 63 0a |) $(extr|a) $*.c.|
|00004700| 58 0a 58 7a 6f 6f 61 64 | 64 32 2e 6f 62 6a 20 3a |X.Xzooad|d2.obj :|
|00004710| 20 7a 6f 6f 69 6f 2e 68 | 20 7a 6f 6f 61 64 64 32 | zooio.h| zooadd2|
|00004720| 2e 63 0a 58 09 24 28 43 | 43 29 20 24 28 63 73 77 |.c.X.$(C|C) $(csw|
|00004730| 69 74 63 68 29 20 24 28 | 65 78 74 72 61 29 20 24 |itch) $(|extra) $|
|00004740| 2a 2e 63 0a 58 0a 58 7a | 6f 6f 64 65 6c 2e 6f 62 |*.c.X.Xz|oodel.ob|
|00004750| 6a 20 3a 20 7a 6f 6f 69 | 6f 2e 68 20 7a 6f 6f 64 |j : zooi|o.h zood|
|00004760| 65 6c 2e 63 0a 58 09 24 | 28 43 43 29 20 24 28 63 |el.c.X.$|(CC) $(c|
|00004770| 73 77 69 74 63 68 29 20 | 24 28 65 78 74 72 61 29 |switch) |$(extra)|
|00004780| 20 24 2a 2e 63 0a 58 0a | 58 7a 6f 6f 65 78 74 2e | $*.c.X.|Xzooext.|
|00004790| 6f 62 6a 20 3a 20 7a 6f | 6f 65 78 74 2e 63 20 20 |obj : zo|oext.c |
|000047a0| 65 72 72 6f 72 73 2e 69 | 20 7a 6f 6f 69 6f 2e 68 |errors.i| zooio.h|
|000047b0| 0a 58 09 24 28 43 43 29 | 20 24 28 63 73 77 69 74 |.X.$(CC)| $(cswit|
|000047c0| 63 68 29 20 24 28 65 78 | 74 72 61 29 20 24 2a 2e |ch) $(ex|tra) $*.|
|000047d0| 63 0a 58 0a 58 7a 6f 6f | 6c 69 73 74 2e 6f 62 6a |c.X.Xzoo|list.obj|
|000047e0| 20 3a 20 7a 6f 6f 69 6f | 2e 68 20 7a 6f 6f 6c 69 | : zooio|.h zooli|
|000047f0| 73 74 2e 63 0a 58 09 24 | 28 43 43 29 20 24 28 63 |st.c.X.$|(CC) $(c|
|00004800| 73 77 69 74 63 68 29 20 | 24 28 65 78 74 72 61 29 |switch) |$(extra)|
|00004810| 20 24 2a 2e 63 0a 58 0a | 58 7a 6f 6f 70 61 63 6b | $*.c.X.|Xzoopack|
|00004820| 2e 6f 62 6a 20 3a 20 7a | 6f 6f 69 6f 2e 68 20 7a |.obj : z|ooio.h z|
|00004830| 6f 6f 70 61 63 6b 2e 63 | 0a 58 09 24 28 43 43 29 |oopack.c|.X.$(CC)|
|00004840| 20 24 28 63 73 77 69 74 | 63 68 29 20 24 28 65 78 | $(cswit|ch) $(ex|
|00004850| 74 72 61 29 20 24 2a 2e | 63 0a 45 4e 44 5f 4f 46 |tra) $*.|c.END_OF|
|00004860| 5f 46 49 4c 45 0a 69 66 | 20 74 65 73 74 20 32 32 |_FILE.if| test 22|
|00004870| 34 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |48 -ne `|wc -c <'|
|00004880| 64 65 73 63 72 69 70 2e | 6d 6d 73 27 60 3b 20 74 |descrip.|mms'`; t|
|00004890| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000048a0| 72 3a 20 5c 22 27 64 65 | 73 63 72 69 70 2e 6d 6d |r: \"'de|scrip.mm|
|000048b0| 73 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |s'\" unp|acked wi|
|000048c0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|000048d0| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 64 65 73 63 |i.# end |of 'desc|
|000048e0| 72 69 70 2e 6d 6d 73 27 | 0a 66 69 0a 69 66 20 74 |rip.mms'|.fi.if t|
|000048f0| 65 73 74 20 2d 66 20 27 | 65 72 72 6f 72 73 2e 69 |est -f '|errors.i|
|00004900| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00004910| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00004920| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00004930| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00004940| 6e 67 20 66 69 6c 65 20 | 5c 22 27 65 72 72 6f 72 |ng file |\"'error|
|00004950| 73 2e 69 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |s.i'\".e|lse.echo|
|00004960| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00004970| 67 20 5c 22 27 65 72 72 | 6f 72 73 2e 69 27 5c 22 |g \"'err|ors.i'\"|
|00004980| 20 5c 28 38 32 35 20 63 | 68 61 72 61 63 74 65 72 | \(825 c|haracter|
|00004990| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000049a0| 20 3e 27 65 72 72 6f 72 | 73 2e 69 27 20 3c 3c 27 | >'error|s.i' <<'|
|000049b0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|000049c0| 20 40 28 23 29 20 65 72 | 72 6f 72 73 2e 69 20 32 | @(#) er|rors.i 2|
|000049d0| 2e 34 20 38 38 2f 30 31 | 2f 33 31 20 31 32 3a 33 |.4 88/01|/31 12:3|
|000049e0| 32 3a 34 36 20 2a 2f 0a | 58 0a 58 2f 2a 0a 58 54 |2:46 */.|X.X/*.XT|
|000049f0| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00004a00| 68 69 73 20 66 69 6c 65 | 20 61 72 65 20 68 65 72 |his file| are her|
|00004a10| 65 62 79 20 72 65 6c 65 | 61 73 65 64 20 74 6f 20 |eby rele|ased to |
|00004a20| 74 68 65 20 70 75 62 6c | 69 63 20 64 6f 6d 61 69 |the publ|ic domai|
|00004a30| 6e 2e 0a 58 0a 58 20 20 | 20 20 20 20 20 20 20 20 |n..X.X | |
|00004a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a50| 20 2d 2d 20 52 61 68 75 | 6c 20 44 68 65 73 69 20 | -- Rahu|l Dhesi |
|00004a60| 31 39 38 36 2f 31 31 2f | 31 34 0a 58 2a 2f 0a 58 |1986/11/|14.X*/.X|
|00004a70| 0a 58 2f 2a 20 64 65 66 | 69 6e 65 73 20 61 6c 6c |.X/* def|ines all|
|00004a80| 20 74 68 65 20 65 72 72 | 6f 72 73 20 61 73 20 65 | the err|ors as e|
|00004a90| 78 74 65 72 6e 73 2e 20 | 20 44 65 63 6c 61 72 61 |xterns. | Declara|
|00004aa0| 74 69 6f 6e 73 20 6d 75 | 73 74 20 62 65 0a 58 65 |tions mu|st be.Xe|
|00004ab0| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 74 68 6f |quivalen|t to tho|
|00004ac0| 73 65 20 69 6e 20 70 72 | 74 65 72 72 6f 72 2e 63 |se in pr|terror.c|
|00004ad0| 20 2a 2f 0a 58 0a 58 2f | 2a 20 54 68 65 73 65 20 | */.X.X/|* These |
|00004ae0| 64 65 63 6c 61 72 61 74 | 69 6f 6e 73 20 6d 75 73 |declarat|ions mus|
|00004af0| 74 20 62 65 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |t be equ|ivalent |
|00004b00| 74 6f 20 74 68 6f 73 65 | 20 69 6e 20 70 72 74 65 |to those| in prte|
|00004b10| 72 72 6f 72 2e 63 20 2a | 2f 0a 58 65 78 74 65 72 |rror.c *|/.Xexter|
|00004b20| 6e 20 63 68 61 72 20 6e | 6f 5f 6d 61 74 63 68 5b |n char n|o_match[|
|00004b30| 5d 3b 0a 58 65 78 74 65 | 72 6e 20 63 68 61 72 20 |];.Xexte|rn char |
|00004b40| 66 61 69 6c 65 64 5f 63 | 6f 6e 73 69 73 74 65 6e |failed_c|onsisten|
|00004b50| 63 79 5b 5d 3b 0a 58 65 | 78 74 65 72 6e 20 63 68 |cy[];.Xe|xtern ch|
|00004b60| 61 72 20 69 6e 76 61 6c | 69 64 5f 68 65 61 64 65 |ar inval|id_heade|
|00004b70| 72 5b 5d 3b 0a 58 65 78 | 74 65 72 6e 20 63 68 61 |r[];.Xex|tern cha|
|00004b80| 72 20 69 6e 74 65 72 6e | 61 6c 5f 65 72 72 6f 72 |r intern|al_error|
|00004b90| 5b 5d 3b 0a 58 65 78 74 | 65 72 6e 20 63 68 61 72 |[];.Xext|ern char|
|00004ba0| 20 64 69 73 6b 5f 66 75 | 6c 6c 5b 5d 3b 0a 58 65 | disk_fu|ll[];.Xe|
|00004bb0| 78 74 65 72 6e 20 63 68 | 61 72 20 62 61 64 5f 64 |xtern ch|ar bad_d|
|00004bc0| 69 72 65 63 74 6f 72 79 | 5b 5d 3b 0a 58 65 78 74 |irectory|[];.Xext|
|00004bd0| 65 72 6e 20 63 68 61 72 | 20 6e 6f 5f 6d 65 6d 6f |ern char| no_memo|
|00004be0| 72 79 5b 5d 3b 0a 58 65 | 78 74 65 72 6e 20 63 68 |ry[];.Xe|xtern ch|
|00004bf0| 61 72 20 74 6f 6f 5f 6d | 61 6e 79 5f 66 69 6c 65 |ar too_m|any_file|
|00004c00| 73 5b 5d 3b 0a 58 65 78 | 74 65 72 6e 20 63 68 61 |s[];.Xex|tern cha|
|00004c10| 72 20 70 61 63 6b 66 69 | 72 73 74 5b 5d 3b 0a 58 |r packfi|rst[];.X|
|00004c20| 65 78 74 65 72 6e 20 63 | 68 61 72 20 67 61 72 62 |extern c|har garb|
|00004c30| 6c 65 64 5b 5d 3b 0a 58 | 65 78 74 65 72 6e 20 63 |led[];.X|extern c|
|00004c40| 68 61 72 20 73 74 61 72 | 74 5f 6f 66 73 5b 5d 3b |har star|t_ofs[];|
|00004c50| 0a 58 0a 58 23 69 66 6e | 64 65 66 20 4f 4f 5a 0a |.X.X#ifn|def OOZ.|
|00004c60| 58 65 78 74 65 72 6e 20 | 63 68 61 72 20 77 72 6f |Xextern |char wro|
|00004c70| 6e 67 5f 76 65 72 73 69 | 6f 6e 5b 5d 3b 0a 58 65 |ng_versi|on[];.Xe|
|00004c80| 78 74 65 72 6e 20 63 68 | 61 72 20 63 61 6e 74 5f |xtern ch|ar cant_|
|00004c90| 70 72 6f 63 65 73 73 5b | 5d 3b 0a 58 65 78 74 65 |process[|];.Xexte|
|00004ca0| 72 6e 20 63 68 61 72 20 | 6f 70 74 69 6f 6e 5f 69 |rn char |option_i|
|00004cb0| 67 6e 6f 72 65 64 5b 5d | 3b 0a 58 65 78 74 65 72 |gnored[]|;.Xexter|
|00004cc0| 6e 20 63 68 61 72 20 69 | 6e 76 5f 6f 70 74 69 6f |n char i|nv_optio|
|00004cd0| 6e 5b 5d 3b 0a 58 65 78 | 74 65 72 6e 20 63 68 61 |n[];.Xex|tern cha|
|00004ce0| 72 20 62 61 64 5f 63 72 | 63 5b 5d 3b 0a 58 23 65 |r bad_cr|c[];.X#e|
|00004cf0| 6e 64 69 66 0a 58 0a 58 | 65 78 74 65 72 6e 20 63 |ndif.X.X|extern c|
|00004d00| 68 61 72 20 63 6f 75 6c | 64 5f 6e 6f 74 5f 6f 70 |har coul|d_not_op|
|00004d10| 65 6e 5b 5d 3b 0a 58 0a | 45 4e 44 5f 4f 46 5f 46 |en[];.X.|END_OF_F|
|00004d20| 49 4c 45 0a 69 66 20 74 | 65 73 74 20 38 32 35 20 |ILE.if t|est 825 |
|00004d30| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 65 72 72 |-ne `wc |-c <'err|
|00004d40| 6f 72 73 2e 69 27 60 3b | 20 74 68 65 6e 0a 20 20 |ors.i'`;| then. |
|00004d50| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00004d60| 65 72 72 6f 72 73 2e 69 | 27 5c 22 20 75 6e 70 61 |errors.i|'\" unpa|
|00004d70| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00004d80| 73 69 7a 65 21 0a 66 69 | 0a 23 20 65 6e 64 20 6f |size!.fi|.# end o|
|00004d90| 66 20 27 65 72 72 6f 72 | 73 2e 69 27 0a 66 69 0a |f 'error|s.i'.fi.|
|00004da0| 69 66 20 74 65 73 74 20 | 2d 66 20 27 66 69 6c 65 |if test |-f 'file|
|00004db0| 2e 66 69 78 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |.fix' -a| "${1}" |
|00004dc0| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00004dd0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00004de0| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00004df0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 66 |isting f|ile \"'f|
|00004e00| 69 6c 65 2e 66 69 78 27 | 5c 22 0a 65 6c 73 65 0a |ile.fix'|\".else.|
|00004e10| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00004e20| 63 74 69 6e 67 20 5c 22 | 27 66 69 6c 65 2e 66 69 |cting \"|'file.fi|
|00004e30| 78 27 5c 22 20 5c 28 31 | 38 31 34 20 63 68 61 72 |x'\" \(1|814 char|
|00004e40| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|00004e50| 5e 58 2f 2f 22 20 3e 27 | 66 69 6c 65 2e 66 69 78 |^X//" >'|file.fix|
|00004e60| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00004e70| 27 0a 58 20 20 20 20 20 | 20 20 20 20 20 4d 61 6b |'.X | Mak|
|00004e80| 69 6e 67 20 74 68 65 20 | 22 66 69 6c 65 22 20 63 |ing the |"file" c|
|00004e90| 6f 6d 6d 61 6e 64 20 72 | 65 63 6f 67 6e 69 7a 65 |ommand r|ecognize|
|00004ea0| 20 7a 6f 6f 20 61 72 63 | 68 69 76 65 73 0a 58 0a | zoo arc|hives.X.|
|00004eb0| 58 5a 6f 6f 20 61 72 63 | 68 69 76 65 73 20 68 61 |XZoo arc|hives ha|
|00004ec0| 76 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ve the f|ollowing|
|00004ed0| 20 6d 61 67 69 63 20 6e | 75 6d 62 65 72 3a 20 20 | magic n|umber: |
|00004ee0| 42 65 67 69 6e 6e 69 6e | 67 20 61 74 20 6f 66 66 |Beginnin|g at off|
|00004ef0| 73 65 74 20 32 30 0a 58 | 64 65 63 69 6d 61 6c 2c |set 20.X|decimal,|
|00004f00| 20 74 68 65 72 65 20 61 | 72 65 20 66 6f 75 72 20 | there a|re four |
|00004f10| 62 79 74 65 73 20 77 69 | 74 68 20 74 68 65 20 76 |bytes wi|th the v|
|00004f20| 61 6c 75 65 73 20 30 78 | 64 63 2c 20 30 78 61 37 |alues 0x|dc, 0xa7|
|00004f30| 2c 20 30 78 63 34 2c 20 | 61 6e 64 0a 58 30 78 66 |, 0xc4, |and.X0xf|
|00004f40| 64 2e 20 20 28 42 75 74 | 20 69 66 20 79 6f 75 20 |d. (But| if you |
|00004f50| 63 61 6c 6c 20 74 68 65 | 20 66 69 72 73 74 20 62 |call the| first b|
|00004f60| 79 74 65 20 6f 66 20 61 | 20 7a 6f 6f 20 61 72 63 |yte of a| zoo arc|
|00004f70| 68 69 76 65 20 62 79 74 | 65 20 31 2c 20 74 68 65 |hive byt|e 1, the|
|00004f80| 6e 0a 58 74 68 65 20 6d | 61 67 69 63 20 62 79 74 |n.Xthe m|agic byt|
|00004f90| 65 73 20 77 69 6c 6c 20 | 62 65 20 62 79 74 65 73 |es will |be bytes|
|00004fa0| 20 32 31 20 74 68 72 6f | 75 67 68 20 32 34 2e 29 | 21 thro|ugh 24.)|
|00004fb0| 0a 58 0a 58 54 6f 20 6d | 61 6b 65 20 74 68 65 20 |.X.XTo m|ake the |
|00004fc0| 22 66 69 6c 65 22 20 63 | 6f 6d 6d 61 6e 64 20 69 |"file" c|ommand i|
|00004fd0| 64 65 6e 74 69 66 79 20 | 7a 6f 6f 20 61 72 63 68 |dentify |zoo arch|
|00004fe0| 69 76 65 73 2c 20 63 68 | 61 6e 67 65 73 20 63 61 |ives, ch|anges ca|
|00004ff0| 6e 20 62 65 20 6d 61 64 | 65 0a 58 61 73 20 66 6f |n be mad|e.Xas fo|
|00005000| 6c 6c 6f 77 73 2e 0a 58 | 0a 58 34 2e 33 42 53 44 |llows..X|.X4.3BSD|
|00005010| 3a 20 20 53 65 65 20 74 | 68 65 20 63 6f 6e 74 65 |: See t|he conte|
|00005020| 78 74 20 64 69 66 66 20 | 6e 65 61 72 20 74 68 65 |xt diff |near the|
|00005030| 20 65 6e 64 20 6f 66 20 | 74 68 69 73 20 64 6f 63 | end of |this doc|
|00005040| 75 6d 65 6e 74 2c 20 73 | 75 69 74 61 62 6c 65 0a |ument, s|uitable.|
|00005050| 58 66 6f 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |Xfor app|lication|
|00005060| 20 77 69 74 68 20 74 68 | 65 20 22 70 61 74 63 68 | with th|e "patch|
|00005070| 22 20 75 74 69 6c 69 74 | 79 2c 20 74 68 61 74 20 |" utilit|y, that |
|00005080| 77 6f 72 6b 73 20 77 69 | 74 68 20 74 68 65 20 34 |works wi|th the 4|
|00005090| 2e 33 42 53 44 20 0a 58 | 22 66 69 6c 65 22 20 63 |.3BSD .X|"file" c|
|000050a0| 6f 6d 6d 61 6e 64 20 6f | 6e 20 61 20 56 41 58 2d |ommand o|n a VAX-|
|000050b0| 31 31 2f 37 38 35 2e 20 | 20 49 20 64 6f 6e 27 74 |11/785. | I don't|
|000050c0| 20 6b 6e 6f 77 20 69 66 | 20 74 68 69 73 20 77 69 | know if| this wi|
|000050d0| 6c 6c 20 61 6c 73 6f 20 | 77 6f 72 6b 20 0a 58 75 |ll also |work .Xu|
|000050e0| 6e 64 65 72 20 34 2e 32 | 42 53 44 20 6f 72 20 77 |nder 4.2|BSD or w|
|000050f0| 69 74 68 20 61 6e 79 20 | 6f 74 68 65 72 20 69 6d |ith any |other im|
|00005100| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |plementa|tion of |
|00005110| 74 68 65 20 22 66 69 6c | 65 22 20 63 6f 6d 6d 61 |the "fil|e" comma|
|00005120| 6e 64 20 0a 58 6f 72 20 | 6f 6e 20 61 6e 79 20 6f |nd .Xor |on any o|
|00005130| 74 68 65 72 20 43 50 55 | 2e 0a 58 0a 58 53 79 73 |ther CPU|..X.XSys|
|00005140| 74 65 6d 20 56 20 52 65 | 6c 65 61 73 65 20 32 20 |tem V Re|lease 2 |
|00005150| 28 61 73 20 65 78 65 6d | 70 6c 69 66 69 65 64 20 |(as exem|plified |
|00005160| 62 79 20 4d 69 63 72 6f | 70 6f 72 74 20 53 79 73 |by Micro|port Sys|
|00005170| 74 65 6d 20 56 2f 41 54 | 29 3a 20 20 41 74 20 74 |tem V/AT|): At t|
|00005180| 68 65 0a 58 65 6e 64 20 | 6f 66 20 74 68 65 20 66 |he.Xend |of the f|
|00005190| 69 6c 65 20 22 2f 65 74 | 63 2f 6d 61 67 69 63 22 |ile "/et|c/magic"|
|000051a0| 2c 20 61 64 64 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |, add th|e follow|
|000051b0| 69 6e 67 20 6c 69 6e 65 | 3a 0a 58 0a 58 32 30 09 |ing line|:.X.X20.|
|000051c0| 6c 6f 6e 67 09 09 30 78 | 66 64 63 34 61 37 64 63 |long..0x|fdc4a7dc|
|000051d0| 09 7a 6f 6f 20 61 72 63 | 68 69 76 65 0a 58 0a 58 |.zoo arc|hive.X.X|
|000051e0| 54 68 69 73 20 73 68 6f | 75 6c 64 20 77 6f 72 6b |This sho|uld work|
|000051f0| 20 6f 6e 20 61 20 6c 69 | 74 74 6c 65 2d 65 6e 64 | on a li|ttle-end|
|00005200| 69 61 6e 20 6d 61 63 68 | 69 6e 65 2c 20 69 6e 20 |ian mach|ine, in |
|00005210| 77 68 69 63 68 20 74 68 | 65 20 6c 6f 6e 67 20 76 |which th|e long v|
|00005220| 61 6c 75 65 0a 58 30 78 | 66 64 63 34 61 37 64 63 |alue.X0x|fdc4a7dc|
|00005230| 20 69 73 20 73 74 6f 72 | 65 64 20 77 69 74 68 20 | is stor|ed with |
|00005240| 74 68 65 20 6c 65 61 73 | 74 2d 73 69 67 6e 69 66 |the leas|t-signif|
|00005250| 69 63 61 6e 74 20 62 79 | 74 65 20 66 69 72 73 74 |icant by|te first|
|00005260| 2e 20 20 46 6f 72 20 61 | 20 62 69 67 2d 0a 58 65 |. For a| big-.Xe|
|00005270| 6e 64 69 61 6e 20 6d 61 | 63 68 69 6e 65 2c 20 79 |ndian ma|chine, y|
|00005280| 6f 75 20 77 69 6c 6c 20 | 70 72 6f 62 61 62 6c 79 |ou will |probably|
|00005290| 20 6e 65 65 64 20 74 6f | 20 72 65 70 6c 61 63 65 | need to| replace|
|000052a0| 20 69 74 20 77 69 74 68 | 20 30 78 64 63 61 37 63 | it with| 0xdca7c|
|000052b0| 34 66 64 2e 0a 58 54 68 | 69 73 20 61 73 73 75 6d |4fd..XTh|is assum|
|000052c0| 65 73 20 74 68 61 74 20 | 6c 6f 6e 67 20 6f 63 63 |es that |long occ|
|000052d0| 75 70 69 65 73 20 34 20 | 62 79 74 65 73 2e 20 20 |upies 4 |bytes. |
|000052e0| 49 66 20 6e 6f 74 2c 20 | 75 73 65 20 61 20 64 61 |If not, |use a da|
|000052f0| 74 61 20 74 79 70 65 20 | 6e 61 6d 65 0a 58 74 68 |ta type |name.Xth|
|00005300| 61 74 20 69 73 20 65 78 | 61 63 74 6c 79 20 34 20 |at is ex|actly 4 |
|00005310| 62 79 74 65 73 2e 0a 58 | 0a 58 3d 3d 3d 3d 3d 0a |bytes..X|.X=====.|
|00005320| 58 43 68 61 6e 67 65 73 | 20 6e 65 65 64 65 64 20 |XChanges| needed |
|00005330| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 34 2e 33 42 |to make |the 4.3B|
|00005340| 53 44 20 22 66 69 6c 65 | 22 20 63 6f 6d 6d 61 6e |SD "file|" comman|
|00005350| 64 20 72 65 63 6f 67 6e | 69 7a 65 20 7a 6f 6f 0a |d recogn|ize zoo.|
|00005360| 58 61 72 63 68 69 76 65 | 73 2e 20 20 4b 6e 6f 77 |Xarchive|s. Know|
|00005370| 6e 20 74 6f 20 77 6f 72 | 6b 20 6f 6e 20 61 20 56 |n to wor|k on a V|
|00005380| 41 58 2d 31 31 2f 37 38 | 35 2e 0a 58 0a 58 2a 2a |AX-11/78|5..X.X**|
|00005390| 2a 20 66 69 6c 65 2e 63 | 2e 6f 6c 64 09 54 68 75 |* file.c|.old.Thu|
|000053a0| 20 4d 61 72 20 20 36 20 | 31 39 3a 33 34 3a 32 39 | Mar 6 |19:34:29|
|000053b0| 20 31 39 38 36 0a 58 2d | 2d 2d 20 66 69 6c 65 2e | 1986.X-|-- file.|
|000053c0| 63 09 53 61 74 20 46 65 | 62 20 32 31 20 31 39 3a |c.Sat Fe|b 21 19:|
|000053d0| 32 38 3a 35 32 20 31 39 | 38 37 0a 58 2a 2a 2a 2a |28:52 19|87.X****|
|000053e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 58 2a 2a 2a |********|***.X***|
|000053f0| 20 31 37 32 2c 31 38 31 | 20 2a 2a 2a 2a 0a 58 2d | 172,181| ****.X-|
|00005400| 2d 2d 20 31 37 32 2c 31 | 38 37 20 2d 2d 2d 2d 0a |-- 172,1|87 ----.|
|00005410| 58 20 20 09 63 61 73 65 | 20 30 37 30 37 30 37 3a |X .case| 070707:|
|00005420| 0a 58 20 20 09 09 70 72 | 69 6e 74 66 28 22 63 70 |.X ..pr|intf("cp|
|00005430| 69 6f 20 64 61 74 61 5c | 6e 22 29 3b 0a 58 20 20 |io data\|n");.X |
|00005440| 09 09 72 65 74 75 72 6e | 3b 0a 58 20 20 09 7d 0a |..return|;.X .}.|
|00005450| 58 20 20 0a 58 2b 20 09 | 69 66 20 28 62 75 66 5b |X .X+ .|if (buf[|
|00005460| 32 30 5d 20 3d 3d 20 28 | 63 68 61 72 29 20 30 78 |20] == (|char) 0x|
|00005470| 64 63 20 26 26 20 62 75 | 66 5b 32 31 5d 20 3d 3d |dc && bu|f[21] ==|
|00005480| 20 28 63 68 61 72 29 20 | 30 78 61 37 20 26 26 20 | (char) |0xa7 && |
|00005490| 0a 58 2b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X+ | |
|000054a0| 09 09 62 75 66 5b 32 32 | 5d 20 3d 3d 20 28 63 68 |..buf[22|] == (ch|
|000054b0| 61 72 29 20 30 78 63 34 | 20 26 26 20 62 75 66 5b |ar) 0xc4| && buf[|
|000054c0| 32 33 5d 20 3d 3d 20 28 | 63 68 61 72 29 20 30 78 |23] == (|char) 0x|
|000054d0| 66 64 29 20 7b 0a 58 2b | 20 09 09 70 72 69 6e 74 |fd) {.X+| ..print|
|000054e0| 66 20 28 22 7a 6f 6f 20 | 61 72 63 68 69 76 65 5c |f ("zoo |archive\|
|000054f0| 6e 22 29 3b 0a 58 2b 20 | 09 09 72 65 74 75 72 6e |n");.X+ |..return|
|00005500| 3b 0a 58 2b 20 09 7d 0a | 58 2b 20 0a 58 20 20 09 |;.X+ .}.|X+ .X .|
|00005510| 69 66 20 28 62 75 66 5b | 30 5d 20 3d 3d 20 27 23 |if (buf[|0] == '#|
|00005520| 27 20 26 26 20 62 75 66 | 5b 31 5d 20 3d 3d 20 27 |' && buf|[1] == '|
|00005530| 21 27 20 26 26 20 73 68 | 65 6c 6c 73 63 72 69 70 |!' && sh|ellscrip|
|00005540| 74 28 62 75 66 2b 32 2c | 20 26 6d 62 75 66 29 29 |t(buf+2,| &mbuf))|
|00005550| 0a 58 20 20 09 09 72 65 | 74 75 72 6e 3b 0a 58 20 |.X ..re|turn;.X |
|00005560| 20 09 69 66 20 28 62 75 | 66 5b 30 5d 20 3d 3d 20 | .if (bu|f[0] == |
|00005570| 27 5c 30 33 37 27 20 26 | 26 20 62 75 66 5b 31 5d |'\037' &|& buf[1]|
|00005580| 20 3d 3d 20 27 5c 32 33 | 35 27 29 20 7b 0a 58 20 | == '\23|5') {.X |
|00005590| 20 09 09 69 66 20 28 62 | 75 66 5b 32 5d 26 30 78 | ..if (b|uf[2]&0x|
|000055a0| 38 30 29 0a 58 20 20 09 | 09 09 70 72 69 6e 74 66 |80).X .|..printf|
|000055b0| 28 22 62 6c 6f 63 6b 20 | 22 29 3b 0a 45 4e 44 5f |("block |");.END_|
|000055c0| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|000055d0| 31 38 31 34 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |1814 -ne| `wc -c |
|000055e0| 3c 27 66 69 6c 65 2e 66 | 69 78 27 60 3b 20 74 68 |<'file.f|ix'`; th|
|000055f0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00005600| 3a 20 5c 22 27 66 69 6c | 65 2e 66 69 78 27 5c 22 |: \"'fil|e.fix'\"|
|00005610| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00005620| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00005630| 65 6e 64 20 6f 66 20 27 | 66 69 6c 65 2e 66 69 78 |end of '|file.fix|
|00005640| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|00005650| 27 6c 7a 63 6f 6e 73 74 | 2e 68 27 20 2d 61 20 22 |'lzconst|.h' -a "|
|00005660| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00005670| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00005680| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00005690| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|000056a0| 65 20 5c 22 27 6c 7a 63 | 6f 6e 73 74 2e 68 27 5c |e \"'lzc|onst.h'\|
|000056b0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|000056c0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000056d0| 6c 7a 63 6f 6e 73 74 2e | 68 27 5c 22 20 5c 28 35 |lzconst.|h'\" \(5|
|000056e0| 37 34 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |74 chara|cters\).|
|000056f0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 6c |sed "s/^|X//" >'l|
|00005700| 7a 63 6f 6e 73 74 2e 68 | 27 20 3c 3c 27 45 4e 44 |zconst.h|' <<'END|
|00005710| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 2f 2a 20 40 28 |_OF_FILE|'.X/* @(|
|00005720| 23 29 20 6c 7a 63 6f 6e | 73 74 2e 68 20 32 2e 31 |#) lzcon|st.h 2.1|
|00005730| 20 38 37 2f 31 32 2f 32 | 35 20 31 32 3a 32 32 3a | 87/12/2|5 12:22:|
|00005740| 33 30 20 2a 2f 0a 58 0a | 58 2f 2a 0a 58 54 68 65 |30 */.X.|X/*.XThe|
|00005750| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 74 68 69 | content|s of thi|
|00005760| 73 20 66 69 6c 65 20 61 | 72 65 20 68 65 72 65 62 |s file a|re hereb|
|00005770| 79 20 72 65 6c 65 61 73 | 65 64 20 74 6f 20 74 68 |y releas|ed to th|
|00005780| 65 20 70 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 2e |e public| domain.|
|00005790| 0a 58 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X.X | |
|000057a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057b0| 20 20 20 20 20 20 20 20 | 2d 2d 20 52 61 68 75 6c | |-- Rahul|
|000057c0| 20 44 68 65 73 69 20 20 | 31 39 38 36 2f 31 32 2f | Dhesi |1986/12/|
|000057d0| 33 31 0a 58 2a 2f 0a 58 | 0a 58 23 64 65 66 69 6e |31.X*/.X|.X#defin|
|000057e0| 65 20 20 49 4e 42 55 46 | 53 49 5a 20 20 20 20 28 |e INBUF|SIZ (|
|000057f0| 49 4e 5f 42 55 46 5f 53 | 49 5a 45 20 2d 20 31 30 |IN_BUF_S|IZE - 10|
|00005800| 29 20 20 20 2f 2a 20 61 | 76 6f 69 64 20 6f 62 6f |) /* a|void obo|
|00005810| 20 65 72 72 6f 72 73 20 | 2a 2f 0a 58 23 64 65 66 | errors |*/.X#def|
|00005820| 69 6e 65 20 20 4f 55 54 | 42 55 46 53 49 5a 20 20 |ine OUT|BUFSIZ |
|00005830| 20 28 4f 55 54 5f 42 55 | 46 5f 53 49 5a 45 20 2d | (OUT_BU|F_SIZE -|
|00005840| 20 31 30 29 0a 58 23 64 | 65 66 69 6e 65 20 20 4d | 10).X#d|efine M|
|00005850| 45 4d 45 52 52 20 20 20 | 20 20 20 32 0a 58 23 64 |EMERR | 2.X#d|
|00005860| 65 66 69 6e 65 20 20 49 | 4f 45 52 52 20 20 20 20 |efine I|OERR |
|00005870| 20 20 20 31 0a 58 23 64 | 65 66 69 6e 65 20 20 4d | 1.X#d|efine M|
|00005880| 41 58 42 49 54 53 20 20 | 20 20 20 31 33 0a 58 23 |AXBITS | 13.X#|
|00005890| 64 65 66 69 6e 65 20 20 | 43 4c 45 41 52 20 20 20 |define |CLEAR |
|000058a0| 20 20 20 20 32 35 36 20 | 20 20 20 20 20 20 20 20 | 256 | |
|000058b0| 2f 2a 20 63 6c 65 61 72 | 20 63 6f 64 65 20 2a 2f |/* clear| code */|
|000058c0| 0a 58 23 64 65 66 69 6e | 65 20 20 5a 5f 45 4f 46 |.X#defin|e Z_EOF|
|000058d0| 20 20 20 20 20 20 20 32 | 35 37 20 20 20 20 20 20 | 2|57 |
|000058e0| 20 20 20 2f 2a 20 65 6e | 64 20 6f 66 20 66 69 6c | /* en|d of fil|
|000058f0| 65 20 6d 61 72 6b 65 72 | 20 2a 2f 0a 58 23 64 65 |e marker| */.X#de|
|00005900| 66 69 6e 65 20 20 46 49 | 52 53 54 5f 46 52 45 45 |fine FI|RST_FREE|
|00005910| 20 20 32 35 38 20 20 20 | 20 20 20 20 20 20 2f 2a | 258 | /*|
|00005920| 20 66 69 72 73 74 20 66 | 72 65 65 20 63 6f 64 65 | first f|ree code|
|00005930| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 20 4d 41 | */.X#de|fine MA|
|00005940| 58 4d 41 58 20 20 20 20 | 20 20 38 31 39 32 20 20 |XMAX | 8192 |
|00005950| 20 20 20 20 20 20 2f 2a | 20 6d 61 78 20 63 6f 64 | /*| max cod|
|00005960| 65 20 2b 20 31 20 2a 2f | 0a 45 4e 44 5f 4f 46 5f |e + 1 */|.END_OF_|
|00005970| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 35 37 34 |FILE.if |test 574|
|00005980| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 6c 7a | -ne `wc| -c <'lz|
|00005990| 63 6f 6e 73 74 2e 68 27 | 60 3b 20 74 68 65 6e 0a |const.h'|`; then.|
|000059a0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|000059b0| 22 27 6c 7a 63 6f 6e 73 | 74 2e 68 27 5c 22 20 75 |"'lzcons|t.h'\" u|
|000059c0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000059d0| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|000059e0| 64 20 6f 66 20 27 6c 7a | 63 6f 6e 73 74 2e 68 27 |d of 'lz|const.h'|
|000059f0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00005a00| 6d 61 63 68 69 6e 65 2e | 63 27 20 2d 61 20 22 24 |machine.|c' -a "$|
|00005a10| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00005a20| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00005a30| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00005a40| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00005a50| 20 5c 22 27 6d 61 63 68 | 69 6e 65 2e 63 27 5c 22 | \"'mach|ine.c'\"|
|00005a60| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00005a70| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 6d | Extract|ing \"'m|
|00005a80| 61 63 68 69 6e 65 2e 63 | 27 5c 22 20 5c 28 31 31 |achine.c|'\" \(11|
|00005a90| 34 32 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |42 chara|cters\).|
|00005aa0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 6d |sed "s/^|X//" >'m|
|00005ab0| 61 63 68 69 6e 65 2e 63 | 27 20 3c 3c 27 45 4e 44 |achine.c|' <<'END|
|00005ac0| 5f 4f 46 5f 46 49 4c 45 | 27 0a 58 23 69 66 6e 64 |_OF_FILE|'.X#ifnd|
|00005ad0| 65 66 20 4c 49 4e 54 0a | 58 2f 2a 20 40 28 23 29 |ef LINT.|X/* @(#)|
|00005ae0| 20 6d 61 63 68 69 6e 65 | 2e 63 20 32 2e 33 20 38 | machine|.c 2.3 8|
|00005af0| 38 2f 30 31 2f 30 32 20 | 30 31 3a 32 31 3a 34 34 |8/01/02 |01:21:44|
|00005b00| 20 2a 2f 0a 58 73 74 61 | 74 69 63 20 63 68 61 72 | */.Xsta|tic char|
|00005b10| 20 73 63 63 73 69 64 5b | 5d 3d 22 40 28 23 29 20 | sccsid[|]="@(#) |
|00005b20| 6d 61 63 68 69 6e 65 2e | 63 20 32 2e 33 20 38 38 |machine.|c 2.3 88|
|00005b30| 2f 30 31 2f 30 32 20 30 | 31 3a 32 31 3a 34 34 22 |/01/02 0|1:21:44"|
|00005b40| 3b 0a 58 23 65 6e 64 69 | 66 20 2f 2a 20 4c 49 4e |;.X#endi|f /* LIN|
|00005b50| 54 20 2a 2f 0a 58 0a 58 | 2f 2a 0a 58 54 68 65 20 |T */.X.X|/*.XThe |
|00005b60| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 69 73 |contents| of this|
|00005b70| 20 66 69 6c 65 20 61 72 | 65 20 68 65 72 65 62 79 | file ar|e hereby|
|00005b80| 20 72 65 6c 65 61 73 65 | 64 20 74 6f 20 74 68 65 | release|d to the|
|00005b90| 20 70 75 62 6c 69 63 20 | 64 6f 6d 61 69 6e 2e 0a | public |domain..|
|00005ba0| 58 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X.X | |
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bc0| 20 20 20 20 20 20 20 2d | 2d 20 52 61 68 75 6c 20 | -|- Rahul |
|00005bd0| 44 68 65 73 69 20 20 31 | 39 38 36 2f 31 32 2f 33 |Dhesi 1|986/12/3|
|00005be0| 31 0a 58 2a 2f 0a 58 0a | 58 23 69 6e 63 6c 75 64 |1.X*/.X.|X#includ|
|00005bf0| 65 20 22 6f 70 74 69 6f | 6e 73 2e 68 22 0a 58 23 |e "optio|ns.h".X#|
|00005c00| 69 6e 63 6c 75 64 65 20 | 22 7a 6f 6f 69 6f 2e 68 |include |"zooio.h|
|00005c10| 22 0a 58 23 69 6e 63 6c | 75 64 65 20 22 7a 6f 6f |".X#incl|ude "zoo|
|00005c20| 2e 68 22 0a 58 23 69 6e | 63 6c 75 64 65 20 22 7a |.h".X#in|clude "z|
|00005c30| 6f 6f 66 6e 73 2e 68 22 | 0a 58 23 69 6e 63 6c 75 |oofns.h"|.X#inclu|
|00005c40| 64 65 20 22 76 61 72 69 | 6f 75 73 2e 68 22 0a 58 |de "vari|ous.h".X|
|00005c50| 0a 58 23 69 66 64 65 66 | 20 55 4e 42 55 46 5f 49 |.X#ifdef| UNBUF_I|
|00005c60| 4f 0a 58 69 6e 74 20 77 | 72 69 74 65 20 50 41 52 |O.Xint w|rite PAR|
|00005c70| 4d 53 20 28 28 69 6e 74 | 2c 20 56 4f 49 44 50 54 |MS ((int|, VOIDPT|
|00005c80| 52 2c 20 75 6e 73 69 67 | 6e 65 64 29 29 3b 0a 58 |R, unsig|ned));.X|
|00005c90| 0a 58 2f 2a 0a 58 62 6c | 6f 63 6b 77 72 69 74 65 |.X/*.Xbl|ockwrite|
|00005ca0| 28 29 20 69 73 20 6c 69 | 6b 65 20 77 72 69 74 65 |() is li|ke write|
|00005cb0| 28 29 20 65 78 63 65 70 | 74 20 74 68 61 74 20 69 |() excep|t that i|
|00005cc0| 74 20 69 67 6e 6f 72 65 | 73 20 61 6c 6c 0a 58 6f |t ignore|s all.Xo|
|00005cd0| 75 74 70 75 74 20 74 6f | 20 66 69 6c 65 20 64 65 |utput to| file de|
|00005ce0| 73 63 72 69 70 74 6f 72 | 20 2d 32 2c 20 77 68 69 |scriptor| -2, whi|
|00005cf0| 63 68 20 73 74 61 6e 64 | 73 20 66 6f 72 20 74 68 |ch stand|s for th|
|00005d00| 65 20 6e 75 6c 6c 20 66 | 69 6c 65 2e 0a 58 2a 2f |e null f|ile..X*/|
|00005d10| 0a 58 69 6e 74 20 62 6c | 6f 63 6b 77 72 69 74 65 |.Xint bl|ockwrite|
|00005d20| 20 28 66 64 2c 20 62 75 | 66 2c 20 63 6f 75 6e 74 | (fd, bu|f, count|
|00005d30| 29 0a 58 69 6e 74 20 66 | 64 3b 0a 58 23 69 66 64 |).Xint f|d;.X#ifd|
|00005d40| 65 66 20 56 4f 49 44 50 | 54 52 0a 58 56 4f 49 44 |ef VOIDP|TR.XVOID|
|00005d50| 50 54 52 20 62 75 66 3b | 0a 58 23 65 6c 73 65 0a |PTR buf;|.X#else.|
|00005d60| 58 63 68 61 72 20 2a 62 | 75 66 3b 0a 58 23 65 6e |Xchar *b|uf;.X#en|
|00005d70| 64 69 66 20 2f 2a 20 56 | 4f 49 44 50 54 52 20 2a |dif /* V|OIDPTR *|
|00005d80| 2f 0a 58 75 6e 73 69 67 | 6e 65 64 20 63 6f 75 6e |/.Xunsig|ned coun|
|00005d90| 74 3b 0a 58 7b 0a 58 09 | 69 66 20 28 66 64 20 3d |t;.X{.X.|if (fd =|
|00005da0| 3d 20 2d 32 29 0a 58 09 | 09 72 65 74 75 72 6e 20 |= -2).X.|.return |
|00005db0| 28 63 6f 75 6e 74 29 3b | 0a 58 09 65 6c 73 65 0a |(count);|.X.else.|
|00005dc0| 58 09 09 72 65 74 75 72 | 6e 20 28 77 72 69 74 65 |X..retur|n (write|
|00005dd0| 20 28 66 64 2c 20 62 75 | 66 2c 20 63 6f 75 6e 74 | (fd, bu|f, count|
|00005de0| 29 29 3b 0a 58 7d 0a 58 | 23 65 6e 64 69 66 0a 58 |));.X}.X|#endif.X|
|00005df0| 0a 58 23 69 66 64 65 66 | 20 53 59 53 5f 56 0a 58 |.X#ifdef| SYS_V.X|
|00005e00| 23 69 6e 63 6c 75 64 65 | 20 22 73 79 73 76 2e 63 |#include| "sysv.c|
|00005e10| 22 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 23 69 66 |".X#endi|f.X.X#if|
|00005e20| 64 65 66 20 47 45 4e 45 | 52 49 43 0a 58 23 69 6e |def GENE|RIC.X#in|
|00005e30| 63 6c 75 64 65 20 22 67 | 65 6e 65 72 69 63 2e 63 |clude "g|eneric.c|
|00005e40| 22 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 23 69 66 |".X#endi|f.X.X#if|
|00005e50| 64 65 66 20 42 53 44 34 | 5f 33 0a 58 23 69 6e 63 |def BSD4|_3.X#inc|
|00005e60| 6c 75 64 65 20 22 62 73 | 64 2e 63 22 0a 58 23 65 |lude "bs|d.c".X#e|
|00005e70| 6e 64 69 66 0a 58 0a 58 | 23 69 66 64 65 66 20 44 |ndif.X.X|#ifdef D|
|00005e80| 4c 43 0a 58 23 69 6e 63 | 6c 75 64 65 20 22 67 65 |LC.X#inc|lude "ge|
|00005e90| 6e 65 72 69 63 2e 63 22 | 0a 58 23 65 6e 64 69 66 |neric.c"|.X#endif|
|00005ea0| 0a 58 0a 58 23 69 66 64 | 65 66 20 56 4d 53 0a 58 |.X.X#ifd|ef VMS.X|
|00005eb0| 23 69 6e 63 6c 75 64 65 | 20 22 76 6d 73 2e 63 22 |#include| "vms.c"|
|00005ec0| 0a 58 23 65 6e 64 69 66 | 0a 58 0a 58 23 69 66 64 |.X#endif|.X.X#ifd|
|00005ed0| 65 66 20 4d 53 43 0a 58 | 23 69 66 64 65 66 20 50 |ef MSC.X|#ifdef P|
|00005ee0| 4f 52 54 41 42 4c 45 0a | 58 23 69 6e 63 6c 75 64 |ORTABLE.|X#includ|
|00005ef0| 65 20 22 67 65 6e 65 72 | 69 63 2e 63 22 0a 58 23 |e "gener|ic.c".X#|
|00005f00| 65 6c 73 65 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |else.X#i|nclude "|
|00005f10| 6d 73 63 2e 63 22 0a 58 | 23 65 6e 64 69 66 0a 58 |msc.c".X|#endif.X|
|00005f20| 23 65 6e 64 69 66 0a 58 | 0a 58 23 69 66 64 65 66 |#endif.X|.X#ifdef|
|00005f30| 20 54 55 52 42 4f 43 0a | 58 23 69 66 64 65 66 20 | TURBOC.|X#ifdef |
|00005f40| 50 4f 52 54 41 42 4c 45 | 0a 58 23 69 6e 63 6c 75 |PORTABLE|.X#inclu|
|00005f50| 64 65 20 22 67 65 6e 65 | 72 69 63 2e 63 22 0a 58 |de "gene|ric.c".X|
|00005f60| 23 65 6c 73 65 0a 58 23 | 69 6e 63 6c 75 64 65 20 |#else.X#|include |
|00005f70| 22 74 75 72 62 6f 63 2e | 63 22 0a 58 23 65 6e 64 |"turboc.|c".X#end|
|00005f80| 69 66 0a 58 23 65 6e 64 | 69 66 0a 45 4e 44 5f 4f |if.X#end|if.END_O|
|00005f90| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 31 |F_FILE.i|f test 1|
|00005fa0| 31 34 32 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |142 -ne |`wc -c <|
|00005fb0| 27 6d 61 63 68 69 6e 65 | 2e 63 27 60 3b 20 74 68 |'machine|.c'`; th|
|00005fc0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00005fd0| 3a 20 5c 22 27 6d 61 63 | 68 69 6e 65 2e 63 27 5c |: \"'mac|hine.c'\|
|00005fe0| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00005ff0| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 66 69 0a 23 |wrong si|ze!.fi.#|
|00006000| 20 65 6e 64 20 6f 66 20 | 27 6d 61 63 68 69 6e 65 | end of |'machine|
|00006010| 2e 63 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |.c'.fi.i|f test -|
|00006020| 66 20 27 6d 61 63 68 69 | 6e 65 2e 68 27 20 2d 61 |f 'machi|ne.h' -a|
|00006030| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00006040| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00006050| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00006060| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00006070| 69 6c 65 20 5c 22 27 6d | 61 63 68 69 6e 65 2e 68 |ile \"'m|achine.h|
|00006080| 27 5c 22 0a 65 6c 73 65 | 0a 65 63 68 6f 20 73 68 |'\".else|.echo sh|
|00006090| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000060a0| 22 27 6d 61 63 68 69 6e | 65 2e 68 27 5c 22 20 5c |"'machin|e.h'\" \|
|000060b0| 28 31 30 36 39 20 63 68 | 61 72 61 63 74 65 72 73 |(1069 ch|aracters|
|000060c0| 5c 29 0a 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |\).sed "|s/^X//" |
|000060d0| 3e 27 6d 61 63 68 69 6e | 65 2e 68 27 20 3c 3c 27 |>'machin|e.h' <<'|
|000060e0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 2f 2a |END_OF_F|ILE'.X/*|
|000060f0| 20 40 28 23 29 20 6d 61 | 63 68 69 6e 65 2e 68 20 | @(#) ma|chine.h |
|00006100| 32 2e 31 20 38 37 2f 31 | 32 2f 32 35 20 31 32 3a |2.1 87/1|2/25 12:|
|00006110| 32 32 3a 34 33 20 2a 2f | 0a 58 0a 58 2f 2a 0a 58 |22:43 */|.X.X/*.X|
|00006120| 54 68 65 20 63 6f 6e 74 | 65 6e 74 73 20 6f 66 20 |The cont|ents of |
|00006130| 74 68 69 73 20 66 69 6c | 65 20 61 72 65 20 68 65 |this fil|e are he|
|00006140| 72 65 62 79 20 72 65 6c | 65 61 73 65 64 20 74 6f |reby rel|eased to|
|00006150| 20 74 68 65 20 70 75 62 | 6c 69 63 20 64 6f 6d 61 | the pub|lic doma|
|00006160| 69 6e 2e 0a 58 0a 58 20 | 20 20 20 20 20 20 20 20 |in..X.X | |
|00006170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006180| 20 20 2d 2d 20 52 61 68 | 75 6c 20 44 68 65 73 69 | -- Rah|ul Dhesi|
|00006190| 20 31 39 38 36 2f 31 31 | 2f 31 34 0a 58 2a 2f 0a | 1986/11|/14.X*/.|
|000061a0| 58 0a 58 2f 2a 20 0a 58 | 54 68 69 73 20 66 69 6c |X.X/* .X|This fil|
|000061b0| 65 20 68 6f 6c 64 73 20 | 64 65 66 69 6e 69 74 69 |e holds |definiti|
|000061c0| 6f 6e 73 20 74 68 61 74 | 20 75 73 75 61 6c 6c 79 |ons that| usually|
|000061d0| 20 64 6f 20 6e 6f 74 20 | 63 68 61 6e 67 65 0a 58 | do not |change.X|
|000061e0| 62 65 74 77 65 65 6e 20 | 64 69 66 66 65 72 65 6e |between |differen|
|000061f0| 74 20 73 79 73 74 65 6d | 73 2c 20 65 78 63 65 70 |t system|s, excep|
|00006200| 74 20 77 68 65 6e 20 75 | 73 69 6e 67 20 52 45 41 |t when u|sing REA|
|00006210| 4c 4c 59 20 73 74 72 61 | 6e 67 65 20 73 79 73 74 |LLY stra|nge syst|
|00006220| 65 6d 73 2e 20 20 42 75 | 74 0a 58 6f 70 74 69 6f |ems. Bu|t.Xoptio|
|00006230| 6e 73 2e 68 20 61 6e 64 | 20 6d 61 63 68 69 6e 65 |ns.h and| machine|
|00006240| 2e 63 20 68 6f 6c 64 20 | 73 74 75 66 66 20 74 68 |.c hold |stuff th|
|00006250| 61 74 20 64 6f 65 73 20 | 63 68 61 6e 67 65 20 71 |at does |change q|
|00006260| 75 69 74 65 20 61 20 62 | 69 74 2e 0a 58 2a 2f 0a |uite a b|it..X*/.|
|00006270| 58 0a 58 2f 2a 20 0a 58 | 4d 41 58 4c 4f 4e 47 20 |X.X/* .X|MAXLONG |
|00006280| 69 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 73 |is the m|aximum s|
|00006290| 69 7a 65 20 6f 66 20 61 | 20 6c 6f 6e 67 20 69 6e |ize of a| long in|
|000062a0| 74 65 67 65 72 2e 20 20 | 52 69 67 68 74 20 6e 6f |teger. |Right no|
|000062b0| 77 20 69 74 20 64 6f 65 | 73 6e 27 74 20 68 61 76 |w it doe|sn't hav|
|000062c0| 65 20 74 6f 0a 58 62 65 | 20 61 63 63 75 72 61 74 |e to.Xbe| accurat|
|000062d0| 65 20 73 69 6e 63 65 20 | 69 74 27 73 20 6f 6e 6c |e since |it's onl|
|000062e0| 79 20 75 73 65 64 20 77 | 69 74 68 69 6e 20 7a 6f |y used w|ithin zo|
|000062f0| 6f 65 78 74 28 29 20 74 | 6f 20 66 61 6b 65 20 69 |oext() t|o fake i|
|00006300| 6e 66 69 6e 69 74 65 20 | 64 69 73 6b 20 73 70 61 |nfinite |disk spa|
|00006310| 63 65 2e 0a 58 2a 2f 0a | 58 23 64 65 66 69 6e 65 |ce..X*/.|X#define|
|00006320| 20 20 4d 41 58 4c 4f 4e | 47 20 20 28 28 75 6e 73 | MAXLON|G ((uns|
|00006330| 69 67 6e 65 64 20 6c 6f | 6e 67 29 20 28 7e 30 4c |igned lo|ng) (~0L|
|00006340| 29 29 0a 58 0a 58 2f 2a | 20 0a 58 54 79 70 65 20 |)).X.X/*| .XType |
|00006350| 42 59 54 45 20 6d 75 73 | 74 20 68 6f 6c 64 20 65 |BYTE mus|t hold e|
|00006360| 78 61 63 74 6c 79 20 38 | 20 62 69 74 73 2e 20 20 |xactly 8| bits. |
|00006370| 54 68 65 20 63 6f 64 65 | 20 77 69 6c 6c 20 63 6f |The code| will co|
|00006380| 6c 6c 61 70 73 65 20 62 | 61 64 6c 79 20 69 66 20 |llapse b|adly if |
|00006390| 42 59 54 45 20 69 73 0a | 58 61 6e 79 74 68 69 6e |BYTE is.|Xanythin|
|000063a0| 67 20 6f 74 68 65 72 20 | 74 68 61 6e 20 65 78 61 |g other |than exa|
|000063b0| 63 74 6c 79 20 38 20 62 | 69 74 73 2e 20 54 6f 20 |ctly 8 b|its. To |
|000063c0| 61 76 6f 69 64 20 73 69 | 67 6e 20 65 78 74 65 6e |avoid si|gn exten|
|000063d0| 73 69 6f 6e 20 77 68 65 | 6e 20 63 61 73 74 69 6e |sion whe|n castin|
|000063e0| 67 0a 58 42 59 54 45 20 | 74 6f 20 61 20 6c 6f 6e |g.XBYTE |to a lon|
|000063f0| 67 65 72 20 73 69 7a 65 | 2c 20 69 74 20 6d 75 73 |ger size|, it mus|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.