Import file-5.10.
[dragonfly.git] / contrib / file / magic / Magdir / gnu
1
2 #------------------------------------------------------------------------------
3 # $File: gnu,v 1.12 2011/12/08 12:12:46 rrt Exp $
4 # gnu:  file(1) magic for various GNU tools
5 #
6 # GNU nlsutils message catalog file format
7 #
8 0       string          \336\22\4\225   GNU message catalog (little endian),
9 >4      lelong          x               revision %d,
10 >8      lelong          x               %d messages
11 0       string          \225\4\22\336   GNU message catalog (big endian),
12 >4      belong          x               revision %d,
13 >8      belong          x               %d messages
14 # message catalogs, from Mitchum DSouza <m.dsouza@mrc-apu.cam.ac.uk>
15 0       string          *nazgul*        Nazgul style compiled message catalog
16 >8      lelong          >0              \b, version %ld
17
18 # GnuPG
19 # The format is very similar to pgp
20 0       string          \001gpg                 GPG key trust database
21 >4      byte            x                       version %d
22 # Note: magic.mime had 0x8501 for the next line instead of 0x8502
23 0       beshort         0x8502                  GPG encrypted data
24 !:mime  text/PGP # encoding: data
25
26 # This magic is not particularly good, as the keyrings don't have true
27 # magic. Nevertheless, it covers many keyrings.
28 0       beshort         0x9901                  GPG key public ring
29 !:mime  application/x-gnupg-keyring
30
31 # Gnumeric spreadsheet
32 # This entry is only semi-helpful, as Gnumeric compresses its files, so
33 # they will ordinarily reported as "compressed", but at least -z helps
34 39      string          =<gmr:Workbook           Gnumeric spreadsheet
35
36 # From: James Youngman <jay@gnu.org> 
37 # gnu find magic
38 0       string  \0LOCATE        GNU findutils locate database data
39 >7      string  >\0             \b, format %s
40 >7      string  02              \b (frcode)
41
42 # Files produced by GNU gettext
43 0       long    0xDE120495              GNU-format message catalog data
44 0       long    0x950412DE              GNU-format message catalog data
45
46 # gettext message catalogue
47 0       regex   \^msgid\                GNU gettext message catalogue text
48 !:mime text/x-po