home *** CD-ROM | disk | FTP | other *** search
- /* header.doc (In Japanese) */
- LHa for UNIX $@$G;HMQ$5$l$k%X%C%@9=B$$K$D$$$F(J Mar. 2, 1992, Masaru Oki.
-
- ----------------------------------------------------------------
- $@K\(J$@%P!<%8%g%s$G$O2aEOE*$JA<CV$H$7$F(J3$@<oN`$N%X%C%@7A<0$rMQ0U$7!"(Jlevel-1
- $@$r4{DjCM$H$7$F$$$^$9$,!">-MhE*$K(J$@$O%Q%9L>$NJ8;z?t$K@)8B$N$J$$(J level-2$@$K(J
- $@E}0l$9$kJ}?K$G$9!#(J
-
-
- A. $@%X%C%@$N;EMM(J
-
- -----------------------------------------------------------------------------
- level-0 level-1 level-2
- -----------------------------------------------------------------------------
- 1 header size 1 header size 2 total header size
- 1 header sum 1 header sum
- 5 method ID 5 method ID 5 method ID
- $@4p(J 4 packed size 4 skip size 4 packed size
- 4 original size 4 original size 4 original size
- $@K\(J 2 time 2 time 4 time(UNIX type)
- 2 date 2 date
- $@It(J 1 attribute 1 0x20 1 RESERVED
- 1 level 0x00 1 level 0x01 1 level 0x02
- $@J,(J 1 name length 1 name length
- ? pathname ? filename
- 2 file crc 2 file crc 2 file crc
- . ........ 1 OS ID 'U' 1 OS ID 'U'
- . ........
- 2 next-header size 2 next-header size
- *************************************************************************
- 24 + ? 27 + ? 26
- -----------------------------------------------------------------------------
- $@3H(J 1 ext-type 1 ext-type
- $@D%(J . ........ . ........
- $@It(J 2 next-header size 2 next-header size
- $@J,(J
- -----------------------------------------------------------------------------
-
- a. $@%X%C%@$N<oN`(J
-
- level-0 $@%X%C%@(J
- $@=>Mh$N(J LHarc, LArc $@$HF1$87A<0$G$9!#%G%#%l%/%H(J$@%jL>$N6h@Z$j$O(J '\'
- $@$rI8=`$H$7$F$$$^$9!#(J
-
- level-1 $@%X%C%@(J
- $@4{DjCM$G$3$N%X%C%@(J$@$,:n@.$5$l$^$9!#(J-x0 $@$G:n@.$5$l$?(J -lh0- $@$N=q8K(J
- $@$O(J LHarc $@$G2rE`2DG=$G$9$,!"2rE`;~$K(J CRC $@%A%'%C(J$@%/$O9T$o$l$^$;$s!#(J
-
- level-2 $@%X%C%@(J
- $@D9$$%U%!%$%kL>$r%5%]!<%H$9$k$?$a$N%X%C%@$G$9!#>-(J$@MhE*$K$OK\%X%C(J
- $@%@$rI8=`$H$7$?$$$N$G!"(JLH $@4XO"$N%f!<%F%#%j%F%#$r:n@.$5$l$kJ}$O:#8e(J
- $@=`(J$@5r$7$F$/$@$5$k$h$&$K$*4j$$$7$^$9!#(J
-
- b. $@E`7k!&2rE`2DG=$J(J method ID $@$K$D$$$F(J
-
- * $@$O:n@.2DG=(J$@$J(J method
-
- -lh0- * no compression
-
- -lh1- * 4k sliding dictionary(max 60 bytes) + dynamic Huffman
- + fixed encoding of position
-
- -lh2- 8k sliding dictionary(max 256 bytes) + dynamic Huffman
-
- -lh3- 8k sliding dictionary(max 256 bytes) + static Huffman
-
- -lh4- * 4k sliding dictionary(max 256 bytes) + static Huffman
- + improved encoding of position and trees
-
- -lh5- * 8k sliding dictionary(max 256 bytes) + static Huffman
- + improved encoding of position and trees
-
- -lzs- 2k sliding dictionary(max 17 bytes)
-
- -lz4- no compression
-
- -lz5- 4k sliding dictionary(max 17 bytes)
-
- c. OS ID $@$K$D$$$F(J
-
- $@8=:_$N$H$3$m!"0J2<$N(J ID $@$rM=Ls$7$F$$$^$9!#(J
-
- MS-DOS 'M'
- OS/2 '2'
- OS9 '9'
- OS/68K 'K'
- OS/386 '3'
- HUMAN 'H'
- UNIX 'U'
- CP/M 'C'
- FLEX 'F'
- Mac 'm'
- Runser 'R'
-
- B. $@3HD%ItJ,(J
-
- a. OS $@Hs0MB8(J (0x00 - 0x3f)
-
- common header
- 1 0x00
- 2 header crc
- ( 1 information )
- 2 next-header size
-
- filename header
- 1 0x01
- ? filename
- 2 next-header size
-
- dirname header
- 1 0x02
- ? dirname
- 2 next-header size
-
- comment header
- 1 0x3f
- ? comments
- 2 next-header size
-
- ($@0J>e!"5H:j;a$N(J lhx.doc $@$h$j(J)
- ----------------------------------------------------------------
- LHa for UNIX $@3HD%%X%C%@;EMM(J
-
- $@!&0MB8>pJs$N<oN`(J($@3JG<$9$Y$->pJs(J)
- UNIX $@$K0MB8$9$k>pJs$G5-O?$9$Y$-$O0J2<$N$b$N$G$"$k!#(J
- (1) $@%Q!<%_%C%7%g%s(J
- (2) GID,UID
- (3) $@%0%k!<%W(J$@L>!"%f!<%6L>(J
- (4) $@:G=*JQ99;~9o(J(UNIX time)
-
- $@!&0MB8>pJs$N%?%$%W(J(ext-type)
- $@3HD%%X%C%@$N@hF,(J1$@%P%$%H(J$@$K$O>pJs$,2?$r<($9$b$N(J
- $@$+<1JL$9$k$?$a$NCM$,3JG<$5$l$F$$$k!#(J
- UNIX$@0MB8>pJs$H$7$F(J 0x50 - 0x54 $@$r;HMQ(J$@$9$k!#(J
-
- $@!&0MB8>pJs$N3JG<J}K!(J
- $@>e5-(J (1) - (4) $@$r$=$l$>$lJL$N%?%$%W$H$9$k!#(J
-
- (1)$@%Q!<%_%C%7%g%s(J
- size $@CM(J
- 1 0x50
- 2 $@%Q!<%_%C%7%g%sCM(J
- 2 next-header size
-
- (2)GID,UID
- size $@CM(J
- 1 0x51
- 2 GID
- 2 UID
- 2 next-header size
-
- (3)-1 $@%0%k!<%WL>(J
- 1 0x52
- ? $@%0%k!<%WL>J8;zNs(J
- 2 next-header size
-
- (3)-2 $@%f!<%6L>(J
- 1 0x53
- ? $@%f!<%6L>J8;zNs(J
- 2 next-header size
-
- (4) $@:G=*JQ99;~(J$@9o(J (for header_level1)
- 1 0x54
- 4 UNIX $@;~4V(J
- 2 next-header size
-
- $@!&(JLHa for UNIX ver 1.00 $@$G$N(J$@<BAu(J
- $@>e5-(J(3)$@$r%5%]!<%H$7$F$$$J$$!#(J
- (3)$@$N%0%k!<%WL>!"%f!<%6L>$N>pJs$r4^$`=q8K$r:n@.$9$k$3$H(J
- $@$O$J(J$@$/!"E83+;~$K$OL5;k$9$k!#(J
- $@$^$?!"(J(4)$@$O%X%C%@%l%Y%k(J1$@$N=q8K$K$N$_4^$^$l$k!#(J
- ----------------------------------------------------------------
- $@0J>e!#(J
-
- $@2-(J $@>!(J (Masaru Oki)
- oki@wbg.telcom.oki.co.jp
-