]> granicus.if.org Git - file/commitdiff
Initial revision
authorChristos Zoulas <christos@zoulas.com>
Sat, 27 Jun 1998 13:56:19 +0000 (13:56 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 27 Jun 1998 13:56:19 +0000 (13:56 +0000)
magic/Magdir/adventure [new file with mode: 0644]
magic/Magdir/gimp [new file with mode: 0644]
magic/Magdir/gnu [new file with mode: 0644]
magic/Magdir/octave [new file with mode: 0644]
magic/Magdir/olf [new file with mode: 0644]
magic/Magdir/teapot [new file with mode: 0644]
magic/Magdir/vicar [new file with mode: 0644]
magic/Magdir/wordperfect [new file with mode: 0644]
src/config.h [new file with mode: 0644]

diff --git a/magic/Magdir/adventure b/magic/Magdir/adventure
new file mode 100644 (file)
index 0000000..18ab94a
--- /dev/null
@@ -0,0 +1,20 @@
+
+#------------------------------------------------------------------------------
+# adventure: file(1) magic for Adventure game files
+#
+# from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
+# ALAN
+# I assume there are other, lower versions, but these are the only ones I
+# saw in the archive.
+0      leshort 0x602   ALAN text adventure code data
+>2     byte    <10     version 2.6%d
+
+# Infocom 
+0      byte    <9      Infocom game data (Z-machine %d,
+>3     leshort <0x7fff Release %3d,
+>18    string  >\0     Serial %.6s)
+
+# TADS (Text Adventure Development System)
+0      string  TADS    TADS game data
+>13    string  >\0     (ver. %.6s,
+>22    string  >\0     date %s)
diff --git a/magic/Magdir/gimp b/magic/Magdir/gimp
new file mode 100644 (file)
index 0000000..286fa9c
--- /dev/null
@@ -0,0 +1,32 @@
+#------------------------------------------------------------------------------
+# GIMP Gradient: file(1) magic for the GIMP's gradient data files
+# by Federico Mena <federico@nuclecu.unam.mx>
+
+0       string          GIMP\ Gradient  GIMP gradient data
+
+#------------------------------------------------------------------------------
+# XCF:  file(1) magic for the XCF image format used in the GIMP developed
+#       by Spencer Kimball and Peter Mattis
+#       ('Bucky' LaDieu, nega@vt.edu)
+
+0       string          gimp\ xcf\ file GIMP XCF image data,
+>14     belong          x               %ld x
+>18     belong          x               %ld,
+>22     belong          0               RGB Color
+>22     belong          1               Greyscale
+>22     belong          2               Indexed Color
+
+#------------------------------------------------------------------------------
+# XCF:  file(1) magic for the patterns used in the GIMP, developed
+#       by Spencer Kimball and Peter Mattis
+#       ('Bucky' LaDieu, nega@vt.edu)
+
+20      string          GPAT            GIMP pattern data,
+>24     string          x               %s
+
+#------------------------------------------------------------------------------
+# XCF:  file(1) magic for the brushes used in the GIMP, developed
+#       by Spencer Kimball and Peter Mattis
+#       ('Bucky' LaDieu, nega@vt.edu)
+
+20      string          GIMP            GIMP brush data
diff --git a/magic/Magdir/gnu b/magic/Magdir/gnu
new file mode 100644 (file)
index 0000000..85af567
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# GNU nlsutils message catalog file format
+#
+0      string          \336\22\4\225   GNU message catalog (little endian),
+>4     lelong          x               revision %d,
+>8     lelong          x               %d messages
+0      string          \225\4\22\336   GNU message catalog (big endian),
+>4     belong          x               revision %d,
+>8     belong          x               %d messages
diff --git a/magic/Magdir/octave b/magic/Magdir/octave
new file mode 100644 (file)
index 0000000..3093148
--- /dev/null
@@ -0,0 +1,4 @@
+#------------------------------------------------------------------------------
+# octave binary data file(1) magic, from Dirk Eddelbuettel <edd@debian.org>
+0      string          Octave-1-L      Octave binary data (little endian)
+0      string          Octave-1-B      Octave binary data (big endian)
diff --git a/magic/Magdir/olf b/magic/Magdir/olf
new file mode 100644 (file)
index 0000000..e698c36
--- /dev/null
@@ -0,0 +1,97 @@
+
+#------------------------------------------------------------------------------
+# olf:  file(1) magic for OLF executables
+#
+# We have to check the byte order flag to see what byte order all the
+# other stuff in the header is in.
+#
+# MIPS R3000 may also be for MIPS R2000.
+# What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
+#
+# Created by Erik Theisen <etheisen@openbsd.org>
+# Based on elf from Daniel Quinlan <quinlan@yggdrasil.com>
+0      string          \177OLF         OLF
+>4     byte            0               invalid class
+>4     byte            1               32-bit
+>4     byte            2               64-bit
+>7     byte            0               invalid os
+>7     byte            1               OpenBSD
+>7     byte            2               NetBSD
+>7     byte            3               FreeBSD
+>7     byte            4               4.4BSD
+>7     byte            5               Linux
+>7     byte            6               SVR4
+>7     byte            7               esix
+>7     byte            8               Solaris
+>7     byte            9               Irix
+>7     byte            10              SCO
+>7     byte            11              Dell
+>7     byte            12              NCR
+>5     byte            0               invalid byte order
+>5     byte            1               LSB
+>>16   leshort         0               no file type,
+>>16   leshort         1               relocatable,
+>>16   leshort         2               executable,
+>>16   leshort         3               shared object,
+# Core handling from Peter Tobias <tobias@server.et-inf.fho-emden.de>
+# corrections by Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de>
+>>16   leshort         4               core file
+>>>(0x38+0xcc) string  >\0             of '%s'
+>>>(0x38+0x10) lelong  >0              (signal %d),
+>>16   leshort         &0xff00         processor-specific,
+>>18   leshort         0               no machine,
+>>18   leshort         1               AT&T WE32100 - invalid byte order,
+>>18   leshort         2               SPARC - invalid byte order,
+>>18   leshort         3               Intel 80386,
+>>18   leshort         4               Motorola 68000 - invalid byte order,
+>>18   leshort         5               Motorola 88000 - invalid byte order,
+>>18   leshort         6               Intel 80486,
+>>18   leshort         7               Intel 80860,
+>>18   leshort         8               MIPS R3000_BE - invalid byte order,
+>>18   leshort         9               Amdahl - invalid byte order,
+>>18   leshort         10              MIPS R3000_LE,
+>>18   leshort         11              RS6000 - invalid byte order,
+>>18   leshort         15              PA-RISC - invalid byte order,
+>>18   leshort         16              nCUBE,
+>>18   leshort         17              VPP500,
+>>18   leshort         18              SPARC32PLUS,
+>>18   leshort         20              PowerPC,
+>>18   leshort         0x9026          Alpha,
+>>20   lelong          0               invalid version
+>>20   lelong          1               version 1
+>>36   lelong          1               MathCoPro/FPU/MAU Required
+>8     string          >\0             (%s)
+>5     byte            2               MSB
+>>16   beshort         0               no file type,
+>>16   beshort         1               relocatable,
+>>16   beshort         2               executable,
+>>16   beshort         3               shared object,
+>>16   beshort         4               core file,
+>>>(0x38+0xcc) string  >\0             of '%s'
+>>>(0x38+0x10) belong  >0              (signal %d),
+>>16   beshort         &0xff00         processor-specific,
+>>18   beshort         0               no machine,
+>>18   beshort         1               AT&T WE32100,
+>>18   beshort         2               SPARC,
+>>18   beshort         3               Intel 80386 - invalid byte order,
+>>18   beshort         4               Motorola 68000,
+>>18   beshort         5               Motorola 88000,
+>>18   beshort         6               Intel 80486 - invalid byte order,
+>>18   beshort         7               Intel 80860,
+>>18   beshort         8               MIPS R3000_BE,
+>>18   beshort         9               Amdahl,
+>>18   beshort         10              MIPS R3000_LE - invalid byte order,
+>>18   beshort         11              RS6000,
+>>18   beshort         15              PA-RISC,
+>>18   beshort         16              nCUBE,
+>>18   beshort         17              VPP500,
+>>18   beshort         18              SPARC32PLUS,
+>>18   beshort         20              PowerPC or cisco 4500,
+>>18   beshort         21              cisco 7500,
+>>18   beshort         24              cisco SVIP,
+>>18   beshort         25              cisco 7200,
+>>18   beshort         36              cisco 12000,
+>>18   beshort         0x9026          Alpha,
+>>20   belong          0               invalid version
+>>20   belong          1               version 1
+>>36   belong          1               MathCoPro/FPU/MAU Required
diff --git a/magic/Magdir/teapot b/magic/Magdir/teapot
new file mode 100644 (file)
index 0000000..d9554bf
--- /dev/null
@@ -0,0 +1,4 @@
+#------------------------------------------------------------------------------
+# teapot:  file(1) magic for "teapot" spreadsheet
+#
+0       string          #!teapot\012xdr      teapot work sheet (XDR format)
diff --git a/magic/Magdir/vicar b/magic/Magdir/vicar
new file mode 100644 (file)
index 0000000..ab216ee
--- /dev/null
@@ -0,0 +1,16 @@
+
+#------------------------------------------------------------------------------
+# vicar:  file(1) magic for VICAR files.
+#
+# From: Ossama Othman <othman@astrosun.tn.cornell.edu
+# VICAR is JPL's in-house spacecraft image processing program
+# VICAR image
+0      string  LBLSIZE=        VICAR image data
+>32    string  BYTE            \b, 8 bits  = VAX byte
+>32    string  HALF            \b, 16 bits = VAX word     = Fortran INTEGER*2
+>32    string  FULL            \b, 32 bits = VAX longword = Fortran INTEGER*4
+>32    string  REAL            \b, 32 bits = VAX longword = Fortran REAL*4
+>32    string  DOUB            \b, 64 bits = VAX quadword = Fortran REAL*8
+>32    string  COMPLEX         \b, 64 bits = VAX quadword = Fortran COMPLEX*8
+# VICAR label file
+43     string  SFDU_LABEL      VICAR label file
diff --git a/magic/Magdir/wordperfect b/magic/Magdir/wordperfect
new file mode 100644 (file)
index 0000000..c77ac8d
--- /dev/null
@@ -0,0 +1,91 @@
+#WordPerfect type files Version 1.6 - PLEASE DO NOT REMOVE THIS LINE
+0      string  \377WPC\020\000\000\000\022\012\001\001\000\000\000\000 (WP) loadable text
+>15    byte    0       Optimized for Intel
+>15    byte    1       Optimized for Non-Intel
+1      string  WPC     (Corel/WP)
+>8     short   257     WordPerfect macro
+>8     short   258     WordPerfect help file
+>8     short   259     WordPerfect keyboard file
+>8     short   266     WordPerfect document
+>8     short   267     WordPerfect dictionary
+>8     short   268     WordPerfect thesaurus
+>8     short   269     WordPerfect block
+>8     short   270     WordPerfect rectangular block
+>8     short   271     WordPerfect column block
+>8     short   272     WordPerfect printer data
+>8     short   275     WordPerfect printer data
+>8     short   276     WordPerfect driver resource data
+>8     short   279     WordPerfect hyphenation code
+>8     short   280     WordPerfect hyphenation data
+>8     short   281     WordPerfect macro resource data
+>8     short   283     WordPerfect hyphenation lex
+>8     short   285     WordPerfect wordlist
+>8     short   286     WordPerfect equation resource data
+>8     short   289     WordPerfect spell rules
+>8     short   290     WordPerfect dictionary rules
+>8     short   295     WordPerfect spell rules (Microlytics)
+>8     short   299     WordPerfect settings file
+>8     short   301     WordPerfect 4.2 document
+>8     short   325     WordPerfect dialog file
+>8     short   332     WordPerfect button bar
+>8     short   513     Shell macro
+>8     short   522     Shell definition
+>8     short   769     Notebook macro
+>8     short   770     Notebook help file
+>8     short   771     Notebook keyboard file
+>8     short   778     Notebook definition
+>8     short   1026    Calculator help file
+>8     short   1538    Calendar help file
+>8     short   1546    Calendar data file
+>8     short   1793    Editor macro
+>8     short   1794    Editor help file
+>8     short   1795    Editor keyboard file
+>8     short   1817    Editor macro resource file
+>8     short   2049    Macro editor macro
+>8     short   2050    Macro editor help file
+>8     short   2051    Macro editor keyboard file
+>8     short   2305    PlanPerfect macro
+>8     short   2306    PlanPerfect help file
+>8     short   2307    PlanPerfect keyboard file
+>8     short   2314    PlanPerfect worksheet
+>8     short   2319    PlanPerfect printer definition
+>8     short   2322    PlanPerfect graphic definition
+>8     short   2323    PlanPerfect data
+>8     short   2324    PlanPerfect temporary printer
+>8     short   2329    PlanPerfect macro resource data
+>8     byte    11      Mail
+>8     short   2818    help file
+>8     short   2821    distribution list
+>8     short   2826    out box
+>8     short   2827    in box
+>8     short   2836    users archived mailbox
+>8     short   2837    archived message database
+>8     short   2838    archived attachments
+>8     short   3083    Printer temporary file
+>8     short   3330    Scheduler help file
+>8     short   3338    Scheduler in file
+>8     short   3339    Scheduler out file
+>8     short   3594    GroupWise settings file
+>8     short   3601    GroupWise directory services
+>8     short   3627    GroupWise settings file
+>8     short   4362    Terminal resource data
+>8     short   4363    Terminal resource data
+>8     short   4395    Terminal resource data
+>8     short   4619    GUI loadable text
+>8     short   4620    graphics resource data
+>8     short   4621    printer settings file
+>8     short   4622    port definition file
+>8     short   4623    print queue parameters
+>8     short   4624    compressed file
+>8     short   5130    Network service msg file
+>8     short   5131    Network service msg file
+>8     short   5132    Async gateway login msg
+>8     short   5134    GroupWise message file
+>8     short   7956    GroupWise admin domain database
+>8     short   7957    GroupWise admin host database
+>8     short   7959    GroupWise admin remote host database
+>8     short   7960    GroupWise admin ADS deferment data file
+>8     short   8458    IntelliTAG (SGML) compiled DTD
+>8     long    18219264        WordPerfect graphic image (1.0)
+>8     long    18219520        WordPerfect graphic image (2.0)
+#end of WordPerfect type files Version 1.6 - PLEASE DO NOT REMOVE THIS LINE
diff --git a/src/config.h b/src/config.h
new file mode 100644 (file)
index 0000000..efd00d4
--- /dev/null
@@ -0,0 +1,19 @@
+/* config.h.in.  Generated automatically from configure.in by autoheader.  */
+
+/* Define to empty if the keyword does not work.  */
+#undef const
+
+/* Define if your struct stat has st_rdev.  */
+#undef HAVE_ST_RDEV
+
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
+#undef HAVE_SYS_WAIT_H
+
+/* Define to `long' if <sys/types.h> doesn't define.  */
+#undef off_t
+
+/* Define to `unsigned' if <sys/types.h> doesn't define.  */
+#undef size_t
+
+/* Define if you have the ANSI C header files.  */
+#undef STDC_HEADERS