home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
lha100bt.zip
/
lha-1.00
/
header.doc
< prev
next >
Wrap
Text File
|
1992-04-04
|
6KB
|
177 lines
/* header.doc (In Japanese) */
LHa for UNIX $B$G;HMQ$5$l$k%X%C%@9=B$$K$D$$$F(J Mar. 2, 1992, Masaru Oki.
----------------------------------------------------------------
$BK\%P!<%8%g%s$G$O2aEOE*$JA<CV$H$7$F(J3$B<oN`$N%X%C%@7A<0$rMQ0U$7!"(Jlevel-1
$B$r4{DjCM$H$7$F$$$^$9$,!">-MhE*$K$O%Q%9L>$NJ8;z?t$K@)8B$N$J$$(J level-2$B$K(J
$BE}0l$9$kJ}?K$G$9!#(J
A. $B%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
$B4p(J 4 packed size 4 skip size 4 packed size
4 original size 4 original size 4 original size
$BK\(J 2 time 2 time 4 time(UNIX type)
2 date 2 date
$BIt(J 1 attribute 1 0x20 1 RESERVED
1 level 0x00 1 level 0x01 1 level 0x02
$BJ,(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
-----------------------------------------------------------------------------
$B3H(J 1 ext-type 1 ext-type
$BD%(J . ........ . ........
$BIt(J 2 next-header size 2 next-header size
$BJ,(J
-----------------------------------------------------------------------------
a. $B%X%C%@$N<oN`(J
level-0 $B%X%C%@(J
$B=>Mh$N(J LHarc, LArc $B$HF1$87A<0$G$9!#%G%#%l%/%H%jL>$N6h@Z$j$O(J '\'
$B$rI8=`$H$7$F$$$^$9!#(J
level-1 $B%X%C%@(J
$B4{DjCM$G$3$N%X%C%@$,:n@.$5$l$^$9!#(J-x0 $B$G:n@.$5$l$?(J -lh0- $B$N=q8K(J
$B$O(J LHarc $B$G2rE`2DG=$G$9$,!"2rE`;~$K(J CRC $B%A%'%C%/$O9T$o$l$^$;$s!#(J
level-2 $B%X%C%@(J
$BD9$$%U%!%$%kL>$r%5%]!<%H$9$k$?$a$N%X%C%@$G$9!#>-MhE*$K$OK\%X%C(J
$B%@$rI8=`$H$7$?$$$N$G!"(JLH $B4XO"$N%f!<%F%#%j%F%#$r:n@.$5$l$kJ}$O:#8e(J
$B=`5r$7$F$/$@$5$k$h$&$K$*4j$$$7$^$9!#(J
b. $BE`7k!&2rE`2DG=$J(J method ID $B$K$D$$$F(J
* $B$O:n@.2DG=$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 $B$K$D$$$F(J
$B8=:_$N$H$3$m!"0J2<$N(J ID $B$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. $B3HD%ItJ,(J
a. OS $BHs0MB8(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
($B0J>e!"5H:j;a$N(J lhx.doc $B$h$j(J)
----------------------------------------------------------------
LHa for UNIX $B3HD%%X%C%@;EMM(J
$B!&0MB8>pJs$N<oN`(J($B3JG<$9$Y$->pJs(J)
UNIX $B$K0MB8$9$k>pJs$G5-O?$9$Y$-$O0J2<$N$b$N$G$"$k!#(J
(1) $B%Q!<%_%C%7%g%s(J
(2) GID,UID
(3) $B%0%k!<%WL>!"%f!<%6L>(J
(4) $B:G=*JQ99;~9o(J(UNIX time)
$B!&0MB8>pJs$N%?%$%W(J(ext-type)
$B3HD%%X%C%@$N@hF,(J1$B%P%$%H$K$O>pJs$,2?$r<($9$b$N(J
$B$+<1JL$9$k$?$a$NCM$,3JG<$5$l$F$$$k!#(J
UNIX$B0MB8>pJs$H$7$F(J 0x50 - 0x54 $B$r;HMQ$9$k!#(J
$B!&0MB8>pJs$N3JG<J}K!(J
$B>e5-(J (1) - (4) $B$r$=$l$>$lJL$N%?%$%W$H$9$k!#(J
(1)$B%Q!<%_%C%7%g%s(J
size $BCM(J
1 0x50
2 $B%Q!<%_%C%7%g%sCM(J
2 next-header size
(2)GID,UID
size $BCM(J
1 0x51
2 GID
2 UID
2 next-header size
(3)-1 $B%0%k!<%WL>(J
1 0x52
? $B%0%k!<%WL>J8;zNs(J
2 next-header size
(3)-2 $B%f!<%6L>(J
1 0x53
? $B%f!<%6L>J8;zNs(J
2 next-header size
(4) $B:G=*JQ99;~9o(J (for header_level1)
1 0x54
4 UNIX $B;~4V(J
2 next-header size
$B!&(JLHa for UNIX ver 1.00 $B$G$N<BAu(J
$B>e5-(J(3)$B$r%5%]!<%H$7$F$$$J$$!#(J
(3)$B$N%0%k!<%WL>!"%f!<%6L>$N>pJs$r4^$`=q8K$r:n@.$9$k$3$H(J
$B$O$J$/!"E83+;~$K$OL5;k$9$k!#(J
$B$^$?!"(J(4)$B$O%X%C%@%l%Y%k(J1$B$N=q8K$K$N$_4^$^$l$k!#(J
----------------------------------------------------------------
$B0J>e!#(J
$B2-(J $B>!(J (Masaru Oki)
oki@wbg.telcom.oki.co.jp