home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume4 / fcpio < prev    next >
SHell self-extracting ARchive  |  1989-02-03  |  8.4 KB

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).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source text default
98% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK 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/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 78 61 | 6e 74 68 21 6d 63 6e 63 |Path: xa|nth!mcnc|
|00000010| 21 67 61 74 65 63 68 21 | 75 6b 6d 61 21 63 77 6a |!gatech!|ukma!cwj|
|00000020| 63 63 21 68 61 6c 21 6e | 63 6f 61 73 74 21 61 6c |cc!hal!n|coast!al|
|00000030| 6c 62 65 72 79 0a 46 72 | 6f 6d 3a 20 6a 6f 65 40 |lbery.Fr|om: joe@|
|00000040| 64 61 79 74 6f 6e 2e 44 | 48 44 53 43 2e 4d 4e 2e |dayton.D|HDSC.MN.|
|00000050| 4f 52 47 20 28 4a 6f 73 | 65 70 68 20 50 2e 20 4c |ORG (Jos|eph P. L|
|00000060| 61 72 73 6f 6e 29 0a 4e | 65 77 73 67 72 6f 75 70 |arson).N|ewsgroup|
|00000070| 73 3a 20 63 6f 6d 70 2e | 73 6f 75 72 63 65 73 2e |s: comp.|sources.|
|00000080| 6d 69 73 63 0a 53 75 62 | 6a 65 63 74 3a 20 76 30 |misc.Sub|ject: v0|
|00000090| 34 69 31 31 38 3a 20 66 | 63 70 69 6f 20 2d 20 61 |4i118: f|cpio - a|
|000000a0| 20 66 61 73 74 20 63 70 | 69 6f 20 70 61 72 74 69 | fast cp|io parti|
|000000b0| 61 6c 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 0a 4d |al repla|cement.M|
|000000c0| 65 73 73 61 67 65 2d 49 | 44 3a 20 3c 38 38 31 30 |essage-I|D: <8810|
|000000d0| 30 35 30 39 35 34 2e 41 | 41 32 37 32 36 39 40 64 |050954.A|A27269@d|
|000000e0| 61 79 74 6f 6e 2e 44 48 | 44 53 43 2e 4d 4e 2e 4f |ayton.DH|DSC.MN.O|
|000000f0| 52 47 3e 0a 44 61 74 65 | 3a 20 37 20 4f 63 74 20 |RG>.Date|: 7 Oct |
|00000100| 38 38 20 30 30 3a 31 36 | 3a 35 34 20 47 4d 54 0a |88 00:16|:54 GMT.|
|00000110| 53 65 6e 64 65 72 3a 20 | 61 6c 6c 62 65 72 79 40 |Sender: |allbery@|
|00000120| 6e 63 6f 61 73 74 2e 55 | 55 43 50 0a 52 65 70 6c |ncoast.U|UCP.Repl|
|00000130| 79 2d 54 6f 3a 20 6a 6f | 65 40 64 61 79 74 6f 6e |y-To: jo|e@dayton|
|00000140| 2e 44 48 44 53 43 2e 4d | 4e 2e 4f 52 47 20 28 4a |.DHDSC.M|N.ORG (J|
|00000150| 6f 73 65 70 68 20 50 2e | 20 4c 61 72 73 6f 6e 29 |oseph P.| Larson)|
|00000160| 0a 4c 69 6e 65 73 3a 20 | 33 37 39 0a 41 70 70 72 |.Lines: |379.Appr|
|00000170| 6f 76 65 64 3a 20 61 6c | 6c 62 65 72 79 40 6e 63 |oved: al|lbery@nc|
|00000180| 6f 61 73 74 2e 55 55 43 | 50 0a 0a 50 6f 73 74 69 |oast.UUC|P..Posti|
|00000190| 6e 67 2d 6e 75 6d 62 65 | 72 3a 20 56 6f 6c 75 6d |ng-numbe|r: Volum|
|000001a0| 65 20 34 2c 20 49 73 73 | 75 65 20 31 31 38 0a 53 |e 4, Iss|ue 118.S|
|000001b0| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 22 4a 6f |ubmitted|-by: "Jo|
|000001c0| 73 65 70 68 20 50 2e 20 | 4c 61 72 73 6f 6e 22 20 |seph P. |Larson" |
|000001d0| 3c 6a 6f 65 40 64 61 79 | 74 6f 6e 2e 44 48 44 53 |<joe@day|ton.DHDS|
|000001e0| 43 2e 4d 4e 2e 4f 52 47 | 3e 0a 41 72 63 68 69 76 |C.MN.ORG|>.Archiv|
|000001f0| 65 2d 6e 61 6d 65 3a 20 | 66 63 70 69 6f 0a 0a 49 |e-name: |fcpio..I|
|00000200| 6e 20 61 6e 79 20 63 61 | 73 65 2c 20 49 20 77 72 |n any ca|se, I wr|
|00000210| 6f 74 65 20 75 70 20 74 | 68 65 20 65 6e 63 6c 6f |ote up t|he enclo|
|00000220| 73 65 64 20 70 72 6f 67 | 72 61 6d 20 6f 6e 65 20 |sed prog|ram one |
|00000230| 64 61 79 20 77 68 65 6e | 20 49 20 67 6f 74 20 61 |day when| I got a|
|00000240| 20 6c 69 74 74 6c 65 0a | 74 6f 6f 20 61 6e 6e 6f | little.|too anno|
|00000250| 79 65 64 20 77 69 74 68 | 20 63 70 69 6f 20 77 68 |yed with| cpio wh|
|00000260| 69 6c 65 20 64 65 61 6c | 69 6e 67 20 77 69 74 68 |ile deal|ing with|
|00000270| 20 73 6f 6d 65 20 72 61 | 74 68 65 72 20 6c 61 72 | some ra|ther lar|
|00000280| 67 65 20 63 70 69 6f 20 | 61 72 63 68 69 76 65 73 |ge cpio |archives|
|00000290| 2e 0a 49 74 20 64 6f 65 | 73 6e 27 74 20 6e 65 65 |..It doe|sn't nee|
|000002a0| 64 20 61 20 6d 61 6b 65 | 66 69 6c 65 20 28 49 20 |d a make|file (I |
|000002b0| 6a 75 73 74 20 73 61 79 | 20 6d 61 6b 65 20 66 63 |just say| make fc|
|000002c0| 70 69 6f 29 2e 20 20 54 | 68 65 20 74 77 6f 20 69 |pio). T|he two i|
|000002d0| 6e 63 6c 75 64 65 20 66 | 69 6c 65 73 0a 61 72 65 |nclude f|iles.are|
|000002e0| 20 66 72 6f 6d 20 6f 75 | 72 20 3c 64 61 79 74 6f | from ou|r <dayto|
|000002f0| 6e 2f 3e 20 64 69 72 65 | 63 74 6f 72 79 2c 20 73 |n/> dire|ctory, s|
|00000300| 6f 20 70 65 6f 70 6c 65 | 20 77 69 6c 6c 20 6e 65 |o people| will ne|
|00000310| 65 64 20 74 6f 20 70 61 | 74 63 68 20 74 68 65 20 |ed to pa|tch the |
|00000320| 2e 63 20 61 0a 6c 69 74 | 74 6c 65 20 74 6f 20 73 |.c a.lit|tle to s|
|00000330| 70 65 63 69 66 79 20 77 | 68 65 72 65 20 74 68 65 |pecify w|here the|
|00000340| 73 65 20 63 61 6d 65 20 | 66 72 6f 6d 2e 20 20 28 |se came |from. (|
|00000350| 54 68 65 79 20 41 52 45 | 4e 27 54 20 72 65 70 6c |They ARE|N'T repl|
|00000360| 61 63 65 6d 65 6e 74 73 | 20 66 6f 72 0a 74 68 65 |acements| for.the|
|00000370| 20 72 65 67 75 6c 61 72 | 20 69 6e 63 6c 75 64 65 | regular| include|
|00000380| 73 20 6f 66 20 74 68 65 | 20 73 61 6d 65 20 6e 61 |s of the| same na|
|00000390| 6d 65 21 29 0a 0a 48 6f | 70 65 20 73 6f 6d 65 6f |me!)..Ho|pe someo|
|000003a0| 6e 65 20 66 69 6e 64 73 | 20 74 68 69 73 20 75 73 |ne finds| this us|
|000003b0| 65 66 75 6c 2e 20 20 2d | 4a 6f 65 0a 0a 0a 2d 2d |eful. -|Joe...--|
|000003c0| 2d 2d 43 75 74 20 48 65 | 72 65 2d 2d 2d 2d 0a 0a |--Cut He|re----..|
|000003d0| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|000003e0| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|000003f0| 68 69 76 65 2c 20 6d 65 | 61 6e 69 6e 67 3a 0a 23 |hive, me|aning:.#|
|00000400| 20 31 2e 20 52 65 6d 6f | 76 65 20 65 76 65 72 79 | 1. Remo|ve every|
|00000410| 74 68 69 6e 67 20 61 62 | 6f 76 65 20 74 68 65 20 |thing ab|ove the |
|00000420| 23 21 20 2f 62 69 6e 2f | 73 68 20 6c 69 6e 65 2e |#! /bin/|sh line.|
|00000430| 0a 23 20 32 2e 20 53 61 | 76 65 20 74 68 65 20 72 |.# 2. Sa|ve the r|
|00000440| 65 73 75 6c 74 69 6e 67 | 20 74 65 78 74 20 69 6e |esulting| text in|
|00000450| 20 61 20 66 69 6c 65 2e | 0a 23 20 33 2e 20 45 78 | a file.|.# 3. Ex|
|00000460| 65 63 75 74 65 20 74 68 | 65 20 66 69 6c 65 20 77 |ecute th|e file w|
|00000470| 69 74 68 20 2f 62 69 6e | 2f 73 68 20 28 6e 6f 74 |ith /bin|/sh (not|
|00000480| 20 63 73 68 29 20 74 6f | 20 63 72 65 61 74 65 3a | csh) to| create:|
|00000490| 0a 23 09 66 63 70 69 6f | 2e 64 6f 63 0a 23 09 66 |.#.fcpio|.doc.#.f|
|000004a0| 63 70 69 6f 2e 63 0a 23 | 09 6d 61 74 68 2e 68 0a |cpio.c.#|.math.h.|
|000004b0| 23 09 73 74 64 74 79 70 | 2e 68 0a 23 20 54 68 69 |#.stdtyp|.h.# Thi|
|000004c0| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|000004d0| 64 3a 20 57 65 64 20 4f | 63 74 20 20 35 20 30 39 |d: Wed O|ct 5 09|
|000004e0| 3a 35 34 3a 30 31 20 31 | 39 38 38 0a 65 78 70 6f |:54:01 1|988.expo|
|000004f0| 72 74 20 50 41 54 48 3b | 20 50 41 54 48 3d 2f 62 |rt PATH;| PATH=/b|
|00000500| 69 6e 3a 2f 75 73 72 2f | 62 69 6e 3a 24 50 41 54 |in:/usr/|bin:$PAT|
|00000510| 48 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 66 63 |H.if tes|t -f 'fc|
|00000520| 70 69 6f 2e 64 6f 63 27 | 0a 74 68 65 6e 0a 09 65 |pio.doc'|.then..e|
|00000530| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|00000540| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00000550| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 66 63 |xisting |file 'fc|
|00000560| 70 69 6f 2e 64 6f 63 27 | 22 0a 65 6c 73 65 0a 63 |pio.doc'|".else.c|
|00000570| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00000580| 3e 20 27 66 63 70 69 6f | 2e 64 6f 63 27 0a 50 52 |> 'fcpio|.doc'.PR|
|00000590| 4f 47 52 41 4d 3a 0a 0a | 09 66 63 70 69 6f 20 2d |OGRAM:..|.fcpio -|
|000005a0| 2d 20 61 20 66 61 73 74 | 20 63 70 69 6f 20 66 6f |- a fast| cpio fo|
|000005b0| 72 20 73 65 65 6b 61 62 | 6c 65 20 64 65 76 69 63 |r seekab|le devic|
|000005c0| 65 73 0a 0a 0a 53 59 4e | 4f 50 53 49 53 3a 0a 0a |es...SYN|OPSIS:..|
|000005d0| 09 66 63 70 69 6f 20 5b | 2d 6f 70 74 69 6f 6e 73 |.fcpio [|-options|
|000005e0| 5d 20 61 72 63 68 69 76 | 65 2d 6e 61 6d 65 20 5b |] archiv|e-name [|
|000005f0| 65 78 74 72 61 63 74 2d | 70 61 74 74 65 72 6e 31 |extract-|pattern1|
|00000600| 20 5b 20 2e 2e 2e 20 65 | 78 74 72 61 63 74 2d 70 | [ ... e|xtract-p|
|00000610| 61 74 74 65 72 6e 6e 5d | 5d 0a 0a 09 4f 70 74 69 |atternn]|]...Opti|
|00000620| 6f 6e 73 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |ons impl|emented |
|00000630| 74 6f 20 64 61 74 65 3a | 0a 0a 09 09 78 20 2d 20 |to date:|....x - |
|00000640| 65 78 74 72 61 63 74 20 | 66 69 6c 65 73 0a 09 09 |extract |files...|
|00000650| 74 20 2d 20 74 61 62 6c | 65 20 6f 66 20 63 6f 6e |t - tabl|e of con|
|00000660| 74 65 6e 74 73 0a 0a 0a | 44 45 53 43 52 49 50 54 |tents...|DESCRIPT|
|00000670| 49 4f 4e 3a 0a 0a 09 66 | 63 70 69 6f 20 69 73 20 |ION:...f|cpio is |
|00000680| 61 20 70 61 72 74 69 61 | 6c 20 63 70 69 6f 20 28 |a partia|l cpio (|
|00000690| 74 6d 20 4d 61 20 42 65 | 6c 6c 29 20 72 65 70 6c |tm Ma Be|ll) repl|
|000006a0| 61 63 65 6d 65 6e 74 2e | 20 20 49 74 20 69 73 20 |acement.| It is |
|000006b0| 76 65 72 79 20 75 73 65 | 66 75 6c 0a 09 77 68 65 |very use|ful..whe|
|000006c0| 6e 20 70 65 72 66 6f 72 | 6d 69 6e 67 20 65 78 74 |n perfor|ming ext|
|000006d0| 72 61 63 74 73 20 6f 72 | 20 72 65 74 72 69 65 76 |racts or| retriev|
|000006e0| 69 6e 67 20 61 20 74 61 | 62 6c 65 20 6f 66 20 63 |ing a ta|ble of c|
|000006f0| 6f 6e 74 65 6e 74 73 20 | 66 72 6f 6d 20 61 0a 09 |ontents |from a..|
|00000700| 64 69 73 6b 2d 72 65 73 | 69 64 65 6e 74 20 63 70 |disk-res|ident cp|
|00000710| 69 6f 20 61 72 63 68 69 | 76 65 2e 20 20 54 68 69 |io archi|ve. Thi|
|00000720| 73 20 69 73 20 64 75 65 | 20 74 6f 20 75 73 65 20 |s is due| to use |
|00000730| 6f 66 20 73 65 65 6b 73 | 20 74 6f 20 73 6b 69 70 |of seeks| to skip|
|00000740| 20 6f 76 65 72 0a 09 75 | 6e 77 61 6e 74 65 64 20 | over..u|nwanted |
|00000750| 64 61 74 61 2e 20 20 28 | 4f 75 72 20 63 6f 70 79 |data. (|Our copy|
|00000760| 20 6f 66 20 63 70 69 6f | 20 72 65 61 64 73 20 74 | of cpio| reads t|
|00000770| 68 72 6f 75 67 68 20 65 | 76 65 72 79 74 68 69 6e |hrough e|verythin|
|00000780| 67 20 61 73 20 69 74 20 | 6d 75 73 74 0a 09 61 73 |g as it |must..as|
|00000790| 73 75 6d 65 20 69 74 20 | 63 61 6e 27 74 20 73 65 |sume it |can't se|
|000007a0| 65 6b 2e 29 20 20 54 68 | 75 73 2c 20 61 20 2d 74 |ek.) Th|us, a -t|
|000007b0| 20 6f 6e 20 61 20 33 2e | 33 20 4d 65 67 20 66 69 | on a 3.|3 Meg fi|
|000007c0| 6c 65 20 72 75 6e 73 20 | 61 74 20 6f 75 74 70 75 |le runs |at outpu|
|000007d0| 74 0a 09 28 39 36 30 30 | 20 62 61 75 64 29 20 73 |t..(9600| baud) s|
|000007e0| 70 65 65 64 73 20 77 69 | 74 68 20 66 63 70 69 6f |peeds wi|th fcpio|
|000007f0| 20 62 75 74 20 68 61 73 | 20 6c 6f 6e 67 20 70 61 | but has| long pa|
|00000800| 75 73 65 73 20 77 69 74 | 68 20 63 70 69 6f 20 61 |uses wit|h cpio a|
|00000810| 74 20 61 6c 6c 20 74 68 | 65 0a 09 6c 6f 6e 67 20 |t all th|e..long |
|00000820| 28 3e 20 32 30 4b 29 20 | 66 69 6c 65 73 20 77 69 |(> 20K) |files wi|
|00000830| 74 68 69 6e 20 74 68 65 | 20 61 72 63 68 69 76 65 |thin the| archive|
|00000840| 2e 20 20 41 6e 20 65 78 | 74 72 61 63 74 20 6f 66 |. An ex|tract of|
|00000850| 20 61 20 66 65 77 20 69 | 74 65 6d 73 20 69 73 0a | a few i|tems is.|
|00000860| 09 61 6c 73 6f 20 76 65 | 72 79 20 66 61 73 74 2e |.also ve|ry fast.|
|00000870| 0a 0a 09 54 68 65 20 65 | 78 74 72 61 63 74 20 70 |...The e|xtract p|
|00000880| 61 74 74 65 72 6e 73 20 | 64 6f 20 6e 6f 74 20 73 |atterns |do not s|
|00000890| 75 70 70 6f 72 74 20 77 | 69 6c 64 20 63 61 72 64 |upport w|ild card|
|000008a0| 69 6e 67 20 6f 72 20 61 | 6e 79 74 68 69 6e 67 20 |ing or a|nything |
|000008b0| 66 61 6e 63 79 20 2d 2d | 0a 09 66 63 70 69 6f 20 |fancy --|..fcpio |
|000008c0| 77 69 6c 6c 20 65 78 74 | 72 61 63 74 20 61 6e 79 |will ext|ract any|
|000008d0| 20 66 69 6c 65 73 20 74 | 68 61 74 20 62 65 67 69 | files t|hat begi|
|000008e0| 6e 20 77 69 74 68 20 6f | 6e 65 20 6f 66 20 74 68 |n with o|ne of th|
|000008f0| 65 20 65 78 74 72 61 63 | 74 20 70 61 74 74 65 72 |e extrac|t patter|
|00000900| 6e 73 0a 09 28 6f 72 20 | 61 6c 6c 20 66 69 6c 65 |ns..(or |all file|
|00000910| 73 20 69 66 20 6e 6f 20 | 65 78 74 72 61 63 74 20 |s if no |extract |
|00000920| 70 61 74 74 65 72 6e 20 | 69 73 20 73 70 65 63 69 |pattern |is speci|
|00000930| 66 69 65 64 29 2e 0a 0a | 0a 41 55 54 48 4f 52 3a |fied)...|.AUTHOR:|
|00000940| 0a 0a 09 4a 6f 65 20 4c | 61 72 73 6f 6e 0a 09 44 |...Joe L|arson..D|
|00000950| 61 79 74 6f 6e 2d 48 75 | 64 73 6f 6e 20 44 65 70 |ayton-Hu|dson Dep|
|00000960| 61 72 74 6d 65 6e 74 20 | 53 74 6f 72 65 20 43 6f |artment |Store Co|
|00000970| 6d 70 61 6e 79 0a 09 37 | 30 30 20 4f 6e 20 74 68 |mpany..7|00 On th|
|00000980| 65 20 4d 61 6c 6c 0a 09 | 4d 69 6e 6e 65 61 70 6f |e Mall..|Minneapo|
|00000990| 6c 69 73 2c 20 4d 69 6e | 6e 65 73 6f 74 61 20 20 |lis, Min|nesota |
|000009a0| 35 35 34 30 32 0a 0a 09 | 36 31 32 2d 33 37 35 2d |55402...|612-375-|
|000009b0| 33 35 33 37 0a 0a 0a 42 | 55 47 53 3a 0a 0a 09 31 |3537...B|UGS:...1|
|000009c0| 2e 20 44 6f 65 73 20 6e | 6f 74 20 73 75 70 70 6f |. Does n|ot suppo|
|000009d0| 72 74 20 6e 6f 6e 2d 73 | 65 65 6b 61 62 6c 65 20 |rt non-s|eekable |
|000009e0| 64 65 76 69 63 65 73 20 | 28 6c 69 6b 65 20 70 69 |devices |(like pi|
|000009f0| 70 65 73 3f 29 0a 09 32 | 2e 20 44 6f 65 73 20 6e |pes?)..2|. Does n|
|00000a00| 6f 74 20 6d 61 69 6e 74 | 61 69 6e 20 74 68 65 20 |ot maint|ain the |
|00000a10| 66 69 6c 65 73 20 6f 72 | 69 67 69 6e 61 6c 20 6d |files or|iginal m|
|00000a20| 61 67 69 63 20 6e 75 6d | 62 65 72 2c 20 55 49 44 |agic num|ber, UID|
|00000a30| 20 6f 72 20 47 49 44 2e | 0a 09 33 2e 20 4d 61 79 | or GID.|..3. May|
|00000a40| 20 6e 6f 74 20 68 61 6e | 64 6c 65 20 67 61 72 62 | not han|dle garb|
|00000a50| 61 67 65 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f |age at t|he end o|
|00000a60| 66 20 74 68 65 20 61 72 | 63 68 69 76 65 20 74 65 |f the ar|chive te|
|00000a70| 72 72 69 62 6c 79 20 77 | 65 6c 6c 2e 0a 09 09 28 |rribly w|ell....(|
|00000a80| 4f 75 72 20 63 70 69 6f | 20 70 75 74 73 20 61 6e |Our cpio| puts an|
|00000a90| 20 69 74 65 6d 20 63 61 | 6c 6c 65 64 20 22 54 52 | item ca|lled "TR|
|00000aa0| 41 49 4c 45 52 21 21 21 | 22 20 61 74 20 74 68 65 |AILER!!!|" at the|
|00000ab0| 20 65 6e 64 2c 20 73 6f | 20 66 63 70 69 6f 0a 09 | end, so| fcpio..|
|00000ac0| 09 65 71 75 61 74 65 73 | 20 74 68 61 74 20 77 69 |.equates| that wi|
|00000ad0| 74 68 20 45 4f 46 20 61 | 73 20 77 65 6c 6c 20 61 |th EOF a|s well a|
|00000ae0| 73 20 65 6e 64 69 6e 67 | 20 6f 6e 20 45 4f 46 2e |s ending| on EOF.|
|00000af0| 20 20 4f 74 68 65 72 20 | 63 70 69 6f 73 0a 09 09 | Other |cpios...|
|00000b00| 6d 61 79 20 62 65 68 61 | 76 65 20 64 69 66 66 65 |may beha|ve diffe|
|00000b10| 72 65 6e 74 6c 79 2e 2e | 2e 2e 29 0a 53 48 41 52 |rently..|..).SHAR|
|00000b20| 5f 45 4f 46 0a 66 69 0a | 69 66 20 74 65 73 74 20 |_EOF.fi.|if test |
|00000b30| 2d 66 20 27 66 63 70 69 | 6f 2e 63 27 0a 74 68 65 |-f 'fcpi|o.c'.the|
|00000b40| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|00000b50| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00000b60| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00000b70| 20 27 66 63 70 69 6f 2e | 63 27 22 0a 65 6c 73 65 | 'fcpio.|c'".else|
|00000b80| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00000b90| 46 20 3e 20 27 66 63 70 | 69 6f 2e 63 27 0a 23 69 |F > 'fcp|io.c'.#i|
|00000ba0| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00000bb0| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 74 |.#includ|e <sys/t|
|00000bc0| 79 70 65 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ypes.h>.|#include|
|00000bd0| 20 3c 66 63 6e 74 6c 2e | 68 3e 0a 23 69 6e 63 6c | <fcntl.|h>.#incl|
|00000be0| 75 64 65 20 3c 65 72 72 | 6e 6f 2e 68 3e 0a 23 69 |ude <err|no.h>.#i|
|00000bf0| 6e 63 6c 75 64 65 20 3c | 64 61 79 74 6f 6e 2f 6d |nclude <|dayton/m|
|00000c00| 61 74 68 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |ath.h>.#|include |
|00000c10| 3c 64 61 79 74 6f 6e 2f | 73 74 64 74 79 70 2e 68 |<dayton/|stdtyp.h|
|00000c20| 3e 0a 0a 2f 2a 0a 20 2a | 20 66 63 70 69 6f 20 2d |>../*. *| fcpio -|
|00000c30| 20 66 61 73 74 20 63 70 | 69 6f 20 66 6f 72 20 73 | fast cp|io for s|
|00000c40| 65 65 6b 2d 61 62 6c 65 | 20 64 65 76 69 63 65 73 |eek-able| devices|
|00000c50| 2e 0a 20 2a 0a 20 2a 20 | 55 73 61 67 65 3a 0a 20 |.. *. * |Usage:. |
|00000c60| 2a 0a 20 2a 09 09 66 63 | 70 69 6f 20 5b 2d 6f 70 |*. *..fc|pio [-op|
|00000c70| 74 69 6f 6e 73 5d 20 63 | 70 69 6f 2d 61 72 63 68 |tions] c|pio-arch|
|00000c80| 69 76 65 20 5b 65 78 74 | 72 61 63 74 2d 70 61 74 |ive [ext|ract-pat|
|00000c90| 74 65 72 6e 2d 6c 69 73 | 74 5d 0a 20 2a 0a 20 2a |tern-lis|t]. *. *|
|00000ca0| 20 49 6d 70 6c 65 6d 65 | 6e 74 65 64 20 6f 70 74 | Impleme|nted opt|
|00000cb0| 69 6f 6e 73 20 61 72 65 | 3a 0a 20 2a 0a 20 2a 09 |ions are|:. *. *.|
|00000cc0| 09 78 20 2d 20 65 78 74 | 72 61 63 74 20 74 68 65 |.x - ext|ract the|
|00000cd0| 20 6e 61 6d 65 64 20 65 | 78 74 72 61 63 74 2d 70 | named e|xtract-p|
|00000ce0| 61 74 74 65 72 6e 20 66 | 69 6c 65 73 2e 0a 20 2a |attern f|iles.. *|
|00000cf0| 09 09 74 20 2d 20 70 72 | 69 6e 74 20 61 20 74 61 |..t - pr|int a ta|
|00000d00| 62 6c 65 20 6f 66 20 63 | 6f 6e 74 65 6e 74 73 2e |ble of c|ontents.|
|00000d10| 0a 20 2a 0a 20 2a 20 49 | 6e 20 65 78 74 72 61 63 |. *. * I|n extrac|
|00000d20| 74 20 6d 6f 64 65 2c 20 | 74 68 65 20 65 78 74 72 |t mode, |the extr|
|00000d30| 61 63 74 65 64 20 66 69 | 6c 65 73 20 61 72 65 20 |acted fi|les are |
|00000d40| 74 68 65 20 6f 6e 65 73 | 20 77 68 6f 73 65 20 6e |the ones| whose n|
|00000d50| 61 6d 65 73 20 62 65 67 | 69 6e 0a 20 2a 09 09 77 |ames beg|in. *..w|
|00000d60| 69 74 68 20 61 6e 79 74 | 68 69 6e 67 20 69 6e 20 |ith anyt|hing in |
|00000d70| 74 68 65 20 6e 61 6d 65 | 64 20 6c 69 73 74 2e 20 |the name|d list. |
|00000d80| 20 53 6b 69 70 70 65 64 | 20 69 74 65 6d 73 20 61 | Skipped| items a|
|00000d90| 72 65 20 64 69 73 70 6c | 61 79 65 64 0a 20 2a 09 |re displ|ayed. *.|
|00000da0| 09 62 79 20 61 20 22 2e | 22 20 74 6f 20 69 6e 64 |.by a ".|" to ind|
|00000db0| 69 63 61 74 65 20 70 72 | 6f 67 72 65 73 73 20 62 |icate pr|ogress b|
|00000dc0| 65 69 6e 67 20 6d 61 64 | 65 2e 0a 20 2a 0a 20 2a |eing mad|e.. *. *|
|00000dd0| 20 41 75 74 68 6f 72 3a | 0a 20 2a 0a 20 2a 09 09 | Author:|. *. *..|
|00000de0| 4a 6f 65 20 4c 61 72 73 | 6f 6e 0a 20 2a 09 09 44 |Joe Lars|on. *..D|
|00000df0| 61 79 74 6f 6e 2d 48 75 | 64 73 6f 6e 20 44 65 70 |ayton-Hu|dson Dep|
|00000e00| 74 2e 20 53 74 6f 72 65 | 20 43 6f 2e 0a 20 2a 09 |t. Store| Co.. *.|
|00000e10| 09 37 30 30 20 4f 6e 20 | 54 68 65 20 4d 61 6c 6c |.700 On |The Mall|
|00000e20| 0a 20 2a 09 09 4d 69 6e | 6e 65 61 70 6f 6c 69 73 |. *..Min|neapolis|
|00000e30| 2c 20 4d 69 6e 6e 65 73 | 6f 74 61 20 35 35 34 30 |, Minnes|ota 5540|
|00000e40| 32 0a 20 2a 0a 20 2a 09 | 09 55 55 43 50 3a 6a 6f |2. *. *.|.UUCP:jo|
|00000e50| 65 40 64 61 79 74 6f 6e | 0a 20 2a 2f 0a 0a 73 74 |e@dayton|. */..st|
|00000e60| 72 75 63 74 20 48 64 72 | 0a 7b 0a 09 73 68 6f 72 |ruct Hdr|.{..shor|
|00000e70| 74 09 68 5f 6d 61 67 69 | 63 2c 0a 09 09 09 68 5f |t.h_magi|c,....h_|
|00000e80| 64 65 76 3b 0a 09 75 73 | 68 6f 72 74 09 68 5f 69 |dev;..us|hort.h_i|
|00000e90| 6e 6f 2c 0a 09 09 09 68 | 5f 6d 6f 64 65 2c 0a 09 |no,....h|_mode,..|
|00000ea0| 09 09 68 5f 75 69 64 2c | 0a 09 09 09 68 5f 67 69 |..h_uid,|....h_gi|
|00000eb0| 64 2c 0a 09 09 09 68 5f | 6e 6c 69 6e 6b 2c 0a 09 |d,....h_|nlink,..|
|00000ec0| 09 09 68 5f 72 64 65 76 | 2c 0a 09 09 09 68 5f 6d |..h_rdev|,....h_m|
|00000ed0| 74 69 6d 65 5b 32 5d 2c | 0a 09 09 09 68 5f 6e 61 |time[2],|....h_na|
|00000ee0| 6d 65 73 69 7a 65 2c 0a | 09 09 09 68 5f 66 69 6c |mesize,.|...h_fil|
|00000ef0| 65 73 69 7a 65 5b 32 5d | 3b 0a 09 63 68 61 72 09 |esize[2]|;..char.|
|00000f00| 68 5f 6e 61 6d 65 5b 38 | 30 5d 3b 0a 7d 3b 0a 0a |h_name[8|0];.};..|
|00000f10| 23 64 65 66 69 6e 65 20 | 52 45 41 44 42 55 46 53 |#define |READBUFS|
|00000f20| 49 5a 45 20 31 30 30 30 | 30 30 0a 63 68 61 72 20 |IZE 1000|00.char |
|00000f30| 72 65 61 64 62 75 66 5b | 52 45 41 44 42 55 46 53 |readbuf[|READBUFS|
|00000f40| 49 5a 45 5d 3b 0a 0a 6d | 61 69 6e 28 61 72 67 63 |IZE];..m|ain(argc|
|00000f50| 2c 61 72 67 76 29 0a 69 | 6e 74 20 61 72 67 63 3b |,argv).i|nt argc;|
|00000f60| 0a 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 7b 0a |.char **|argv;.{.|
|00000f70| 09 73 74 72 75 63 74 20 | 48 64 72 20 68 73 74 72 |.struct |Hdr hstr|
|00000f80| 75 63 74 3b 09 09 2f 2a | 20 49 6e 64 69 76 2e 20 |uct;../*| Indiv. |
|00000f90| 66 69 6c 65 20 68 65 61 | 64 65 72 20 69 6e 20 69 |file hea|der in i|
|00000fa0| 66 69 6c 65 2e 09 09 09 | 09 2a 2f 0a 09 69 6e 74 |file....|.*/..int|
|00000fb0| 09 09 69 66 69 6c 65 2c | 09 09 09 2f 2a 20 41 72 |..ifile,|.../* Ar|
|00000fc0| 63 68 69 76 65 20 66 69 | 6c 65 09 09 09 09 09 09 |chive fi|le......|
|00000fd0| 09 09 2a 2f 0a 09 09 09 | 63 75 72 5f 70 6f 73 2c |..*/....|cur_pos,|
|00000fe0| 09 09 2f 2a 20 50 6f 73 | 69 74 69 6f 6e 20 69 6e |../* Pos|ition in|
|00000ff0| 20 69 66 69 6c 65 09 09 | 09 09 09 09 2a 2f 0a 09 | ifile..|....*/..|
|00001000| 09 09 66 70 6f 73 2c 09 | 09 09 2f 2a 20 41 6e 6f |..fpos,.|../* Ano|
|00001010| 74 68 65 72 20 70 6f 73 | 69 74 69 6f 6e 20 69 6e |ther pos|ition in|
|00001020| 20 69 66 69 6c 65 09 09 | 09 09 2a 2f 0a 09 09 09 | ifile..|..*/....|
|00001030| 64 75 6d 6d 79 2c 09 09 | 09 2f 2a 20 48 6f 6c 64 |dummy,..|./* Hold|
|00001040| 73 20 6c 65 6e 67 74 68 | 20 6f 66 20 63 75 72 72 |s length| of curr|
|00001050| 65 6e 74 20 66 69 6c 65 | 20 69 6e 20 69 66 69 6c |ent file| in ifil|
|00001060| 65 09 2a 2f 0a 09 09 09 | 69 2c 09 09 09 09 2f 2a |e.*/....|i,..../*|
|00001070| 20 43 6f 75 6e 74 65 72 | 20 66 6f 72 20 6c 6f 74 | Counter| for lot|
|00001080| 73 20 6f 66 20 74 68 69 | 6e 67 73 09 09 09 09 2a |s of thi|ngs....*|
|00001090| 2f 0a 09 09 09 69 6c 65 | 6e 73 5b 32 30 5d 2c 09 |/....ile|ns[20],.|
|000010a0| 09 2f 2a 20 4c 65 6e 67 | 74 68 73 20 6f 66 20 78 |./* Leng|ths of x|
|000010b0| 5f 6e 61 6d 65 73 5b 5d | 2e 09 09 09 09 09 2a 2f |_names[]|......*/|
|000010c0| 0a 09 09 09 63 6f 75 6e | 74 2c 09 09 09 2f 2a 20 |....coun|t,.../* |
|000010d0| 23 20 6f 66 20 66 69 6c | 65 73 20 77 65 27 76 65 |# of fil|es we've|
|000010e0| 20 73 6b 69 70 70 65 64 | 2e 09 09 09 09 2a 2f 0a | skipped|.....*/.|
|000010f0| 09 09 09 78 5f 63 6f 75 | 6e 74 2c 09 09 2f 2a 20 |...x_cou|nt,../* |
|00001100| 4e 75 6d 62 65 72 20 6f | 66 20 78 5f 6e 61 6d 65 |Number o|f x_name|
|00001110| 73 5b 5d 2e 09 09 09 09 | 09 09 2a 2f 0a 09 09 09 |s[].....|..*/....|
|00001120| 69 73 69 7a 65 3b 09 09 | 09 2f 2a 20 55 73 65 64 |isize;..|./* Used|
|00001130| 20 69 6e 20 73 65 65 6b | 69 6e 67 2e 2e 2e 09 09 | in seek|ing.....|
|00001140| 09 09 09 09 2a 2f 0a 09 | 63 68 61 72 09 2a 61 5f |....*/..|char.*a_|
|00001150| 6e 61 6d 65 2c 09 09 2f | 2a 20 4e 61 6d 65 20 6f |name,../|* Name o|
|00001160| 66 20 61 72 63 68 69 76 | 65 20 66 69 6c 65 09 09 |f archiv|e file..|
|00001170| 09 09 09 09 2a 2f 0a 09 | 09 09 2a 6f 70 74 69 6f |....*/..|..*optio|
|00001180| 6e 73 2c 09 09 2f 2a 20 | 4f 70 74 69 6f 6e 20 73 |ns,../* |Option s|
|00001190| 74 72 69 6e 67 20 66 72 | 6f 6d 20 63 6d 6e 64 20 |tring fr|om cmnd |
|000011a0| 6c 69 6e 65 2e 09 09 09 | 2a 2f 0a 09 09 09 2a 78 |line....|*/....*x|
|000011b0| 5f 6e 61 6d 65 73 5b 32 | 30 5d 3b 09 2f 2a 20 4e |_names[2|0];./* N|
|000011c0| 61 6d 65 20 6f 66 20 65 | 78 74 72 61 63 74 20 66 |ame of e|xtract f|
|000011d0| 69 6c 65 20 62 65 67 69 | 6e 6e 69 6e 67 73 2e 09 |ile begi|nnings..|
|000011e0| 09 09 2a 2f 0a 09 62 6f | 6f 6c 09 64 6f 5f 65 78 |..*/..bo|ol.do_ex|
|000011f0| 74 72 61 63 74 2c 09 09 | 2f 2a 20 45 78 74 72 61 |tract,..|/* Extra|
|00001200| 63 74 20 66 69 6c 65 73 | 3f 09 09 09 09 09 09 09 |ct files|?.......|
|00001210| 2a 2f 0a 09 09 09 64 6f | 5f 74 61 62 6c 65 2c 09 |*/....do|_table,.|
|00001220| 09 2f 2a 20 44 6f 20 61 | 20 74 61 62 6c 65 20 6f |./* Do a| table o|
|00001230| 66 20 63 6f 6e 74 65 6e | 74 73 3f 09 09 09 09 09 |f conten|ts?.....|
|00001240| 2a 2f 0a 09 09 09 78 5f | 68 65 72 65 3b 09 09 09 |*/....x_|here;...|
|00001250| 2f 2a 20 45 78 74 72 61 | 63 74 20 74 68 69 73 20 |/* Extra|ct this |
|00001260| 66 69 6c 65 3f 09 09 09 | 09 09 09 2a 2f 0a 0a 09 |file?...|...*/...|
|00001270| 61 5f 6e 61 6d 65 20 3d | 20 4e 55 4c 4c 3b 0a 09 |a_name =| NULL;..|
|00001280| 6f 70 74 69 6f 6e 73 20 | 3d 20 22 78 22 3b 0a 09 |options |= "x";..|
|00001290| 78 5f 63 6f 75 6e 74 20 | 3d 20 30 3b 0a 09 64 6f |x_count |= 0;..do|
|000012a0| 5f 65 78 74 72 61 63 74 | 20 3d 20 30 3b 0a 09 64 |_extract| = 0;..d|
|000012b0| 6f 5f 74 61 62 6c 65 20 | 3d 20 30 3b 0a 09 66 6f |o_table |= 0;..fo|
|000012c0| 72 20 28 69 20 3d 20 31 | 3b 20 69 20 3c 20 61 72 |r (i = 1|; i < ar|
|000012d0| 67 63 3b 20 69 2b 2b 29 | 0a 09 7b 0a 09 09 69 66 |gc; i++)|..{...if|
|000012e0| 20 28 2a 61 72 67 76 5b | 69 5d 20 3d 3d 20 27 2d | (*argv[|i] == '-|
|000012f0| 27 29 0a 09 09 09 6f 70 | 74 69 6f 6e 73 20 3d 20 |')....op|tions = |
|00001300| 61 72 67 76 5b 69 5d 2b | 31 3b 0a 09 09 65 6c 73 |argv[i]+|1;...els|
|00001310| 65 20 69 66 20 28 61 5f | 6e 61 6d 65 20 3d 3d 20 |e if (a_|name == |
|00001320| 4e 55 4c 4c 29 0a 09 09 | 09 61 5f 6e 61 6d 65 20 |NULL)...|.a_name |
|00001330| 3d 20 61 72 67 76 5b 69 | 5d 3b 0a 09 09 65 6c 73 |= argv[i|];...els|
|00001340| 65 0a 09 09 09 78 5f 6e | 61 6d 65 73 5b 78 5f 63 |e....x_n|ames[x_c|
|00001350| 6f 75 6e 74 2b 2b 5d 20 | 3d 20 61 72 67 76 5b 69 |ount++] |= argv[i|
|00001360| 5d 3b 0a 09 7d 0a 09 69 | 66 20 28 61 5f 6e 61 6d |];..}..i|f (a_nam|
|00001370| 65 20 3d 3d 20 4e 55 4c | 4c 29 0a 09 7b 0a 09 09 |e == NUL|L)..{...|
|00001380| 75 73 61 67 65 28 61 72 | 67 76 5b 30 5d 29 3b 0a |usage(ar|gv[0]);.|
|00001390| 09 09 65 78 69 74 28 30 | 29 3b 0a 09 7d 0a 09 64 |..exit(0|);..}..d|
|000013a0| 6f 5f 65 78 74 72 61 63 | 74 20 3d 20 28 73 74 72 |o_extrac|t = (str|
|000013b0| 63 68 72 28 6f 70 74 69 | 6f 6e 73 2c 20 27 78 27 |chr(opti|ons, 'x'|
|000013c0| 29 20 21 3d 20 4e 55 4c | 4c 29 3b 0a 09 64 6f 5f |) != NUL|L);..do_|
|000013d0| 74 61 62 6c 65 20 3d 20 | 28 73 74 72 63 68 72 28 |table = |(strchr(|
|000013e0| 6f 70 74 69 6f 6e 73 2c | 20 27 74 27 29 20 21 3d |options,| 't') !=|
|000013f0| 20 4e 55 4c 4c 29 3b 0a | 09 69 66 69 6c 65 20 3d | NULL);.|.ifile =|
|00001400| 20 6f 70 65 6e 28 61 5f | 6e 61 6d 65 2c 20 4f 5f | open(a_|name, O_|
|00001410| 52 44 4f 4e 4c 59 29 3b | 0a 09 69 66 20 28 69 66 |RDONLY);|..if (if|
|00001420| 69 6c 65 20 3d 3d 20 2d | 31 29 0a 09 7b 0a 09 09 |ile == -|1)..{...|
|00001430| 70 65 72 72 6f 72 28 61 | 5f 6e 61 6d 65 29 3b 0a |perror(a|_name);.|
|00001440| 09 09 65 78 69 74 28 65 | 72 72 6e 6f 29 3b 0a 09 |..exit(e|rrno);..|
|00001450| 7d 0a 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |}..for (|i = 0; i|
|00001460| 20 3c 20 78 5f 63 6f 75 | 6e 74 3b 20 69 2b 2b 29 | < x_cou|nt; i++)|
|00001470| 0a 09 09 69 6c 65 6e 73 | 5b 69 5d 20 3d 20 73 74 |...ilens|[i] = st|
|00001480| 72 6c 65 6e 28 78 5f 6e | 61 6d 65 73 5b 69 5d 29 |rlen(x_n|ames[i])|
|00001490| 3b 0a 09 63 75 72 5f 70 | 6f 73 20 3d 20 30 3b 0a |;..cur_p|os = 0;.|
|000014a0| 09 63 6f 75 6e 74 20 3d | 20 30 3b 0a 09 77 68 69 |.count =| 0;..whi|
|000014b0| 6c 65 28 31 29 0a 09 7b | 0a 09 09 69 66 20 28 72 |le(1)..{|...if (r|
|000014c0| 65 61 64 28 69 66 69 6c | 65 2c 20 26 68 73 74 72 |ead(ifil|e, &hstr|
|000014d0| 75 63 74 2c 20 73 69 7a | 65 6f 66 28 73 74 72 75 |uct, siz|eof(stru|
|000014e0| 63 74 20 48 64 72 29 29 | 20 3c 20 73 69 7a 65 6f |ct Hdr))| < sizeo|
|000014f0| 66 28 73 74 72 75 63 74 | 20 48 64 72 29 29 0a 09 |f(struct| Hdr))..|
|00001500| 09 09 62 72 65 61 6b 3b | 0a 09 09 69 66 20 28 21 |..break;|...if (!|
|00001510| 73 74 72 63 6d 70 28 68 | 73 74 72 75 63 74 2e 68 |strcmp(h|struct.h|
|00001520| 5f 6e 61 6d 65 2c 20 22 | 54 52 41 49 4c 45 52 21 |_name, "|TRAILER!|
|00001530| 21 21 22 29 29 0a 09 09 | 09 62 72 65 61 6b 3b 0a |!!"))...|.break;.|
|00001540| 09 09 64 75 6d 6d 79 20 | 3d 20 28 68 73 74 72 75 |..dummy |= (hstru|
|00001550| 63 74 2e 68 5f 66 69 6c | 65 73 69 7a 65 5b 30 5d |ct.h_fil|esize[0]|
|00001560| 20 3c 3c 20 31 36 29 20 | 2b 20 68 73 74 72 75 63 | << 16) |+ hstruc|
|00001570| 74 2e 68 5f 66 69 6c 65 | 73 69 7a 65 5b 31 5d 3b |t.h_file|size[1];|
|00001580| 0a 09 09 69 66 20 28 64 | 6f 5f 74 61 62 6c 65 29 |...if (d|o_table)|
|00001590| 0a 09 09 7b 0a 09 09 09 | 66 70 72 69 6e 74 66 28 |...{....|fprintf(|
|000015a0| 73 74 64 65 72 72 2c 20 | 22 25 36 6c 64 20 25 73 |stderr, |"%6ld %s|
|000015b0| 5c 6e 22 2c 20 64 75 6d | 6d 79 2c 20 68 73 74 72 |\n", dum|my, hstr|
|000015c0| 75 63 74 2e 68 5f 6e 61 | 6d 65 29 3b 0a 09 09 09 |uct.h_na|me);....|
|000015d0| 66 66 6c 75 73 68 28 73 | 74 64 65 72 72 29 3b 0a |fflush(s|tderr);.|
|000015e0| 09 09 7d 0a 09 09 69 73 | 69 7a 65 20 3d 20 28 68 |..}...is|ize = (h|
|000015f0| 73 74 72 75 63 74 2e 68 | 5f 6e 61 6d 65 73 69 7a |struct.h|_namesiz|
|00001600| 65 20 2b 20 31 29 20 26 | 20 7e 28 31 4c 29 3b 0a |e + 1) &| ~(1L);.|
|00001610| 09 09 69 66 20 28 64 6f | 5f 65 78 74 72 61 63 74 |..if (do|_extract|
|00001620| 29 0a 09 09 7b 0a 09 09 | 09 78 5f 68 65 72 65 20 |)...{...|.x_here |
|00001630| 3d 20 21 28 78 5f 63 6f | 75 6e 74 29 3b 09 2f 2a |= !(x_co|unt);./*|
|00001640| 20 49 66 20 6e 6f 20 78 | 5f 6e 61 6d 65 73 2c 20 | If no x|_names, |
|00001650| 65 78 74 72 61 63 74 20 | 61 6c 6c 20 2a 2f 0a 09 |extract |all */..|
|00001660| 09 09 66 6f 72 20 28 69 | 20 3d 20 30 3b 20 69 20 |..for (i| = 0; i |
|00001670| 3c 20 78 5f 63 6f 75 6e | 74 3b 20 69 2b 2b 29 0a |< x_coun|t; i++).|
|00001680| 09 09 09 09 69 66 20 28 | 21 73 74 72 6e 63 6d 70 |....if (|!strncmp|
|00001690| 28 78 5f 6e 61 6d 65 73 | 5b 69 5d 2c 20 68 73 74 |(x_names|[i], hst|
|000016a0| 72 75 63 74 2e 68 5f 6e | 61 6d 65 2c 20 69 6c 65 |ruct.h_n|ame, ile|
|000016b0| 6e 73 5b 69 5d 29 29 0a | 09 09 09 09 7b 0a 09 09 |ns[i])).|....{...|
|000016c0| 09 09 09 78 5f 68 65 72 | 65 20 3d 20 31 3b 0a 09 |...x_her|e = 1;..|
|000016d0| 09 09 09 09 62 72 65 61 | 6b 3b 0a 09 09 09 09 7d |....brea|k;.....}|
|000016e0| 0a 09 09 09 69 66 20 28 | 78 5f 68 65 72 65 29 0a |....if (|x_here).|
|000016f0| 09 09 09 7b 0a 09 09 09 | 09 69 66 20 28 63 6f 75 |...{....|.if (cou|
|00001700| 6e 74 29 0a 09 09 09 09 | 09 66 70 72 69 6e 74 66 |nt).....|.fprintf|
|00001710| 28 73 74 64 65 72 72 2c | 20 22 5c 6e 22 29 3b 0a |(stderr,| "\n");.|
|00001720| 09 09 09 09 63 6f 75 6e | 74 20 3d 20 30 3b 0a 09 |....coun|t = 0;..|
|00001730| 09 09 09 66 70 6f 73 20 | 3d 20 63 75 72 5f 70 6f |...fpos |= cur_po|
|00001740| 73 20 2b 20 73 69 7a 65 | 6f 66 28 73 74 72 75 63 |s + size|of(struc|
|00001750| 74 20 48 64 72 29 20 2d | 20 38 30 20 2b 20 69 73 |t Hdr) -| 80 + is|
|00001760| 69 7a 65 3b 0a 09 09 09 | 09 66 70 72 69 6e 74 66 |ize;....|.fprintf|
|00001770| 28 73 74 64 65 72 72 2c | 20 22 58 3a 20 25 73 22 |(stderr,| "X: %s"|
|00001780| 2c 20 68 73 74 72 75 63 | 74 2e 68 5f 6e 61 6d 65 |, hstruc|t.h_name|
|00001790| 29 3b 0a 09 09 09 09 66 | 66 6c 75 73 68 28 73 74 |);.....f|flush(st|
|000017a0| 64 65 72 72 29 3b 0a 09 | 09 09 09 63 6f 70 79 5f |derr);..|...copy_|
|000017b0| 66 69 6c 65 28 69 66 69 | 6c 65 2c 20 66 70 6f 73 |file(ifi|le, fpos|
|000017c0| 2c 20 26 68 73 74 72 75 | 63 74 2c 20 64 75 6d 6d |, &hstru|ct, dumm|
|000017d0| 79 29 3b 0a 09 09 09 09 | 66 70 72 69 6e 74 66 28 |y);.....|fprintf(|
|000017e0| 73 74 64 65 72 72 2c 20 | 22 2e 5c 6e 22 29 3b 0a |stderr, |".\n");.|
|000017f0| 09 09 09 7d 0a 09 09 09 | 65 6c 73 65 0a 09 09 09 |...}....|else....|
|00001800| 7b 0a 09 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |{.....fp|rintf(st|
|00001810| 64 65 72 72 2c 20 22 2e | 22 29 3b 0a 09 09 09 09 |derr, ".|");.....|
|00001820| 69 66 20 28 2b 2b 63 6f | 75 6e 74 20 3d 3d 20 36 |if (++co|unt == 6|
|00001830| 30 29 0a 09 09 09 09 7b | 0a 09 09 09 09 09 66 70 |0).....{|......fp|
|00001840| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 20 22 5c |rintf(st|derr, "\|
|00001850| 6e 22 29 3b 0a 09 09 09 | 09 09 63 6f 75 6e 74 20 |n");....|..count |
|00001860| 3d 20 30 3b 0a 09 09 09 | 09 7d 0a 09 09 09 09 65 |= 0;....|.}.....e|
|00001870| 6c 73 65 0a 09 09 09 09 | 09 66 66 6c 75 73 68 28 |lse.....|.fflush(|
|00001880| 73 74 64 65 72 72 29 3b | 0a 09 09 09 7d 0a 09 09 |stderr);|....}...|
|00001890| 7d 0a 09 09 63 75 72 5f | 70 6f 73 20 2b 3d 20 28 |}...cur_|pos += (|
|000018a0| 64 75 6d 6d 79 20 2b 20 | 73 69 7a 65 6f 66 28 73 |dummy + |sizeof(s|
|000018b0| 74 72 75 63 74 20 48 64 | 72 29 20 2d 20 38 30 20 |truct Hd|r) - 80 |
|000018c0| 2b 20 69 73 69 7a 65 20 | 2b 20 31 29 20 26 20 7e |+ isize |+ 1) & ~|
|000018d0| 28 31 4c 29 3b 0a 09 09 | 6c 73 65 65 6b 28 69 66 |(1L);...|lseek(if|
|000018e0| 69 6c 65 2c 20 63 75 72 | 5f 70 6f 73 2c 20 30 29 |ile, cur|_pos, 0)|
|000018f0| 3b 0a 09 7d 0a 09 63 6c | 6f 73 65 28 69 66 69 6c |;..}..cl|ose(ifil|
|00001900| 65 29 3b 0a 7d 0a 0a 0a | 63 6f 70 79 5f 66 69 6c |e);.}...|copy_fil|
|00001910| 65 28 69 66 69 6c 65 2c | 20 66 70 6f 73 2c 20 68 |e(ifile,| fpos, h|
|00001920| 73 74 72 75 63 74 2c 20 | 69 6c 65 6e 29 0a 69 6e |struct, |ilen).in|
|00001930| 74 20 69 66 69 6c 65 2c | 20 66 70 6f 73 2c 20 69 |t ifile,| fpos, i|
|00001940| 6c 65 6e 3b 0a 73 74 72 | 75 63 74 20 48 64 72 20 |len;.str|uct Hdr |
|00001950| 2a 68 73 74 72 75 63 74 | 3b 0a 2f 2a 0a 20 2a 20 |*hstruct|;./*. * |
|00001960| 43 6f 70 79 20 6f 75 74 | 20 74 68 69 73 20 66 69 |Copy out| this fi|
|00001970| 6c 65 2e 20 20 54 68 69 | 73 20 72 6f 75 74 69 6e |le. Thi|s routin|
|00001980| 65 20 73 74 69 6c 6c 20 | 6e 65 65 64 73 20 74 6f |e still |needs to|
|00001990| 20 64 6f 20 73 6f 6d 65 | 20 74 68 69 6e 67 73 2e | do some| things.|
|000019a0| 0a 20 2a 0a 20 2a 20 46 | 6f 72 20 69 6e 73 74 61 |. *. * F|or insta|
|000019b0| 6e 63 65 2c 20 6e 6f 20 | 61 74 74 65 6d 70 74 20 |nce, no |attempt |
|000019c0| 69 73 20 6d 61 64 65 20 | 74 6f 20 70 72 65 73 65 |is made |to prese|
|000019d0| 72 76 65 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |rve the |original|
|000019e0| 20 66 69 6c 65 73 0a 20 | 2a 09 09 6d 61 67 69 63 | files. |*..magic|
|000019f0| 20 6e 75 6d 62 65 72 2c | 20 63 2f 6d 2f 61 20 74 | number,| c/m/a t|
|00001a00| 69 6d 65 73 2c 20 6f 77 | 6e 65 72 20 6f 72 20 67 |imes, ow|ner or g|
|00001a10| 72 6f 75 70 2e 0a 20 2a | 2f 0a 7b 0a 09 69 6e 74 |roup.. *|/.{..int|
|00001a20| 20 6f 66 69 6c 65 2c 20 | 72 6c 65 6e 2c 20 6e 6c | ofile, |rlen, nl|
|00001a30| 65 6e 3b 0a 09 63 68 61 | 72 20 6e 61 6d 65 5b 31 |en;..cha|r name[1|
|00001a40| 33 32 5d 2c 20 2a 63 31 | 2c 20 2a 63 32 3b 0a 0a |32], *c1|, *c2;..|
|00001a50| 09 69 66 20 28 68 73 74 | 72 75 63 74 2d 3e 68 5f |.if (hst|ruct->h_|
|00001a60| 6d 6f 64 65 20 26 20 30 | 30 34 30 30 30 30 4c 29 |mode & 0|040000L)|
|00001a70| 0a 09 7b 0a 09 09 6d 61 | 6b 65 5f 70 61 74 68 28 |..{...ma|ke_path(|
|00001a80| 68 73 74 72 75 63 74 2d | 3e 68 5f 6e 61 6d 65 2c |hstruct-|>h_name,|
|00001a90| 20 31 29 3b 0a 09 09 72 | 65 74 75 72 6e 3b 0a 09 | 1);...r|eturn;..|
|00001aa0| 7d 0a 09 66 6f 72 20 28 | 63 31 20 3d 20 4e 55 4c |}..for (|c1 = NUL|
|00001ab0| 4c 2c 20 63 32 3d 68 73 | 74 72 75 63 74 2d 3e 68 |L, c2=hs|truct->h|
|00001ac0| 5f 6e 61 6d 65 3b 20 2a | 63 32 3b 20 63 32 2b 2b |_name; *|c2; c2++|
|00001ad0| 29 0a 09 09 69 66 20 28 | 2a 63 32 20 3d 3d 20 27 |)...if (|*c2 == '|
|00001ae0| 2f 27 29 0a 09 09 09 63 | 31 20 3d 20 63 32 3b 0a |/')....c|1 = c2;.|
|00001af0| 09 69 66 20 28 63 31 20 | 21 3d 20 4e 55 4c 4c 29 |.if (c1 |!= NULL)|
|00001b00| 0a 09 7b 0a 09 09 6e 6c | 65 6e 20 3d 20 63 31 20 |..{...nl|en = c1 |
|00001b10| 2d 20 68 73 74 72 75 63 | 74 2d 3e 68 5f 6e 61 6d |- hstruc|t->h_nam|
|00001b20| 65 3b 0a 09 09 73 74 72 | 6e 63 70 79 28 6e 61 6d |e;...str|ncpy(nam|
|00001b30| 65 2c 20 68 73 74 72 75 | 63 74 2d 3e 68 5f 6e 61 |e, hstru|ct->h_na|
|00001b40| 6d 65 2c 20 6e 6c 65 6e | 29 3b 0a 09 09 6e 61 6d |me, nlen|);...nam|
|00001b50| 65 5b 6e 6c 65 6e 5d 20 | 3d 20 30 3b 0a 09 09 6d |e[nlen] |= 0;...m|
|00001b60| 61 6b 65 5f 70 61 74 68 | 28 6e 61 6d 65 2c 20 31 |ake_path|(name, 1|
|00001b70| 29 3b 0a 09 7d 0a 09 6f | 66 69 6c 65 20 3d 20 6f |);..}..o|file = o|
|00001b80| 70 65 6e 28 68 73 74 72 | 75 63 74 2d 3e 68 5f 6e |pen(hstr|uct->h_n|
|00001b90| 61 6d 65 2c 20 4f 5f 57 | 52 4f 4e 4c 59 20 7c 20 |ame, O_W|RONLY | |
|00001ba0| 4f 5f 43 52 45 41 54 2c | 20 68 73 74 72 75 63 74 |O_CREAT,| hstruct|
|00001bb0| 2d 3e 68 5f 6d 6f 64 65 | 26 30 37 37 37 37 4c 29 |->h_mode|&07777L)|
|00001bc0| 3b 0a 09 69 66 20 28 6f | 66 69 6c 65 20 3d 3d 20 |;..if (o|file == |
|00001bd0| 2d 31 29 0a 09 7b 0a 09 | 09 70 65 72 72 6f 72 28 |-1)..{..|.perror(|
|00001be0| 68 73 74 72 75 63 74 2d | 3e 68 5f 6e 61 6d 65 29 |hstruct-|>h_name)|
|00001bf0| 3b 0a 09 09 72 65 74 75 | 72 6e 3b 0a 09 7d 0a 09 |;...retu|rn;..}..|
|00001c00| 6c 73 65 65 6b 28 69 66 | 69 6c 65 2c 20 66 70 6f |lseek(if|ile, fpo|
|00001c10| 73 2c 20 30 4c 29 3b 0a | 09 77 68 69 6c 65 20 28 |s, 0L);.|.while (|
|00001c20| 69 6c 65 6e 20 3e 20 30 | 29 0a 09 7b 0a 09 09 72 |ilen > 0|)..{...r|
|00001c30| 6c 65 6e 20 3d 20 4d 49 | 4e 28 52 45 41 44 42 55 |len = MI|N(READBU|
|00001c40| 46 53 49 5a 45 2c 20 69 | 6c 65 6e 29 3b 0a 09 09 |FSIZE, i|len);...|
|00001c50| 72 6c 65 6e 20 3d 20 72 | 65 61 64 28 69 66 69 6c |rlen = r|ead(ifil|
|00001c60| 65 2c 20 72 65 61 64 62 | 75 66 2c 20 72 6c 65 6e |e, readb|uf, rlen|
|00001c70| 29 3b 0a 09 09 69 66 20 | 28 72 6c 65 6e 20 3e 20 |);...if |(rlen > |
|00001c80| 30 29 0a 09 09 09 77 72 | 69 74 65 28 6f 66 69 6c |0)....wr|ite(ofil|
|00001c90| 65 2c 20 72 65 61 64 62 | 75 66 2c 20 72 6c 65 6e |e, readb|uf, rlen|
|00001ca0| 29 3b 0a 09 09 65 6c 73 | 65 0a 09 09 09 62 72 65 |);...els|e....bre|
|00001cb0| 61 6b 3b 0a 09 09 69 6c | 65 6e 20 2d 3d 20 72 6c |ak;...il|en -= rl|
|00001cc0| 65 6e 3b 0a 09 7d 0a 09 | 63 6c 6f 73 65 28 6f 66 |en;..}..|close(of|
|00001cd0| 69 6c 65 29 3b 0a 7d 0a | 0a 0a 0a 75 73 61 67 65 |ile);.}.|...usage|
|00001ce0| 28 61 72 67 29 0a 63 68 | 61 72 20 2a 61 72 67 3b |(arg).ch|ar *arg;|
|00001cf0| 0a 7b 0a 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |.{..fpri|ntf(stde|
|00001d00| 72 72 2c 20 22 55 73 61 | 67 65 3a 20 25 73 20 69 |rr, "Usa|ge: %s i|
|00001d10| 6e 66 69 6c 65 6e 61 6d | 65 5c 6e 22 2c 20 61 72 |nfilenam|e\n", ar|
|00001d20| 67 29 3b 0a 7d 0a 0a 6d | 61 6b 65 5f 70 61 74 68 |g);.}..m|ake_path|
|00001d30| 28 70 2c 20 66 6c 61 67 | 29 0a 63 68 61 72 20 2a |(p, flag|).char *|
|00001d40| 70 2c 20 66 6c 61 67 3b | 0a 2f 2a 0a 20 2a 20 4d |p, flag;|./*. * M|
|00001d50| 61 6b 65 20 73 75 72 65 | 20 74 68 69 73 20 65 6e |ake sure| this en|
|00001d60| 74 69 72 65 20 70 61 74 | 68 6e 61 6d 65 20 65 78 |tire pat|hname ex|
|00001d70| 69 73 74 73 2e 0a 20 2a | 2f 0a 7b 0a 09 73 68 6f |ists.. *|/.{..sho|
|00001d80| 72 74 20 69 6c 65 6e 3b | 0a 09 63 68 61 72 20 6e |rt ilen;|..char n|
|00001d90| 61 6d 65 5b 31 33 32 5d | 2c 20 2a 63 31 2c 20 2a |ame[132]|, *c1, *|
|00001da0| 63 32 3b 0a 0a 09 69 66 | 20 28 61 63 63 65 73 73 |c2;...if| (access|
|00001db0| 28 70 2c 20 30 30 29 29 | 0a 09 7b 0a 09 09 69 66 |(p, 00))|..{...if|
|00001dc0| 20 28 66 6c 61 67 29 0a | 09 09 7b 0a 09 09 09 66 | (flag).|..{....f|
|00001dd0| 6f 72 20 28 63 31 20 3d | 20 4e 55 4c 4c 2c 20 63 |or (c1 =| NULL, c|
|00001de0| 32 20 3d 20 70 3b 20 2a | 63 32 3b 20 63 32 2b 2b |2 = p; *|c2; c2++|
|00001df0| 29 0a 09 09 09 7b 0a 09 | 09 09 09 69 66 20 28 2a |)....{..|...if (*|
|00001e00| 63 32 20 3d 3d 20 27 2f | 27 29 0a 09 09 09 09 7b |c2 == '/|').....{|
|00001e10| 0a 09 09 09 09 09 69 66 | 20 28 63 31 20 21 3d 20 |......if| (c1 != |
|00001e20| 4e 55 4c 4c 29 0a 09 09 | 09 09 09 7b 0a 09 09 09 |NULL)...|...{....|
|00001e30| 09 09 09 69 6c 65 6e 20 | 3d 20 63 32 20 2d 20 70 |...ilen |= c2 - p|
|00001e40| 3b 0a 09 09 09 09 09 09 | 73 74 72 6e 63 70 79 28 |;.......|strncpy(|
|00001e50| 6e 61 6d 65 2c 20 70 2c | 20 69 6c 65 6e 29 3b 0a |name, p,| ilen);.|
|00001e60| 09 09 09 09 09 09 6e 61 | 6d 65 5b 69 6c 65 6e 5d |......na|me[ilen]|
|00001e70| 20 3d 20 30 3b 0a 09 09 | 09 09 09 09 69 66 20 28 | = 0;...|....if (|
|00001e80| 61 63 63 65 73 73 28 6e | 61 6d 65 2c 20 30 30 29 |access(n|ame, 00)|
|00001e90| 29 0a 09 09 09 09 09 09 | 09 6d 61 6b 65 5f 70 61 |).......|.make_pa|
|00001ea0| 74 68 28 70 2c 20 30 29 | 3b 0a 09 09 09 09 09 7d |th(p, 0)|;......}|
|00001eb0| 0a 09 09 09 09 09 63 31 | 20 3d 20 63 32 3b 0a 09 |......c1| = c2;..|
|00001ec0| 09 09 09 7d 0a 09 09 09 | 7d 0a 09 09 7d 0a 09 09 |...}....|}...}...|
|00001ed0| 69 66 20 28 21 66 6f 72 | 6b 28 29 29 0a 09 09 7b |if (!for|k())...{|
|00001ee0| 0a 09 09 09 65 78 65 63 | 6c 70 28 22 6d 6b 64 69 |....exec|lp("mkdi|
|00001ef0| 72 22 2c 20 22 6d 6b 64 | 69 72 22 2c 20 70 2c 20 |r", "mkd|ir", p, |
|00001f00| 30 29 3b 0a 09 09 09 65 | 78 69 74 28 65 72 72 6e |0);....e|xit(errn|
|00001f10| 6f 29 3b 0a 09 09 7d 0a | 09 09 65 6c 73 65 0a 09 |o);...}.|..else..|
|00001f20| 09 09 77 61 69 74 28 30 | 29 3b 0a 09 7d 0a 7d 0a |..wait(0|);..}.}.|
|00001f30| 53 48 41 52 5f 45 4f 46 | 0a 66 69 0a 69 66 20 74 |SHAR_EOF|.fi.if t|
|00001f40| 65 73 74 20 2d 66 20 27 | 6d 61 74 68 2e 68 27 0a |est -f '|math.h'.|
|00001f50| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001f60| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00001f70| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00001f80| 69 6c 65 20 27 6d 61 74 | 68 2e 68 27 22 0a 65 6c |ile 'mat|h.h'".el|
|00001f90| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00001fa0| 45 4f 46 20 3e 20 27 6d | 61 74 68 2e 68 27 0a 2f |EOF > 'm|ath.h'./|
|00001fb0| 2a 0a 20 2a 20 44 61 79 | 74 6f 6e 27 73 20 6d 61 |*. * Day|ton's ma|
|00001fc0| 74 68 20 6c 69 62 72 61 | 72 79 20 64 65 66 69 6e |th libra|ry defin|
|00001fd0| 69 74 69 6f 6e 73 2e 0a | 20 2a 2f 0a 0a 23 64 65 |itions..| */..#de|
|00001fe0| 66 69 6e 65 09 09 4d 49 | 4e 28 78 2c 79 29 09 28 |fine..MI|N(x,y).(|
|00001ff0| 28 78 20 3c 20 79 29 20 | 3f 20 78 20 3a 20 79 29 |(x < y) |? x : y)|
|00002000| 0a 23 64 65 66 69 6e 65 | 09 09 4d 41 58 28 78 2c |.#define|..MAX(x,|
|00002010| 79 29 09 28 28 78 20 3e | 20 79 29 20 3f 20 78 20 |y).((x >| y) ? x |
|00002020| 3a 20 79 29 0a 23 64 65 | 66 69 6e 65 09 09 41 42 |: y).#de|fine..AB|
|00002030| 53 28 78 29 09 09 28 28 | 78 20 3c 20 30 29 20 3f |S(x)..((|x < 0) ?|
|00002040| 20 2d 78 20 3a 20 78 29 | 0a 53 48 41 52 5f 45 4f | -x : x)|.SHAR_EO|
|00002050| 46 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |F.fi.if |test -f |
|00002060| 27 73 74 64 74 79 70 2e | 68 27 0a 74 68 65 6e 0a |'stdtyp.|h'.then.|
|00002070| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 22 77 69 6c |.echo sh|ar: "wil|
|00002080| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00002090| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 27 | existin|g file '|
|000020a0| 73 74 64 74 79 70 2e 68 | 27 22 0a 65 6c 73 65 0a |stdtyp.h|'".else.|
|000020b0| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|000020c0| 20 3e 20 27 73 74 64 74 | 79 70 2e 68 27 0a 2f 2a | > 'stdt|yp.h'./*|
|000020d0| 0a 20 2a 20 53 74 61 6e | 64 61 72 64 20 74 79 70 |. * Stan|dard typ|
|000020e0| 65 73 20 61 6e 64 20 64 | 65 66 69 6e 65 73 20 66 |es and d|efines f|
|000020f0| 6f 72 20 44 61 79 74 6f | 6e 2d 48 75 64 73 6f 6e |or Dayto|n-Hudson|
|00002100| 2e 0a 20 2a 0a 20 2a 2f | 0a 0a 23 69 6e 63 6c 75 |.. *. */|..#inclu|
|00002110| 64 65 09 3c 73 74 64 74 | 79 70 2e 68 3e 0a 0a 23 |de.<stdt|yp.h>..#|
|00002120| 69 66 6e 64 65 66 09 09 | 54 52 55 45 0a 23 64 65 |ifndef..|TRUE.#de|
|00002130| 66 69 6e 65 09 09 54 52 | 55 45 09 28 31 29 0a 23 |fine..TR|UE.(1).#|
|00002140| 65 6e 64 69 66 0a 0a 23 | 69 66 6e 64 65 66 09 09 |endif..#|ifndef..|
|00002150| 46 41 4c 53 45 0a 23 64 | 65 66 69 6e 65 09 09 46 |FALSE.#d|efine..F|
|00002160| 41 4c 53 45 09 28 30 29 | 0a 23 65 6e 64 69 66 0a |ALSE.(0)|.#endif.|
|00002170| 0a 23 64 65 66 69 6e 65 | 20 55 4c 4f 4e 47 20 75 |.#define| ULONG u|
|00002180| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 0a 53 48 41 |nsigned |long.SHA|
|00002190| 52 5f 45 4f 46 0a 66 69 | 0a 65 78 69 74 20 30 0a |R_EOF.fi|.exit 0.|
|000021a0| 23 09 45 6e 64 20 6f 66 | 20 73 68 65 6c 6c 20 61 |#.End of| shell a|
|000021b0| 72 63 68 69 76 65 0a | |rchive. | |
+--------+-------------------------+-------------------------+--------+--------+