1/* header.doc (In Japanese) */ 2LHa for UNIX �ǻ��Ѥ����إå���¤�ˤĤ��� Mar. 2, 1992, Masaru Oki. 3 4---------------------------------------------------------------- 5 �ܥС������Ǥϲ���Ū�����֤Ȥ���3����Υإå��������Ѱդ���level-1 6 ������ͤȤ��Ƥ��ޤ���������Ū�ˤϥѥ�̾��ʸ���������¤Τʤ� level-2�� 7 ���줹�����ˤǤ��� 8 9 10 A. �إå��λ��� 11 12----------------------------------------------------------------------------- 13 level-0 level-1 level-2 14----------------------------------------------------------------------------- 15 1 header size 1 header size 2 total header size 16 1 header sum 1 header sum 17 5 method ID 5 method ID 5 method ID 18�� 4 packed size 4 skip size 4 packed size 19 4 original size 4 original size 4 original size 20�� 2 time 2 time 4 time(UNIX type) 21 2 date 2 date 22�� 1 attribute 1 0x20 1 RESERVED 23 1 level 0x00 1 level 0x01 1 level 0x02 24ʬ 1 name length 1 name length 25 ? pathname ? filename 26 2 file crc 2 file crc 2 file crc 27 . ........ 1 OS ID 'U' 1 OS ID 'U' 28 . ........ 29 2 next-header size 2 next-header size 30 ************************************************************************* 31 24 + ? 27 + ? 26 32----------------------------------------------------------------------------- 33�� 1 ext-type 1 ext-type 34ĥ . ........ . ........ 35�� 2 next-header size 2 next-header size 36ʬ 37----------------------------------------------------------------------------- 38 39 a. �إå��μ��� 40 41 level-0 �إå� 42 ����� LHarc, LArc ��Ʊ�������Ǥ����ǥ��쥯�ȥ�̾�ζ��ڤ�� '\' 43 ��ɸ��Ȥ��Ƥ��ޤ��� 44 45 level-1 �إå� 46 �����ͤǤ��Υإå�����������ޤ���-x0 �Ǻ������줿 -lh0- �ν�� 47 �� LHarc �Dz����ǽ�Ǥ������������ CRC �����å��ϹԤ��ޤ��� 48 49 level-2 �إå� 50 Ĺ���ե�����̾�ݡ��Ȥ��뤿��Υإå��Ǥ�������Ū�ˤ��ܥإ� 51 ����ɸ��Ȥ������Τǡ�LH ��Ϣ�Υ桼�ƥ���ƥ��������������Ϻ��� 52 ��Ƥ�������褦�ˤ��ꤤ���ޤ��� 53 54 b. ��롦�����ǽ�� method ID �ˤĤ��� 55 56 * �Ϻ�����ǽ�� method 57 58 -lh0- * no compression 59 60 -lh1- * 4k sliding dictionary(max 60 bytes) + dynamic Huffman 61 + fixed encoding of position 62 63 -lh2- 8k sliding dictionary(max 256 bytes) + dynamic Huffman 64 65 -lh3- 8k sliding dictionary(max 256 bytes) + static Huffman 66 67 -lh4- * 4k sliding dictionary(max 256 bytes) + static Huffman 68 + improved encoding of position and trees 69 70 -lh5- * 8k sliding dictionary(max 256 bytes) + static Huffman 71 + improved encoding of position and trees 72 73 -lh6- 32k sliding dictionary(max 256 bytes) + static Huffman 74 + improved encoding of position and trees 75 76 -lh7- 64k sliding dictionary(max 256 bytes) + static Huffman 77 + improved encoding of position and trees 78 79 -lzs- 2k sliding dictionary(max 17 bytes) 80 81 -lz4- no compression 82 83 -lz5- 4k sliding dictionary(max 17 bytes) 84 85 c. OS ID �ˤĤ��� 86 87 ���ߤΤȤ����ʲ��� ID ��ͽ�Ƥ��ޤ��� 88 89 MS-DOS 'M' 90 OS/2 '2' 91 OS9 '9' 92 OS/68K 'K' 93 OS/386 '3' 94 HUMAN 'H' 95 UNIX 'U' 96 CP/M 'C' 97 FLEX 'F' 98 Mac 'm' 99 Runser 'R' 100 101 B. ��ĥ��ʬ 102 103 a. OS ���¸ (0x00 - 0x3f) 104 105 common header 106 1 0x00 107 2 header crc 108 ( 1 information ) 109 2 next-header size 110 111 filename header 112 1 0x01 113 ? filename 114 2 next-header size 115 116 dirname header 117 1 0x02 118 ? dirname 119 2 next-header size 120 121 comment header 122 1 0x3f 123 ? comments 124 2 next-header size 125 126(�ʾ塢�Ⱥ��� lhx.doc ���) 127---------------------------------------------------------------- 128LHa for UNIX ��ĥ�إå����� 129 130����¸����μ���(��Ǽ���٤�����) 131 UNIX �˰�¸�������ǵ�Ͽ���٤��ϰʲ��Τ�ΤǤ��롣 132 (1) �ѡ��ߥå���� 133 (2) GID,UID 134 (3) ���롼��̾���桼��̾ 135 (4) �ǽ��ѹ�����(UNIX time) 136 137����¸����Υ�����(ext-type) 138 ��ĥ�إå�����Ƭ1�Х��ȤˤϾ�������� 139 �����̤��뤿����ͤ���Ǽ����Ƥ��롣 140 UNIX��¸����Ȥ��� 0x50 - 0x54 ����Ѥ��롣 141 142����¸����γ�Ǽ��ˡ 143 �嵭 (1) - (4) �줾���̤Υ����פȤ��롣 144 145 (1)�ѡ��ߥå���� 146 size �� 147 1 0x50 148 2 �ѡ��ߥå������ 149 2 next-header size 150 151 (2)GID,UID 152 size �� 153 1 0x51 154 2 GID 155 2 UID 156 2 next-header size 157 158 (3)-1 ���롼��̾ 159 1 0x52 160 ? ���롼��̾ʸ���� 161 2 next-header size 162 163 (3)-2 �桼��̾ 164 1 0x53 165 ? �桼��̾ʸ���� 166 2 next-header size 167 168 (4) �ǽ��ѹ����� (for header_level1) 169 1 0x54 170 4 UNIX ���� 171 2 next-header size 172 173��LHa for UNIX ver 1.14 �Ǥμ������ʺ�� 174 �嵭(3)�ݡ��Ȥ��Ƥ��ʤ��� 175 (3)�Υ��롼��̾���桼��̾�ξ����ޤ��ˤ�������뤳�� 176 �Ϥʤ���Ÿ�����ˤ�̵�뤹�롣 177 �ޤ���(4)�ϥإå���٥�1�ν�ˤˤΤߴޤޤ�롣 178 179 (3) ���������褦�ˤ��Ƥߤޤ�����Ÿ���Ȱ���ɽ���ΤȤ��� (3) 180 �ξ������ ID ��ͥ�褷�ޤ��� 181 ������ configure ���ץ���� --enable-user-name-header ����ꤷ�� 182 build �����Ȥ���ͭ���ˤʤ�ޤ���(2002-06-04 ����) 183 184---------------------------------------------------------------- 185�ʾ塣 186 187�������ѡ� 188�ʺꡡ��δ (Nobutaka Watazaki) 189watazaki@shimadzu.co.jp 190