What on earth happened to platform.h?
Gilles Espinasse
g.esp at free.fr
Wed Oct 27 06:25:34 UTC 2010
----- Original Message -----
From: "Rob Landley" <rob at landley.net>
To: "Denys Vlasenko" <vda.linux at googlemail.com>
Cc: <busybox at busybox.net>
Sent: Wednesday, October 27, 2010 5:14 AM
Subject: Re: What on earth happened to platform.h?
>
> And while we're at it, I should add the magic probes for "tar xvf
> thing.tar.gz" and such, since there are easily identifiable headers for
gz,
> bz2, and uncompressed file formats all in the first couple dozen bytes.
(The
> lack of any lzma identifying magic is lzma's problem, but we can always
fall
> back to attempting that one for unknown types...)
>
xz-5.0.0 has been released a few days ago, and have it's own magic so lzma
without magic is really the past. Gnu tar know those magic
{ ct_tar },
{ ct_none, },
{ ct_compress, 2, "\037\235", COMPRESS_PROGRAM, "-Z" },
{ ct_gzip, 2, "\037\213", GZIP_PROGRAM, "-z" },
{ ct_bzip2, 3, "BZh", BZIP2_PROGRAM, "-j" },
{ ct_lzip, 4, "LZIP", LZIP_PROGRAM, "--lzip" },
{ ct_lzma, 6, "\xFFLZMA", LZMA_PROGRAM, "--lzma" },
{ ct_lzop, 4, "\211LZO", LZOP_PROGRAM, "--lzop" },
{ ct_xz, 6, "\xFD" "7zXZ", XZ_PROGRAM, "-J" },
Gilles
More information about the busybox
mailing list