head 1.2; access; symbols perseant-exfatfs-base-20250801:1.2 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.22 perseant-exfatfs-base:1.2 cjep_sun2x:1.2.0.20 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.18 cjep_staticlib_x-base:1.2 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 phil-wifi-20200406:1.2 pgoyette-compat-merge-20190127:1.2 pgoyette-compat-20190127:1.2 pgoyette-compat-20190118:1.2 pgoyette-compat-1226:1.2 pgoyette-compat-1126:1.2 pgoyette-compat-1020:1.2 pgoyette-compat-0930:1.2 pgoyette-compat-0906:1.2 pgoyette-compat-0728:1.2 pgoyette-compat-0625:1.2 pgoyette-compat-0521:1.2 pgoyette-compat-0502:1.2 pgoyette-compat-0422:1.2 pgoyette-compat-0415:1.2 pgoyette-compat-0407:1.2 pgoyette-compat-0330:1.2 pgoyette-compat-0322:1.2 pgoyette-compat-0315:1.2 pgoyette-compat:1.2.0.16 pgoyette-compat-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.14 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 bouyer-socketcan:1.2.0.12 bouyer-socketcan-base:1.2 pgoyette-localcount-20170107:1.2 pgoyette-localcount-20161104:1.2 localcount-20160914:1.2 pgoyette-localcount-20160806:1.2 pgoyette-localcount-20160726:1.2 pgoyette-localcount:1.2.0.10 pgoyette-localcount-base:1.2 netbsd-5-2-3-RELEASE:1.1.1.7 netbsd-5-1-5-RELEASE:1.1.1.7 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.2 tls-earlyentropy:1.2.0.6 tls-earlyentropy-base:1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 netbsd-5-2-2-RELEASE:1.1.1.7 netbsd-5-1-4-RELEASE:1.1.1.7 netbsd-5-2-1-RELEASE:1.1.1.7 netbsd-5-1-3-RELEASE:1.1.1.7 agc-symver:1.2.0.8 agc-symver-base:1.2 tls-maxphys-base:1.2 yamt-pagecache-base8:1.2 netbsd-5-2:1.1.1.7.0.2 yamt-pagecache-base7:1.2 netbsd-5-2-RELEASE:1.1.1.7 netbsd-5-2-RC1:1.1.1.7 yamt-pagecache-base6:1.2 yamt-pagecache-base5:1.2 yamt-pagecache-base4:1.2 netbsd-5-1-2-RELEASE:1.1.1.7 netbsd-5-1-1-RELEASE:1.1.1.7 yamt-pagecache-base3:1.2 yamt-pagecache-base2:1.2 yamt-pagecache:1.2.0.4 yamt-pagecache-base:1.2 bouyer-quota2-nbase:1.2 bouyer-quota2:1.2.0.2 bouyer-quota2-base:1.2 matt-nb5-mips64-premerge-20101231:1.1.1.7 matt-nb5-pq3:1.1.1.7.0.14 matt-nb5-pq3-base:1.1.1.7 netbsd-5-1:1.1.1.7.0.12 netbsd-5-1-RELEASE:1.1.1.7 netbsd-5-1-RC4:1.1.1.7 matt-nb5-mips64-k15:1.1.1.7 netbsd-5-1-RC3:1.1.1.7 netbsd-5-1-RC2:1.1.1.7 netbsd-5-1-RC1:1.1.1.7 netbsd-5-0-2-RELEASE:1.1.1.7 matt-nb5-mips64-premerge-20091211:1.1.1.7 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.1.7 matt-nb4-mips64-k7-u2a-k9b:1.1.1.7 matt-nb5-mips64-u1-k1-k5:1.1.1.7 matt-nb5-mips64:1.1.1.7.0.10 netbsd-5-0-1-RELEASE:1.1.1.7 jym-xensuspend-nbase:1.1.1.7 netbsd-5-0:1.1.1.7.0.8 netbsd-5-0-RELEASE:1.1.1.7 netbsd-5-0-RC4:1.1.1.7 netbsd-5-0-RC3:1.1.1.7 netbsd-5-0-RC2:1.1.1.7 jym-xensuspend:1.1.1.7.0.6 jym-xensuspend-base:1.1.1.7 netbsd-5-0-RC1:1.1.1.7 netbsd-5:1.1.1.7.0.4 netbsd-5-base:1.1.1.7 matt-mips64-base2:1.1.1.7 matt-mips64:1.1.1.6.0.14 netbsd-4-0-1-RELEASE:1.1.1.5.2.1 wrstuden-revivesa-base-3:1.1.1.7 wrstuden-revivesa-base-2:1.1.1.7 wrstuden-fixsa-newbase:1.1.1.5.2.1 FILE4_26:1.1.1.7 wrstuden-revivesa-base-1:1.1.1.6 yamt-pf42-base4:1.1.1.6 yamt-pf42-base3:1.1.1.6 hpcarm-cleanup-nbase:1.1.1.6 yamt-pf42-baseX:1.1.1.6 yamt-pf42-base2:1.1.1.6 wrstuden-revivesa:1.1.1.6.0.12 wrstuden-revivesa-base:1.1.1.6 yamt-pf42:1.1.1.6.0.10 yamt-pf42-base:1.1.1.6 keiichi-mipv6:1.1.1.6.0.8 keiichi-mipv6-base:1.1.1.6 matt-armv6-nbase:1.1.1.6 matt-armv6-prevmlocking:1.1.1.6 wrstuden-fixsa-base-1:1.1.1.5.2.1 netbsd-4-0:1.1.1.5.2.1.0.2 netbsd-4-0-RELEASE:1.1.1.5.2.1 cube-autoconf:1.1.1.6.0.6 cube-autoconf-base:1.1.1.6 netbsd-4-0-RC5:1.1.1.5.2.1 netbsd-4-0-RC4:1.1.1.5.2.1 netbsd-4-0-RC3:1.1.1.5.2.1 netbsd-4-0-RC2:1.1.1.5.2.1 netbsd-4-0-RC1:1.1.1.5.2.1 matt-armv6:1.1.1.6.0.4 matt-armv6-base:1.1.1.6 matt-mips64-base:1.1.1.6 hpcarm-cleanup:1.1.1.6.0.2 hpcarm-cleanup-base:1.1.1.6 netbsd-3-1-1-RELEASE:1.1.1.4 netbsd-3-0-3-RELEASE:1.1.1.4 FILE4_21:1.1.1.6 wrstuden-fixsa:1.1.1.5.0.4 wrstuden-fixsa-base:1.1.1.5.2.1 FILE4_20:1.1.1.6 abandoned-netbsd-4-base:1.1.1.4 abandoned-netbsd-4:1.1.1.4.0.6 FILE4_18:1.1.1.5 netbsd-3-1:1.1.1.4.0.8 netbsd-3-1-RELEASE:1.1.1.4 netbsd-3-0-2-RELEASE:1.1.1.4 netbsd-3-1-RC4:1.1.1.4 netbsd-3-1-RC3:1.1.1.4 netbsd-3-1-RC2:1.1.1.4 netbsd-3-1-RC1:1.1.1.4 netbsd-4:1.1.1.5.0.2 netbsd-4-base:1.1.1.5 netbsd-3-0-1-RELEASE:1.1.1.4 netbsd-3-0:1.1.1.4.0.4 netbsd-3-0-RELEASE:1.1.1.4 netbsd-3-0-RC6:1.1.1.4 netbsd-3-0-RC5:1.1.1.4 netbsd-3-0-RC4:1.1.1.4 netbsd-3-0-RC3:1.1.1.4 netbsd-3-0-RC2:1.1.1.4 netbsd-3-0-RC1:1.1.1.4 netbsd-2-0-3-RELEASE:1.1.1.3 netbsd-2-1:1.1.1.3.0.6 netbsd-2-1-RELEASE:1.1.1.3 FILE4_16:1.1.1.4 netbsd-2-1-RC6:1.1.1.3 netbsd-2-1-RC5:1.1.1.3 netbsd-2-1-RC4:1.1.1.3 netbsd-2-1-RC3:1.1.1.3 netbsd-2-1-RC2:1.1.1.3 netbsd-2-1-RC1:1.1.1.3 netbsd-2-0-2-RELEASE:1.1.1.3 netbsd-3:1.1.1.4.0.2 netbsd-3-base:1.1.1.4 FILE4_13:1.1.1.4 FILE413-BEFOREIMPORT:1.1.1.3 netbsd-2-0-1-RELEASE:1.1.1.3 netbsd-2:1.1.1.3.0.4 netbsd-2-base:1.1.1.3 FILE4_12:1.1.1.3 netbsd-2-0-RELEASE:1.1.1.3 netbsd-2-0-RC5:1.1.1.3 netbsd-2-0-RC4:1.1.1.3 netbsd-2-0-RC3:1.1.1.3 netbsd-2-0-RC2:1.1.1.3 netbsd-2-0-RC1:1.1.1.3 FILE4_10:1.1.1.3 FILE4_09:1.1.1.3 netbsd-2-0:1.1.1.3.0.2 netbsd-2-0-base:1.1.1.3 FILE4_08:1.1.1.3 FILE4_06:1.1.1.2 FILE4_04:1.1.1.2 FILE4_03:1.1.1.2 FILE4_00:1.1.1.1 CHRISTOS:1.1.1; locks; strict; comment @# @; 1.2 date 2009.10.17.23.05.35; author snj; state dead; branches; next 1.1; 1.1 date 2003.03.25.22.30.26; author pooka; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.03.25.22.30.26; author pooka; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2003.05.25.21.28.35; author pooka; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2004.03.23.08.31.48; author pooka; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2005.02.21.14.33.26; author pooka; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2006.10.31.20.34.57; author pooka; state Exp; branches 1.1.1.5.2.1 1.1.1.5.4.1; next 1.1.1.6; 1.1.1.6 date 2007.03.04.14.54.57; author pooka; state Exp; branches 1.1.1.6.12.1; next 1.1.1.7; 1.1.1.7 date 2008.08.30.11.21.01; author christos; state Exp; branches; next ; 1.1.1.5.2.1 date 2007.06.15.16.14.43; author liamjfoy; state Exp; branches; next ; 1.1.1.5.4.1 date 2007.09.03.06.53.25; author wrstuden; state Exp; branches; next ; 1.1.1.6.12.1 date 2008.09.18.04.44.40; author wrstuden; state Exp; branches; next ; desc @@ 1.2 log @This hasn't been used in a while. Long live external/bsd/file! @ text @ #------------------------------------------------------------------------------ # database: file(1) magic for various databases # # extracted from header/code files by Graeme Wilford (eep2gw@@ee.surrey.ac.uk) # # # GDBM magic numbers # Will be maintained as part of the GDBM distribution in the future. # 0 belong 0x13579ace GNU dbm 1.x or ndbm database, big endian 0 lelong 0x13579ace GNU dbm 1.x or ndbm database, little endian 0 string GDBM GNU dbm 2.x database # # Berkeley DB # # Ian Darwin's file /etc/magic files: big/little-endian version. # # Hash 1.85/1.86 databases store metadata in network byte order. # Btree 1.85/1.86 databases store the metadata in host byte order. # Hash and Btree 2.X and later databases store the metadata in host byte order. 0 long 0x00061561 Berkeley DB >8 belong 4321 >>4 belong >2 1.86 >>4 belong <3 1.85 >>4 belong >0 (Hash, version %d, native byte-order) >8 belong 1234 >>4 belong >2 1.86 >>4 belong <3 1.85 >>4 belong >0 (Hash, version %d, little-endian) 0 belong 0x00061561 Berkeley DB >8 belong 4321 >>4 belong >2 1.86 >>4 belong <3 1.85 >>4 belong >0 (Hash, version %d, big-endian) >8 belong 1234 >>4 belong >2 1.86 >>4 belong <3 1.85 >>4 belong >0 (Hash, version %d, native byte-order) 0 long 0x00053162 Berkeley DB 1.85/1.86 >4 long >0 (Btree, version %d, native byte-order) 0 belong 0x00053162 Berkeley DB 1.85/1.86 >4 belong >0 (Btree, version %d, big-endian) 0 lelong 0x00053162 Berkeley DB 1.85/1.86 >4 lelong >0 (Btree, version %d, little-endian) 12 long 0x00061561 Berkeley DB >16 long >0 (Hash, version %d, native byte-order) 12 belong 0x00061561 Berkeley DB >16 belong >0 (Hash, version %d, big-endian) 12 lelong 0x00061561 Berkeley DB >16 lelong >0 (Hash, version %d, little-endian) 12 long 0x00053162 Berkeley DB >16 long >0 (Btree, version %d, native byte-order) 12 belong 0x00053162 Berkeley DB >16 belong >0 (Btree, version %d, big-endian) 12 lelong 0x00053162 Berkeley DB >16 lelong >0 (Btree, version %d, little-endian) 12 long 0x00042253 Berkeley DB >16 long >0 (Queue, version %d, native byte-order) 12 belong 0x00042253 Berkeley DB >16 belong >0 (Queue, version %d, big-endian) 12 lelong 0x00042253 Berkeley DB >16 lelong >0 (Queue, version %d, little-endian) # # # Round Robin Database Tool by Tobias Oetiker 0 string RRD RRDTool DB >4 string x version %s #---------------------------------------------------------------------- # ROOT: file(1) magic for ROOT databases # 0 string root\0 ROOT file >4 belong x Version %d >33 belong x (Compression: %d) @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @file 4.00 @ text @@ 1.1.1.2 log @file 4.03 small changes & fixes @ text @a80 115 # XXX: Weak magic. # Alex Ott ## Paradox file formats #2 leshort 0x0800 Paradox #>0x39 byte 3 v. 3.0 #>0x39 byte 4 v. 3.5 #>0x39 byte 9 v. 4.x #>0x39 byte 10 v. 5.x #>0x39 byte 11 v. 5.x #>0x39 byte 12 v. 7.x #>>0x04 byte 0 indexed .DB data file #>>0x04 byte 1 primary index .PX file #>>0x04 byte 2 non-indexed .DB data file #>>0x04 byte 3 non-incrementing secondary index .Xnn file #>>0x04 byte 4 secondary index .Ynn file #>>0x04 byte 5 incrementing secondary index .Xnn file #>>0x04 byte 6 non-incrementing secondary index .XGn file #>>0x04 byte 7 secondary index .YGn file #>>>0x04 byte 8 incrementing secondary index .XGn file ## XBase database files #0 byte 0x02 #>8 leshort >0 #>>12 leshort 0 FoxBase #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x03 #>8 leshort >0 #>>12 leshort 0 FoxBase+, FoxPro, dBaseIII+, dBaseIV, no memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x04 #>8 leshort >0 #>>12 leshort 0 dBASE IV no memo file #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x05 #>8 leshort >0 #>>12 leshort 0 dBASE V no memo file #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x30 #>8 leshort >0 #>>12 leshort 0 Visual FoxPro #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x43 #>8 leshort >0 #>>12 leshort 0 FlagShip with memo var size #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x7b #>8 leshort >0 #>>12 leshort 0 dBASEIV with memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x83 #>8 leshort >0 #>>12 leshort 0 FoxBase+, dBaseIII+ with memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x8b #>8 leshort >0 #>>12 leshort 0 dBaseIV with memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0x8e #>8 leshort >0 #>>12 leshort 0 dBaseIV with SQL Table #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0xb3 #>8 leshort >0 #>>12 leshort 0 FlagShip with .dbt memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 byte 0xf5 #>8 leshort >0 #>>12 leshort 0 FoxPro with memo #>>>0x04 lelong 0 (no records) #>>>0x04 lelong >0 (%ld records) # #0 leshort 0x0006 DBase 3 index file # MS Access database 4 string Standard\ Jet\ DB Microsoft Access Database # TDB database from Samba et al - Martin Pool 0 string TDB\ file TDB database >32 lelong 0x2601196D version 6, little-endian >>36 lelong x hash size %d bytes # SE Linux policy database 0 lelong 0xf97cff8c SE Linux policy >16 lelong x v%d >20 lelong 1 MLS >24 lelong x %d symbols >28 lelong x %d ocons # ICE authority file data (Wolfram Kleff) 2 string ICE ICE authority data # X11 Xauthority file (Wolfram Kleff) 14 string MIT-MAGIC-COOKIE-1 X11 Xauthority data @ 1.1.1.3 log @file 4.08: bugfixes 'n more magic 'n stuff @ text @a194 4 10 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 11 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 12 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 13 string MIT-MAGIC-COOKIE-1 X11 Xauthority data a195 4 15 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 16 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 17 string MIT-MAGIC-COOKIE-1 X11 Xauthority data 18 string MIT-MAGIC-COOKIE-1 X11 Xauthority data @ 1.1.1.4 log @file 4.13 Just the usual bugfixes and magic additions, nothing major. @ text @a69 9 # From Max Bowsher. 12 long 0x00040988 Berkeley DB >16 long >0 (Log, version %d, native byte-order) 12 belong 0x00040988 Berkeley DB >16 belong >0 (Log, version %d, big-endian) 12 lelong 0x00040988 Berkeley DB >16 lelong >0 (Log, version %d, little-endian) @ 1.1.1.5 log @file 4.18 changes since 4.16: bugfixes, magic improvements, other minor improvements @ text @a212 4 # SQLite (Ty Sarna) 0 string **\ This\ file\ contains\ an\ SQLite SQLite Database >&1 regex [^\ ]+ Version %s @ 1.1.1.5.4.1 log @Sync w/ NetBSD-4-RC_1 @ text @d213 4 @ 1.1.1.5.2.1 log @Pull up following (requested by pooka in ticket #724): bring file(1) to 4.21 @ text @d213 4 @ 1.1.1.6 log @file 4.20, contains fixes to the magic parser, new syntax and a buffer overflow fix @ text @d213 4 @ 1.1.1.6.12.1 log @Sync with wrstuden-revivesa-base-2. @ text @a11 1 !:mime application/x-gdbm a12 1 !:mime application/x-gdbm a13 1 !:mime application/x-gdbm a23 1 !:mime application/x-dbm a109 1 a113 1 #!:mime application/x-dbf a117 1 #!:mime application/x-dbf a123 1 #!:mime application/x-dbf a129 1 #!:mime application/x-dbf a135 1 #!:mime application/x-dbf a141 1 #!:mime application/x-dbf a147 1 #!:mime application/x-dbf a153 1 #!:mime application/x-dbf a159 1 #!:mime application/x-dbf a165 1 #!:mime application/x-dbf a171 1 #!:mime application/x-dbf a177 1 #!:mime application/x-dbf d186 1 a186 2 4 string Standard\ Jet\ DB Microsoft Access Database !:mime application/x-msaccess a212 14 # From: Maxime Henrion # PostgreSQL's custom dump format, Maxime Henrion 0 string PGDMP PostgreSQL custom database dump >5 byte x - v%d >6 byte x \b.%d >5 beshort <0x101 \b-0 >5 beshort >0x100 >>7 byte x \b-%d # Type: Advanced Data Format (ADF) database # URL: http://www.grc.nasa.gov/WWW/cgns/adf/ # From: Nicolas Chauvat 0 string @@(#)ADF\ Database CGNS Advanced Data Format @ 1.1.1.7 log @try-again for file-4.26 @ text @a11 1 !:mime application/x-gdbm a12 1 !:mime application/x-gdbm a13 1 !:mime application/x-gdbm a23 1 !:mime application/x-dbm a109 1 a113 1 #!:mime application/x-dbf a117 1 #!:mime application/x-dbf a123 1 #!:mime application/x-dbf a129 1 #!:mime application/x-dbf a135 1 #!:mime application/x-dbf a141 1 #!:mime application/x-dbf a147 1 #!:mime application/x-dbf a153 1 #!:mime application/x-dbf a159 1 #!:mime application/x-dbf a165 1 #!:mime application/x-dbf a171 1 #!:mime application/x-dbf a177 1 #!:mime application/x-dbf d186 1 a186 2 4 string Standard\ Jet\ DB Microsoft Access Database !:mime application/x-msaccess a212 14 # From: Maxime Henrion # PostgreSQL's custom dump format, Maxime Henrion 0 string PGDMP PostgreSQL custom database dump >5 byte x - v%d >6 byte x \b.%d >5 beshort <0x101 \b-0 >5 beshort >0x100 >>7 byte x \b-%d # Type: Advanced Data Format (ADF) database # URL: http://www.grc.nasa.gov/WWW/cgns/adf/ # From: Nicolas Chauvat 0 string @@(#)ADF\ Database CGNS Advanced Data Format @