aboutsummaryrefslogtreecommitdiff
path: root/src/gdbm.magic
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-07-13 14:38:30 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-07-13 14:38:30 +0300
commit4390f707bbbde46353fb312dd57424a1d74549f7 (patch)
tree129c6dd5144b3a54532468d16713bbc7be6142c2 /src/gdbm.magic
parent6810fb9cda131a9fabd1615f9a7c2cf1c904c24c (diff)
downloadgdbm-4390f707bbbde46353fb312dd57424a1d74549f7.tar.gz
gdbm-4390f707bbbde46353fb312dd57424a1d74549f7.tar.bz2
Provide the gdbm.magic file for file(1).
* src/gdbm.magic: New file. * README: Document existence of the magic file. * src/Makefile.am (EXTRA_DIST): Add gdbm.magic.
Diffstat (limited to 'src/gdbm.magic')
-rw-r--r--src/gdbm.magic39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gdbm.magic b/src/gdbm.magic
new file mode 100644
index 0000000..71bc7d3
--- /dev/null
+++ b/src/gdbm.magic
@@ -0,0 +1,39 @@
+# A "magic" file for file(1).
+# Copyright (C) 2016 Free Software Foundation, Inc.
+#
+# GDBM is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GDBM is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GDBM. If not, see <http://www.gnu.org/licenses/>.
+
+0 long 0x13579acf GNU DBM 64-bit
+!:mime application/octet-stream
+>4 long x \b; block size=%d
+>8 quad x \b; dir offset=%lld
+>16 long x \b, size=%d
+>20 long x \b, bits=%d
+>24 long x \b; bucket size=%d
+>28 long x \b, elts=%d
+
+0 long 0x13579acd GNU DBM 32-bit
+!:mime application/octet-stream
+
+0 long 0x13579ace GNU DBM old format
+!:mime application/octet-stream
+
+0 long 0xce9a5713 GNU DBM old format, byte-swapped
+!:mime application/octet-stream
+
+0 long 0xcd9a5713 GNU DBM 32-bit, byte-swapped
+!:mime application/octet-stream
+
+0 long 0xcf9a5713 GNU DBM 64-bit, byte-swapped
+!:mime application/octet-stream

Return to:

Send suggestions and report system problems to the System administrator.