Virgin import of Christos Zoulas's FILE 5.09.
This commit is contained in:
parent
b873e82fed
commit
dacc26abaa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/file/dist/; revision=226048 svn path=/vendor/file/5.09/; revision=234249; tag=vendor/file/5.09
254
ChangeLog
254
ChangeLog
@ -1,3 +1,257 @@
|
||||
2011-09-01 12:12 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Don't wait for any subprocess, just the one we forked.
|
||||
|
||||
2011-08-26 16:40 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* If the application name is not set in a cdf file, try to see
|
||||
if it has a directory with the application name on it.
|
||||
|
||||
2011-08-17 14:32 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix ELF lseek(2) madness. Inspired by PR/134 by Jan Kaluza
|
||||
|
||||
2011-08-14 09:03 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Don't use variable string formats.
|
||||
|
||||
2011-07-12 12:32 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Fix detection of Zip files (Mantis #128).
|
||||
* Make some minor improvements to file(1).
|
||||
* Rename MIME types for filesystem objects for consistency with
|
||||
xdg-utils. Typically this means that application/x-foo becomes
|
||||
inode/foo, but some names also change slightly, e.g.
|
||||
application/x-character-device becomes inode/chardevice.
|
||||
|
||||
2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* fix mingw compilation (Abradoks)
|
||||
|
||||
2011-05-10 20:57 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* remove patchlevel.h
|
||||
* Fix read past allocated memory caused by double-incrementing
|
||||
a pointer in a loop (reported by Roberto Maar)
|
||||
|
||||
2011-03-30 15:45 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix cdf string buffer setting (Sven Anders)
|
||||
|
||||
2011-03-20 16:35 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Eliminate MAXPATHLEN and use dynamic allocation for
|
||||
path and file buffers.
|
||||
|
||||
2011-03-15 18:15 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* binary tests on magic entries with masks could spuriously
|
||||
get converted to ascii.
|
||||
|
||||
2011-03-12 18:06 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Improve file.man (remove BUGS, present email addresses consistently).
|
||||
|
||||
2011-03-07 19:38 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* add lrzip support (from Ville Skytta)
|
||||
|
||||
2011-02-10 16:36 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* fix CDF bounds checking (Guy Helmer)
|
||||
|
||||
2011-02-10 12:03 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* add cdf_ctime() that prints a meaningful error when time cannot
|
||||
be converted.
|
||||
|
||||
2011-02-02 20:40 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* help and version output to stdout.
|
||||
|
||||
* When matching softmagic for ascii files, don't just print
|
||||
the softmagic classification, keep going and print the
|
||||
text classification too. This fixes broken troff files when
|
||||
we moved them from keyword recognition to softmagic
|
||||
(they stopped printing "with CRLF" etc.)
|
||||
Reported by Doug McIlroy.
|
||||
|
||||
2011-01-16 19:31 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Fix two potential buffer overruns in apprentice_list.
|
||||
|
||||
2011-01-14 22:33 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* New Python binding in pure Python.
|
||||
* Update libmagic(3).
|
||||
|
||||
2011-01-06 21:40 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Fix Python bindings (including recent Python 3 compatibility
|
||||
update).
|
||||
|
||||
2011-01-04 18:43 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* magic/Makefile.am: make it easier to recover from magic build failures.
|
||||
* Fix pstring length specifier parsing to avoid generating invalid
|
||||
magic files.
|
||||
* Add pstring length "J" (for "JPEG") to specify that the length
|
||||
include itself.
|
||||
* Fix JPEG comment parsing at last using pstring/HJ!
|
||||
* Ignore section 5 man pages in doc/.cvsignore.
|
||||
|
||||
2010-12-22 13:12 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Add pstring/BHhLl to specify the type of the length of pascal
|
||||
strings.
|
||||
|
||||
2010-11-26 18:39 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Fix "-e soft": it was ignored when softmagic was called
|
||||
during asciimagic.
|
||||
* Improve comments and use "unsigned char" in tar.h/is_tar.c.
|
||||
|
||||
2010-11-05 17:26 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Make bug reporting addresses more visible.
|
||||
|
||||
2010-11-01 18:35 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Add tcl magic from Gustaf Neumann
|
||||
|
||||
2010-10-24 10:42 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix the whitespace comparing code (Christopher Chittleborough)
|
||||
|
||||
2010-10-06 21:05 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* allow string/t to work (Jan Kaluza)
|
||||
|
||||
2010-09-20 22:11 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Apply some patches from Ubuntu and Fedora.
|
||||
|
||||
2010-09-20 21:16 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Apply all patches from Debian package 5.04-6 which have not
|
||||
already been applied and are not Debian-specific.
|
||||
|
||||
2010-09-20 15:24 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Minor security fix to softmagic.c (don't use untrusted
|
||||
string as printf format).
|
||||
|
||||
2010-07-21 12:20 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* MINGW32 portability from LRN
|
||||
|
||||
* Don't warn about escaping magic regex chars when we are in a regex.
|
||||
|
||||
2010-07-19 10:55 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Only try to print prpsinfo for core files. (Jan Kaluza)
|
||||
|
||||
2010-04-22 12:55 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Try more elf offsets for Debian core files. (Arnaud Giersch)
|
||||
|
||||
2010-02-20 15:18 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Clarify which sort of CDF we mean.
|
||||
|
||||
2010-02-14 22:58 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Re-jig Zip file type magic so that unsupported special
|
||||
Zip types (those with "mimetype" at offset 30) can be
|
||||
recognized.
|
||||
|
||||
2010-02-02 21:50 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Add support for OCF (EPUB) files (application/epub+zip)
|
||||
|
||||
2010-01-28 18:25 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix core-dump from unbound loop:
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=533245
|
||||
|
||||
2010-01-22 15:45 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* print proper mime for crystal reports file
|
||||
|
||||
* print the last summary information of a cdf document, not the
|
||||
first so that nested documents print the right info
|
||||
|
||||
2010-01-16 18:42 Charles Longeau <chl@tuxfamily.org>
|
||||
|
||||
* bring back some fixes from OpenBSD:
|
||||
- make gcc2 builds file
|
||||
- fix typos in a magic file comment
|
||||
|
||||
2009-11-17 18:35 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* ctime/asctime can return NULL on some OS's although
|
||||
they should not (Toshit Antani)
|
||||
|
||||
2009-09-14 13:49 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Centralize magic path handling routines and remove the
|
||||
special-casing from file.c so that the python module for
|
||||
example comes up with the same magic path (Fixes ~/.magic
|
||||
handling) (from Gab)
|
||||
|
||||
2009-09-11 23:38 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* When magic argument is a directory, read the files in
|
||||
strcmp-sorted order (fixes Debian bug #488562 and our own FIXME).
|
||||
|
||||
2009-09-11 13:11 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Combine overlapping epoc and psion magic files into one (epoc).
|
||||
|
||||
* Add some more EPOC MIME types.
|
||||
|
||||
2009-08-19 15:55 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix 3 bugs (From Ian Darwin):
|
||||
- file_showstr could move one past the end of the array
|
||||
- parse_apple did not nul terminate the string in the overflow case
|
||||
- parse_mime truncated the wrong string in the overflow case
|
||||
|
||||
2009-08-12 12:28 Robert Byrnes <byrnes@wildpumpkin.net>
|
||||
|
||||
* Include Localstuff when compiling magic.
|
||||
|
||||
2009-07-15 10:05 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Fix logic for including mygetopts.h
|
||||
|
||||
* Make cdf.c compile again with debugging
|
||||
|
||||
* Add the necessary field handling for crystal reports files to work
|
||||
|
||||
2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Stop "(if" identifying Lisp files, that's plain dumb!
|
||||
|
||||
2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Add a couple of missing MP3 MIME types.
|
||||
|
||||
2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
* Add full range of hash-bang tests for Python and Ruby.
|
||||
|
||||
* Add MIME types for Python and Ruby scripts.
|
||||
|
||||
2009-05-13 10:44 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* off by one in parsing hw capabilities in elf
|
||||
(Cheng Renquan)
|
||||
|
||||
2009-05-08 13:40 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* lint fixes and more from NetBSD
|
||||
|
||||
2009-05-06 10:25 Christos Zoulas <christos@zoulas.com>
|
||||
|
||||
* Avoid null dereference in cdf code (Drew Yao)
|
||||
|
@ -1,31 +0,0 @@
|
||||
# ex:ts=8
|
||||
$FreeBSD: vendor/file/dist/contrib/file/FREEBSD-upgrade 169962 2007-05-24 21:59:38Z obrien $
|
||||
|
||||
Christos Zoulas `file'
|
||||
originals can be found at: ftp://ftp.astron.com/pub/file/
|
||||
|
||||
Imported by:
|
||||
|
||||
mv magic/* .
|
||||
rmdir magic
|
||||
mv -n src/* .
|
||||
mv src/Makefile.am Makefile.am-src
|
||||
rm -rf src
|
||||
mv -n doc/* .
|
||||
rm -rf doc
|
||||
rm -rf python
|
||||
rm -f lt*
|
||||
rm -f missing depcomp
|
||||
rm -f config.{guess,sub}
|
||||
|
||||
cvs import -m "Virgin import of Christos Zoulas's FILE 5.00." \
|
||||
src/contrib/file ZOULAS file_5_00
|
||||
|
||||
|
||||
Never make local changes to ZOULAS `file'. Christos is very willing to
|
||||
work with us to meet our FreeBSD needs. Thus submit any desired changes
|
||||
to him <christos@zoulas.com> and wait for the next release and vendor
|
||||
import to get them.
|
||||
|
||||
obrien@NUXI.com
|
||||
15-April-2009
|
6
Header
6
Header
@ -1,5 +1,5 @@
|
||||
# Magic
|
||||
# Magic data for file(1) command.
|
||||
# Machine-generated from src/cmd/file/magdir/*; edit there only!
|
||||
# Format is described in magic(files), where:
|
||||
# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.
|
||||
# files is 5 on V7 and BSD, 4 on SV, and ?? on SVID.
|
||||
# Don't edit this file, edit /etc/magic or send your magic improvements
|
||||
# to the maintainers, at file@mx.gw.com
|
||||
|
197
INSTALL
197
INSTALL
@ -2,18 +2,24 @@ Installation Instructions
|
||||
*************************
|
||||
|
||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
||||
2006 Free Software Foundation, Inc.
|
||||
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
|
||||
This file is free documentation; the Free Software Foundation gives
|
||||
unlimited permission to copy, distribute and modify it.
|
||||
Copying and distribution of this file, with or without modification,
|
||||
are permitted in any medium without royalty provided the copyright
|
||||
notice and this notice are preserved. This file is offered as-is,
|
||||
without warranty of any kind.
|
||||
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
Briefly, the shell commands `./configure; make; make install' should
|
||||
Briefly, the shell commands `./configure; make; make install' should
|
||||
configure, build, and install this package. The following
|
||||
more-detailed instructions are generic; see the `README' file for
|
||||
instructions specific to this package.
|
||||
instructions specific to this package. Some packages provide this
|
||||
`INSTALL' file but do not implement all of the features documented
|
||||
below. The lack of an optional feature in a given package is not
|
||||
necessarily a bug. More recommendations for GNU packages can be found
|
||||
in *note Makefile Conventions: (standards)Makefile Conventions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
@ -42,7 +48,7 @@ may remove or edit it.
|
||||
you want to change it or regenerate `configure' using a newer version
|
||||
of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system.
|
||||
@ -53,12 +59,22 @@ The simplest way to compile this package is:
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
the package, generally using the just-built uninstalled binaries.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
documentation. When installing into a prefix owned by root, it is
|
||||
recommended that the package be configured and built as a regular
|
||||
user, and only the `make install' phase executed with root
|
||||
privileges.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
5. Optionally, type `make installcheck' to repeat any self-tests, but
|
||||
this time using the binaries in their final installed location.
|
||||
This target does not install anything. Running this target as a
|
||||
regular user, particularly if the prior `make install' required
|
||||
root privileges, verifies that the installation completed
|
||||
correctly.
|
||||
|
||||
6. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
@ -67,12 +83,22 @@ The simplest way to compile this package is:
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
7. Often, you can also type `make uninstall' to remove the installed
|
||||
files again. In practice, not all packages have tested that
|
||||
uninstallation works correctly, even though it is required by the
|
||||
GNU Coding Standards.
|
||||
|
||||
8. Some packages, particularly those that use Automake, provide `make
|
||||
distcheck', which can by used by developers to test that all other
|
||||
targets like `make install' and `make uninstall' work correctly.
|
||||
This target is generally not run by end users.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that the
|
||||
`configure' script does not know about. Run `./configure --help' for
|
||||
details on some of the pertinent environment variables.
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. Run `./configure --help'
|
||||
for details on some of the pertinent environment variables.
|
||||
|
||||
You can give `configure' initial values for configuration parameters
|
||||
by setting variables in the command line or in the environment. Here
|
||||
@ -85,25 +111,41 @@ is an example:
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you can use GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
source code in the directory that `configure' is in and in `..'. This
|
||||
is known as a "VPATH" build.
|
||||
|
||||
With a non-GNU `make', it is safer to compile the package for one
|
||||
architecture at a time in the source code directory. After you have
|
||||
installed the package for one architecture, use `make distclean' before
|
||||
reconfiguring for another architecture.
|
||||
|
||||
On MacOS X 10.5 and later systems, you can create libraries and
|
||||
executables that work on multiple system types--known as "fat" or
|
||||
"universal" binaries--by specifying multiple `-arch' options to the
|
||||
compiler but only a single `-arch' option to the preprocessor. Like
|
||||
this:
|
||||
|
||||
./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
|
||||
CPP="gcc -E" CXXCPP="g++ -E"
|
||||
|
||||
This is not guaranteed to produce working output in all cases, you
|
||||
may have to build one architecture at a time and combine the results
|
||||
using the `lipo' tool if you have problems.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' installs the package's commands under
|
||||
By default, `make install' installs the package's commands under
|
||||
`/usr/local/bin', include files under `/usr/local/include', etc. You
|
||||
can specify an installation prefix other than `/usr/local' by giving
|
||||
`configure' the option `--prefix=PREFIX'.
|
||||
`configure' the option `--prefix=PREFIX', where PREFIX must be an
|
||||
absolute file name.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
@ -114,16 +156,47 @@ Documentation and other data files still use the regular prefix.
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=DIR' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
you can set and what kinds of files go in them. In general, the
|
||||
default for these options is expressed in terms of `${prefix}', so that
|
||||
specifying just `--prefix' will affect all of the other directory
|
||||
specifications that were not explicitly provided.
|
||||
|
||||
The most portable way to affect installation locations is to pass the
|
||||
correct locations to `configure'; however, many packages provide one or
|
||||
both of the following shortcuts of passing variable assignments to the
|
||||
`make install' command line to change installation locations without
|
||||
having to reconfigure or recompile.
|
||||
|
||||
The first method involves providing an override variable for each
|
||||
affected directory. For example, `make install
|
||||
prefix=/alternate/directory' will choose an alternate location for all
|
||||
directory configuration variables that were expressed in terms of
|
||||
`${prefix}'. Any directories that were specified during `configure',
|
||||
but not in terms of `${prefix}', must each be overridden at install
|
||||
time for the entire installation to be relocated. The approach of
|
||||
makefile variable overrides for each directory variable is required by
|
||||
the GNU Coding Standards, and ideally causes no recompilation.
|
||||
However, some platforms have known limitations with the semantics of
|
||||
shared libraries that end up requiring recompilation when using this
|
||||
method, particularly noticeable in packages that use GNU Libtool.
|
||||
|
||||
The second method involves providing the `DESTDIR' variable. For
|
||||
example, `make install DESTDIR=/alternate/directory' will prepend
|
||||
`/alternate/directory' before all installation names. The approach of
|
||||
`DESTDIR' overrides is not required by the GNU Coding Standards, and
|
||||
does not work on platforms that have drive letters. On the other hand,
|
||||
it does better at avoiding recompilation issues, and works well even
|
||||
when some directory options were not specified in terms of `${prefix}'
|
||||
at `configure' time.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
@ -135,14 +208,53 @@ find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Some packages offer the ability to configure how verbose the
|
||||
execution of `make' will be. For these packages, running `./configure
|
||||
--enable-silent-rules' sets the default to minimal output, which can be
|
||||
overridden with `make V=1'; while running `./configure
|
||||
--disable-silent-rules' sets the default to verbose, which can be
|
||||
overridden with `make V=0'.
|
||||
|
||||
Particular systems
|
||||
==================
|
||||
|
||||
On HP-UX, the default C compiler is not ANSI C compatible. If GNU
|
||||
CC is not installed, it is recommended to use the following options in
|
||||
order to use an ANSI C compiler:
|
||||
|
||||
./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
|
||||
|
||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||
|
||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||
to try
|
||||
|
||||
./configure CC="cc"
|
||||
|
||||
and if that doesn't work, try
|
||||
|
||||
./configure CC="cc -nodtk"
|
||||
|
||||
On Solaris, don't put `/usr/ucb' early in your `PATH'. This
|
||||
directory contains several dysfunctional programs; working variants of
|
||||
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
|
||||
in your `PATH', put it _after_ `/usr/bin'.
|
||||
|
||||
On Haiku, software installed for all users goes in `/boot/common',
|
||||
not `/usr/local'. It is recommended to use the following options:
|
||||
|
||||
./configure --prefix=/boot/common
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' cannot figure out automatically,
|
||||
but needs to determine by the type of machine the package will run on.
|
||||
Usually, assuming the package is built to be run on the _same_
|
||||
architectures, `configure' can figure that out, but if it prints a
|
||||
message saying it cannot guess the machine type, give it the
|
||||
There may be some features `configure' cannot figure out
|
||||
automatically, but needs to determine by the type of machine the package
|
||||
will run on. Usually, assuming the package is built to be run on the
|
||||
_same_ architectures, `configure' can figure that out, but if it prints
|
||||
a message saying it cannot guess the machine type, give it the
|
||||
`--build=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
@ -150,7 +262,8 @@ type, such as `sun4', or a canonical name which has the form:
|
||||
|
||||
where SYSTEM can have one of these forms:
|
||||
|
||||
OS KERNEL-OS
|
||||
OS
|
||||
KERNEL-OS
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
@ -168,9 +281,9 @@ eventually be run) with `--host=TYPE'.
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share, you
|
||||
can create a site shell script called `config.site' that gives default
|
||||
values for variables like `CC', `cache_file', and `prefix'.
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
@ -179,7 +292,7 @@ A warning: not all `configure' scripts look for a site script.
|
||||
Defining Variables
|
||||
==================
|
||||
|
||||
Variables not defined in a site shell script can be set in the
|
||||
Variables not defined in a site shell script can be set in the
|
||||
environment passed to `configure'. However, some packages may run
|
||||
configure again during the build, and the customized values of these
|
||||
variables may be lost. In order to avoid this problem, you should set
|
||||
@ -198,11 +311,19 @@ an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||
`configure' Invocation
|
||||
======================
|
||||
|
||||
`configure' recognizes the following options to control how it operates.
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--help'
|
||||
`-h'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
Print a summary of all of the options to `configure', and exit.
|
||||
|
||||
`--help=short'
|
||||
`--help=recursive'
|
||||
Print a summary of the options unique to this package's
|
||||
`configure', and exit. The `short' variant lists options used
|
||||
only in the top level, while the `recursive' variant lists options
|
||||
also present in any nested packages.
|
||||
|
||||
`--version'
|
||||
`-V'
|
||||
@ -229,6 +350,16 @@ an Autoconf bug. Until the bug is fixed you can use this workaround:
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--prefix=DIR'
|
||||
Use DIR as the installation prefix. *note Installation Names::
|
||||
for more details, including other options available for fine-tuning
|
||||
the installation locations.
|
||||
|
||||
`--no-create'
|
||||
`-n'
|
||||
Run the configure checks, but stop before creating any output
|
||||
files.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options. Run
|
||||
`configure --help' for more details.
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: acorn,v 1.5 2009/09/19 16:28:07 christos Exp $
|
||||
# acorn: file(1) magic for files found on Acorn systems
|
||||
#
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: adi,v 1.4 2009/09/19 16:28:07 christos Exp $
|
||||
# adi: file(1) magic for ADi's objects
|
||||
# From Gregory McGarry <g.mcgarry@ieee.org>
|
||||
#
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: adventure,v 1.13 2010/12/31 16:32:54 christos Exp $
|
||||
# adventure: file(1) magic for Adventure game files
|
||||
#
|
||||
# from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
|
||||
@ -16,18 +17,26 @@
|
||||
# Infocom (see z-machine)
|
||||
#------------------------------------------------------------------------------
|
||||
# Z-machine: file(1) magic for Z-machine binaries.
|
||||
# Updated by Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
#
|
||||
# This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which
|
||||
# appears to be a version-0 Z-machine binary.
|
||||
#http://www.gnelson.demon.co.uk/zspec/sect11.html
|
||||
#http://www.jczorkmid.net/~jpenney/ZSpec11-latest.txt
|
||||
#http://en.wikipedia.org/wiki/Z-machine
|
||||
# The first byte is the Z-machine revision; it is always between 1 and 8. We
|
||||
# had false matches (for instance, inbig5.ocp from the Omega TeX extension as
|
||||
# well as an occasional MP3 file), so we sanity-check the version number.
|
||||
#
|
||||
# The (false match) message is to correct that behavior. Perhaps it is
|
||||
# not needed.
|
||||
# It might be possible to sanity-check the release number as well, as it seems
|
||||
# (at least in classic Infocom games) to always be a relatively small number,
|
||||
# always under 150 or so, but as this isn't rigorous, we'll wait on that until
|
||||
# it becomes clear that it's needed.
|
||||
#
|
||||
16 belong&0xfe00f0f0 0x3030 Infocom game data
|
||||
>0 ubyte 0 (false match)
|
||||
>0 ubyte >0 (Z-machine %d,
|
||||
>>2 ubeshort x Release %d /
|
||||
>>18 string >\0 Serial %.6s)
|
||||
0 ubyte >0
|
||||
>0 ubyte <9
|
||||
>>16 belong&0xfe00f0f0 0x3030 Infocom game data
|
||||
>>>0 ubyte x (Z-machine %d,
|
||||
>>>>2 ubeshort x Release %d /
|
||||
>>>>18 string >\0 Serial %.6s)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Glulx: file(1) magic for Glulx binaries.
|
||||
@ -45,10 +54,9 @@
|
||||
# For Quetzal and blorb magic see iff
|
||||
|
||||
|
||||
# TADS (Text Adventure Development System)
|
||||
# TADS (Text Adventure Development System) version 2
|
||||
# All files are machine-independent (games compile to byte-code) and are tagged
|
||||
# with a version string of the form "V2.<digit>.<digit>\0" (but TADS 3 is
|
||||
# on the way).
|
||||
# with a version string of the form "V2.<digit>.<digit>\0".
|
||||
# Game files start with "TADS2 bin\n\r\032\0" then the compiler version.
|
||||
0 string TADS2\ bin TADS
|
||||
>9 belong !0x0A0D1A00 game data, CORRUPTED
|
||||
@ -73,6 +81,19 @@
|
||||
>10 belong 0x0A0D1A00
|
||||
>>14 string >\0 %s saved game data
|
||||
|
||||
# TADS (Text Adventure Development System) version 3
|
||||
# Game files start with "T3-image\015\012\032"
|
||||
0 string T3-image\015\012\032
|
||||
>11 leshort x TADS 3 game data (format version %d)
|
||||
# Saved game files start with "T3-state-v####\015\012\032"
|
||||
# where #### is a format version number
|
||||
0 string T3-state-v
|
||||
>14 string \015\012\032 TADS 3 saved game data (format version
|
||||
>>10 byte x %c
|
||||
>>11 byte x \b%c
|
||||
>>12 byte x \b%c
|
||||
>>13 byte x \b%c)
|
||||
|
||||
# Danny Milosavljevic <danny.milo@gmx.net>
|
||||
# this are adrift (adventure game standard) game files, extension .taf
|
||||
# depending on version magic continues with 0x93453E6139FA (V 4.0)
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: allegro,v 1.4 2009/09/19 16:28:07 christos Exp $
|
||||
# allegro: file(1) magic for Allegro datafiles
|
||||
# Toby Deshane <hac@shoelace.digivill.net>
|
||||
#
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: alliant,v 1.7 2009/09/19 16:28:07 christos Exp $
|
||||
# alliant: file(1) magic for Alliant FX series a.out files
|
||||
#
|
||||
# If the FX series is the one that had a processor with a 68K-derived
|
||||
|
30
Magdir/alpha
30
Magdir/alpha
@ -1,30 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# alpha architecture description
|
||||
#
|
||||
|
||||
0 leshort 0603 COFF format alpha
|
||||
>22 leshort&030000 !020000 executable
|
||||
>24 leshort 0410 pure
|
||||
>24 leshort 0413 paged
|
||||
>22 leshort&020000 !0 dynamically linked
|
||||
>16 lelong !0 not stripped
|
||||
>16 lelong 0 stripped
|
||||
>22 leshort&030000 020000 shared library
|
||||
>24 leshort 0407 object
|
||||
>27 byte x - version %d
|
||||
>26 byte x .%d
|
||||
>28 byte x -%d
|
||||
|
||||
# Basic recognition of Digital UNIX core dumps - Mike Bremford <mike@opac.bl.uk>
|
||||
#
|
||||
# The actual magic number is just "Core", followed by a 2-byte version
|
||||
# number; however, treating any file that begins with "Core" as a Digital
|
||||
# UNIX core dump file may produce too many false hits, so we include one
|
||||
# byte of the version number as well; DU 5.0 appears only to be up to
|
||||
# version 2.
|
||||
#
|
||||
0 string Core\001 Alpha COFF format core dump (Digital UNIX)
|
||||
>24 string >\0 \b, from '%s'
|
||||
0 string Core\002 Alpha COFF format core dump (Digital UNIX)
|
||||
>24 string >\0 \b, from '%s'
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: amanda,v 1.5 2009/09/19 16:28:07 christos Exp $
|
||||
# amanda: file(1) magic for amanda file format
|
||||
#
|
||||
0 string AMANDA:\ AMANDA
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: amigaos,v 1.14 2009/09/19 16:28:07 christos Exp $
|
||||
# amigaos: file(1) magic for AmigaOS binary formats:
|
||||
|
||||
#
|
||||
|
104
Magdir/animation
104
Magdir/animation
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: animation,v 1.45 2011/09/06 11:00:06 christos Exp $
|
||||
# animation: file(1) magic for animation/movie formats
|
||||
#
|
||||
# animation formats
|
||||
@ -29,7 +30,7 @@
|
||||
#!:mime image/x-quicktime
|
||||
4 string pckg Apple QuickTime compressed archive
|
||||
!:mime application/x-quicktime-player
|
||||
4 string/B jP JPEG 2000 image
|
||||
4 string/W jP JPEG 2000 image
|
||||
!:mime image/jp2
|
||||
4 string ftyp ISO Media
|
||||
>8 string isom \b, MPEG v4 system, version 1
|
||||
@ -41,10 +42,18 @@
|
||||
!:mime video/mp4
|
||||
>8 string mp7t \b, MPEG v4 system, MPEG v7 XML
|
||||
>8 string mp7b \b, MPEG v4 system, MPEG v7 binary XML
|
||||
>8 string/B jp2 \b, JPEG 2000
|
||||
>8 string/W jp2 \b, JPEG 2000
|
||||
!:mime image/jp2
|
||||
>8 string 3ge \b, MPEG v4 system, 3GPP
|
||||
!:mime video/3gpp
|
||||
>8 string 3gg \b, MPEG v4 system, 3GPP
|
||||
!:mime video/3gpp
|
||||
>8 string 3gp \b, MPEG v4 system, 3GPP
|
||||
!:mime video/3gpp
|
||||
>8 string 3gs \b, MPEG v4 system, 3GPP
|
||||
!:mime video/3gpp
|
||||
>8 string 3g2 \b, MPEG v4 system, 3GPP2
|
||||
!:mime video/3gpp2
|
||||
>>11 byte 4 \b v4 (H.263/AMR GSM 6.10)
|
||||
>>11 byte 5 \b v5 (H.263/AMR GSM 6.10)
|
||||
>>11 byte 6 \b v6 (ITU H.264/AMR GSM 6.10)
|
||||
@ -52,13 +61,13 @@
|
||||
!:mime video/mp4
|
||||
>8 string avc1 \b, MPEG v4 system, 3GPP JVT AVC
|
||||
!:mime video/3gpp
|
||||
>8 string/B M4A \b, MPEG v4 system, iTunes AAC-LC
|
||||
>8 string/W M4A \b, MPEG v4 system, iTunes AAC-LC
|
||||
!:mime audio/mp4
|
||||
>8 string/B M4V \b, MPEG v4 system, iTunes AVC-LC
|
||||
>8 string/W M4V \b, MPEG v4 system, iTunes AVC-LC
|
||||
!:mime video/mp4
|
||||
>8 string/B M4P \b, MPEG v4 system, iTunes AES encrypted
|
||||
>8 string/B M4B \b, MPEG v4 system, iTunes bookmarked
|
||||
>8 string/B qt \b, Apple QuickTime movie
|
||||
>8 string/W M4P \b, MPEG v4 system, iTunes AES encrypted
|
||||
>8 string/W M4B \b, MPEG v4 system, iTunes bookmarked
|
||||
>8 string/W qt \b, Apple QuickTime movie
|
||||
!:mime video/quicktime
|
||||
|
||||
# MPEG sequences
|
||||
@ -71,6 +80,7 @@
|
||||
>>7 byte x \b @ L %u
|
||||
0 belong&0xFFFFFF00 0x00000100
|
||||
>3 byte 0xBA MPEG sequence
|
||||
!:mime video/mpeg
|
||||
>>4 byte &0x40 \b, v2, program multiplex
|
||||
>>4 byte ^0x40 \b, v1, system multiplex
|
||||
>3 byte 0xBB MPEG sequence, v1/2, multiplex (missing pack header)
|
||||
@ -80,6 +90,7 @@
|
||||
>>4 byte 88 \b, extended
|
||||
>>6 byte x \b @ L %u
|
||||
>3 byte 0xB0 MPEG sequence, v4
|
||||
!:mime video/mpeg4-generic
|
||||
>>5 belong 0x000001B5
|
||||
>>>9 byte &0x80
|
||||
>>>>10 byte&0xF0 16 \b, video
|
||||
@ -149,6 +160,7 @@
|
||||
>>4 byte 252 \b, FGS @ L4
|
||||
>>4 byte 253 \b, FGS @ L5
|
||||
>3 byte 0xB5 MPEG sequence, v4
|
||||
!:mime video/mpeg4-generic
|
||||
>>4 byte &0x80
|
||||
>>>5 byte&0xF0 16 \b, video (missing profile header)
|
||||
>>>5 byte&0xF0 32 \b, still texture (missing profile header)
|
||||
@ -159,6 +171,7 @@
|
||||
>>4 byte&0xF8 24 \b, mesh (missing profile header)
|
||||
>>4 byte&0xF8 32 \b, face (missing profile header)
|
||||
>3 byte 0xB3 MPEG sequence
|
||||
!:mime video/mpeg
|
||||
>>12 belong 0x000001B8 \b, v1, progressive Y'CbCr 4:2:0 video
|
||||
>>12 belong 0x000001B2 \b, v1, progressive Y'CbCr 4:2:0 video
|
||||
>>12 belong 0x000001B5 \b, v2,
|
||||
@ -469,6 +482,7 @@
|
||||
|
||||
# MPA, M2A
|
||||
0 beshort&0xFFFE 0xFFF6 MPEG ADTS, layer I, v2
|
||||
!:mime audio/mpeg
|
||||
# rate
|
||||
>2 byte&0xF0 0x10 \b, 32 kbps
|
||||
>2 byte&0xF0 0x20 \b, 48 kbps
|
||||
@ -503,6 +517,7 @@
|
||||
|
||||
# MP3, M25A
|
||||
0 beshort&0xFFFE 0xFFE2 MPEG ADTS, layer III, v2.5
|
||||
!:mime audio/mpeg
|
||||
# rate
|
||||
>2 byte&0xF0 0x10 \b, 8 kbps
|
||||
>2 byte&0xF0 0x20 \b, 16 kbps
|
||||
@ -697,6 +712,7 @@
|
||||
|
||||
# Microsoft Advanced Streaming Format (ASF) <mpruett@sgi.com>
|
||||
0 belong 0x3026b275 Microsoft ASF
|
||||
!:mime video/x-ms-asf
|
||||
|
||||
# MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
|
||||
0 string \x8aMNG MNG video data,
|
||||
@ -718,16 +734,16 @@
|
||||
3 string \x0D\x0AVersion:Vivo Vivo video data
|
||||
|
||||
# VRML (Virtual Reality Modelling Language)
|
||||
0 string/b #VRML\ V1.0\ ascii VRML 1 file
|
||||
0 string/w #VRML\ V1.0\ ascii VRML 1 file
|
||||
!:mime model/vrml
|
||||
0 string/b #VRML\ V2.0\ utf8 ISO/IEC 14772 VRML 97 file
|
||||
0 string/w #VRML\ V2.0\ utf8 ISO/IEC 14772 VRML 97 file
|
||||
!:mime model/vrml
|
||||
|
||||
# X3D (Extensible 3D) [http://www.web3d.org/specifications/x3d-3.0.dtd]
|
||||
# From Michel Briand <michelbriand@free.fr>
|
||||
0 string \<?xml\ version="
|
||||
0 string/t \<?xml\ version="
|
||||
!:strength +1
|
||||
>20 search/1000/cb \<!DOCTYPE\ X3D X3D (Extensible 3D) model xml text
|
||||
>20 search/1000/cw \<!DOCTYPE\ X3D X3D (Extensible 3D) model xml text
|
||||
!:mime model/x3d
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
@ -794,7 +810,8 @@
|
||||
!:mime video/h264
|
||||
|
||||
# Type: Bink Video
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=3DBink_Container
|
||||
# Extension: .bik
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Bink_Container
|
||||
# From: <hoehle@users.sourceforge.net> 2008-07-18
|
||||
0 string BIK Bink Video
|
||||
>3 regex =[a-z] rev.%s
|
||||
@ -813,3 +830,66 @@
|
||||
>>51 byte&0x20 !0 stereo
|
||||
#>>51 byte&0x10 0 FFT
|
||||
#>>51 byte&0x10 !0 DCT
|
||||
|
||||
# Type: NUT Container
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=NUT
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
0 string nut/multimedia\ container\0 NUT multimedia container
|
||||
|
||||
# Type: Nullsoft Video (NSV)
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Nullsoft_Video
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string NSVf Nullsoft Video
|
||||
|
||||
# Type: REDCode Video
|
||||
# URL: http://www.red.com/ ; http://wiki.multimedia.cx/index.php?title=REDCode
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
4 string RED1 REDCode Video
|
||||
|
||||
# Type: MTV Multimedia File
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=MTV
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string AMVS MTV Multimedia File
|
||||
|
||||
# Type: ARMovie
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=ARMovie
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string ARMovie\012 ARMovie
|
||||
|
||||
# Type: Interplay MVE Movie
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Interplay_MVE
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string Interplay\040MVE\040File\032 Interplay MVE Movie
|
||||
|
||||
# Type: Windows Television DVR File
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=WTV
|
||||
# From: Mike Melanson <mike@mutlimedia.cx>
|
||||
# This takes the form of a Windows-style GUID
|
||||
0 bequad 0xB7D800203749DA11
|
||||
>8 bequad 0xA64E0007E95EAD8D Windows Television DVR Media
|
||||
|
||||
# Type: Sega FILM/CPK Multimedia
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Sega_FILM
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string FILM Sega FILM/CPK Multimedia,
|
||||
>32 belong x %d x
|
||||
>28 belong x %d
|
||||
|
||||
# Type: Nintendo THP Multimedia
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=THP
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string THP\0 Nintendo THP Multimedia
|
||||
|
||||
# Type: BBC Dirac Video
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Dirac
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string BBCD BBC Dirac Video
|
||||
|
||||
# Type: RAD Game Tools Smacker Multimedia
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=Smacker
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string SMK RAD Game Tools Smacker Multimedia
|
||||
>3 byte x version %c,
|
||||
>4 lelong x %d x
|
||||
>8 lelong x %d,
|
||||
>12 lelong x %d frames
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: apl,v 1.6 2009/09/19 16:28:07 christos Exp $
|
||||
# apl: file(1) magic for APL (see also "pdp" and "vax" for other APL
|
||||
# workspaces)
|
||||
#
|
||||
|
@ -1,7 +1,9 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: apple,v 1.24 2010/11/25 15:00:12 christos Exp $
|
||||
# apple: file(1) magic for Apple file formats
|
||||
#
|
||||
0 search/1 FiLeStArTfIlEsTaRt binscii (apple ][) text
|
||||
0 search/1/t FiLeStArTfIlEsTaRt binscii (apple ][) text
|
||||
0 string \x0aGL Binary II (apple ][) data
|
||||
0 string \x76\xff Squeezed (apple ][) data
|
||||
0 string NuFile NuFile archive (apple ][) data
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: applix,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# applix: file(1) magic for Applixware
|
||||
# From: Peter Soos <sp@osb.hu>
|
||||
#
|
||||
|
267
Magdir/archive
267
Magdir/archive
@ -1,4 +1,5 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: archive,v 1.68 2011/09/07 15:47:51 christos Exp $
|
||||
# archive: file(1) magic for archive formats (see also "msdos" for self-
|
||||
# extracting compressed archives)
|
||||
#
|
||||
@ -243,13 +244,13 @@
|
||||
# MS Compress
|
||||
4 string \x88\xf0\x27 MS Compress archive data
|
||||
# updated by Joerg Jenderek
|
||||
>9 string \0
|
||||
>>0 string KWAJ
|
||||
>9 string \0
|
||||
>>0 string KWAJ
|
||||
>>>7 string \321\003 MS Compress archive data
|
||||
>>>>14 ulong >0 \b, original size: %ld bytes
|
||||
>>>>18 ubyte >0x65
|
||||
>>>>>18 string x \b, was %.8s
|
||||
>>>>>(10.b-4) string x \b.%.3s
|
||||
>>>>18 ubyte >0x65
|
||||
>>>>>18 string x \b, was %.8s
|
||||
>>>>>(10.b-4) string x \b.%.3s
|
||||
# MP3 (archiver, not lossy audio compression)
|
||||
0 string MP3\x1a MP3-Archiver archive data
|
||||
# ZET
|
||||
@ -274,7 +275,7 @@
|
||||
# Splint
|
||||
0 string \x93\xb9\x06 Splint archive data
|
||||
# InstallShield
|
||||
0 string \x13\x5d\x65\x8c InstallShield Z archive Data
|
||||
0 string \x13\x5d\x65\x8c InstallShield Z archive Data
|
||||
# Gather
|
||||
1 string GTH Gather archive data
|
||||
# BOA
|
||||
@ -533,7 +534,7 @@
|
||||
>20 byte x - header level %d
|
||||
# taken from idarc [JW]
|
||||
2 string -lZ PUT archive data
|
||||
2 string -lz LZS archive data
|
||||
2 string -lz LZS archive data
|
||||
2 string -sw1- Swag archive data
|
||||
|
||||
# RAR archiver (Greg Roelofs, newt@uchicago.edu)
|
||||
@ -560,79 +561,140 @@
|
||||
# [JW] see exe section for self-extracting version
|
||||
0 string UC2\x1a UC2 archive data
|
||||
|
||||
# ZIP archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
|
||||
# PKZIP multi-volume archive
|
||||
0 string PK\x07\x08PK\x03\x04 Zip multi-volume archive data, at least PKZIP v2.50 to extract
|
||||
!:mime application/zip
|
||||
|
||||
# Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
|
||||
0 string PK\003\004
|
||||
>4 byte 0x00 Zip archive data
|
||||
!:mime application/zip
|
||||
>4 byte 0x09 Zip archive data, at least v0.9 to extract
|
||||
!:mime application/zip
|
||||
>4 byte 0x0a Zip archive data, at least v1.0 to extract
|
||||
!:mime application/zip
|
||||
>4 byte 0x0b Zip archive data, at least v1.1 to extract
|
||||
!:mime application/zip
|
||||
>0x161 string WINZIP Zip archive data, WinZIP self-extracting
|
||||
!:mime application/zip
|
||||
>4 byte 0x14
|
||||
>>30 ubelong !0x6d696d65 Zip archive data, at least v2.0 to extract
|
||||
!:mime application/zip
|
||||
|
||||
# OpenOffice.org / KOffice / StarOffice documents
|
||||
# Listed here because they ARE zip files
|
||||
#
|
||||
# From: Abel Cheung <abel@oaka.org>
|
||||
>4 byte 0x14
|
||||
>>30 string mimetype
|
||||
# Specialised zip formats which start with a member named 'mimetype'
|
||||
# (stored uncompressed, with no 'extra field') containing the file's MIME type.
|
||||
# Check for have 8-byte name, 0-byte extra field, name "mimetype", and
|
||||
# contents starting with "application/":
|
||||
>26 string \x8\0\0\0mimetypeapplication/
|
||||
|
||||
# KOffice (1.2 or above) formats
|
||||
>>>50 string vnd.kde. KOffice (>=1.2)
|
||||
>>>>58 string karbon Karbon document
|
||||
>>>>58 string kchart KChart document
|
||||
>>>>58 string kformula KFormula document
|
||||
>>>>58 string kivio Kivio document
|
||||
>>>>58 string kontour Kontour document
|
||||
>>>>58 string kpresenter KPresenter document
|
||||
>>>>58 string kspread KSpread document
|
||||
>>>>58 string kword KWord document
|
||||
# KOffice / OpenOffice & StarOffice / OpenDocument formats
|
||||
# From: Abel Cheung <abel@oaka.org>
|
||||
|
||||
# OpenOffice formats (for OpenOffice 1.x / StarOffice 6/7)
|
||||
>>>50 string vnd.sun.xml. OpenOffice.org 1.x
|
||||
>>>>62 string writer Writer
|
||||
>>>>>68 byte !0x2e document
|
||||
>>>>>68 string .template template
|
||||
>>>>>68 string .global global document
|
||||
>>>>62 string calc Calc
|
||||
>>>>>66 byte !0x2e spreadsheet
|
||||
>>>>>66 string .template template
|
||||
>>>>62 string draw Draw
|
||||
>>>>>66 byte !0x2e document
|
||||
>>>>>66 string .template template
|
||||
>>>>62 string impress Impress
|
||||
>>>>>69 byte !0x2e presentation
|
||||
>>>>>69 string .template template
|
||||
>>>>62 string math Math document
|
||||
>>>>62 string base Database file
|
||||
# KOffice (1.2 or above) formats
|
||||
# (mimetype contains "application/vnd.kde.<SUBTYPE>")
|
||||
>>50 string vnd.kde. KOffice (>=1.2)
|
||||
>>>58 string karbon Karbon document
|
||||
>>>58 string kchart KChart document
|
||||
>>>58 string kformula KFormula document
|
||||
>>>58 string kivio Kivio document
|
||||
>>>58 string kontour Kontour document
|
||||
>>>58 string kpresenter KPresenter document
|
||||
>>>58 string kspread KSpread document
|
||||
>>>58 string kword KWord document
|
||||
|
||||
# OpenDocument formats (for OpenOffice 2.x / StarOffice >= 8)
|
||||
# http://lists.oasis-open.org/archives/office/200505/msg00006.html
|
||||
>>>50 string vnd.oasis.opendocument. OpenDocument
|
||||
>>>>73 string text
|
||||
>>>>>77 byte !0x2d Text
|
||||
# OpenOffice formats (for OpenOffice 1.x / StarOffice 6/7)
|
||||
# (mimetype contains "application/vnd.sun.xml.<SUBTYPE>")
|
||||
>>50 string vnd.sun.xml. OpenOffice.org 1.x
|
||||
>>>62 string writer Writer
|
||||
>>>>68 byte !0x2e document
|
||||
>>>>68 string .template template
|
||||
>>>>68 string .global global document
|
||||
>>>62 string calc Calc
|
||||
>>>>66 byte !0x2e spreadsheet
|
||||
>>>>66 string .template template
|
||||
>>>62 string draw Draw
|
||||
>>>>66 byte !0x2e document
|
||||
>>>>66 string .template template
|
||||
>>>62 string impress Impress
|
||||
>>>>69 byte !0x2e presentation
|
||||
>>>>69 string .template template
|
||||
>>>62 string math Math document
|
||||
>>>62 string base Database file
|
||||
|
||||
# OpenDocument formats (for OpenOffice 2.x / StarOffice >= 8)
|
||||
# http://lists.oasis-open.org/archives/office/200505/msg00006.html
|
||||
# (mimetype contains "application/vnd.oasis.opendocument.<SUBTYPE>")
|
||||
>>50 string vnd.oasis.opendocument. OpenDocument
|
||||
>>>73 string text
|
||||
>>>>77 byte !0x2d Text
|
||||
!:mime application/vnd.oasis.opendocument.text
|
||||
>>>>>77 string -template Text Template
|
||||
>>>>>77 string -web HTML Document Template
|
||||
>>>>>77 string -master Master Document
|
||||
>>>>73 string graphics Drawing
|
||||
>>>>>81 string -template Template
|
||||
>>>>73 string presentation Presentation
|
||||
>>>>>85 string -template Template
|
||||
>>>>73 string spreadsheet Spreadsheet
|
||||
>>>>>84 string -template Template
|
||||
>>>>73 string chart Chart
|
||||
>>>>>78 string -template Template
|
||||
>>>>73 string formula Formula
|
||||
>>>>>80 string -template Template
|
||||
>>>>73 string database Database
|
||||
>>>>73 string image Image
|
||||
>>>>77 string -template Text Template
|
||||
!:mime application/vnd.oasis.opendocument.text-template
|
||||
>>>>77 string -web HTML Document Template
|
||||
!:mime application/vnd.oasis.opendocument.text-web
|
||||
>>>>77 string -master Master Document
|
||||
!:mime application/vnd.oasis.opendocument.text-master
|
||||
>>>73 string graphics
|
||||
>>>>81 byte !0x2d Drawing
|
||||
!:mime application/vnd.oasis.opendocument.graphics
|
||||
>>>>81 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.graphics-template
|
||||
>>>73 string presentation
|
||||
>>>>85 byte !0x2d Presentation
|
||||
!:mime application/vnd.oasis.opendocument.presentation
|
||||
>>>>85 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.presentation-template
|
||||
>>>73 string spreadsheet
|
||||
>>>>84 byte !0x2d Spreadsheet
|
||||
!:mime application/vnd.oasis.opendocument.spreadsheet
|
||||
>>>>84 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.spreadsheet-template
|
||||
>>>73 string chart
|
||||
>>>>78 byte !0x2d Chart
|
||||
!:mime application/vnd.oasis.opendocument.chart
|
||||
>>>>78 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.chart-template
|
||||
>>>73 string formula
|
||||
>>>>80 byte !0x2d Formula
|
||||
!:mime application/vnd.oasis.opendocument.formula
|
||||
>>>>80 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.formula-template
|
||||
>>>73 string database Database
|
||||
!:mime application/vnd.oasis.opendocument.database
|
||||
>>>73 string image
|
||||
>>>>78 byte !0x2d Image
|
||||
!:mime application/vnd.oasis.opendocument.image
|
||||
>>>>78 string -template Template
|
||||
!:mime application/vnd.oasis.opendocument.image-template
|
||||
|
||||
# EPUB (OEBPS) books using OCF (OEBPS Container Format)
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# http://www.idpf.org/ocf/ocf1.0/download/ocf10.htm, section 4.
|
||||
# (mimetype contains "application/epub+zip")
|
||||
>>50 string epub+zip EPUB ebook data
|
||||
!:mime application/epub+zip
|
||||
|
||||
# Catch other ZIP-with-mimetype formats
|
||||
# In a ZIP file, the bytes immediately after a member's contents are
|
||||
# always "PK". The 2 regex rules here print the "mimetype" member's
|
||||
# contents up to the first 'P'. Luckily, most MIME types don't contain
|
||||
# any capital 'P's. This is a kludge.
|
||||
# (mimetype contains "application/<OTHER>")
|
||||
>>50 string !epub+zip
|
||||
>>>50 string !vnd.oasis.opendocument.
|
||||
>>>>50 string !vnd.sun.xml.
|
||||
>>>>>50 string !vnd.kde.
|
||||
>>>>>>38 regex [!-OQ-~]+ Zip data (MIME type "%s"?)
|
||||
!:mime application/zip
|
||||
# (mimetype contents other than "application/*")
|
||||
>26 string \x8\0\0\0mimetype
|
||||
>>38 string !application/
|
||||
>>>38 regex [!-OQ-~]+ Zip data (MIME type "%s"?)
|
||||
!:mime application/zip
|
||||
|
||||
# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
|
||||
# Next line excludes specialized formats:
|
||||
>26 string !\x8\0\0\0mimetype Zip archive data
|
||||
!:mime application/zip
|
||||
>>4 byte 0x09 \b, at least v0.9 to extract
|
||||
>>4 byte 0x0a \b, at least v1.0 to extract
|
||||
>>4 byte 0x0b \b, at least v1.1 to extract
|
||||
>>4 byte 0x14 \b, at least v2.0 to extract
|
||||
>>4 byte 0x2d \b, at least v3.0 to extract
|
||||
>>0x161 string WINZIP \b, WinZIP self-extracting
|
||||
|
||||
# StarView Metafile
|
||||
# From Pierre Ducroquet <pinaraf@pinaraf.info>
|
||||
0 string VCLMTF StarView MetaFile
|
||||
>6 beshort x \b, version %d
|
||||
>8 belong x \b, size %d
|
||||
|
||||
# Zoo archiver
|
||||
20 lelong 0xfdc4a7dc Zoo archive data
|
||||
@ -651,7 +713,7 @@
|
||||
!:mime application/octet-stream
|
||||
|
||||
#
|
||||
# LBR. NB: May conflict with the questionable
|
||||
# LBR. NB: May conflict with the questionable
|
||||
# "binary Computer Graphics Metafile" format.
|
||||
#
|
||||
0 string \0\ \ \ \ \ \ \ \ \ \ \ \0\0 LBR archive data
|
||||
@ -667,10 +729,10 @@
|
||||
# From Rafael Laboissiere <rafael@laboissiere.net>
|
||||
# The Project Revision Control System (see
|
||||
# http://prcs.sourceforge.net) generates a packaged project
|
||||
# file which is recognized by the following entry:
|
||||
# file which is recognized by the following entry:
|
||||
0 leshort 0xeb81 PRCS packaged project
|
||||
|
||||
# Microsoft cabinets
|
||||
# Microsoft cabinets
|
||||
# by David Necas (Yeti) <yeti@physics.muni.cz>
|
||||
#0 string MSCF\0\0\0\0 Microsoft cabinet file data,
|
||||
#>25 byte x v%d
|
||||
@ -678,7 +740,7 @@
|
||||
# MPi: All CABs have version 1.3, so this is pointless.
|
||||
# Better magic in debian-additions.
|
||||
|
||||
# GTKtalog catalogs
|
||||
# GTKtalog catalogs
|
||||
# by David Necas (Yeti) <yeti@physics.muni.cz>
|
||||
4 string gtktalog\ GTKtalog catalog data,
|
||||
>13 string 3 version 3
|
||||
@ -697,12 +759,12 @@
|
||||
!:mime application/x-bittorrent
|
||||
|
||||
# Atari MSA archive - Teemu Hukkanen <tjhukkan@iki.fi>
|
||||
0 beshort 0x0e0f Atari MSA archive data
|
||||
>2 beshort x \b, %d sectors per track
|
||||
>4 beshort 0 \b, 1 sided
|
||||
>4 beshort 1 \b, 2 sided
|
||||
>6 beshort x \b, starting track: %d
|
||||
>8 beshort x \b, ending track: %d
|
||||
0 beshort 0x0e0f Atari MSA archive data
|
||||
>2 beshort x \b, %d sectors per track
|
||||
>4 beshort 0 \b, 1 sided
|
||||
>4 beshort 1 \b, 2 sided
|
||||
>6 beshort x \b, starting track: %d
|
||||
>8 beshort x \b, ending track: %d
|
||||
|
||||
# Alternate ZIP string (amc@arwen.cs.berkeley.edu)
|
||||
0 string PK00PK\003\004 Zip archive data
|
||||
@ -747,7 +809,7 @@
|
||||
|
||||
# DR-DOS 7.03 Packed File *.??_
|
||||
0 string Packed\ File\ Personal NetWare Packed File
|
||||
>12 string x \b, was "%.12s"
|
||||
>12 string x \b, was "%.12s"
|
||||
|
||||
# EET archive
|
||||
# From: Tilman Sauerbeck <tilman@code-monkey.de>
|
||||
@ -803,3 +865,38 @@
|
||||
>24 belong 1 SHA-1 checksum
|
||||
>24 belong 2 MD5 checksum
|
||||
|
||||
# Type: Parity Archive
|
||||
# From: Daniel van Eeden <daniel_e@dds.nl>
|
||||
0 string PAR2 Parity Archive Volume Set
|
||||
|
||||
# Bacula volume format. (Volumes always start with a block header.)
|
||||
# URL: http://bacula.org/3.0.x-manuals/en/developers/developers/Block_Header.html
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
12 string BB02 Bacula volume
|
||||
>20 bedate x \b, started %s
|
||||
|
||||
# ePub is XHTML + XML inside a ZIP archive. The first member of the
|
||||
# archive must be an uncompressed file called 'mimetype' with contents
|
||||
# 'application/epub+zip'
|
||||
|
||||
# start by checking that this is a ZIP archive, then check for the
|
||||
# proper mimetype file
|
||||
# From: Ralf Brown <ralf.brown@gmail.com>
|
||||
0 string PK\003\004
|
||||
>0x1E string mimetypeapplication/epub+zip EPUB document
|
||||
!:mime application/epub+zip
|
||||
|
||||
# From: "Michał Górny" <mgorny@gentoo.org>
|
||||
# ZPAQ: http://mattmahoney.net/dc/zpaq.html
|
||||
0 string zPQ ZPAQ stream
|
||||
>3 byte x \b, level %d
|
||||
|
||||
# BBeB ebook, unencrypted (LRF format)
|
||||
# URL: http://www.sven.de/librie/Librie/LrfFormat
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
0 string L\0R\0F\0\0\0 BBeB ebook data, unencrypted
|
||||
>8 beshort x \b, version %d
|
||||
>36 byte 1 \b, front-to-back
|
||||
>36 byte 16 \b, back-to-front
|
||||
>42 beshort x \b, (%dx,
|
||||
>44 beshort x %d)
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: asterix,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# asterix: file(1) magic for Aster*x; SunOS 5.5.1 gave the 4-character
|
||||
# strings as "long" - we assume they're just strings:
|
||||
# From: guy@netapp.com (Guy Harris)
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: att3b,v 1.8 2009/09/19 16:28:08 christos Exp $
|
||||
# att3b: file(1) magic for AT&T 3B machines
|
||||
#
|
||||
# The `versions' should be un-commented if they work for you.
|
||||
|
47
Magdir/audio
47
Magdir/audio
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: audio,v 1.63 2011/09/06 11:00:06 christos Exp $
|
||||
# audio: file(1) magic for sound formats (see also "iff")
|
||||
#
|
||||
# Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
|
||||
@ -116,7 +118,7 @@
|
||||
# Real Audio (Magic .ra\0375)
|
||||
0 belong 0x2e7261fd RealAudio sound file
|
||||
!:mime audio/x-pn-realaudio
|
||||
0 string .RMF RealMedia file
|
||||
0 string .RMF\0\0\0 RealMedia file
|
||||
!:mime application/vnd.rn-realmedia
|
||||
#video/x-pn-realvideo
|
||||
#video/vnd.rn-realvideo
|
||||
@ -250,12 +252,17 @@
|
||||
>0x36 string >\0 author: "%s"
|
||||
>0x56 string >\0 copyright: "%s"
|
||||
|
||||
# IRCAM <mpruett@sgi.com>
|
||||
# VAX and MIPS files are little-endian; Sun and NeXT are big-endian
|
||||
0 belong 0x64a30100 IRCAM file (VAX)
|
||||
0 belong 0x64a30200 IRCAM file (Sun)
|
||||
# IRCAM sound files - Michael Pruett <michael@68k.org>
|
||||
# http://www-mmsp.ece.mcgill.ca/documents/AudioFormats/IRCAM/IRCAM.html
|
||||
0 belong 0x64a30100 IRCAM file (VAX little-endian)
|
||||
0 belong 0x0001a364 IRCAM file (VAX big-endian)
|
||||
0 belong 0x64a30200 IRCAM file (Sun big-endian)
|
||||
0 belong 0x0002a364 IRCAM file (Sun little-endian)
|
||||
0 belong 0x64a30300 IRCAM file (MIPS little-endian)
|
||||
0 belong 0x64a30400 IRCAM file (NeXT)
|
||||
0 belong 0x0003a364 IRCAM file (MIPS big-endian)
|
||||
0 belong 0x64a30400 IRCAM file (NeXT big-endian)
|
||||
0 belong 0x64a30400 IRCAM file (NeXT big-endian)
|
||||
0 belong 0x0004a364 IRCAM file (NeXT little-endian)
|
||||
|
||||
# NIST SPHERE <mpruett@sgi.com>
|
||||
0 string NIST_1A\n\ \ \ 1024\n NIST SPHERE file
|
||||
@ -276,8 +283,8 @@
|
||||
>21 ubyte <128 note %d,
|
||||
>22 byte =0 replay 5.485 KHz
|
||||
>22 byte =1 replay 8.084 KHz
|
||||
>22 byte =2 replay 10.971 Khz
|
||||
>22 byte =3 replay 16.168 Khz
|
||||
>22 byte =2 replay 10.971 KHz
|
||||
>22 byte =3 replay 16.168 KHz
|
||||
>22 byte =4 replay 21.942 KHz
|
||||
>22 byte =5 replay 32.336 KHz
|
||||
>22 byte =6 replay 43.885 KHz
|
||||
@ -306,6 +313,15 @@
|
||||
>122 byte&0x1 =1 PAL
|
||||
>122 byte&0x1 =0 NTSC
|
||||
|
||||
# Type: SNES SPC700 sound files
|
||||
# From: Josh Triplett <josh@freedesktop.org>
|
||||
0 string SNES-SPC700\ Sound\ File\ Data\ v SNES SPC700 sound file
|
||||
>&0 string 0.30 \b, version %s
|
||||
>>0x23 byte 0x1B \b, without ID666 tag
|
||||
>>0x23 byte 0x1A \b, with ID666 tag
|
||||
>>>0x2E string >\0 \b, song "%.32s"
|
||||
>>>0x4E string >\0 \b, game "%.32s"
|
||||
|
||||
# Impulse tracker module (audio/x-it)
|
||||
0 string IMPM Impulse Tracker module sound data -
|
||||
!:mime audio/x-mod
|
||||
@ -604,3 +620,18 @@
|
||||
# URL: http://filext.com/detaillist.php?extdetail=AMR
|
||||
# From: Russell Coker <russell@coker.com.au>
|
||||
0 string #!AMR Adaptive Multi-Rate Codec (GSM telephony)
|
||||
|
||||
# Type: SuperCollider 3 Synth Definition File Format
|
||||
# From: Mario Lang <mlang@debian.org>
|
||||
0 string SCgf SuperCollider3 Synth Definition file,
|
||||
>4 belong x version %d
|
||||
|
||||
# Type: True Audio Lossless Audio
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=True_Audio
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string TTA1 True Audio Lossless Audio
|
||||
|
||||
# Type: WavPack Lossless Audio
|
||||
# URL: http://wiki.multimedia.cx/index.php?title=WavPack
|
||||
# From: Mike Melanson <mike@multimedia.cx>
|
||||
0 string wvpk WavPack Lossless Audio
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# $File: basis,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# basis: file(1) magic for BBx/Pro5-files
|
||||
# Oliver Dammer <dammer@olida.de> 2005/11/07
|
||||
# http://www.basis.com business-basic-files.
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: bflt,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# bFLT: file(1) magic for BFLT uclinux binary files
|
||||
#
|
||||
# From Philippe De Muyter <phdm@macqel.be>
|
||||
|
25
Magdir/blcr
Normal file
25
Magdir/blcr
Normal file
@ -0,0 +1,25 @@
|
||||
# Berkeley Lab Checkpoint Restart (BLCR) checkpoint context files
|
||||
# http://ftg.lbl.gov/checkpoint
|
||||
0 string C\0\0\0R\0\0\0 BLCR
|
||||
>16 lelong 1 x86
|
||||
>16 lelong 3 alpha
|
||||
>16 lelong 5 x86-64
|
||||
>16 lelong 7 ARM
|
||||
>8 lelong x context data (little endian, version %d)
|
||||
# Uncomment the following only of your "file" program supports "search"
|
||||
#>0 search/1024 VMA\06 for kernel
|
||||
#>>&1 byte x %d.
|
||||
#>>&2 byte x %d.
|
||||
#>>&3 byte x %d
|
||||
0 string \0\0\0C\0\0\0R BLCR
|
||||
>16 belong 2 SPARC
|
||||
>16 belong 4 ppc
|
||||
>16 belong 6 ppc64
|
||||
>16 belong 7 ARMEB
|
||||
>16 belong 8 SPARC64
|
||||
>8 belong x context data (big endian, version %d)
|
||||
# Uncomment the following only of your "file" program supports "search"
|
||||
#>0 search/1024 VMA\06 for kernel
|
||||
#>>&1 byte x %d.
|
||||
#>>&2 byte x \b%d.
|
||||
#>>&3 byte x \b%d
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: blender,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# blender: file(1) magic for Blender 3D related files
|
||||
#
|
||||
# Native format rule v1.2. For questions use the developers list
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: blit,v 1.8 2009/09/19 16:28:08 christos Exp $
|
||||
# blit: file(1) magic for 68K Blit stuff as seen from 680x0 machine
|
||||
#
|
||||
# Note that this 0407 conflicts with several other a.out formats...
|
||||
|
@ -1,4 +1,6 @@
|
||||
#
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: bout,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# i80960 b.out objects and archives
|
||||
#
|
||||
0 long 0x10d i960 b.out relocatable object
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: bsdi,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# bsdi: file(1) magic for BSD/OS (from BSDI) objects
|
||||
#
|
||||
|
||||
|
9
Magdir/bsi
Normal file
9
Magdir/bsi
Normal file
@ -0,0 +1,9 @@
|
||||
# Chiasmus is a encryption standard developed by the German Federal
|
||||
# Office for Information Security (Bundesamt fuer Sicherheit in der
|
||||
# Informationstechnik).
|
||||
|
||||
# Extension: .xia
|
||||
0 string XIA1 Chiasmus encrypted data
|
||||
|
||||
# Extension: .xis
|
||||
0 string XIS Chiasmus key
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: btsnoop,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# BTSnoop: file(1) magic for BTSnoop files
|
||||
#
|
||||
# From <marcel@holtmann.org>
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: c-lang,v 1.14 2009/09/19 16:28:08 christos Exp $
|
||||
# c-lang: file(1) magic for C programs (or REXX)
|
||||
#
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: c64,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# c64: file(1) magic for various commodore 64 related files
|
||||
#
|
||||
# From: Dirk Jagdmann <doj@cubic.org>
|
||||
|
52
Magdir/cad
52
Magdir/cad
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: cad,v 1.10 2010/12/25 14:33:43 christos Exp $
|
||||
# autocad: file(1) magic for cad files
|
||||
#
|
||||
|
||||
@ -50,9 +51,54 @@
|
||||
|
||||
# AutoCad, from Nahuel Greco
|
||||
# AutoCAD DWG versions R12/R13/R14 (www.autodesk.com)
|
||||
0 string AC1012 AutoCad (release 12)
|
||||
0 string AC1013 AutoCad (release 13)
|
||||
0 string AC1014 AutoCad (release 14)
|
||||
0 string AC1012 DWG AutoDesk AutoCad (release 12)
|
||||
0 string AC1013 DWG AutoDesk AutoCad (release 13)
|
||||
0 string AC1014 DWG AutoDesk AutoCad (release 14)
|
||||
# A new version of AutoCAD DWG
|
||||
# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
|
||||
# ICQ 358572321)
|
||||
# From various sources like:
|
||||
# http://autodesk.blogs.com/between_the_lines/autocad-release-history.html
|
||||
0 string AC1018 DWG AutoDesk AutoCAD 2004/2005/2006
|
||||
0 string AC1021 DWG AutoDesk AutoCAD 2007/2008/2009
|
||||
0 string AC1024 DWG AutoDesk AutoCAD 2010/2011
|
||||
|
||||
# KOMPAS 2D drawing from ASCON
|
||||
# This is KOMPAS 2D drawing or fragment of drawing but is not detailed nor
|
||||
# gathered nor specification
|
||||
# ASCON http://ascon.net/main/ in English,
|
||||
# http://ascon.ru/ main site in Russian
|
||||
# Extension is CDW for drawing and FRW for fragment of drawing
|
||||
# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
|
||||
# ICQ 358572321, http://vkontakte.ru/id16076543)
|
||||
# From:
|
||||
# http://sd.ascon.ru/otrs/customer.pl?Action=CustomerFAQ&CategoryID=4&ItemID=292
|
||||
# (in russian) and my experiments
|
||||
0 string KF
|
||||
>2 belong 0x4E00000C Kompas drawing 12.0 SP1
|
||||
>2 belong 0x4D00000C Kompas drawing 12.0
|
||||
>2 belong 0x3200000B Kompas drawing 11.0 SP1
|
||||
>2 belong 0x3100000B Kompas drawing 11.0
|
||||
>2 belong 0x2310000A Kompas drawing 10.0 SP1
|
||||
>2 belong 0x2110000A Kompas drawing 10.0
|
||||
>2 belong 0x08000009 Kompas drawing 9.0 SP1
|
||||
>2 belong 0x05000009 Kompas drawing 9.0
|
||||
>2 belong 0x33010008 Kompas drawing 8+
|
||||
>2 belong 0x1A000008 Kompas drawing 8.0
|
||||
>2 belong 0x2C010107 Kompas drawing 7+
|
||||
>2 belong 0x05000007 Kompas drawing 7.0
|
||||
>2 belong 0x32000006 Kompas drawing 6+
|
||||
>2 belong 0x09000006 Kompas drawing 6.0
|
||||
>2 belong 0x5C009005 Kompas drawing 5.11R03
|
||||
>2 belong 0x54009005 Kompas drawing 5.11R02
|
||||
>2 belong 0x51009005 Kompas drawing 5.11R01
|
||||
>2 belong 0x22009005 Kompas drawing 5.10R03
|
||||
>2 belong 0x22009005 Kompas drawing 5.10R02 mar
|
||||
>2 belong 0x21009005 Kompas drawing 5.10R02 febr
|
||||
>2 belong 0x19009005 Kompas drawing 5.10R01
|
||||
>2 belong 0xF4008005 Kompas drawing 5.9R01.003
|
||||
>2 belong 0x1C008005 Kompas drawing 5.9R01.002
|
||||
>2 belong 0x11008005 Kompas drawing 5.8R01.003
|
||||
|
||||
# CAD: file(1) magic for computer aided design files
|
||||
# Phillip Griffith <phillip dot griffith at gmail dot com>
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: cafebabe,v 1.8 2009/09/19 16:28:08 christos Exp $
|
||||
# Cafe Babes unite!
|
||||
#
|
||||
# Since Java bytecode and Mach-O fat-files have the same magic number, the test
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: cddb,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# CDDB: file(1) magic for CDDB(tm) format CD text data files
|
||||
#
|
||||
# From <steve@gracenote.com>
|
||||
@ -7,4 +9,4 @@
|
||||
# CDDB-enabled CD player applications.
|
||||
#
|
||||
|
||||
0 search/1/b #\040xmcd CDDB(tm) format CD text data
|
||||
0 search/1/w #\040xmcd CDDB(tm) format CD text data
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: chord,v 1.5 2010/09/20 19:19:16 rrt Exp $
|
||||
# chord: file(1) magic for Chord music sheet typesetting utility input files
|
||||
#
|
||||
# From Philippe De Muyter <phdm@macqel.be>
|
||||
@ -7,3 +8,8 @@
|
||||
#
|
||||
0 string {title Chord text file
|
||||
|
||||
# Type: PowerTab file format
|
||||
# URL: http://www.power-tab.net/
|
||||
# From: Jelmer Vernooij <jelmer@samba.org>
|
||||
0 string ptab\003\000 Power-Tab v3 Tablature File
|
||||
0 string ptab\004\000 Power-Tab v4 Tablature File
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: cisco,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# cisco: file(1) magic for cisco Systems routers
|
||||
#
|
||||
# Most cisco file-formats are covered by the generic elf code
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: citrus,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# citrus locale declaration
|
||||
#
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: clarion,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# clarion: file(1) magic for # Clarion Personal/Professional Developer
|
||||
# (v2 and above)
|
||||
# From: Julien Blache <jb@jblache.org>
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: claris,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# claris: file(1) magic for claris
|
||||
# "H. Nanosecond" <aldomel@ix.netcom.com>
|
||||
# Claris Works a word processor, etc.
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: clipper,v 1.6 2009/09/19 16:28:08 christos Exp $
|
||||
# clipper: file(1) magic for Intergraph (formerly Fairchild) Clipper.
|
||||
#
|
||||
# XXX - what byte order does the Clipper use?
|
||||
|
@ -1,69 +1,74 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: commands,v 1.41 2011/05/02 12:36:41 christos Exp $
|
||||
# commands: file(1) magic for various shells and interpreters
|
||||
#
|
||||
#0 string : shell archive or script for antique kernel text
|
||||
0 string/b #!\ /bin/sh POSIX shell script text executable
|
||||
#0 string/w : shell archive or script for antique kernel text
|
||||
0 string/wt #!\ /bin/sh POSIX shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /bin/csh C shell script text executable
|
||||
0 string/wt #!\ /bin/csh C shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
# korn shell magic, sent by George Wu, gwu@clyde.att.com
|
||||
0 string/b #!\ /bin/ksh Korn shell script text executable
|
||||
0 string/wt #!\ /bin/ksh Korn shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /bin/tcsh Tenex C shell script text executable
|
||||
0 string/wt #!\ /bin/tcsh Tenex C shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/tcsh Tenex C shell script text executable
|
||||
0 string/wt #!\ /usr/bin/tcsh Tenex C shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/bin/tcsh Tenex C shell script text executable
|
||||
0 string/wt #!\ /usr/local/tcsh Tenex C shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/wt #!\ /usr/local/bin/tcsh Tenex C shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
|
||||
#
|
||||
# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
|
||||
0 string/b #!\ /bin/zsh Paul Falstad's zsh script text executable
|
||||
0 string/wt #!\ /bin/zsh Paul Falstad's zsh script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
|
||||
0 string/wt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
|
||||
0 string/wt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/bin/ash Neil Brown's ash script text executable
|
||||
0 string/wt #!\ /usr/local/bin/ash Neil Brown's ash script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/bin/ae Neil Brown's ae script text executable
|
||||
0 string/wt #!\ /usr/local/bin/ae Neil Brown's ae script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /bin/nawk new awk script text executable
|
||||
0 string/wt #!\ /bin/nawk new awk script text executable
|
||||
!:mime text/x-nawk
|
||||
0 string/b #!\ /usr/bin/nawk new awk script text executable
|
||||
0 string/wt #!\ /usr/bin/nawk new awk script text executable
|
||||
!:mime text/x-nawk
|
||||
0 string/b #!\ /usr/local/bin/nawk new awk script text executable
|
||||
0 string/wt #!\ /usr/local/bin/nawk new awk script text executable
|
||||
!:mime text/x-nawk
|
||||
0 string/b #!\ /bin/gawk GNU awk script text executable
|
||||
0 string/wt #!\ /bin/gawk GNU awk script text executable
|
||||
!:mime text/x-gawk
|
||||
0 string/b #!\ /usr/bin/gawk GNU awk script text executable
|
||||
0 string/wt #!\ /usr/bin/gawk GNU awk script text executable
|
||||
!:mime text/x-gawk
|
||||
0 string/b #!\ /usr/local/bin/gawk GNU awk script text executable
|
||||
0 string/wt #!\ /usr/local/bin/gawk GNU awk script text executable
|
||||
!:mime text/x-gawk
|
||||
#
|
||||
0 string/b #!\ /bin/awk awk script text executable
|
||||
0 string/wt #!\ /bin/awk awk script text executable
|
||||
!:mime text/x-awk
|
||||
0 string/b #!\ /usr/bin/awk awk script text executable
|
||||
0 string/wt #!\ /usr/bin/awk awk script text executable
|
||||
!:mime text/x-awk
|
||||
# update to distinguish from *.vcf files
|
||||
# this is broken because postscript has /EBEGIN{ for example.
|
||||
#0 search/Bb BEGIN { awk script text
|
||||
0 regex =^\\s*BEGIN\\s*[{] awk script text
|
||||
|
||||
# AT&T Bell Labs' Plan 9 shell
|
||||
0 string/b #!\ /bin/rc Plan 9 rc shell script text executable
|
||||
0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable
|
||||
|
||||
# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
|
||||
0 string/b #!\ /bin/bash Bourne-Again shell script text executable
|
||||
0 string/wt #!\ /bin/bash Bourne-Again shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/b #!\ /usr/local/bin/bash Bourne-Again shell script text executable
|
||||
0 string/wt #!\ /usr/bin/bash Bourne-Again shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/wt #!\ /usr/local/bash Bourne-Again shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
0 string/wt #!\ /usr/local/bin/bash Bourne-Again shell script text executable
|
||||
!:mime text/x-shellscript
|
||||
|
||||
# using env
|
||||
0 string #!/usr/bin/env a
|
||||
>15 string >\0 %s script text executable
|
||||
0 string #!\ /usr/bin/env a
|
||||
>16 string >\0 %s script text executable
|
||||
0 string/t #!/usr/bin/env a
|
||||
>15 string/t >\0 %s script text executable
|
||||
0 string/t #!\ /usr/bin/env a
|
||||
>16 string/t >\0 %s script text executable
|
||||
|
||||
# PHP scripts
|
||||
# Ulf Harnhammar <ulfh@update.uu.se>
|
||||
@ -73,11 +78,21 @@
|
||||
!:mime text/x-php
|
||||
0 search/1 =<?\r PHP script text
|
||||
!:mime text/x-php
|
||||
0 search/1/b #!\ /usr/local/bin/php PHP script text executable
|
||||
0 search/1/w #!\ /usr/local/bin/php PHP script text executable
|
||||
!:mime text/x-php
|
||||
0 search/1/b #!\ /usr/bin/php PHP script text executable
|
||||
0 search/1/w #!\ /usr/bin/php PHP script text executable
|
||||
!:mime text/x-php
|
||||
# Smarty compiled template, http://www.smarty.net/
|
||||
# Elan Ruusamäe <glen@delfi.ee>
|
||||
0 string =<?php\ /*\ Smarty\ version Smarty compiled template
|
||||
>24 regex [0-9.]+ \b, version %s
|
||||
!:mime text/x-php
|
||||
|
||||
0 string Zend\x00 PHP script Zend Optimizer data
|
||||
|
||||
0 string $! DCL command file
|
||||
0 string/t $! DCL command file
|
||||
|
||||
# Type: Pdmenu
|
||||
# URL: http://packages.debian.org/pdmenu
|
||||
# From: Edward Betts <edward@debian.org>
|
||||
0 string #!/usr/bin/pdmenu Pdmenu configuration file text
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# $File: communications,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# communication
|
||||
|
||||
# TTCN is the Tree and Tabular Combined Notation described in ISO 9646-3.
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: compress,v 1.47 2011/03/08 00:39:46 christos Exp $
|
||||
# compress: file(1) magic for pure-compression formats (no archives)
|
||||
#
|
||||
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
|
||||
@ -19,7 +19,7 @@
|
||||
# Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002
|
||||
# * Original filename is only at offset 10 if "extra field" absent
|
||||
# * Produce shorter output - notably, only report compression methods
|
||||
# other than 8 ("deflate", the only method defined in RFC 1952).
|
||||
# other than 8 ("deflate", the only method defined in RFC 1952).
|
||||
0 string \037\213 gzip compressed data
|
||||
!:mime application/x-gzip
|
||||
>2 byte <8 \b, reserved method
|
||||
@ -182,23 +182,29 @@
|
||||
>4 belong 0x090A0C0D best compression
|
||||
|
||||
# 7-zip archiver, from Thomas Klausner (wiz@danbala.tuwien.ac.at)
|
||||
# http://www.7-zip.org or DOC/7zFormat.txt
|
||||
# http://www.7-zip.org or DOC/7zFormat.txt
|
||||
#
|
||||
0 string 7z\274\257\047\034 7-zip archive data,
|
||||
>6 byte x version %d
|
||||
>7 byte x \b.%d
|
||||
!:mime application/x-7z-compressed
|
||||
|
||||
# Type: LZMA
|
||||
# URL: http://www.7-zip.org/sdk.html
|
||||
# From: Robert Millan <rmh@aybabtu.com> and Reuben Thomas <rrt@sc3d.org>
|
||||
# Commented out because apparently not reliable (according to Debian
|
||||
# bug #364260)
|
||||
#0 string ]\000\000\200\000 LZMA compressed data
|
||||
0 lelong 0x8000005d LZMA compressed data,
|
||||
>5 lequad =0xffffffffffffffff streamed
|
||||
>5 lequad !0xffffffffffffffff non-streamed, size %lld
|
||||
!:mime application/x-lzma
|
||||
|
||||
# http://tukaani.org/xz/xz-file-format.txt
|
||||
0 ustring \xFD7zXZ\x00 xz compressed data
|
||||
0 ustring \xFD7zXZ\x00 XZ compressed data
|
||||
!:mime application/x-xz
|
||||
|
||||
# https://github.com/ckolivas/lrzip/blob/master/doc/magic.header.txt
|
||||
0 string LRZI LRZIP compressed data
|
||||
>4 byte x - version %d
|
||||
>5 byte x \b.%d
|
||||
!:mime application/x-lrzip
|
||||
|
||||
# AFX compressed files (Wolfram Kleff)
|
||||
2 string -afx- AFX compressed file data
|
||||
|
||||
@ -213,7 +219,12 @@
|
||||
>5 byte x \b.%d
|
||||
>6 belong x (%d bytes)
|
||||
|
||||
# Type: XZ
|
||||
# URL: http://tukaani.org/xz/
|
||||
0 string \xfd\x37\x7a\x58\x5a\x00 XZ compressed data
|
||||
!:mime application/x-xz
|
||||
0 string ArC\x01 FreeArc archive <http://freearc.org>
|
||||
|
||||
# Type: DACT compressed files
|
||||
0 long 0x444354C3 DACT compressed data
|
||||
>4 byte >-1 (version %i.
|
||||
>5 byte >-1 %i.
|
||||
>6 byte >-1 %i)
|
||||
>7 long >0 , original size: %i bytes
|
||||
>15 long >30 , block size: %i bytes
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: console,v 1.18 2010/09/20 19:19:17 rrt Exp $
|
||||
# Console game magic
|
||||
# Toby Deshane <hac@shoelace.digivill.net>
|
||||
# ines: file(1) magic for Marat's iNES Nintendo Entertainment System
|
||||
@ -163,9 +165,13 @@
|
||||
# Atari Lynx cartridge dump (EXE/BLL header)
|
||||
# From: "Stefan A. Haubenthal" <polluks@web.de>
|
||||
|
||||
0 beshort 0x8008 Lynx cartridge,
|
||||
>2 beshort x RAM start $%04x
|
||||
>6 string BS93
|
||||
# Double-check that the image type matches too, 0x8008 conflicts with
|
||||
# 8 character OMF-86 object file headers.
|
||||
0 beshort 0x8008
|
||||
>6 string BS93 Lynx homebrew cartridge
|
||||
>>2 beshort x \b, RAM start $%04x
|
||||
>6 string LYNX Lynx cartridge
|
||||
>>2 beshort x \b, RAM start $%04x
|
||||
|
||||
# Opera file system that is used on the 3DO console
|
||||
# From: Serge van den Boom <svdb@stack.nl>
|
||||
@ -252,3 +258,7 @@
|
||||
>>>(0x18.l-26) lelong x CRC32 0x%08x
|
||||
>>>(0x18.l-23) string x "%s"
|
||||
|
||||
# Type: scummVM savegame files
|
||||
# From: Sven Hartge <debian@ds9.argh.org>
|
||||
0 string SCVM ScummVM savegame
|
||||
>12 string >\0 "%s"
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: convex,v 1.7 2009/09/19 16:28:08 christos Exp $
|
||||
# convex: file(1) magic for Convex boxes
|
||||
#
|
||||
# Convexes are big-endian.
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: cracklib,v 1.7 2009/09/19 16:28:08 christos Exp $
|
||||
# cracklib: file (1) magic for cracklib v2.7
|
||||
|
||||
0 lelong 0x70775631 Cracklib password index, little endian
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# $File: ctags,v 1.6 2009/09/19 16:28:08 christos Exp $
|
||||
# ctags: file (1) magic for Exuberant Ctags files
|
||||
# From: Alexander Mai <mai@migdal.ikp.physik.tu-darmstadt.de>
|
||||
0 search/1 =!_TAG Exuberant Ctags tag file text
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: dact,v 1.4 2009/09/19 16:28:08 christos Exp $
|
||||
# dact: file(1) magic for DACT compressed files
|
||||
#
|
||||
0 long 0x444354C3 DACT compressed data
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: database,v 1.28 2011/09/16 19:40:40 christos Exp $
|
||||
# database: file(1) magic for various databases
|
||||
#
|
||||
# extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
|
||||
@ -267,3 +268,28 @@
|
||||
>40 lequad x \b, bnum=%lld
|
||||
>48 lequad x \b, rnum=%lld
|
||||
>56 lequad x \b, fsiz=%lld
|
||||
|
||||
# G-IR database made by gobject-introspect toolset,
|
||||
# http://live.gnome.org/GObjectIntrospection
|
||||
0 string GOBJ\nMETADATA\r\n\032 G-IR binary database
|
||||
>16 byte x \b, v%d
|
||||
>17 byte x \b.%d
|
||||
>20 leshort x \b, %d entries
|
||||
>22 leshort x \b/%d local
|
||||
|
||||
# Type: QDBM Quick Database Manager
|
||||
# From: Benoit Sibaud <bsibaud@april.org>
|
||||
0 string \\[depot\\]\n\f Quick Database Manager, little endian
|
||||
0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian
|
||||
|
||||
# Type: TokyoCabinet database
|
||||
# URL: http://tokyocabinet.sourceforge.net/
|
||||
# From: Benoit Sibaud <bsibaud@april.org>
|
||||
0 string ToKyO\ CaBiNeT\n TokyoCabinet database
|
||||
>14 string x (version %s)
|
||||
|
||||
# From: Stéphane Blondon http://www.yaal.fr
|
||||
# Database file for Zope (done by FileStorage)
|
||||
0 string FS21 Zope Object Database File Storage (data)
|
||||
# Cache file for the database of Zope (done by ClientStorage)
|
||||
0 string ZEC3 Zope Object Database Client Cache File (data)
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: diamond,v 1.7 2009/09/19 16:28:08 christos Exp $
|
||||
# diamond: file(1) magic for Diamond system
|
||||
#
|
||||
# ... diamond is a multi-media mail and electronic conferencing system....
|
||||
|
15
Magdir/diff
15
Magdir/diff
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: diff,v 1.12 2010/12/07 16:52:52 christos Exp $
|
||||
# diff: file(1) magic for diff(1) output
|
||||
#
|
||||
0 search/1 diff\ diff output text
|
||||
@ -12,3 +14,16 @@
|
||||
|
||||
0 search/1 Index: RCS/CVS diff output text
|
||||
!:mime text/x-diff
|
||||
|
||||
# bsdiff: file(1) magic for bsdiff(1) output
|
||||
0 string/t BSDIFF40 bsdiff(1) patch file
|
||||
|
||||
|
||||
# unified diff
|
||||
0 search/4096 ---\
|
||||
>&0 search/1024 \n
|
||||
>>&0 search/1 +++\
|
||||
>>>&0 search/1024 \n
|
||||
>>>>&0 search/1 @@ unified diff output text
|
||||
!:mime text/x-diff
|
||||
!:strength + 90
|
||||
|
@ -1,23 +1,40 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: digital,v 1.10 2011/05/03 01:44:17 christos Exp $
|
||||
# Digital UNIX - Info
|
||||
#
|
||||
0 string =!<arch>\n________64E Alpha archive
|
||||
>22 string X -- out of date
|
||||
#
|
||||
# Alpha COFF Based Executables
|
||||
# The stripped stuff really needs to be an 8 byte (64 bit) compare,
|
||||
# but this works
|
||||
0 leshort 0x183 COFF format alpha
|
||||
>22 leshort&020000 &010000 sharable library,
|
||||
>22 leshort&020000 ^010000 dynamically linked,
|
||||
>24 leshort 0410 pure
|
||||
>24 leshort 0413 demand paged
|
||||
>8 lelong >0 executable or object module, not stripped
|
||||
>8 lelong 0
|
||||
>>12 lelong 0 executable or object module, stripped
|
||||
>>12 lelong >0 executable or object module, not stripped
|
||||
>27 byte >0 - version %d.
|
||||
>26 byte >0 %d-
|
||||
>28 leshort >0 %d
|
||||
|
||||
0 leshort 0603
|
||||
>>24 leshort 0410 COFF format alpha pure
|
||||
>>24 leshort 0413 COFF format alpha demand paged
|
||||
>>>22 leshort&030000 !020000 executable
|
||||
>>>22 leshort&020000 !0 dynamically linked
|
||||
>>>16 lelong !0 not stripped
|
||||
>>>16 lelong 0 stripped
|
||||
>>>27 byte x - version %d
|
||||
>>>26 byte x \b.%d
|
||||
>>>28 byte x \b-%d
|
||||
>>24 leshort 0407 COFF format alpha object
|
||||
>>>22 leshort&030000 020000 shared library
|
||||
>>>27 byte x - version %d
|
||||
>>>26 byte x \b.%d
|
||||
>>>28 byte x \b-%d
|
||||
|
||||
# Basic recognition of Digital UNIX core dumps - Mike Bremford <mike@opac.bl.uk>
|
||||
#
|
||||
# The actual magic number is just "Core", followed by a 2-byte version
|
||||
# number; however, treating any file that begins with "Core" as a Digital
|
||||
# UNIX core dump file may produce too many false hits, so we include one
|
||||
# byte of the version number as well; DU 5.0 appears only to be up to
|
||||
# version 2.
|
||||
#
|
||||
0 string Core\001 Alpha COFF format core dump (Digital UNIX)
|
||||
>24 string >\0 \b, from '%s'
|
||||
0 string Core\002 Alpha COFF format core dump (Digital UNIX)
|
||||
>24 string >\0 \b, from '%s'
|
||||
#
|
||||
# The next is incomplete, we could tell more about this format,
|
||||
# but its not worth it.
|
||||
|
@ -1,3 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: dolby,v 1.5 2009/09/19 16:28:08 christos Exp $
|
||||
# ATSC A/53 aka AC-3 aka Dolby Digital <ashitaka@gmx.at>
|
||||
# from http://www.atsc.org/standards/a_52a.pdf
|
||||
# corrections, additions, etc. are always welcome!
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: dump,v 1.11 2009/09/19 16:28:09 christos Exp $
|
||||
# dump: file(1) magic for dump file format--for new and old dump filesystems
|
||||
#
|
||||
# We specify both byte orders in order to recognize byte-swapped dumps.
|
||||
|
@ -1,8 +1,9 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: dyadic,v 1.5 2010/09/20 18:55:20 rrt Exp $
|
||||
# Dyadic: file(1) magic for Dyalog APL.
|
||||
#
|
||||
0 byte 0xaa
|
||||
0 byte 0xaa
|
||||
>1 byte <4 Dyalog APL
|
||||
>>1 byte 0x00 incomplete workspace
|
||||
>>1 byte 0x01 component file
|
||||
@ -10,3 +11,36 @@
|
||||
>>1 byte 0x03 workspace
|
||||
>>2 byte x version %d
|
||||
>>3 byte x .%d
|
||||
|
||||
0 beshort 0xaa03 Dyalog APL
|
||||
>2 byte x workspace type %d
|
||||
>3 byte x subtype %d
|
||||
>7 byte&0x28 0x00 32-bit
|
||||
>7 byte&0x28 0x20 64-bit
|
||||
>7 byte&0x0c 0x00 classic
|
||||
>7 byte&0x0c 0x04 unicode
|
||||
>7 byte&0x88 0x00 big-endian
|
||||
>7 byte&0x88 0x80 little-endian
|
||||
|
||||
0 byte 0xaa Dyalog APL
|
||||
>1 byte 0x00 aplcore
|
||||
>1 byte 0x01 component file 32-bit non-journaled non-checksummed
|
||||
>1 byte 0x02 external variable exclusive
|
||||
>1 byte 0x06 external variable shared
|
||||
>1 byte 0x07 session
|
||||
>1 byte 0x08 mapped file 32-bit
|
||||
>1 byte 0x09 component file 64-bit non-journaled non-checksummed
|
||||
>1 byte 0x0a mapped file 64-bit
|
||||
>1 byte 0x0b component file 32-bit level 1 journaled non-checksummed
|
||||
>1 byte 0x0c component file 64-bit level 1 journaled non-checksummed
|
||||
>1 byte 0x0d component file 32-bit level 1 journaled checksummed
|
||||
>1 byte 0x0e component file 64-bit level 1 journaled checksummed
|
||||
>1 byte 0x0f component file 32-bit level 2 journaled checksummed
|
||||
>1 byte 0x10 component file 64-bit level 2 journaled checksummed
|
||||
>1 byte 0x11 component file 32-bit level 3 journaled checksummed
|
||||
>1 byte 0x12 component file 64-bit level 3 journaled checksummed
|
||||
>1 byte 0x13 component file 32-bit non-journaled checksummed
|
||||
>1 byte 0x14 component file 64-bit non-journaled checksummed
|
||||
>1 byte 0x80 DDB
|
||||
|
||||
0 short 0x6060 Dyalog APL transfer
|
||||
|
8
Magdir/ebml
Normal file
8
Magdir/ebml
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: ebml,v 1.1 2010/07/02 00:07:03 christos Exp $
|
||||
# ebml: file(1) magic for various Extensible Binary Meta Language
|
||||
# http://www.matroska.org/technical/specs/index.html#track
|
||||
0 belong 0x1a45dfa3 EBML file
|
||||
>4 search/b/100 \102\202
|
||||
>>&1 string x \b, creator %.8s
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: editors,v 1.8 2009/09/19 16:28:09 christos Exp $
|
||||
# T602 editor documents
|
||||
# by David Necas <yeti@physics.muni.cz>
|
||||
0 string @CT\ T602 document data,
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: efi,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# efi: file(1) magic for Universal EFI binaries
|
||||
|
||||
0 lelong 0x0ef1fab9
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: elf,v 1.53 2009/09/19 16:28:09 christos Exp $
|
||||
# elf: file(1) magic for ELF executables
|
||||
#
|
||||
# We have to check the byte order flag to see what byte order all the
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: encore,v 1.6 2009/09/19 16:28:09 christos Exp $
|
||||
# encore: file(1) magic for Encore machines
|
||||
#
|
||||
# XXX - needs to have the byte order specified (NS32K was little-endian,
|
||||
|
54
Magdir/epoc
54
Magdir/epoc
@ -1,11 +1,53 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: epoc,v 1.7 2009/09/19 16:28:09 christos Exp $
|
||||
# EPOC : file(1) magic for EPOC documents [Psion Series 5/Osaris/Geofox 1]
|
||||
# Stefan Praszalowicz (hpicollo@worldnet.fr)
|
||||
# Stefan Praszalowicz <hpicollo@worldnet.fr> and Peter Breitenlohner <peb@mppmu.mpg.de>
|
||||
# Useful information for improving this file can be found at:
|
||||
# http://software.frodo.looijaard.name/psiconv/formats/Index.html
|
||||
0 lelong 0x10000037
|
||||
#------------------------------------------------------------------------------
|
||||
0 lelong 0x10000037 Psion Series 5
|
||||
>4 lelong 0x10000039 font file
|
||||
>4 lelong 0x1000003A printer driver
|
||||
>4 lelong 0x1000003B clipboard
|
||||
>4 lelong 0x10000042 multi-bitmap image
|
||||
!:mime image/x-epoc-mbm
|
||||
>4 lelong 0x1000006A application information file
|
||||
>4 lelong 0x1000006D
|
||||
>>8 lelong 0x1000007F Psion Word
|
||||
>>8 lelong 0x10000088 Psion Sheet
|
||||
>>8 lelong 0x1000007D Psion Sketch
|
||||
>>8 lelong 0x10000085 Psion TextEd
|
||||
>>8 lelong 0x1000007D Sketch image
|
||||
!:mime image/x-epoc-sketch
|
||||
>>8 lelong 0x1000007E voice note
|
||||
>>8 lelong 0x1000007F Word file
|
||||
!:mime application/x-epoc-word
|
||||
>>8 lelong 0x10000085 OPL program (TextEd)
|
||||
!:mime application/x-epoc-opl
|
||||
>>8 lelong 0x10000088 Sheet file
|
||||
!:mime application/x-epoc-sheet
|
||||
>>8 lelong 0x100001C4 EasyFax initialisation file
|
||||
>4 lelong 0x10000073 OPO module
|
||||
!:mime application/x-epoc-opo
|
||||
>4 lelong 0x10000074 OPL application
|
||||
!:mime application/x-epoc-app
|
||||
>4 lelong 0x1000008A exported multi-bitmap image
|
||||
|
||||
0 lelong 0x10000041 Psion Series 5 ROM multi-bitmap image
|
||||
|
||||
0 lelong 0x10000050 Psion Series 5
|
||||
>4 lelong 0x1000006D database
|
||||
>4 lelong 0x100000E4 ini file
|
||||
|
||||
0 lelong 0x10000079 Psion Series 5 binary:
|
||||
>4 lelong 0x00000000 DLL
|
||||
>4 lelong 0x10000049 comms hardware library
|
||||
>4 lelong 0x1000004A comms protocol library
|
||||
>4 lelong 0x1000005D OPX
|
||||
>4 lelong 0x1000006C application
|
||||
>4 lelong 0x1000008D DLL
|
||||
>4 lelong 0x100000AC logical device driver
|
||||
>4 lelong 0x100000AD physical device driver
|
||||
>4 lelong 0x100000E5 file transfer protocol
|
||||
>4 lelong 0x100000E5 file transfer protocol
|
||||
>4 lelong 0x10000140 printer definition
|
||||
>4 lelong 0x10000141 printer definition
|
||||
|
||||
0 lelong 0x1000007A Psion Series 5 executable
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: erlang,v 1.6 2010/09/20 19:19:17 rrt Exp $
|
||||
# erlang: file(1) magic for Erlang JAM and BEAM files
|
||||
# URL: http://www.erlang.org/faq/x779.html#AEN812
|
||||
|
||||
@ -16,3 +17,5 @@
|
||||
79 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
|
||||
|
||||
4 string 1.0\ Fri\ Feb\ 3\ 09:55:56\ MET\ 1995 Erlang JAM file - version 4.3
|
||||
|
||||
0 bequad 0x0000000000ABCDEF Erlang DETS file
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: esri,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# ESRI Shapefile format (.shp .shx .dbf=DBaseIII)
|
||||
# Based on info from
|
||||
# <URL:http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf>
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: fcs,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# fcs: file(1) magic for FCS (Flow Cytometry Standard) data files
|
||||
# From Roger Leigh <roger@whinlatter.uklinux.net>
|
||||
0 string FCS1.0 Flow Cytometry Standard (FCS) data, version 1.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: filesystems,v 1.61 2011/01/10 14:01:10 christos Exp $
|
||||
# filesystems: file(1) magic for different filesystems
|
||||
#
|
||||
0 string \366\366\366\366 PC formatted floppy with no filesystem
|
||||
@ -202,7 +203,7 @@
|
||||
# http://www.bcdwb.de/bcdw/index_e.htm
|
||||
>3 string BCDL
|
||||
>>498 string BCDL\ \ \ \ BIN \b, Bootable CD Loader (1.50Z)
|
||||
# mbr partion table entries
|
||||
# mbr partition table entries
|
||||
# OEM-ID does not contain MicroSoft,NEWLDR,DOS,SYSLINUX,or MTOOLs
|
||||
>3 string !MS
|
||||
>>3 string !SYSLINUX
|
||||
@ -256,7 +257,7 @@
|
||||
#>>>>>>>>>>>>496 ubeshort&1023 x \b, startcylinder? %d
|
||||
>>>>>>>>>>>>502 ulelong x \b, startsector %u
|
||||
>>>>>>>>>>>>506 ulelong x \b, %u sectors
|
||||
# mbr partion table entries end
|
||||
# mbr partition table entries end
|
||||
# http://www.acronis.de/
|
||||
#FAT label=ACRONIS\ SZ
|
||||
#OEM-ID=BOOTWIZ0
|
||||
@ -882,13 +883,41 @@
|
||||
|
||||
|
||||
# Minix filesystems - Juan Cespedes <cespedes@debian.org>
|
||||
0x410 leshort 0x137f Minix filesystem
|
||||
0x410 beshort 0x137f Minix filesystem (big endian)
|
||||
>0x402 beshort !0 \b, %d zones
|
||||
0x410 leshort 0x137f
|
||||
!:strength / 2
|
||||
>0x402 beshort < 100 Minix filesystem, V1, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 beshort 0x137f
|
||||
!:strength / 2
|
||||
>0x402 beshort < 100 Minix filesystem, V1 (big endian), %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 leshort 0x138f
|
||||
!:strength / 2
|
||||
>0x402 beshort < 100 Minix filesystem, V1, 30 char names, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 beshort 0x138f
|
||||
!:strength / 2
|
||||
>0x402 beshort < 100 Minix filesystem, V1, 30 char names (big endian), %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 leshort 0x2468
|
||||
>0x402 beshort < 100 Minix filesystem, V2, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 beshort 0x2468
|
||||
>0x402 beshort < 100 Minix filesystem, V2 (big endian), %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
|
||||
0x410 leshort 0x2478
|
||||
>0x402 beshort < 100 Minix filesystem, V2, 30 char names, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 leshort 0x2478
|
||||
>0x402 beshort < 100 Minix filesystem, V2, 30 char names, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 beshort 0x2478
|
||||
>0x402 beshort !0 Minix filesystem, V2, 30 char names (big endian), %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 leshort 0x4d5a
|
||||
>0x402 beshort !0 Minix filesystem, V3, %d zones
|
||||
>0x1e string minix \b, bootable
|
||||
0x410 leshort 0x138f Minix filesystem, 30 char names
|
||||
0x410 leshort 0x2468 Minix filesystem, version 2
|
||||
0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
|
||||
|
||||
# romfs filesystems - Juan Cespedes <cespedes@debian.org>
|
||||
0 string -rom1fs- romfs filesystem, version 1
|
||||
@ -1084,6 +1113,8 @@
|
||||
|
||||
# ext2/ext3 filesystems - Andreas Dilger <adilger@dilger.ca>
|
||||
# ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
|
||||
# volume label and UUID Russell Coker
|
||||
# http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
|
||||
0x438 leshort 0xEF53 Linux
|
||||
>0x44c lelong x rev %d
|
||||
>0x43e leshort x \b.%d
|
||||
@ -1099,25 +1130,32 @@
|
||||
# else large RO_COMPAT?
|
||||
>>>0x464 lelong >0x0000007 ext4 filesystem data
|
||||
# else large INCOMPAT?
|
||||
>>0x460 lelong >0x000003f ext4 filesystem data
|
||||
>>0x460 lelong >0x000003f ext4 filesystem data
|
||||
>0x468 belong x \b, UUID=%08x
|
||||
>0x46c beshort x \b-%04x
|
||||
>0x46e beshort x \b-%04x
|
||||
>0x470 beshort x \b-%04x
|
||||
>0x472 belong x \b-%08x
|
||||
>0x476 beshort x \b%04x
|
||||
>0x478 string >0 \b, volume name "%s"
|
||||
# General flags for any ext* fs
|
||||
>0x460 lelong &0x0000004 (needs journal recovery)
|
||||
>0x43a leshort &0x0000002 (errors)
|
||||
>0x460 lelong &0x0000004 (needs journal recovery)
|
||||
>0x43a leshort &0x0000002 (errors)
|
||||
# INCOMPAT flags
|
||||
>0x460 lelong &0x0000001 (compressed)
|
||||
#>0x460 lelong &0x0000002 (filetype)
|
||||
#>0x460 lelong &0x0000010 (meta bg)
|
||||
>0x460 lelong &0x0000040 (extents)
|
||||
>0x460 lelong &0x0000080 (64bit)
|
||||
#>0x460 lelong &0x0000100 (mmp)
|
||||
#>0x460 lelong &0x0000200 (flex bg)
|
||||
>0x460 lelong &0x0000001 (compressed)
|
||||
#>0x460 lelong &0x0000002 (filetype)
|
||||
#>0x460 lelong &0x0000010 (meta bg)
|
||||
>0x460 lelong &0x0000040 (extents)
|
||||
>0x460 lelong &0x0000080 (64bit)
|
||||
#>0x460 lelong &0x0000100 (mmp)
|
||||
#>0x460 lelong &0x0000200 (flex bg)
|
||||
# RO_INCOMPAT flags
|
||||
#>0x464 lelong &0x0000001 (sparse super)
|
||||
>0x464 lelong &0x0000002 (large files)
|
||||
>0x464 lelong &0x0000008 (huge files)
|
||||
#>0x464 lelong &0x0000010 (gdt checksum)
|
||||
#>0x464 lelong &0x0000020 (many subdirs)
|
||||
#>0x463 lelong &0x0000040 (extra isize)
|
||||
#>0x464 lelong &0x0000001 (sparse super)
|
||||
>0x464 lelong &0x0000002 (large files)
|
||||
>0x464 lelong &0x0000008 (huge files)
|
||||
#>0x464 lelong &0x0000010 (gdt checksum)
|
||||
#>0x464 lelong &0x0000020 (many subdirs)
|
||||
#>0x463 lelong &0x0000040 (extra isize)
|
||||
|
||||
# SGI disk labels - Nathan Scott <nathans@debian.org>
|
||||
0 belong 0x0BE5A941 SGI disk label (volume header)
|
||||
@ -1195,7 +1233,7 @@
|
||||
|
||||
# CDROM Filesystems
|
||||
# Modified for UDF by gerardo.cacciari@gmail.com
|
||||
32769 string CD001
|
||||
32769 string CD001 #
|
||||
!:mime application/x-iso9660-image
|
||||
>38913 string !NSR0 ISO 9660 CD-ROM filesystem data
|
||||
>38913 string NSR0 UDF filesystem data
|
||||
@ -1211,6 +1249,9 @@
|
||||
!:mime application/x-iso9660-image
|
||||
32776 string CDROM High Sierra CD-ROM filesystem data
|
||||
|
||||
# .cso files
|
||||
0 string CISO Compressed ISO CD image
|
||||
|
||||
# cramfs filesystem - russell@coker.com.au
|
||||
0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
|
||||
>4 lelong x size %lu
|
||||
@ -1235,6 +1276,7 @@
|
||||
# reiserfs - russell@coker.com.au
|
||||
0x10034 string ReIsErFs ReiserFS V3.5
|
||||
0x10034 string ReIsEr2Fs ReiserFS V3.6
|
||||
0x10034 string ReIsEr3Fs ReiserFS V3.6.19
|
||||
>0x1002c leshort x block size %d
|
||||
>0x10032 leshort &2 (mounted or unclean)
|
||||
>0x10000 lelong x num blocks %d
|
||||
@ -1255,11 +1297,70 @@
|
||||
0 string VoIP\ Startup\ and Aculab VoIP firmware
|
||||
>35 string x format %s
|
||||
|
||||
# u-boot/PPCBoot image file
|
||||
# From: Mark Brown <broonie@sirena.org.uk>
|
||||
0 belong 0x27051956 u-boot/PPCBoot image
|
||||
>4 string PPCBoot
|
||||
>>12 string x version %s
|
||||
# From: Mark Brown <broonie@sirena.org.uk> [old]
|
||||
# From: Behan Webster <behanw@websterwood.com>
|
||||
0 belong 0x27051956 u-boot legacy uImage,
|
||||
>32 string x %s,
|
||||
>28 byte 0 Invalid os/
|
||||
>28 byte 1 OpenBSD/
|
||||
>28 byte 2 NetBSD/
|
||||
>28 byte 3 FreeBSD/
|
||||
>28 byte 4 4.4BSD/
|
||||
>28 byte 5 Linux/
|
||||
>28 byte 6 SVR4/
|
||||
>28 byte 7 Esix/
|
||||
>28 byte 8 Solaris/
|
||||
>28 byte 9 Irix/
|
||||
>28 byte 10 SCO/
|
||||
>28 byte 11 Dell/
|
||||
>28 byte 12 NCR/
|
||||
>28 byte 13 LynxOS/
|
||||
>28 byte 14 VxWorks/
|
||||
>28 byte 15 pSOS/
|
||||
>28 byte 16 QNX/
|
||||
>28 byte 17 Firmware/
|
||||
>28 byte 18 RTEMS/
|
||||
>28 byte 19 ARTOS/
|
||||
>28 byte 20 Unity OS/
|
||||
>28 byte 21 INTEGRITY/
|
||||
>29 byte 0 \bInvalid CPU,
|
||||
>29 byte 1 \bAlpha,
|
||||
>29 byte 2 \bARM,
|
||||
>29 byte 3 \bIntel x86,
|
||||
>29 byte 4 \bIA64,
|
||||
>29 byte 5 \bMIPS,
|
||||
>29 byte 6 \bMIPS 64-bit,
|
||||
>29 byte 7 \bPowerPC,
|
||||
>29 byte 8 \bIBM S390,
|
||||
>29 byte 9 \bSuperH,
|
||||
>29 byte 10 \bSparc,
|
||||
>29 byte 11 \bSparc 64-bit,
|
||||
>29 byte 12 \bM68K,
|
||||
>29 byte 13 \bNios-32,
|
||||
>29 byte 14 \bMicroBlaze,
|
||||
>29 byte 15 \bNios-II,
|
||||
>29 byte 16 \bBlackfin,
|
||||
>29 byte 17 \bAVR32,
|
||||
>29 byte 18 \bSTMicroelectronics ST200,
|
||||
>30 byte 0 Invalid Image
|
||||
>30 byte 1 Standalone Program
|
||||
>30 byte 2 OS Kernel Image
|
||||
>30 byte 3 RAMDisk Image
|
||||
>30 byte 4 Multi-File Image
|
||||
>30 byte 5 Firmware Image
|
||||
>30 byte 6 Script File
|
||||
>30 byte 7 Filesystem Image (any type)
|
||||
>30 byte 8 Binary Flat Device Tree BLOB
|
||||
>31 byte 0 (Not compressed),
|
||||
>31 byte 1 (gzip),
|
||||
>31 byte 2 (bzip2),
|
||||
>31 byte 3 (lzma),
|
||||
>12 belong x %d bytes,
|
||||
>8 bedate x %s,
|
||||
>16 belong x Load Address: 0x%08X,
|
||||
>20 belong x Entry Point: 0x%08X,
|
||||
>4 belong x Header CRC: 0x%08X,
|
||||
>24 belong x Data CRC: 0x%08X
|
||||
|
||||
# JFFS2 file system
|
||||
0 leshort 0x1984 Linux old jffs2 filesystem data little endian
|
||||
@ -1272,28 +1373,46 @@
|
||||
>28 beshort <3
|
||||
>>8 belong x %d bytes,
|
||||
>28 beshort >2
|
||||
>>63 bequad x %lld bytes,
|
||||
>>28 beshort <4
|
||||
>>>63 bequad x %lld bytes,
|
||||
>>28 beshort >3
|
||||
>>>40 bequad x %lld bytes,
|
||||
#>>67 belong x %d bytes,
|
||||
>4 belong x %d inodes,
|
||||
>28 beshort <2
|
||||
>>32 beshort x blocksize: %d bytes,
|
||||
>28 beshort >1
|
||||
>>51 belong x blocksize: %d bytes,
|
||||
>39 bedate x created: %s
|
||||
>>28 beshort <4
|
||||
>>>51 belong x blocksize: %d bytes,
|
||||
>>28 beshort >3
|
||||
>>>12 belong x blocksize: %d bytes,
|
||||
>28 beshort <4
|
||||
>>39 bedate x created: %s
|
||||
>28 beshort >3
|
||||
>>8 bedate x created: %s
|
||||
0 string hsqs Squashfs filesystem, little endian,
|
||||
>28 leshort x version %d.
|
||||
>30 leshort x \b%d,
|
||||
>28 leshort <3
|
||||
>>8 lelong x %d bytes,
|
||||
>28 leshort >2
|
||||
>>63 lequad x %lld bytes,
|
||||
>>28 leshort <4
|
||||
>>>63 lequad x %lld bytes,
|
||||
>>28 leshort >3
|
||||
>>>40 lequad x %lld bytes,
|
||||
#>>63 lelong x %d bytes,
|
||||
>4 lelong x %d inodes,
|
||||
>28 leshort <2
|
||||
>>32 leshort x blocksize: %d bytes,
|
||||
>28 leshort >1
|
||||
>>51 lelong x blocksize: %d bytes,
|
||||
>39 ledate x created: %s
|
||||
>>28 leshort <4
|
||||
>>>51 lelong x blocksize: %d bytes,
|
||||
>>28 leshort >3
|
||||
>>>12 lelong x blocksize: %d bytes,
|
||||
>28 leshort <4
|
||||
>>39 ledate x created: %s
|
||||
>28 leshort >3
|
||||
>>8 ledate x created: %s
|
||||
|
||||
0 string td\000 floppy image data (TeleDisk)
|
||||
|
||||
@ -1312,6 +1431,10 @@
|
||||
>>>>>>>>&0 bedate !0 incremental since: %s
|
||||
|
||||
#----------------------------------------------------------
|
||||
#delta ISO Daniel Novotny (dnovotny@redhat.com)
|
||||
0 string DISO Delta ISO data
|
||||
>4 belong x version %d
|
||||
|
||||
# VMS backup savesets - gerardo.cacciari@gmail.com
|
||||
#
|
||||
4 string \x01\x00\x01\x00\x01\x00
|
||||
@ -1356,13 +1479,17 @@
|
||||
0 string CPQRFBLO Compaq/HP RILOE floppy image
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Files-11 On-Disk Structure (OpenVMS file system) - gerardo.cacciari@gmail.com
|
||||
# These bits come from LBN 1 (home block) of ODS-2 and ODS-5 volumes, which is
|
||||
# mapped to VBN 2 of [000000]INDEXF.SYS;1
|
||||
# Files-11 On-Disk Structure (File system for various RSX-11 and VMS flavours).
|
||||
# These bits come from LBN 1 (home block) of ODS-1, ODS-2 and ODS-5 volumes,
|
||||
# which is mapped to VBN 2 of [000000]INDEXF.SYS;1 - gerardo.cacciari@gmail.com
|
||||
#
|
||||
1008 string DECFILE11B Files-11 On-Disk Structure
|
||||
1008 string DECFILE11 Files-11 On-Disk Structure
|
||||
>525 byte x Level %d
|
||||
>525 byte x (ODS-%d OpenVMS file system),
|
||||
>525 byte x (ODS-%d);
|
||||
>1017 string A RSX-11, VAX/VMS or OpenVMS VAX file system;
|
||||
>1017 string B
|
||||
>>525 byte 2 VAX/VMS or OpenVMS file system;
|
||||
>>525 byte 5 OpenVMS Alpha or Itanium file system;
|
||||
>984 string x volume label is '%-12.12s'
|
||||
|
||||
# From: Thomas Klausner <wiz@NetBSD.org>
|
||||
@ -1377,9 +1504,13 @@
|
||||
|
||||
# From Eric Sandeen
|
||||
# GFS2
|
||||
0x10000 belong 0x01161970 GFS2 Filesystem
|
||||
>0x10024 belong x (blocksize %d,
|
||||
>0x10060 string >\0 lockproto %s)
|
||||
0x10000 belong 0x01161970
|
||||
>0x10018 belong 0x0000051d GFS1 Filesystem
|
||||
>>0x10024 belong x (blocksize %d,
|
||||
>>0x10060 string >\0 lockproto %s)
|
||||
>0x10018 belong 0x00000709 GFS2 Filesystem
|
||||
>>0x10024 belong x (blocksize %d,
|
||||
>>0x10060 string >\0 lockproto %s)
|
||||
|
||||
# BTRFS
|
||||
0x10040 string _BHRfS_M BTRFS Filesystem
|
||||
@ -1392,3 +1523,49 @@
|
||||
# dvdisaster's .ecc
|
||||
# From: "Nelson A. de Oliveira" <naoliv@gmail.com>
|
||||
0 string *dvdisaster* dvdisaster error correction file
|
||||
|
||||
# xfs metadump image
|
||||
# mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
|
||||
# but can we do the << ? For now it's always 512 (0x200) anyway.
|
||||
0 string XFSM
|
||||
>0x200 string XFSB XFS filesystem metadump image
|
||||
|
||||
# Type: CROM filesystem
|
||||
# From: Werner Fink <werner@suse.de>
|
||||
0 string CROMFS CROMFS
|
||||
>6 string >\0 \b version %2.2s,
|
||||
>8 ulequad >0 \b block data at %lld,
|
||||
>16 ulequad >0 \b fblock table at %lld,
|
||||
>24 ulequad >0 \b inode table at %lld,
|
||||
>32 ulequad >0 \b root at %lld,
|
||||
>40 ulelong >0 \b fblock size = %ld,
|
||||
>44 ulelong >0 \b block size = %ld,
|
||||
>48 ulequad >0 \b bytes = %lld
|
||||
|
||||
# Type: xfs metadump image
|
||||
# From: Daniel Novotny <dnovotny@redhat.com>
|
||||
# mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
|
||||
# but can we do the << ? For now it's always 512 (0x200) anyway.
|
||||
0 string XFSM
|
||||
>0x200 string XFSB XFS filesystem metadump image
|
||||
|
||||
# Type: delta ISO
|
||||
# From: Daniel Novotny <dnovotny@redhat.com>
|
||||
0 string DISO Delta ISO data,
|
||||
>4 belong x version %d
|
||||
|
||||
# JFS2 (Journaling File System) image. (Old JFS1 has superblock at 0x1000.)
|
||||
# See linux/fs/jfs/jfs_superblock.h for layout; see jfs_filsys.h for flags.
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
0x8000 string JFS1
|
||||
# Because it's text-only magic, check a binary value (version) to be sure.
|
||||
# Should always be 2, but mkfs.jfs writes it as 1. Needs to be 2 or 1 to be
|
||||
# mountable.
|
||||
>&0 lelong <3 JFS2 filesystem image
|
||||
# Label is followed by a UUID; we have to limit string length to avoid
|
||||
# appending the UUID in the case of a 16-byte label.
|
||||
>>&144 regex [\x20-\x7E]{1,16} (label "%s")
|
||||
>>&0 lequad x \b, %lld blocks
|
||||
>>&8 lelong x \b, blocksize %d
|
||||
>>&32 lelong&0x00000006 >0 (dirty)
|
||||
>>&36 lelong >0 (compressed)
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: flash,v 1.9 2009/11/08 01:30:01 christos Exp $
|
||||
# flash: file(1) magic for Macromedia Flash file format
|
||||
#
|
||||
# See
|
||||
@ -17,5 +18,8 @@
|
||||
!:mime video/x-flv
|
||||
|
||||
#
|
||||
# Yosu Gomez
|
||||
0 string AGD2\xbe\xb8\xbb\xcd\x00 Macromedia Freehand 7 Document
|
||||
0 string AGD3\xbe\xb8\xbb\xcc\x00 Macromedia Freehand 8 Document
|
||||
# From Dave Wilson
|
||||
0 string AGD4\xbe\xb8\xbb\xcb\x00 Macromedia Freehand 9 Document
|
||||
|
22
Magdir/fonts
22
Magdir/fonts
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: fonts,v 1.23 2010/09/20 18:55:20 rrt Exp $
|
||||
# fonts: file(1) magic for font data
|
||||
#
|
||||
0 search/1 FONT ASCII vfont text
|
||||
@ -9,6 +11,9 @@
|
||||
0 string %!PS-AdobeFont-1. PostScript Type 1 font text
|
||||
>20 string >\0 (%s)
|
||||
6 string %!PS-AdobeFont-1. PostScript Type 1 font program data
|
||||
0 string %!FontType1 PostScript Type 1 font program data
|
||||
6 string %!FontType1 PostScript Type 1 font program data
|
||||
0 string %!PS-Adobe-3.0\ Resource-Font PostScript Type 1 font text
|
||||
|
||||
# X11 font files in SNF (Server Natural Format) format
|
||||
0 belong 00000004 X11 SNF font data, MSB first
|
||||
@ -51,15 +56,30 @@
|
||||
|
||||
# True Type fonts
|
||||
0 string \000\001\000\000\000 TrueType font data
|
||||
!:mime application/x-font-ttf
|
||||
|
||||
0 string \007\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font
|
||||
0 string \012\001\001\000Copyright\ (c)\ 199 Adobe Multiple Master font
|
||||
|
||||
# TrueType/OpenType font collections (.ttc)
|
||||
# http://www.microsoft.com/typography/otspec/otff.htm
|
||||
0 string ttcf TrueType font collection data
|
||||
>4 belong 0x00010000 \b, 1.0
|
||||
>>8 belong >0 \b, %d fonts
|
||||
>4 belong 0x00020000 \b, 2.0
|
||||
>>8 belong >0 \b, %d fonts
|
||||
# 0x44454947 = 'DSIG'
|
||||
>>>16 belong 0x44534947 \b, digitally signed
|
||||
|
||||
# Opentype font data from Avi Bercovich
|
||||
0 string OTTO OpenType font data
|
||||
0 string OTTO OpenType font data
|
||||
!:mime application/vnd.ms-opentype
|
||||
|
||||
# Gürkan Sengün <gurkan@linuks.mine.nu>, www.linuks.mine.nu
|
||||
0 string SplineFontDB: Spline Font Database
|
||||
!:mime application/vnd.font-fontforge-sfd
|
||||
>14 string x version %s
|
||||
|
||||
# EOT
|
||||
34 string LP Embedded OpenType (EOT)
|
||||
!:mime application/vnd.ms-fontobject
|
||||
|
@ -1,3 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: fortran,v 1.6 2009/09/19 16:28:09 christos Exp $
|
||||
# FORTRAN source
|
||||
0 regex/100 \^[Cc][\ \t] FORTRAN program
|
||||
!:mime text/x-fortran
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: frame,v 1.12 2009/09/19 16:28:09 christos Exp $
|
||||
# frame: file(1) magic for FrameMaker files
|
||||
#
|
||||
# This stuff came on a FrameMaker demo tape, most of which is
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: freebsd,v 1.7 2009/09/19 16:28:09 christos Exp $
|
||||
# freebsd: file(1) magic for FreeBSD objects
|
||||
#
|
||||
# All new-style FreeBSD magic numbers are in host byte order (i.e.,
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: fsav,v 1.11 2009/09/19 16:28:09 christos Exp $
|
||||
# fsav: file(1) magic for datafellows fsav virus definition files
|
||||
# Anthon van der Neut (anthon@mnt.org)
|
||||
|
||||
|
12
Magdir/fusecompress
Normal file
12
Magdir/fusecompress
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: fusecompress,v 1.2 2011/08/08 09:05:55 christos Exp $
|
||||
# fusecompress: file(1) magic for fusecompress
|
||||
0 string \037\135\211 FuseCompress(ed) data
|
||||
>3 byte 0x00 (none format)
|
||||
>3 byte 0x01 (bz2 format)
|
||||
>3 byte 0x02 (gz format)
|
||||
>3 byte 0x03 (lzo format)
|
||||
>3 byte 0x04 (xor format)
|
||||
>3 byte >0x04 (unknown format)
|
||||
>4 long x uncompressed size: %d
|
28
Magdir/games
28
Magdir/games
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: games,v 1.12 2010/11/25 15:00:12 christos Exp $
|
||||
# games: file(1) for games
|
||||
|
||||
# Fabio Bonelli <fabiobonelli@libero.it>
|
||||
@ -33,6 +35,7 @@
|
||||
# Quake
|
||||
|
||||
0 string PACK Quake I or II world or extension
|
||||
>8 lelong >0 \b, %d entries
|
||||
|
||||
#0 string -1\x0a Quake I demo
|
||||
#>30 string x version %.4s
|
||||
@ -152,6 +155,11 @@
|
||||
0 string =PWAD doom patch PWAD data
|
||||
>4 lelong x containing %d lumps
|
||||
|
||||
# Build engine group files (Duke Nukem, Shadow Warrior, ...)
|
||||
# Extension: .grp
|
||||
# Created by: "Ganael Laplanche" <ganael.laplanche@martymac.org>
|
||||
0 string KenSilverman Build engine group file
|
||||
>12 lelong x containing %d files
|
||||
|
||||
# Summary: Warcraft 3 save
|
||||
# Extension: .w3g
|
||||
@ -172,7 +180,7 @@
|
||||
# Modified by (1): Abel Cheung (regex, more game format)
|
||||
# FIXME: Some games don't have GM (game type)
|
||||
0 regex \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
|
||||
>2 search/0x200 GM[
|
||||
>2 search/0x200/b GM[
|
||||
>>&0 string 1] (Go)
|
||||
>>&0 string 2] (Othello)
|
||||
>>&0 string 3] (chess)
|
||||
@ -214,13 +222,6 @@
|
||||
>>&0 string 39] (Gipf)
|
||||
>>&0 string 40] (Kropki)
|
||||
|
||||
|
||||
# Summary: Civilization 4 video
|
||||
# Extension: .bik
|
||||
# Created by: Abel Cheung <abelcheung@gmail.com>
|
||||
0 string BIKi Civilization 4 Video
|
||||
|
||||
|
||||
##############################################
|
||||
# NetImmerse/Gamebryo game engine entries
|
||||
|
||||
@ -243,3 +244,14 @@
|
||||
>&0 string n\ NetImmerse game engine file
|
||||
>>&0 regex [0-9a-z.]+ \b, version %s
|
||||
|
||||
# Type: SGF Smart Game Format
|
||||
# URL: http://www.red-bean.com/sgf/
|
||||
# From: Eduardo Sabbatella <eduardo_sabbatella@yahoo.com.ar>
|
||||
2 regex/c \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
|
||||
>2 regex/c GM\\[1\\] - Go Game
|
||||
>2 regex/c GM\\[6\\] - BackGammon Game
|
||||
>2 regex/c GM\\[11\\] - Hex Game
|
||||
>2 regex/c GM\\[18\\] - Amazons Game
|
||||
>2 regex/c GM\\[19\\] - Octi Game
|
||||
>2 regex/c GM\\[20\\] - Gess Game
|
||||
>2 regex/c GM\\[21\\] - twix Game
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gcc,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# gcc: file(1) magic for GCC special files
|
||||
#
|
||||
0 string gpch GCC precompiled header
|
||||
|
105
Magdir/geo
Normal file
105
Magdir/geo
Normal file
@ -0,0 +1,105 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: geo,v 1.1 2010/02/23 23:40:07 christos Exp $
|
||||
# Geo- files from Kurt Schwehr <schwehr@ccom.unh.edu>
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# Acoustic Doppler Current Profilers (ADCP)
|
||||
#
|
||||
######################################################################
|
||||
|
||||
0 beshort 0x7f7f RDI Acoustic Doppler Current Profiler (ADCP)
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# Metadata
|
||||
#
|
||||
######################################################################
|
||||
|
||||
0 string Identification_Information FGDC ASCII metadata
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# Seimsic / Subbottom
|
||||
#
|
||||
######################################################################
|
||||
|
||||
# Knudsen subbottom chirp profiler - Binary File Format: B9
|
||||
# KEB D409-03167 V1.75 Huffman
|
||||
0 string KEB\ Knudsen seismic KEL binary (KEB) -
|
||||
>4 regex [-A-Z0-9]* Software: %s
|
||||
>>&1 regex V[0-9]*\.[0-9]* version %s
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# LIDAR - Laser altimetry or bathy
|
||||
#
|
||||
######################################################################
|
||||
|
||||
|
||||
# Caris LIDAR format for LADS comes as two parts... ascii location file and binary waveform data
|
||||
0 string HCA LADS Caris Ascii Format (CAF) bathymetric lidar
|
||||
>4 regex [0-9]*\.[0-9]* version %s
|
||||
|
||||
0 string HCB LADS Caris Binary Format (CBF) bathymetric lidar waveform data
|
||||
>3 byte x version %d .
|
||||
>4 byte x %d
|
||||
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# MULTIBEAM SONARS http://www.ldeo.columbia.edu/res/pi/MB-System/formatdoc/
|
||||
#
|
||||
######################################################################
|
||||
|
||||
# GeoAcoustics - GeoSwath Plus
|
||||
4 beshort 0x2002 GeoSwath RDF
|
||||
0 string Start:- GeoSwatch auf text file
|
||||
|
||||
# Seabeam 2100
|
||||
# mbsystem code mb41
|
||||
0 string SB2100 SeaBeam 2100 multibeam sonar
|
||||
0 string SB2100DR SeaBeam 2100 DR multibeam sonar
|
||||
0 string SB2100PR SeaBeam 2100 PR multibeam sonar
|
||||
|
||||
# This corresponds to MB-System format 94, L-3/ELAC/SeaBeam XSE vendor
|
||||
# format. It is the format of our upgraded SeaBeam 2112 on R/V KNORR.
|
||||
0 string $HSF XSE multibeam
|
||||
|
||||
# mb121 http://www.saic.com/maritime/gsf/
|
||||
8 string GSF-v SAIC generic sensor format (GSF) sonar data,
|
||||
>&0 regex [0-9]*\.[0-9]* version %s
|
||||
|
||||
# MGD77 - http://www.ngdc.noaa.gov/mgg/dat/geodas/docs/mgd77.htm
|
||||
# mb161
|
||||
9 string MGD77 MGD77 Header, Marine Geophysical Data Exchange Format
|
||||
|
||||
# MBSystem processing caches the mbinfo output
|
||||
1 string Swath\ Data\ File: mbsystem info cache
|
||||
|
||||
# Caris John Hughes Clark format
|
||||
0 string HDCS Caris multibeam sonar related data
|
||||
1 string Start/Stop\ parameter\ header: Caris ASCII project summary
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# Visualization and 3D modeling
|
||||
#
|
||||
######################################################################
|
||||
|
||||
# IVS - IVS3d.com Tagged Data Represetation
|
||||
0 string %%\ TDR\ 2.0 IVS Fledermaus TDR file
|
||||
|
||||
# http://www.ecma-international.org/publications/standards/Ecma-363.htm
|
||||
# 3D in PDFs
|
||||
0 string U3D ECMA-363, Universal 3D
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# Support files
|
||||
#
|
||||
######################################################################
|
||||
|
||||
# https://midas.psi.ch/elog/
|
||||
0 string $@MID@$ elog journal entry
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: geos,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# GEOS files (Vidar Madsen, vidar@gimp.org)
|
||||
# semi-commonly used in embedded and handheld systems.
|
||||
0 belong 0xc745c153 GEOS
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gimp,v 1.7 2010/09/20 18:55:20 rrt Exp $
|
||||
# GIMP Gradient: file(1) magic for the GIMP's gradient data files
|
||||
# by Federico Mena <federico@nuclecu.unam.mx>
|
||||
|
||||
@ -10,6 +12,7 @@
|
||||
# ('Bucky' LaDieu, nega@vt.edu)
|
||||
|
||||
0 string gimp\ xcf GIMP XCF image data,
|
||||
!:mime image/x-xcf
|
||||
>9 string file version 0,
|
||||
>9 string v version
|
||||
>>10 string >\0 %s,
|
||||
|
@ -1,3 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gnome-keyring,v 1.2 2009/09/19 16:28:09 christos Exp $
|
||||
# GNOME keyring
|
||||
# Contributed by Josh Triplett
|
||||
# FIXME: Could be simplified if pstring supported two-byte counts
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gnu,v 1.11 2009/09/19 16:28:09 christos Exp $
|
||||
# gnu: file(1) magic for various GNU tools
|
||||
#
|
||||
# GNU nlsutils message catalog file format
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gnumeric,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# gnumeric: file(1) magic for Gnumeric spreadsheet
|
||||
# This entry is only semi-helpful, as Gnumeric compresses its files, so
|
||||
# they will ordinarily reported as "compressed", but at least -z helps
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: grace,v 1.4 2009/09/19 16:28:09 christos Exp $
|
||||
# ACE/gr and Grace type files - PLEASE DO NOT REMOVE THIS LINE
|
||||
#
|
||||
# ACE/gr binary
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: graphviz,v 1.7 2009/09/19 16:28:09 christos Exp $
|
||||
# graphviz: file(1) magic for http://www.graphviz.org/
|
||||
|
||||
# FIXME: These patterns match too generally. For example, the first
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: gringotts,v 1.5 2009/09/19 16:28:09 christos Exp $
|
||||
# gringotts: file(1) magic for Gringotts
|
||||
# http://devel.pluto.linux.it/projects/Gringotts/
|
||||
# author: Germano Rizzo <mano@pluto.linux.it>
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: hitachi-sh,v 1.5 2009/09/19 16:28:09 christos Exp $
|
||||
# hitach-sh: file(1) magic for Hitachi Super-H
|
||||
#
|
||||
# Super-H COFF
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: hp,v 1.23 2009/09/19 16:28:09 christos Exp $
|
||||
# hp: file(1) magic for Hewlett Packard machines (see also "printer")
|
||||
#
|
||||
# XXX - somebody should figure out whether any byte order needs to be
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: human68k,v 1.5 2009/09/19 16:28:09 christos Exp $
|
||||
# human68k: file(1) magic for Human68k (X680x0 DOS) binary formats
|
||||
# Magic too short!
|
||||
#0 string HU Human68k
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: ibm370,v 1.8 2009/09/19 16:28:09 christos Exp $
|
||||
# ibm370: file(1) magic for IBM 370 and compatibles.
|
||||
#
|
||||
# "ibm370" said that 0x15d == 0535 was "ibm 370 pure executable".
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: ibm6000,v 1.9 2009/09/19 16:28:09 christos Exp $
|
||||
# ibm6000: file(1) magic for RS/6000 and the RT PC.
|
||||
#
|
||||
0 beshort 0x01df executable (RISC System/6000 V3.1) or obj module
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: iff,v 1.13 2011/09/06 11:00:06 christos Exp $
|
||||
# iff: file(1) magic for Interchange File Format (see also "audio" & "images")
|
||||
#
|
||||
# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
|
||||
@ -51,6 +52,13 @@
|
||||
>8 string AMFF \b, AMFF AmigaMetaFile format
|
||||
>8 string WZRD \b, WZRD StormWIZARD resource
|
||||
>8 string DOC\ \b, DOC desktop publishing document
|
||||
>8 string WVQA \b, Westwood Studios VQA Multimedia,
|
||||
>>24 leshort x %d video frames,
|
||||
>>26 leshort x %d x
|
||||
>>28 leshort x %d
|
||||
>8 string MOVE \b, Wing Commander III Video
|
||||
>>12 string _PC_ \b, PC version
|
||||
>>12 string 3DO_ \b, 3DO version
|
||||
|
||||
# These go at the end of the iff rules
|
||||
#
|
||||
|
151
Magdir/images
151
Magdir/images
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: images,v 1.70 2010/11/25 15:00:12 christos Exp $
|
||||
# images: file(1) magic for image formats (see also "iff", and "c-lang" for
|
||||
# XPM bitmaps)
|
||||
#
|
||||
@ -32,7 +34,7 @@
|
||||
# The next byte following the magic is always whitespace.
|
||||
0 search/1 P1 Netpbm PBM image text
|
||||
!:mime image/x-portable-bitmap
|
||||
0 search/1 P2 Netpbm PGM image text
|
||||
0 search/1b P2 Netpbm PGM image text
|
||||
!:mime image/x-portable-greymap
|
||||
0 search/1 P3 Netpbm PPM image text
|
||||
!:mime image/x-portable-pixmap
|
||||
@ -61,6 +63,25 @@
|
||||
0 string IIN1 NIFF image data
|
||||
!:mime image/x-niff
|
||||
|
||||
# Canon RAW version 1 (CRW) files are a type of Canon Image File Format
|
||||
# (CIFF) file. These are apparently all little-endian.
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# URL: http://www.sno.phy.queensu.ca/~phil/exiftool/canon_raw.html
|
||||
0 string II\x1a\0\0\0HEAPCCDR Canon CIFF raw image data
|
||||
!:mime image/x-canon-crw
|
||||
>16 leshort x \b, version %d.
|
||||
>14 leshort x \b%d
|
||||
|
||||
# Canon RAW version 2 (CR2) files are a kind of TIFF with an extra magic
|
||||
# number. Put this above the TIFF test to make sure we detect them.
|
||||
# These are apparently all little-endian.
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# URL: http://libopenraw.freedesktop.org/wiki/Canon_CR2
|
||||
0 string II\x2a\0\x10\0\0\0CR Canon CR2 raw image data
|
||||
!:mime image/x-canon-cr2
|
||||
>10 byte x \b, version %d.
|
||||
>11 byte x \b%d
|
||||
|
||||
# Tag Image File Format, from Daniel Quinlan (quinlan@yggdrasil.com)
|
||||
# The second word of TIFF files is the TIFF version number, 42, which has
|
||||
# never changed. The TIFF specification recommends testing for it.
|
||||
@ -75,7 +96,7 @@
|
||||
#
|
||||
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
|
||||
#
|
||||
0 string \x89PNG\x0d\x0a\x1a\x0a PNG image
|
||||
0 string \x89PNG\x0d\x0a\x1a\x0a PNG image data
|
||||
!:mime image/png
|
||||
>16 belong x \b, %ld x
|
||||
>20 belong x %ld,
|
||||
@ -308,11 +329,20 @@
|
||||
# As described in /usr/X11R6/include/X11/XWDFile.h
|
||||
# used by the xwd program.
|
||||
# Bradford Castalia, idaeim, 1/01
|
||||
4 belong 7 XWD X Window Dump image data
|
||||
>100 string >\0 \b, "%s"
|
||||
>16 belong x \b, %dx
|
||||
>20 belong x \b%dx
|
||||
>12 belong x \b%d
|
||||
# updated by Adam Buchbinder, 2/09
|
||||
# The following assumes version 7 of the format; the first long is the length
|
||||
# of the header, which is at least 25 4-byte longs, and the one at offset 8
|
||||
# is a constant which is always either 1 or 2. Offset 12 is the pixmap depth,
|
||||
# which is a maximum of 32.
|
||||
0 belong >100
|
||||
>8 belong <3
|
||||
>>12 belong <33
|
||||
>>>4 belong 7 XWD X Window Dump image data
|
||||
!:mime image/x-xwindowdump
|
||||
>>>>100 string >\0 \b, "%s"
|
||||
>>>>16 belong x \b, %dx
|
||||
>>>>20 belong x \b%dx
|
||||
>>>>12 belong x \b%d
|
||||
|
||||
# PDS - Planetary Data System
|
||||
# These files use Parameter Value Language in the header section.
|
||||
@ -400,8 +430,28 @@
|
||||
>2 byte 1 RLE compressed
|
||||
|
||||
# Adobe Photoshop
|
||||
# From: Asbjoern Sloth Toennesen <asbjorn@lila.io>
|
||||
0 string 8BPS Adobe Photoshop Image
|
||||
!:mime image/vnd.adobe.photoshop
|
||||
>4 beshort 2 (PSB)
|
||||
>18 belong x \b, %d x
|
||||
>14 belong x %d,
|
||||
>24 beshort 0 bitmap
|
||||
>24 beshort 1 grayscale
|
||||
>>12 beshort 2 with alpha
|
||||
>24 beshort 2 indexed
|
||||
>24 beshort 3 RGB
|
||||
>>12 beshort 4 \bA
|
||||
>24 beshort 4 CMYK
|
||||
>>12 beshort 5 \bA
|
||||
>24 beshort 7 multichannel
|
||||
>24 beshort 8 duotone
|
||||
>24 beshort 9 lab
|
||||
>12 beshort > 1
|
||||
>>12 beshort x \b, %dx
|
||||
>12 beshort 1 \b,
|
||||
>22 beshort x %d-bit channel
|
||||
>12 beshort > 1 \bs
|
||||
|
||||
# XV thumbnail indicator (ThMO)
|
||||
0 string P7\ 332 XV thumbnail image data
|
||||
@ -529,11 +579,16 @@
|
||||
# Bio-Rad .PIC is an image format used by microscope control systems
|
||||
# and related image processing software used by biologists.
|
||||
# From: Vebjorn Ljosa <vebjorn@ljosa.com>
|
||||
54 leshort 12345 Bio-Rad .PIC Image File
|
||||
>0 leshort >0 %hd x
|
||||
>2 leshort >0 %hd,
|
||||
>4 leshort =1 1 image in file
|
||||
>4 leshort >1 %hd images in file
|
||||
# BOOL values are two-byte integers; use them to rule out false positives.
|
||||
# http://web.archive.org/web/20050317223257/www.cs.ubc.ca/spider/ladic/text/biorad.txt
|
||||
# Samples: http://www.loci.wisc.edu/software/sample-data
|
||||
14 leshort <2
|
||||
>62 leshort <2
|
||||
>>54 leshort 12345 Bio-Rad .PIC Image File
|
||||
>>>0 leshort >0 %hd x
|
||||
>>>2 leshort >0 %hd,
|
||||
>>>4 leshort =1 1 image in file
|
||||
>>>4 leshort >1 %hd images in file
|
||||
|
||||
# From Jan "Yenya" Kasprzak <kas@fi.muni.cz>
|
||||
# The description of *.mrw format can be found at
|
||||
@ -546,11 +601,14 @@
|
||||
# Submitted by: Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||
# Modified by (1): Abel Cheung <abelcheung@gmail.com>
|
||||
0 string AT&TFORM
|
||||
!:mime image/vnd.djvu
|
||||
>12 string DJVM DjVu multiple page document
|
||||
!:mime image/vnd.djvu
|
||||
>12 string DJVU DjVu image or single page document
|
||||
!:mime image/vnd.djvu
|
||||
>12 string DJVI DjVu shared document
|
||||
!:mime image/vnd.djvu
|
||||
>12 string THUM DjVu page thumbnails
|
||||
!:mime image/vnd.djvu
|
||||
|
||||
|
||||
# From Marc Espie
|
||||
@ -565,7 +623,7 @@
|
||||
# specifications at http://hdf.ncsa.uiuc.edu/
|
||||
0 belong 0x0e031301 Hierarchical Data Format (version 4) data
|
||||
!:mime application/x-hdf
|
||||
0 string \211HDF\r\n\032 Hierarchical Data Format (version 5) data
|
||||
0 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) data
|
||||
!:mime application/x-hdf
|
||||
|
||||
# From: Tobias Burnus <burnus@net-b.de>
|
||||
@ -605,3 +663,68 @@
|
||||
# JPEG 2000 Code Stream Bitmap
|
||||
# From Petr Splichal <psplicha@redhat.com>
|
||||
0 string \xFF\x4F\xFF\x51\x00 JPEG-2000 Code Stream Bitmap data
|
||||
|
||||
# From: Rick Richardson <rick.richardson@comcast.net>
|
||||
0 string GARMIN\ BITMAP\ 01 Garmin Bitmap file
|
||||
|
||||
# Type: Ulead Photo Explorer5 (.pe5)
|
||||
# URL: http://www.jisyo.com/cgibin/view.cgi?EXT=pe5 (Japanese)
|
||||
# From: Simon Horman <horms@debian.org>
|
||||
0 string IIO2H Ulead Photo Explorer5
|
||||
|
||||
# Type: X11 cursor
|
||||
# URL: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?view=markup
|
||||
# From: Mathias Brodala <info@noctus.net>
|
||||
0 string Xcur X11 cursor
|
||||
|
||||
# Type: Olympus ORF raw images.
|
||||
# URL: http://libopenraw.freedesktop.org/wiki/Olympus_ORF
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
0 string MMOR Olympus ORF raw image data, big-endian
|
||||
!:mime image/x-olympus-orf
|
||||
0 string IIRO Olympus ORF raw image data, little-endian
|
||||
!:mime image/x-olympus-orf
|
||||
0 string IIRS Olympus ORF raw image data, little-endian
|
||||
!:mime image/x-olympus-orf
|
||||
|
||||
# Type: files used in modern AVCHD camcoders to store clip information
|
||||
# Extension: .cpi
|
||||
# From: Alexander Danilov <alexander.a.danilov@gmail.com>
|
||||
0 string HDMV0100 AVCHD Clip Information
|
||||
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# URL: http://local.wasp.uwa.edu.au/~pbourke/dataformats/pic/
|
||||
# Radiance HDR; usually has .pic or .hdr extension.
|
||||
0 string #?RADIANCE\n Radiance HDR image data
|
||||
#!mime image/vnd.radiance
|
||||
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# URL: http://www.mpi-inf.mpg.de/resources/pfstools/pfs_format_spec.pdf
|
||||
# Used by the pfstools packages. The regex matches for the image size could
|
||||
# probably use some work. The MIME type is made up; if there's one in
|
||||
# actual common use, it should replace the one below.
|
||||
0 string PFS1\x0a PFS HDR image data
|
||||
#!mime image/x-pfs
|
||||
>1 regex [0-9]*\ \b, %s
|
||||
>>1 regex \ [0-9]{4} \bx%s
|
||||
|
||||
# Type: Foveon X3F
|
||||
# URL: http://www.photofo.com/downloads/x3f-raw-format.pdf
|
||||
# From: Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
# Note that the MIME type isn't defined anywhere that I can find; if
|
||||
# there's a canonical type for this format, it should replace this one.
|
||||
0 string FOVb Foveon X3F raw image data
|
||||
!:mime image/x-x3f
|
||||
>6 leshort x \b, version %d.
|
||||
>4 leshort x \b%d
|
||||
>28 lelong x \b, %dx
|
||||
>32 lelong x \b%d
|
||||
|
||||
# Paint.NET file
|
||||
# From Adam Buchbinder <adam.buchbinder@gmail.com>
|
||||
0 string PDN3 Paint.NET image data
|
||||
!:mime image/x-paintnet
|
||||
|
||||
# Not really an image.
|
||||
# From: "Tano M. Fotang" <mfotang@quanteq.com>
|
||||
0 string \x46\x4d\x52\x00 ISO/IEC 19794-2 Format Minutiae Record (FMR)
|
||||
|
@ -1,8 +1,9 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: inform,v 1.5 2009/09/19 16:28:09 christos Exp $
|
||||
# inform: file(1) magic for Inform interactive fiction language
|
||||
|
||||
# URL: http://www.inform-fiction.org/
|
||||
# From: Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
0 search/cB/100 constant\ story Inform source text
|
||||
0 search/100/cW constant\ story Inform source text
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: intel,v 1.10 2011/03/30 19:51:00 christos Exp $
|
||||
# intel: file(1) magic for x86 Unix
|
||||
#
|
||||
# Various flavors of x86 UNIX executable/object (other than Xenix, which
|
||||
@ -45,3 +46,8 @@
|
||||
>28 string Adaptec Adaptec
|
||||
>42 string PROMISE Promise
|
||||
>2 byte x (%d*512)
|
||||
|
||||
# Flash descriptors for Intel SPI flash roms.
|
||||
# From Dr. Jesus <j@hug.gs>
|
||||
0 lelong 0x0ff0a55a Intel serial flash for ICH/PCH ROM <= 5 or 3400 series A-step
|
||||
16 lelong 0x0ff0a55a Intel serial flash for PCH ROM
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: interleaf,v 1.10 2009/09/19 16:28:10 christos Exp $
|
||||
# interleaf: file(1) magic for InterLeaf TPS:
|
||||
#
|
||||
0 string =\210OPS Interleaf saved data
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: island,v 1.5 2009/09/19 16:28:10 christos Exp $
|
||||
# island: file(1) magic for IslandWite/IslandDraw, from SunOS 5.5.1
|
||||
# "/etc/magic":
|
||||
# From: guy@netapp.com (Guy Harris)
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: ispell,v 1.8 2009/09/19 16:28:10 christos Exp $
|
||||
# ispell: file(1) magic for ispell
|
||||
#
|
||||
# Ispell 3.0 has a magic of 0x9601 and ispell 3.1 has 0x9602. This magic
|
||||
|
15
Magdir/isz
Normal file
15
Magdir/isz
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: isz,v 1.1 2010/03/27 16:17:09 christos Exp $
|
||||
# ISO Zipped file format
|
||||
# http://www.ezbsystems.com/isz/iszspec.txt
|
||||
0 string IsZ! ISO Zipped file
|
||||
>4 byte x \b, header size %u
|
||||
>5 byte x \b, version %u
|
||||
>8 lelong x \b, serial %u
|
||||
#12 leshort x \b, sector size %u
|
||||
#>16 lelong x \b, total sectors %u
|
||||
>17 byte >0 \b, password protected
|
||||
#>24 lequad x \b, segment size %llu
|
||||
#>32 lelong x \b, blocks %u
|
||||
#>36 lelong x \b, block size %u
|
@ -1,4 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------
|
||||
# $File: java,v 1.12 2009/09/19 16:28:10 christos Exp $
|
||||
# Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the
|
||||
# same magic number, 0xcafebabe, so they are both handled
|
||||
# in the entry called "cafebabe".
|
||||
|
10
Magdir/jpeg
10
Magdir/jpeg
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: jpeg,v 1.16 2011/01/04 19:29:32 rrt Exp $
|
||||
# JPEG images
|
||||
# SunOS 5.5.1 had
|
||||
#
|
||||
@ -126,13 +127,8 @@
|
||||
# And if there was some sort of looping construct to do searches, plus a few
|
||||
# named accumulators, it would be even more effective...
|
||||
# At least we can show a comment if no other segments got inserted before:
|
||||
>(4.S+5) byte 0xFE
|
||||
>>(4.S+8) string >\0 \b, comment: "%s"
|
||||
# FIXME: When we can do non-byte counted strings, we can use that to get
|
||||
# the string's count, and fix Debian bug #283760
|
||||
#>(4.S+5) byte 0xFE \b, comment
|
||||
#>>(4.S+6) beshort x \b length=%d
|
||||
#>>(4.S+8) string >\0 \b, "%s"
|
||||
>(4.S+5) byte 0xFE \b, comment:
|
||||
>>(4.S+6) pstring/HJ x "%s"
|
||||
# Or, we can show the encoding type (I've included only the three most common)
|
||||
# and image dimensions if we are lucky and the SOFn (image segment) is here:
|
||||
>(4.S+5) byte 0xC0 \b, baseline
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: karma,v 1.6 2009/09/19 16:28:10 christos Exp $
|
||||
# karma: file(1) magic for Karma data files
|
||||
#
|
||||
# From <rgooch@atnf.csiro.au>
|
||||
|
@ -1,10 +1,11 @@
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# $File: kde,v 1.5 2010/11/25 15:00:12 christos Exp $
|
||||
# kde: file(1) magic for KDE
|
||||
|
||||
0 string [KDE\ Desktop\ Entry] KDE desktop entry
|
||||
0 string/t [KDE\ Desktop\ Entry] KDE desktop entry
|
||||
!:mime application/x-kdelnk
|
||||
0 string #\ KDE\ Config\ File KDE config file
|
||||
0 string/t #\ KDE\ Config\ File KDE config file
|
||||
!:mime application/x-kdelnk
|
||||
0 string #\ xmcd xmcd database file for kscd
|
||||
0 string/t #\ xmcd xmcd database file for kscd
|
||||
!:mime text/x-xmcd
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user