============================================================
	TAR32.DLL tH[}bgt@C
                   		by g Pv
                   		email:QWF00133@niftyserve.or.jp
                   		date: 1998/05/31
============================================================
()\[XR[hȂǂɒׂ̂łBЂƂԈႢ
邩܂B

ڎF
1)Tar`̃tH[}bg
2)Tar`wb_[
3)GZIP`

------------------------------------------------------------------------------
1)Tar`̃tH[}bg
  Tar`͈ȉ̂悤Ƀwb_[ƃf[^݂ɑ݂܂Bwb_[512bytełBf[^̈512byte̔{ɂȂ悤0ŋl߂܂B

	----------
	wb_[P
	----------
	f[^P
	----------
	wb_[Q
	----------
	f[^Q
	----------
	EEE

-----------------------------------------------------------------------------
2)Tar`wb_[
  Tar`̃wb_[͈ȉ̂悤512byte̍\̂łBGfBẢe󂯂Ȃ悤ɁA2byteȏ̐8iƂĊi[Ă܂B
	
	1:t@C		100byte
	2:			8byte
	3:[U[ID		8byte
	4:O[vID		8byte
	5:t@CTCY	12byte
	6:XV		12byte
	7:`FbNT		8byte
	8:^Cv		1byte
	9:Nt@C	100byte
  	10:}WbNR[h/o[Wԍ	8byte(6byte+2byte)	
	11:[U		32byte
	12:O[v		32byte
	13:W[foCXԍ	8byte
	14:}Ci[foCXԍ	8byte
		ȉGNU Tar`
	15:ŏIANZX	12byte
	16:t@C쐬	12byte
	17:ItZbg		12byte

  1:t@C
	t@CłBt@C100byte𒴂ꍇ͂ɂ́A"././@LongLink"܂B̏ꍇAۂ̃t@C̒́u5:t@CTCYvɐݒ肳Aۂ̃t@C̓f[^̈ɓ܂B
  
  2:
  	t@C̑(16bit)8i̕ƂĊi[܂Berbg̈Ӗ͈ȉ̂ƂłB
  	
  	15bit	ʏ̃t@C
  	14bit	fBNg
  	13bit	LN^[^XyVt@C
  	12bit	pCv
  	11bit	set UID
  	10bit	set GID
  	9bit	sticky bit
  	8bit	I[i[̓ǂݍݑ
  	7bit	I[i[̏ݑ
  	6bit	I[i[̎s
  	5bit	O[v̓ǂݍݑ
  	4bit	O[v̏ݑ
  	3bit	O[v̎s
  	2bit	l̓ǂݍݑ
  	1bit	l̏ݑ
  	0bit	l̎s

  3:[UID
  	t@CL҂̃[UIDB0root킷B
  
  4:O[vID
  	t@CL҂̃O[vIDB0root킷B
  
  5:t@CTCY
  	t@CTCY8i̕ł킷B
  
  6:XV
  	XV8ił킷B
  
  7:`FbNT
  	wb_[(512byte)16bit`FbNTBu7:`FbNTvg̓Xy[X(0x20)8Ŗ܂ĂƍlČvZB

  8:^Cv
  	ȉ̂ꂩݒ肳B
  	
  	'0'(0x30)	ʏ̃t@C
  	0		ʏ̃t@C(V7tH[}bg)
  	'1'(0x31)	link to previously dumped file
  	'2'(0x32)	V{bNN
  	'3'(0x33)	LN^^foCX
  	'4'(0x34)	ubN^foCX
  	'5'(0x35)	fBNg
  	'6'(0x36)	FIFOXyVt@C
  	'7'(0x37)	contiguous file
  	'D'		This is dir entry that contains the names of files
  			that were in the dir at the time the dump was made.
  	'K'		f[^̈ɃNt@Ci[ĂB
  	'L'		f[^̈Ƀt@Ci[ĂB
  	'M'		This is the continuation of a file that began on
  			another volume.(}`{[̂Q߈ȍ~?)
  	'N'		For storing filenames that didn't fit in 100
  			charactors.
  	'S'		This is for sparse files.
  	'V'		This file is a tape/volume header. Ignore it on
  			extraction.(}`{[̂P?)
  
  9:Nt@C
  	u8:^Cvv'1''2'(N)̂ƂɃNt@Cݒ肳܂B
  10:}WbNR[h/o[Wԍ
  	ŏ6byte"ustar"AŌ2byteɃo[Wԍ"00"܂BGNU TaȑꍇA8byte"ustar  "܂B

  11:[U
  	t@CL҂̃[U񂪓܂B
  
  12:O[v
  	t@CL҂̃O[v񂪓܂B

  13:W[foCXԍ
  	^Cv'3''4'(foCXt@C)̂Ƃɐݒ肳B
  
  14:}Ci[foCXԍ
  	^Cv'3''4'(foCXt@C)̂Ƃɐݒ肳B

  15:ŏIANZX

  16:t@C쐬

  17:ItZbg
	?
---------------------------------------------------------------------------
3)GZIP`
  GZIP`͈ȉ̂悤ȍ\ɂȂĂ܂Bl̓gEGfBA(傫)ł킳܂B
	1:}WbNio[	2byte
		0x1f, 0x8b(\037, \213)
	2:k@		1byte
		deflate:	8(0x08)
		͗\
	3:tO		1byte
		bit0:	eLXgt@C
		bit1:	}`p[ggzipt@C2߈ȍ~
		bit2:	ʂȗ̈悪
		bit3:	t@C
		bit4:	Rg
		bit5:	t@C͈ÍĂ
	4:ŏIXV		4byte
		Unix`Bt@CłȂꍇ͈kB
	5:gtO		1byte
	6:t@C쐬OS̎	1byte
		MSDOS:	0x00
		OS/2:	0x06
		Win32:	0x0b
		VAX/VMS:0x02
		AMIGA:	0x01
		ATARI:	0x05
		MACOS:	0x07
		Prime/PRIMOS: 0x0F
		TOPS20:	0x0a
		UNIX:	0x03
	7:IvVɂp[gԍ(2Ԗڂ̃p[g1ł)	2byte͂Ȃ
		tObit1ZbgĂƂ̂ݑ݂B
	8:IvVɂʂȗ̈̒			2byte͂Ȃ
		tObit2ZbgĂƂ̂ݑ݂B
	9:IvVɂʂȗ̈				?byte͂Ȃ
		u8:IvVɂʂȗ̈̒v݂B
	10:IvVɂ錳̃t@C			?byte͂Ȃ
		tObit3ZbgĂƂ̂ݑ݂B
		NULL(0x00)ŏIĂB
	11:IvVɂ錳̃t@C̃Rg		?byte͂Ȃ
		tObit4ZbgĂƂ̂ݑ݂B
		NULL(0x00)ŏIĂB
	12:IvVɂÍwb_				12byte͂Ȃ
		tObit5ZbgĂƂ̂ݑ݂B
	13:kf[^						?byte
	14:32rbgCRC						4byte
	15:t@CTCY					4byte
		2^32ȏ̂Ƃ2^32Ŋ܂B

-------------------------------------------------------------------------
