Obsolete unused backup project such as OK6410
guowenxue
2019-08-02 d304465ae7e95190acc898051acb4d7e4542a794
add file, tree build shell script
1 files modified
355 files added
100608 ■■■■■ changed files
ok335xD/3rdparty/file/build.sh 5 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04.tar.gz patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/AUTHORS 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/COPYING 29 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/ChangeLog 925 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/INSTALL 234 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/MAINT 44 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/Makefile 634 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/Makefile.am 5 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/Makefile.in 634 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/NEWS 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/README 134 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/TODO 15 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/acinclude.m4 55 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/aclocal.m4 7545 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/compile 142 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.guess 1504 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.h 269 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.h.in 268 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.log 2704 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.status 1143 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/config.sub 1622 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/configure 25296 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/configure.ac 157 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/depcomp 584 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/Makefile 550 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/Makefile.am 32 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/Makefile.in 550 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/file.man 553 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/libmagic.man 249 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/doc/magic.man 521 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/install-sh 507 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/libtool 7715 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/ltmain.sh 7050 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Header 5 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Localstuff 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/acorn 69 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/adi 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/adventure 86 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/allegro 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/alliant 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/alpha 32 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/amanda 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/amigaos 65 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/animation 821 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/apl 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/apple 251 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/applix 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/archive 832 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/asterix 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/att3b 41 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/audio 608 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/basis 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bflt 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/blender 39 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/blit 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bout 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bsdi 43 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/btsnoop 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/c-lang 29 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/c64 43 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cad 70 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cafebabe 40 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cddb 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/chord 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cisco 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/citrus 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/clarion 27 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/claris 47 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/clipper 65 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/commands 84 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/communications 22 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/compress 220 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/console 256 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/convex 71 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cracklib 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ctags 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dact 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/database 270 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/diamond 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/diff 19 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/digital 44 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dolby 60 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dump 132 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dyadic 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/editors 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/efi 15 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/elf 289 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/encore 22 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/epoc 53 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/erlang 19 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/esri 28 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/fcs 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/filesystems 1492 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/flash 25 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/fonts 73 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/fortran 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/frame 50 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/freebsd 144 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/fsav 63 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/games 247 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gcc 17 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/geos 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gimp 42 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnome-keyring 26 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnu 44 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnumeric 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/grace 21 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/graphviz 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/gringotts 48 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/hitachi-sh 19 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/hp 439 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/human68k 26 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ibm370 48 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ibm6000 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/iff 64 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/images 632 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/inform 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/intel 48 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/interleaf 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/island 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ispell 63 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/java 26 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/jpeg 166 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/karma 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/kde 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/kml 34 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/lecter 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/lex 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/lif 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/linux 269 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/lisp 52 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/llvm 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/lua 21 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/luks 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mach 86 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/macintosh 378 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/magic 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mail.news 55 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/maple 57 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mathcad 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mathematica 70 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/matroska 15 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mcrypt 38 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mercurial 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mime 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mips 178 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mirage 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/misctools 23 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mkid 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mlssa 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mmdf 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/modem 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/motorola 71 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mozilla 9 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/msdos 716 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/msvc 45 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/mup 24 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/natinst 24 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ncr 49 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/netbsd 247 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/netscape 25 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/netware 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/news 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/nitpicker 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ocaml 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/octave 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ole2compounddocs 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/olf 98 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/os2 48 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/os400 39 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/os9 87 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/osf1 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/palm 92 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/parix 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pbm 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pdf 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pdp 36 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/perl 57 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pgp 27 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pkgadd 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/plan9 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/plus5 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/printer 130 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/project 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/psdbms 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pulsar 13 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/pyramid 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/python 30 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/revision 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/riff 226 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/rpm 38 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/rtf 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ruby 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sc 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sccs 22 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/scientific 73 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/securitycerts 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sendmail 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sequent 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sgi 71 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sgml 89 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sharc 23 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sinclair 45 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sketch 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/smalltalk 25 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sniffer 298 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/softquad 37 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/spec 21 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/spectrum 50 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sql 46 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sun 132 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/sysex 318 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/teapot 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/terminfo 10 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/tex 95 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/tgif 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ti-8x 239 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/timezone 32 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/troff 38 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/tuxedo 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/typeset 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/unicode 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/unknown 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/uuencode 31 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/varied.out 43 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/varied.script 20 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vax 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vicar 17 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/virtual 17 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/virtutech 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/visx 32 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vms 28 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vmware 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vorbis 118 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/vxl 14 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/warc 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/weak 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/windows 122 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/wireless 7 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/wordprocessors 152 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/xdelta 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/xenix 73 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/xilinx 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/xo65 30 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/xwindows 35 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/zilog 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Magdir/zyxel 17 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Makefile 595 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Makefile.am 242 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/magic/Makefile.in 595 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/missing 367 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/Makefile 326 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/Makefile.am 2 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/Makefile.in 326 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/README 26 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/example.py 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/py_magic.c 351 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/py_magic.h 41 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/python/setup.py 16 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/apprentice.Plo 272 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/apptype.Plo 231 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/ascmagic.Plo 258 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/asprintf.Plo 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/cdf.Plo 258 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/cdf_time.Plo 222 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/compress.Plo 282 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/encoding.Plo 237 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/file.Po 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/fsmagic.Plo 249 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/funcs.Plo 240 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/getopt_long.Plo 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/is_tar.Plo 225 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/magic.Plo 264 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/print.Plo 249 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/readcdf.Plo 257 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/readelf.Plo 256 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/softmagic.Plo 240 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/strlcat.Plo 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/strlcpy.Plo 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/.deps/vasprintf.Plo 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/Makefile 570 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/Makefile.am 18 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/Makefile.in 570 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apprentice.c 2381 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apprentice.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apprentice.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apptype.c 168 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apptype.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/apptype.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/ascmagic.c 389 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/ascmagic.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/ascmagic.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/asprintf.c 47 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf.c 1265 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf.h 305 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf_time.c 192 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf_time.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/cdf_time.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/compress.c 496 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/compress.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/compress.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/elfclass.h 69 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/encoding.c 500 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/encoding.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/encoding.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/file.c 482 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/file.h 457 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/file_opts.h 49 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/fsmagic.c 363 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/fsmagic.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/fsmagic.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/funcs.c 426 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/funcs.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/funcs.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/getopt_long.c 498 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/is_tar.c 157 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/is_tar.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/is_tar.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/magic.c 412 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/magic.h 89 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/magic.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/magic.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/mygetopt.h 68 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/names.h 173 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/patchlevel.h 355 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/print.c 240 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/print.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/print.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readcdf.c 284 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readcdf.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readcdf.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readelf.c 1192 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readelf.h 312 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readelf.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/readelf.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/softmagic.c 2012 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/softmagic.lo 12 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/softmagic.o patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/strlcat.c 58 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/strlcpy.c 54 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/tar.h 73 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/src/vasprintf.c 642 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/stamp-h1 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/.deps/test-test.Po 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/Makefile 458 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/Makefile.am 11 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/Makefile.in 458 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/README 17 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/gedcom.magic 6 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/gedcom.result 1 ●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/gedcom.testfile 8 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/file-5.04/tests/test.c 114 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/tree/build.sh 95 ●●●●● patch | view | raw | blame | history
ok335xD/3rdparty/file/build.sh
@@ -9,6 +9,8 @@
PREFIX_PATH=`pwd`/../install/bin
LYFTP_SRC=ftp://master.iot-yun.club/src/
if [ -z $CROSSTOOL ] ; then
   CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-
fi
@@ -67,7 +69,8 @@
    msg_banner "Start cross compile $SRC_NAME "
    if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
        wget ftp://ftp.astron.com/pub/file/${SRC_NAME}.${PACK_SUFIX}
        #wget ftp://ftp.astron.com/pub/file/${SRC_NAME}.${PACK_SUFIX}
        wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX}
        check_result "ERROR: download ${SRC_NAME} failure"
    fi
ok335xD/3rdparty/file/file-5.04.tar.gz
Binary files differ
ok335xD/3rdparty/file/file-5.04/AUTHORS
New file
@@ -0,0 +1 @@
See COPYING.
ok335xD/3rdparty/file/file-5.04/COPYING
New file
@@ -0,0 +1,29 @@
$File: COPYING,v 1.1 2008/02/05 19:08:11 christos Exp $
Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995.
Software written by Ian F. Darwin and others;
maintained 1994- Christos Zoulas.
This software is not subject to any export provision of the United States
Department of Commerce, and may be exported to any country or planet.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
   notice immediately at the beginning of the file, without modification,
   this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
ok335xD/3rdparty/file/file-5.04/ChangeLog
New file
@@ -0,0 +1,925 @@
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)
    * More cdf bounds checks and overflow checks
2009-05-01  18:37  Christos Zoulas <christos@zoulas.com>
    * Buffer overflow fixes from Drew Yao
2009-04-30  17:10  Christos Zoulas <christos@zoulas.com>
    * Fix more cdf lossage. All the documents I have
      right now print the correct information.
2009-03-27  18:43  Christos Zoulas <christos@zoulas.com>
    * don't print \012- separators in the same magic entry
      if it consists of multiple magic printing lines.
2009-03-23  10:20  Christos Zoulas <christos@zoulas.com>
    * Avoid file descriptor leak in compress code from
      (Daniel Novotny)
2009-03-18  16:50  Christos Zoulas <christos@zoulas.com>
    * Allow escaping of relation characters, so that we can say \^[A-Z]
      and the ^ is not eaten as a relation char.
    * Fix troff and fortran to their previous glory using
      regex. This was broken since their removel from ascmagic.
2009-03-10  16:50  Christos Zoulas <christos@zoulas.com>
    * don't use strlen in strndup() (Toby Peterson)
2009-03-10  7:45  Christos Zoulas <christos@zoulas.com>
    * avoid c99 syntax.
2009-02-23 15:45  Christos Zoulas <christos@zoulas.com>
    * make the cdf code use the buffer first if available,
      and then the fd code.
2009-02-13 13:45  Christos Zoulas <christos@zoulas.com>
    * look for struct option to determine if getopt.h is usable for IRIX.
    * sanitize cdf document strings
2009-02-04 13:25  Christos Zoulas <christos@zoulas.com>
    * fix OS/2 warnings.
2008-12-12 15:50  Christos Zoulas <christos@zoulas.com>
    * fix initial offset calculation for non 4K sector files
    * add loop limits to avoid DoS attacks by constructing
      looping sector references.
2008-12-03 13:05  Christos Zoulas <christos@zoulas.com>
    * fix memory botches on cdf file parsing.
    * exit with non-zero value for any error, not just for the last
      file processed.
2008-11-09 20:42  Charles Longeau <chl@tuxfamily.org>
    * Replace all str{cpy,cat} functions with strl{cpy,cat}
    * Ensure that strl{cpy,cat} are included in libmagic,
      as needed.
2008-11-06 18:18  Christos Zoulas <christos@zoulas.com>
    * Handle ID3 format files.
2008-11-06 23:00  Reuben Thomas <rrt@sc3d.org>
    * Fix --mime, --mime-type and --mime-encoding under new scheme.
    * Rename "ascii" to "text" and add "encoding" test.
    * Return a precise ("utf-16le" or "utf-16be") MIME charset for
      UTF-16.
    * Fix error in comment caused by automatic indentation adding
      words!
2008-11-06 10:35  Christos Zoulas <christos@astron.com>
    * use memchr instead of strchr because the string
      might not be NUL terminated (Scott MacVicar)
2008-11-03 07:31  Reuben Thomas <rrt@sc3d.org>
    * Fix a printf with a non-literal format string.
    * Fix formatting and punctuation of help for "--apple".
2008-10-30 11:00  Reuben Thomas <rrt@sc3d.org>
    * Correct words counts in comments of struct magic.
    * Fix handle_annotation to allow both Apple and MIME types to be
      printed, and to return correct code if MIME type is
      printed (1, not 0) or if there's an error (-1 not 1).
    * Fix output of charset for MIME type (precede with semi-colon;
      fixes Debian bug #501460).
    * Fix potential attacks via conversion specifications in magic
      strings.
    * Add a FIXME for Debian bug #488562 (magic files should be
      read in a defined order, by sorting the names).
2008-10-18 16:45  Christos Zoulas <christos@astron.com>
    * Added APPLE file creator/type
2008-10-12 10:20  Christos Zoulas <christos@astron.com>
    * Added CDF parsing
2008-10-09 16:40  Christos Zoulas <christos@astron.com>
    * filesystem and msdos patches (Joerg Jenderek)
2008-10-09 13:20  Christos Zoulas <christos@astron.com>
    * correct --exclude documentation issues: remove troff and fortran
      and rename "token" to "tokens". (Randy McMurchy)
2008-10-01 10:30  Christos Zoulas <christos@astron.com>
    * Read ~/.magic in addition to the default magic file not instead
      of, as documented in the man page.
2008-09-10 21:30  Reuben Thomas  <rrt@sc3d.org>
    * Comment out graphviz patterns, as they match too many files.
2008-08-30 12:54  Christos Zoulas <christos@astron.com>
    * Don't eat trailing \n in magic enties.
    * Cast defines to allow compilation using a c++ compiler.
2008-08-25 23:56  Reuben Thomas  <rrt@sc3d.org>
    * Add text/x-lua MIME type for Lua scripts.
    * Escape { in regex in graphviz patterns.
2008-07-26 00:59  Reuben Thomas  <rrt@sc3d.org>
    * Add MIME types for special files.
    * Use access to give more accurate information for files that
      can't be opened.
    * Add a TODO list.
2008-07-02 11:15  Christos Zoulas  <christos@astron.com>
    * add !:strength op to adjust magic strength (experimental)
2008-06-16 21:41  Reuben Thomas  <rrt@sc3d.org>
    * Fix automake error in configure.ac.
    * Add MIME type for Psion Sketch files.
2008-06-05 08:59  Christos Zoulas  <christos@astron.com>
    * Don't print warnings about bad namesize in stripped
      binaries with PT_NOTE is still there, and the actual
      note is gone (Jakub Jelinek)
2008-05-28 15:12  Robert Byrnes  <byrnes@wildpumpkin.net>
    * magic/Magdir/elf:
      Note invalid byte order for little-endian SPARC32PLUS.
      Add SPARC V9 vendor extensions and memory model.
    * src/elfclass.h:
      Pass target machine to doshn (for Solaris hardware capabilities).
    * src/readelf.c (doshn):
      Add support for Solaris hardware/software capabilities.
    * src/readelf.h:
      Ditto.
    * src/vasprintf.c (dispatch):
      Add support for ll modifier.
2008-05-16 10:25  Christos Zoulas  <christos@astron.com>
    * Fix compiler warnings.
    * remove stray printf, and fix a vprintf bug. (Martin Dorey)
2008-05-06 00:13  Robert Byrnes  <byrnes@wildpumpkin.net>
    * src/Makefile.am:
      Ensure that getopt_long and [v]asprintf are included in libmagic,
      as needed.
      Remove unnecessary EXTRA_DIST.
    * src/Makefile.in:
      Rerun automake.
    * src/vasprintf.c (dispatch):
      Fix variable precision bug: be sure to step past '*'.
    * src/vasprintf.c (core):
      Remove unreachable code.
    * src/apprentice.c (set_test_type):
      Add cast to avoid compiler warning.
2008-04-22 23:45  Christos Zoulas  <christos@astron.com>
    * Add magic submission guidelines (Abel Cheung)
    * split msdos and windows magic (Abel Cheung)
2008-04-04 11:00  Christos Zoulas  <christos@astron.com>
    * >= <= is not supported, so fix the magic and warn about it.
      reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
2008-03-27 16:16  Robert Byrnes  <byrnes@wildpumpkin.net>
    * src/readelf.c (donote):
      ELF core file command name/line bug fixes and enhancements:
      Try larger offsets first to avoid false matches
      from earlier data that happen to look like strings;
      this primarily affected SunOS 5.x 32-bit Intel core files.
      Add support for command line (instead of just short name)
      for SunOS 5.x.
      Add information about NT_PSINFO for SunOS 5.x.
      Only trim whitespace from end of command line.
2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
    * Change strength of ! from MULT to 0, as it matches almost
          anything (Reuben Thomas)
    * Debian fixes (Reuben Thomas)
2007-02-11 00:17 Reuben Thomas <rrt@sc3d.org>
    * Clarify UTF-8 BOM message (Reuben Thomas)
    * Add HTML comment to token list in names.h
2007-02-04 15:50 Christos Zoulas <christos@astron.com>
    * Debian fixes (Reuben Thomas)
2007-02-04 11:31 Christos Zoulas <christos@astron.com>
    * !:mime annotations in magic files (Reuben Thomas)
2007-01-29 15:35 Christos Zoulas <christos@astron.com>
    * zero out utime/utimes structs (Gavin Atkinson)
2007-01-26 13:45 Christos Zoulas <christos@astron.com>
    * reduce writable data from Diego "Flameeyes" Petten
2007-12-28 15:06 Christos Zoulas <christos@astron.com>
    * strtof detection
    * remove bogus regex magic that could cause a DoS
    * better mismatch version message
2007-12-27 11:35 Christos Zoulas <christos@astron.com>
    * bring back some fixes from OpenBSD
    * treat ELF dynamic objects as executables
    * fix gcc warnings
2007-12-01 19:55 Christos Zoulas <christos@astron.com>
    * make sure we have zlib.h and libz to compile the builtin
      decompress code
2007-10-28 20:48 Christos Zoulas <christos@astron.com>
     * float and double magic support (Behan Webster)
2007-10-28 20:48 Christos Zoulas <christos@astron.com>
    * Convert fortran to a soft test (Reuben Thomas)
2007-10-23  5:25 Christos Zoulas <christos@astron.com>
    * Add --with-filename, and --no-filename (Reuben Thomas)
2007-10-23  3:59 Christos Zoulas <christos@astron.com>
    * Rest of the mime split (Reuben Thomas)
    * Make usage message generated from the flags so that
      they stay consistent (Reuben Thomas)
2007-10-20  3:06 Christos Zoulas <christos@astron.com>
    * typo in comment, missing ifdef QUICK, remove unneeded code
        (Charles Longeau)
2007-10-17  3:33 Christos Zoulas <christos@astron.com>
    * Fix problem printing -\012 in some entries
    * Separate magic type and encoding flags (Reuben Thomas)
2007-10-09  3:55 Christos Zoulas <christos@astron.com>
    * configure fix for int64 and strndup (Reuben Thomas)
2007-09-26  4:45 Christos Zoulas <christos@astron.com>
    * Add magic_descriptor() function.
    * Fix regression in elf reading code where the core name was
      not being printed.
    * Don't convert NUL's to spaces in {l,b}estring16 (Daniel Dawson)
2007-08-19  6:30 Christos Zoulas <christos@astron.com>
    * Make mime format consistent so that it can
      be easily parsed:
          mimetype [charset=character-set] [encoding=encoding-mime-type]
      Remove spurious extra text from some MIME type printouts
      (mostly in is_tar).
      Fix one case where -i produced nothing at all (for a 1-byte file,
      which is now classed as application/octet-stream).
      Remove 7/8bit classifications, since they were arbitrary
      and not based on the file data.
      This work was done by Reuben Thomas
2007-05-24 10:00 Christos Zoulas <christos@astron.com>
    * Fix another integer overflow (Colin Percival)
2007-03-26 13:58 Christos Zoulas <christos@astron.com>
    * make sure that all of struct magic_set is initialized appropriately
      (Brett)
2007-03-25 17:44 Christos Zoulas <christos@astron.com>
    * reset left bytes in the buffer (Dmitry V. Levin)
    * compilation failed with COMPILE_ONLY and ENABLE_CONDITIONALS
      (Peter Avalos)
2007-03-15 10:51 Christos Zoulas <christos@astron.com>
    * fix fortran and nroff reversed tests (Dmitry V. Levin)
    * fix exclude option (Dmitry V. Levin)
2007-02-08 17:30 Christos Zoulas <christos@astron.com>
    * fix integer underflow in file_printf which can lead to
      to exploitable heap overflow (Jean-Sebastien Guay-Lero)
2007-02-05 11:35 Christos Zoulas <christos@astron.com>
    * make socket/pipe reading more robust
2007-01-25 16:01 Christos Zoulas <christos@astron.com>
    * Centralize all the tests in file_buffer.
    * Add exclude flag.
2007-01-18 05:29 Anon Ymous <do@not.spam.me>
    * Move the "type" detection code from parse() into its own table
      driven routine.  This avoids maintaining multiple lists in
      file.h.
    * Add an optional conditional field (ust before the type field).
      This code is wrapped in "#ifdef ENABLE_CONDITIONALS" as it is
      likely to go away.
2007-01-16 23:24 Anon Ymous <do@not.spam.me>
    * Fix an initialization bug in check_mem().
2007-01-16 14:58 Anon Ymous <do@not.spam.me>
    * Add a "default" type to print a message if nothing previously
      matched at that level or since the last default at that
      level.  This is useful for setting up switch-like statements.
      It can also be used to do if/else constructions without a
      redundant second test.
    * Fix the "x" special case test so that one can test for that
      string with "=x".
    * Allow "search" to search the entire buffer if the "/N"
      search count is missing.
    * Make "regex" work!  It now starts its search at the
      specified offset and takes an (optional) "/N" line count to
      specify the search range; otherwise it searches to the end
      of the file.  The match is now grabbed correctly for format
      strings and the offset set to the end of the match.
    * Add a "/s" flag to "regex" and "search" to set the offset to
      the start of the match.  By default the offset is set to the
      end of the match, as it is with other tests.  This is mostly
      useful for "regex".
    * Make "search", "string" and "pstring" use the same
      file_strncmp() routine so that they support the same flags;
      "bestring16" and "lestring16" call the same routine, but
      with flags = 0.  Also add a "/C" flag (in analogy to "/c")
      to ignore the case on uppercase (lowercase) characters in
      the test string.
    * Strict adherence to C style string escapes.  A warnings are
      printed when compiling.  Note: previously "\a" was
      incorrectly translated to 'a' instead of an <alert> (i.e.,
      BELL, typically 0x07).
    * Make this compile with "-Wall -Wextra" and all the warning
      flags used with WARNS=4 in the NetBSD source.  Also make it
      pass lint.
    * Many "cleanups" and hopefully not too many new bugs!
2007-01-16 14:56 Anon Ymous <do@not.spam.me>
    * make several more files compile with gcc warnings
      on and also make them pass lint.
2007-01-16 14:54 Anon Ymous <do@not.spam.me>
    * fix a puts()/putc() usage goof in file.c
    * make file.c compile with gcc warnings and pass lint
2006-12-11 16:49 Christos Zoulas <christos@astron.com>
    * fix byteswapping issue
    * report the number of bytes we tried to
      allocate when allocation fails
    * add a few missed cases in the strength routine
2006-12-08 16:32 Christos Zoulas <christos@astron.com>
    * store and print the line number of the magic
      entry for debugging.
    * if the magic entry did not print anything,
      don't treat it as a match
    * change the magic strength algorithm to take
      into account the relationship op.
    * fix a bug in search where we could accidentally
      return a match.
    * propagate the error return from match to
      file_softmagic.
2006-11-25 13:35 Christos Zoulas <christos@astron.com>
    * Don't store the current offset in the magic
      struct, because it needs to be restored and
      it was not done properly all the time. Bug
      found by: Arkadiusz Miskiewicz
    * Fix problem in the '\0' separator; and don't
      print it as an additional separator; print
      it as the only separator.
2006-11-17 10:51 Christos Zoulas <christos@astron.com>
    * Added a -0 option to print a '\0' separator
      Etienne Buira <etienne.buira@free.fr>
2006-10-31 15:14 Christos Zoulas <christos@astron.com>
    * Check offset before copying (Mike Frysinger)
    * merge duplicated code
    * add quad date support
    * make sure that we nul terminate desc (Ryoji Kanai)
    * don't process elf notes multiple times
    * allow -z to report empty compressed files
    * use calloc to initialize the ascii buffers (Jos van den Oever)
2006-06-08 11:11 Christos Zoulas <christos@astron.com>
    * QNX fixes (Mike Gorchak)
    * Add quad support.
    * FIFO checks (Dr. Werner Fink)
    * Linux ELF fixes (Dr. Werner Fink)
    * Magic format checks (Dr. Werner Fink)
    * Magic format function improvent (Karl Chen)
2006-05-03 11:11 Christos Zoulas <christos@astron.com>
    * Pick up some elf changes and some constant fixes from SUSE
    * Identify gnu tar vs. posix tar
    * When keep going, don't print spurious newlines (Radek Vokál)
2006-04-01 12:02 Christos Zoulas <christos@astron.com>
    * Use calloc instead of malloc (Mike Frysinger)
    * Fix configure script to detect wctypes.h (Mike Frysinger)
2006-03-02 16:06 Christos Zoulas <christos@astron.com>
    * Print empty if the file is (Mike Frysinger)
    * Don't try to read past the end of the buffer (Mike Frysinger)
    * Sort magic entries by strength [experimental]
2005-11-29 13:26 Christos Zoulas <christos@astron.com>
    * Use iswprint() to convert the output string.
        (Bastien Nocera)
2005-10-31 8:54 Christos Zoulas <christos@astron.com>
    * Fix regression where the core info was not completely processed
        (Radek Vokál)
2005-10-20 11:15 Christos Zoulas <christos@astron.com>
    * Middle Endian magic (Diomidis Spinellis)
2005-10-17 11:15 Christos Zoulas <christos@astron.com>
    * Open with O_BINARY for CYGWIN (Corinna Vinschen)
    * Don't close stdin (Arkadiusz Miskiewicz)
    * Look for note sections in non executables.
2005-09-20 13:33 Christos Zoulas <christos@astron.com>
    * Don't print SVR4 Style in core files multiple times
        (Radek Vokál)
2005-08-27 04:09 Christos Zoulas <christos@astron.com>
    * Cygwin changes Corinna Vinschen
2005-08-18 09:53 Christos Zoulas <christos@astron.com>
    * Remove erroreous mention of /etc/magic in the file man page
      This is gentoo bug 101639. (Mike Frysinger)
    * Cross-compile support and detection (Mike Frysinger)
2005-08-12 10:17 Christos Zoulas <christos@astron.com>
    * Add -h flag and dereference symlinks if POSIXLY_CORRECT
      is set.
2005-07-29 13:57 Christos Zoulas <christos@astron.com>
    * Avoid search and regex buffer overflows (Kelledin)
2005-07-12 11:48 Christos Zoulas <christos@astron.com>
    * Provide stub implementations for {v,}nsprintf() for older
      OS's that don't have them.
    * Change mbstate_t autoconf detection macro from AC_MBSTATE_T
      to AC_TYPE_MBSTATE_T.
2005-06-25 11:48 Christos Zoulas <christos@astron.com>
    * Dynamically allocate the string buffers and make the
      default read size 256K.
2005-06-01 00:00 Joerg Sonnenberger <joerg@britannica.bec.de>
    * Dragonfly ELF note support
2005-03-14 00:00 Giuliano Bertoletti <gb@symbolic.it>
    * Avoid NULL pointer dereference in time conversion.
2005-03-06 00:00  Joerg Walter <jwalt@mail.garni.ch>
    * Add indirect magic offset support, and search mode.
2005-01-12 00:00  Stepan Kasal  <kasal@ucw.cz>
    * src/ascmagic.c (file_ascmagic): Fix three bugs about text files:
      If a CRLF text file happens to have CR at offset HOWMANY - 1
      (currently 0xffff), it should not be counted as CR line
      terminator.
      If a line has length exactly MAXLINELEN, it should not yet be
      treated as a ``very long line'', as MAXLINELEN is ``longest sane
      line length''.
      With CRLF, the line length was not computed correctly, and even
      lines of length MAXLINELEN - 1 were treated as ``very long''.
2004-12-07 14:15  Christos Zoulas  <christos@astron.com>
    * bzip2 needs a lot of input buffer space on some files
      before it can begin uncompressing. This makes file -z
      fail on some bz2 files. Fix it by giving it a copy of
      the file descriptor to read as much as it wants if we
      have access to it. <christos@astron.com>
2004-11-24 12:39  Christos Zoulas  <christos@astron.com>
    * Stack smash fix, and ELF more conservative reading.
      Jakub Bogusz <qboosh@pld-linux.org>
2004-11-20 18:50  Christos Zoulas  <christos@astron.com>
    * New FreeBSD version parsing code:
      Jon Noack <noackjr@alumni.rice.edu>
    * Hackish support for ucs16 strings <christos@astron.com>
2004-11-13 03:07  Christos Zoulas  <christos@astron.com>
    * print the file name and line number in syntax errors.
2004 10-12 10:50  Christos Zoulas  <christos@astron.com>
    * Fix stack overwriting on 0 length strings: Tim Waugh
        <twaugh@redhat.com> Ned Ludd <solar@gentoo.org>
2004-09-27 11:30  Christos Zoulas  <christos@astron.com>
    * Remove 3rd and 4th copyright clause; approved by Ian Darwin.
    * Fix small memory leaks; caught by: Tamas Sarlos
        <stamas@csillag.ilab.sztaki.hu>
2004-07-24 16:33  Christos Zoulas  <christos@astron.com>
    * magic.mime update Danny Milosavljevic <danny.milo@gmx.net>
    * FreeBSD version update Oliver Eikemeier <eikemeier@fillmore-labs.com>
    * utime/utimes detection Ian Lance Taylor <ian@wasabisystems.com>
      * errors reading elf magic Jakub Bogusz <qboosh@pld-linux.org>
2004-04-12 10:55  Christos Zoulas  <christos@astron.com>
    * make sure that magic formats match magic types during compilation
    * fix broken sgi magic file
2004-04-06 20:36  Christos Zoulas  <christos@astron.com>
    * detect present of mbstate_t Petter Reinholdtsen <pere@hungry.com>
    * magic fixes
2004-03-22 15:25  Christos Zoulas  <christos@astron.com>
    * Lots of mime fixes
      (Joerg Ostertag) <ostertag@rechengilde.de>
    * FreeBSD ELF version handling
      (Edwin Groothuis) <edwin@mavetju.org>
    * correct cleanup in all cases; don't just close the file.
      (Christos Zoulas) <christos@astron.com>
    * add gettext message catalogue support
      (Michael Piefel) <piefel@debian.org>
    * better printout for unreadable files
      (Michael Piefel) <piefel@debian.org>
    * compensate for missing MAXPATHLEN
      (Michael Piefel) <piefel@debian.org>
    * add wide character string length computation
      (Michael Piefel) <piefel@debian.org>
    * Avoid infinite loops caused by bad elf alignments
      or name and description note sizes. Reported by
      (Mikael Magnusson) <mmikael@comhem.se>
2004-03-09 13:55  Christos Zoulas  <christos@astron.com>
    * Fix possible memory leak on error and add missing regfree
      (Dmitry V. Levin) <ldv@altlinux.org>
2003-12-23 12:12  Christos Zoulas  <christos@astron.com>
    * fix -k flag (Maciej W. Rozycki)
2003-11-18 14:10  Christos Zoulas  <christos@astron.com>
    * Try to give us much info as possible on corrupt elf files.
      (Willy Tarreau) <willy@w.ods.org>
    * Updated python bindings (Brett Funderburg)
       <brettf@deepfile.com>
2003-11-11 15:03  Christos Zoulas  <christos@astron.com>
    * Include file.h first, because it includes config.h
      breaks largefile test macros otherwise.
      (Paul Eggert <eggert@CS.UCLA.EDU> via
       Lars Hecking <lhecking@nmrc.ie>)
2003-10-14 21:39  Christos Zoulas  <christos@astron.com>
    * Python bindings (Brett Funderburg) <brettf@deepfile.com>
    * Don't lookup past the end of the buffer
      (Chad Hanson) <chanson@tcs-sec.com>
    * Add MAGIC_ERROR and api on magic_errno()
2003-10-08 12:40  Christos Zoulas  <christos@astron.com>
    * handle error conditions from compile as fatal
      (Antti Kantee) <pooka@netbsd.org>
    * handle magic filename parsing sanely
    * more magic fixes.
    * fix a memory leak (Illes Marton) <illes.marton@balabit.hu>
    * describe magic file handling
      (Bryan Henderson) <bryanh@giraffe-data.com>
2003-09-12 15:09  Christos Zoulas  <christos@astron.com>
    * update magic files.
    * remove largefile support from file.h; it breaks things on most OS's
2003-08-10 10:25  Christos Zoulas  <christos@astron.com>
    * fix unmapping'ing of mmaped files.
2003-07-10 12:03  Christos Zoulas  <christos@astron.com>
    * don't exit with -1 on error; always exit 1 (Marty Leisner)
    * restore utimes code.
2003-06-10 17:03  Christos Zoulas  <christos@astron.com>
    * make sure we don't access uninitialized memory.
    * pass lint
    * #ifdef __cplusplus in magic.h
2003-05-25 19:23  Christos Zoulas  <christos@astron.com>
    * rename cvs magic file to revision to deal with
      case insensitive filesystems.
2003-05-23 17:03  Christos Zoulas  <christos@astron.com>
    * documentation fixes from Michael Piefel <piefel@debian.org>
    * magic fixes (various)
    * revert basename magic in .mgc name determination
    * buffer protection in uncompress,
      signness issues,
      close files
      Maciej W. Rozycki <macro@ds2.pg.gda.pl
2003-04-21 20:12  Christos Zoulas  <christos@astron.com>
    * fix zsh magic
2003-04-04 16:59  Christos Zoulas  <christos@astron.com>
    * fix operand sort order in string.
2003-04-02 17:30  Christos Zoulas  <christos@astron.com>
    * cleanup namespace in magic.h
2003-04-02 13:50  Christos Zoulas  <christos@astron.com>
    * Magic additions (Alex Ott)
    * Fix bug that broke VPATH compilation (Peter Breitenlohner)
2003-03-28 16:03  Christos Zoulas  <christos@astron.com>
    * remove packed attribute from magic struct.
    * make the magic struct properly aligned.
    * bump version number of compiled files to 2.
2003-03-27 13:10  Christos Zoulas  <christos@astron.com>
    * separate tar detection and run it before softmagic.
    * fix reversed symlink test.
    * fix version printing.
    * make separator a string instead of a char.
    * update manual page and sort options.
2003-03-26 11:00  Christos Zoulas  <christos@astron.com>
    * Pass lint
    * make NULL in magic_file mean stdin
    * Fix "-" argument to file to pass NULL to magic_file
    * avoid pointer casts by using memcpy
    * rename magic_buf -> magic_buffer
    * keep only the first error
    * manual page: new sentence, new line
    * fix typo in api function (magic_buf -> magic_buffer)
ok335xD/3rdparty/file/file-5.04/INSTALL
New file
@@ -0,0 +1,234 @@
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006 Free Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
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.
   The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation.  It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions.  Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
   It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring.  Caching is
disabled by default to prevent problems with accidental use of stale
cache files.
   If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release.  If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
   The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'.  You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
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.
     Running `configure' might take a while.  While running, it prints
     some messages telling which features it is checking for.
  2. Type `make' to compile the package.
  3. Optionally, type `make check' to run any self-tests that come with
     the package.
  4. Type `make install' to install the programs and any data files and
     documentation.
  5. 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
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.
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.
   You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment.  Here
is an example:
     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
   *Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
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 `..'.
   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.
Installation Names
==================
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'.
   You can specify separate installation prefixes for
architecture-specific files and architecture-independent files.  If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
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.
   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
`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
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
   For packages that use the X Window System, `configure' can usually
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.
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
`--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:
     CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
     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
need to know the machine type.
   If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
   If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
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'.
`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.
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
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
them in the `configure' command line, using `VAR=value'.  For example:
     ./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug.  Until the bug is fixed you can use this workaround:
     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
     Print a summary of the options to `configure', and exit.
`--version'
`-V'
     Print the version of Autoconf used to generate the `configure'
     script, and exit.
`--cache-file=FILE'
     Enable the cache: use and save the results of the tests in FILE,
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
     disable caching.
`--config-cache'
`-C'
     Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
     Do not print messages saying which checks are being made.  To
     suppress all normal output, redirect it to `/dev/null' (any error
     messages will still be shown).
`--srcdir=DIR'
     Look for the package's source code in directory DIR.  Usually
     `configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options.  Run
`configure --help' for more details.
ok335xD/3rdparty/file/file-5.04/MAINT
New file
@@ -0,0 +1,44 @@
$File: MAINT,v 1.10 2008/02/05 19:08:11 christos Exp $
Maintenance notes:
I am continuing to maintain the file command. I welcome your help,
but to make my life easier I'd like to request the following:
- Do not distribute changed versions.
People trying to be helpful occasionally put up their hacked versions
of the file command for anonymous FTP, and people all over the
world get copies of the hacked versions.  Within a day or two I am
getting email from around the world asking me why "my" file command
won't compile!!! Needless to say this detracts from the limited
time I have available to work on the actual software. Therefore I
ask you again to please NOT distribute your changed version. If
you need to make changes, please add a patch file next to the
distribution tar, and a README file that clearly explains what you
are trying to fix.
Thank you for your assistance and cooperation.
Code Overview
This is a rough idea of the control flow from the main program:
file.c    main()
file.c    process (called for each file)
        printf file name
magic.c        magic_file()
fsmagic.c        file_fsmagic()
                (handles statbuf modes for DEV)
            (handles statbuf modes for executable &c.
            reads data from file.
funcs.c:        file_buffer()
compress.c            file_zmagic()
is_tar.c            file_is_tar()
softmagic.c            file_softmagic()
                        match() - looks for match against main magic database
ascmagic.c            file_ascmagic()
readelf.c        file_tryelf()
                "unknown"
Christos Zoulas (see README for email address)
ok335xD/3rdparty/file/file-5.04/Makefile
New file
@@ -0,0 +1,634 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# Makefile.  Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#ACLOCAL_AMFLAGS = -I m4
pkglibdir = $(libdir)/file
pkgincludedir = $(includedir)/file
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = arm-unknown-linux-gnu
subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    $(srcdir)/Makefile.in $(srcdir)/config.h.in \
    $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
    TODO compile config.guess config.sub depcomp install-sh \
    ltmain.sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
    $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    $(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
 configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    html-recursive info-recursive install-data-recursive \
    install-dvi-recursive install-exec-recursive \
    install-html-recursive install-info-recursive \
    install-pdf-recursive install-ps-recursive install-recursive \
    installcheck-recursive installdirs-recursive pdf-recursive \
    ps-recursive uninstall-recursive
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive    \
  distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
  { test ! -d $(distdir) \
    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
         && rm -fr $(distdir); }; }
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
pkgdatadir = $(datadir)/misc
ACLOCAL = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run aclocal-1.10
AMTAR = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run tar
AR = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar
AUTOCONF = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoconf
AUTOHEADER = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoheader
AUTOMAKE = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run automake-1.10
AWK = gawk
CC = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
CCDEPMODE = depmode=gcc3
CFLAGS =
CPP = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DSYMUTIL =
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
F77 =
FFLAGS =
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBOBJS =  ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}strlcat$U.o
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =  ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}strlcat$U.lo
MAKEINFO = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NMEDIT =
OBJEXT = o
PACKAGE = file
PACKAGE_BUGREPORT = christos@astron.com
PACKAGE_NAME = file
PACKAGE_STRING = file 5.04
PACKAGE_TARNAME = file
PACKAGE_VERSION = 5.04
PATH_SEPARATOR = :
RANLIB = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/bash
STRIP = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip
VERSION = 5.04
WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter
abs_builddir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
abs_srcdir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
abs_top_builddir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
abs_top_srcdir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
ac_ct_CC =
ac_ct_CXX = g++
ac_ct_F77 =
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias = i686-pc-linux
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
fsect = 4
host = arm-unknown-linux-gnu
host_alias = arm-linux
host_cpu = arm
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_builddir = .
top_srcdir = .
EXTRA_DIST = MAINT
SUBDIRS = src magic tests doc python
all: config.h
    $(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
am--refresh:
    @:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    @for dep in $?; do \
      case '$(am__configure_deps)' in \
        *$$dep*) \
          echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
          cd $(srcdir) && $(AUTOMAKE) --gnu  \
        && exit 0; \
          exit 1;; \
      esac; \
    done; \
    echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
    cd $(top_srcdir) && \
      $(AUTOMAKE) --gnu  Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @case '$?' in \
      *config.status*) \
        echo ' $(SHELL) ./config.status'; \
        $(SHELL) ./config.status;; \
      *) \
        echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
        cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
    esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    $(SHELL) ./config.status --recheck
$(top_srcdir)/configure:  $(am__configure_deps)
    cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h1
    @if test ! -f $@; then \
      rm -f stamp-h1; \
      $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
    else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
    @rm -f stamp-h1
    cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in:  $(am__configure_deps)
    cd $(top_srcdir) && $(AUTOHEADER)
    rm -f stamp-h1
    touch $@
distclean-hdr:
    -rm -f config.h stamp-h1
mostlyclean-libtool:
    -rm -f *.lo
clean-libtool:
    -rm -rf .libs _libs
distclean-libtool:
    -rm -f libtool
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
    @failcom='exit 1'; \
    for f in x $$MAKEFLAGS; do \
      case $$f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo $@ | sed s/-recursive//`; \
    list='$(SUBDIRS)'; for subdir in $$list; do \
      echo "Making $$target in $$subdir"; \
      if test "$$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$$target-am"; \
      else \
        local_target="$$target"; \
      fi; \
      (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
      || eval $$failcom; \
    done; \
    if test "$$dot_seen" = "no"; then \
      $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
    @failcom='exit 1'; \
    for f in x $$MAKEFLAGS; do \
      case $$f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    case "$@" in \
      distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
      *) list='$(SUBDIRS)' ;; \
    esac; \
    rev=''; for subdir in $$list; do \
      if test "$$subdir" = "."; then :; else \
        rev="$$subdir $$rev"; \
      fi; \
    done; \
    rev="$$rev ."; \
    target=`echo $@ | sed s/-recursive//`; \
    for subdir in $$rev; do \
      echo "Making $$target in $$subdir"; \
      if test "$$subdir" = "."; then \
        local_target="$$target-am"; \
      else \
        local_target="$$target"; \
      fi; \
      (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
      || eval $$failcom; \
    done && test -z "$$fail"
tags-recursive:
    list='$(SUBDIRS)'; for subdir in $$list; do \
      test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
    done
ctags-recursive:
    list='$(SUBDIRS)'; for subdir in $$list; do \
      test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
    done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
    list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
        $(TAGS_FILES) $(LISP)
    tags=; \
    here=`pwd`; \
    if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
      include_option=--etags-include; \
      empty_fix=.; \
    else \
      include_option=--include; \
      empty_fix=; \
    fi; \
    list='$(SUBDIRS)'; for subdir in $$list; do \
      if test "$$subdir" = .; then :; else \
        test ! -f $$subdir/TAGS || \
          tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
      fi; \
    done; \
    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
      test -n "$$unique" || unique=$$empty_fix; \
      $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
        $$tags $$unique; \
    fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
        $(TAGS_FILES) $(LISP)
    tags=; \
    here=`pwd`; \
    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    test -z "$(CTAGS_ARGS)$$tags$$unique" \
      || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
         $$tags $$unique
GTAGS:
    here=`$(am__cd) $(top_builddir) && pwd` \
      && cd $(top_srcdir) \
      && gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
    -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
    $(am__remove_distdir)
    test -d $(distdir) || mkdir $(distdir)
    @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    list='$(DISTFILES)'; \
      dist_files=`for file in $$list; do echo $$file; done | \
      sed -e "s|^$$srcdirstrip/||;t" \
          -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    case $$dist_files in \
      */*) $(MKDIR_P) `echo "$$dist_files" | \
               sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
               sort -u` ;; \
    esac; \
    for file in $$dist_files; do \
      if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
      if test -d $$d/$$file; then \
        dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
        if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
          cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
        fi; \
        cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
      else \
        test -f $(distdir)/$$file \
        || cp -p $$d/$$file $(distdir)/$$file \
        || exit 1; \
      fi; \
    done
    list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
      if test "$$subdir" = .; then :; else \
        test -d "$(distdir)/$$subdir" \
        || $(MKDIR_P) "$(distdir)/$$subdir" \
        || exit 1; \
        distdir=`$(am__cd) $(distdir) && pwd`; \
        top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
        (cd $$subdir && \
          $(MAKE) $(AM_MAKEFLAGS) \
            top_distdir="$$top_distdir" \
            distdir="$$distdir/$$subdir" \
        am__remove_distdir=: \
        am__skip_length_check=: \
            distdir) \
          || exit 1; \
      fi; \
    done
    -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
      ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
      ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
      ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
    || chmod -R a+r $(distdir)
dist-gzip: distdir
    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
    $(am__remove_distdir)
dist-bzip2: distdir
    tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
    $(am__remove_distdir)
dist-tarZ: distdir
    tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
    $(am__remove_distdir)
dist-shar: distdir
    shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
    $(am__remove_distdir)
dist-zip: distdir
    -rm -f $(distdir).zip
    zip -rq $(distdir).zip $(distdir)
    $(am__remove_distdir)
dist dist-all: distdir
    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
    $(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
    case '$(DIST_ARCHIVES)' in \
    *.tar.gz*) \
      GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
    *.tar.bz2*) \
      bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
    *.tar.Z*) \
      uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
    *.shar.gz*) \
      GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
    *.zip*) \
      unzip $(distdir).zip ;;\
    esac
    chmod -R a-w $(distdir); chmod a+w $(distdir)
    mkdir $(distdir)/_build
    mkdir $(distdir)/_inst
    chmod a-w $(distdir)
    dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
      && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
      && cd $(distdir)/_build \
      && ../configure --srcdir=.. --prefix="$$dc_install_base" \
        $(DISTCHECK_CONFIGURE_FLAGS) \
      && $(MAKE) $(AM_MAKEFLAGS) \
      && $(MAKE) $(AM_MAKEFLAGS) dvi \
      && $(MAKE) $(AM_MAKEFLAGS) check \
      && $(MAKE) $(AM_MAKEFLAGS) install \
      && $(MAKE) $(AM_MAKEFLAGS) installcheck \
      && $(MAKE) $(AM_MAKEFLAGS) uninstall \
      && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
            distuninstallcheck \
      && chmod -R a-w "$$dc_install_base" \
      && ({ \
           (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
                distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
          } || { rm -rf "$$dc_destdir"; exit 1; }) \
      && rm -rf "$$dc_destdir" \
      && $(MAKE) $(AM_MAKEFLAGS) dist \
      && rm -rf $(DIST_ARCHIVES) \
      && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
    $(am__remove_distdir)
    @(echo "$(distdir) archives ready for distribution: "; \
      list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
      sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
    @cd $(distuninstallcheck_dir) \
    && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
       || { echo "ERROR: files left after uninstall:" ; \
            if test -n "$(DESTDIR)"; then \
              echo "  (check DESTDIR support)"; \
            fi ; \
            $(distuninstallcheck_listfiles) ; \
            exit 1; } >&2
distcleancheck: distclean
    @if test '$(srcdir)' = . ; then \
      echo "ERROR: distcleancheck can only run from a VPATH build" ; \
      exit 1 ; \
    fi
    @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
      || { echo "ERROR: files left in build directory after distclean:" ; \
           $(distcleancheck_listfiles) ; \
           exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile config.h
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
    @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
    $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
      install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
      `test -z '$(STRIP)' || \
        echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
    -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
    @echo "This command is intended for maintainers to use"
    @echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
    -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr \
    distclean-libtool distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-exec-am:
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
    -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    -rm -rf $(top_srcdir)/autom4te.cache
    -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am:
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
    install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
    all all-am am--refresh check check-am clean clean-generic \
    clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
    dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
    distclean-generic distclean-hdr distclean-libtool \
    distclean-tags distcleancheck distdir distuninstallcheck dvi \
    dvi-am html html-am info info-am install install-am \
    install-data install-data-am install-dvi install-dvi-am \
    install-exec install-exec-am install-html install-html-am \
    install-info install-info-am install-man install-pdf \
    install-pdf-am install-ps install-ps-am install-strip \
    installcheck installcheck-am installdirs installdirs-am \
    maintainer-clean maintainer-clean-generic mostlyclean \
    mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
    tags tags-recursive uninstall uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
ok335xD/3rdparty/file/file-5.04/Makefile.am
New file
@@ -0,0 +1,5 @@
#ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = MAINT
SUBDIRS = src magic tests doc python
ok335xD/3rdparty/file/file-5.04/Makefile.in
New file
@@ -0,0 +1,634 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#ACLOCAL_AMFLAGS = -I m4
VPATH = @srcdir@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    $(srcdir)/Makefile.in $(srcdir)/config.h.in \
    $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
    TODO compile config.guess config.sub depcomp install-sh \
    ltmain.sh missing
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
    $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    $(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
 configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    html-recursive info-recursive install-data-recursive \
    install-dvi-recursive install-exec-recursive \
    install-html-recursive install-info-recursive \
    install-pdf-recursive install-ps-recursive install-recursive \
    installcheck-recursive installdirs-recursive pdf-recursive \
    ps-recursive uninstall-recursive
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive    \
  distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
  { test ! -d $(distdir) \
    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
         && rm -fr $(distdir); }; }
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
pkgdatadir = @pkgdatadir@
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DSYMUTIL = @DSYMUTIL@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NMEDIT = @NMEDIT@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WARNINGS = @WARNINGS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
fsect = @fsect@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
EXTRA_DIST = MAINT
SUBDIRS = src magic tests doc python
all: config.h
    $(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
am--refresh:
    @:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    @for dep in $?; do \
      case '$(am__configure_deps)' in \
        *$$dep*) \
          echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
          cd $(srcdir) && $(AUTOMAKE) --gnu  \
        && exit 0; \
          exit 1;; \
      esac; \
    done; \
    echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
    cd $(top_srcdir) && \
      $(AUTOMAKE) --gnu  Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @case '$?' in \
      *config.status*) \
        echo ' $(SHELL) ./config.status'; \
        $(SHELL) ./config.status;; \
      *) \
        echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
        cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
    esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    $(SHELL) ./config.status --recheck
$(top_srcdir)/configure:  $(am__configure_deps)
    cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.h: stamp-h1
    @if test ! -f $@; then \
      rm -f stamp-h1; \
      $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
    else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
    @rm -f stamp-h1
    cd $(top_builddir) && $(SHELL) ./config.status config.h
$(srcdir)/config.h.in:  $(am__configure_deps)
    cd $(top_srcdir) && $(AUTOHEADER)
    rm -f stamp-h1
    touch $@
distclean-hdr:
    -rm -f config.h stamp-h1
mostlyclean-libtool:
    -rm -f *.lo
clean-libtool:
    -rm -rf .libs _libs
distclean-libtool:
    -rm -f libtool
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
    @failcom='exit 1'; \
    for f in x $$MAKEFLAGS; do \
      case $$f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    target=`echo $@ | sed s/-recursive//`; \
    list='$(SUBDIRS)'; for subdir in $$list; do \
      echo "Making $$target in $$subdir"; \
      if test "$$subdir" = "."; then \
        dot_seen=yes; \
        local_target="$$target-am"; \
      else \
        local_target="$$target"; \
      fi; \
      (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
      || eval $$failcom; \
    done; \
    if test "$$dot_seen" = "no"; then \
      $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
    fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
    @failcom='exit 1'; \
    for f in x $$MAKEFLAGS; do \
      case $$f in \
        *=* | --[!k]*);; \
        *k*) failcom='fail=yes';; \
      esac; \
    done; \
    dot_seen=no; \
    case "$@" in \
      distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
      *) list='$(SUBDIRS)' ;; \
    esac; \
    rev=''; for subdir in $$list; do \
      if test "$$subdir" = "."; then :; else \
        rev="$$subdir $$rev"; \
      fi; \
    done; \
    rev="$$rev ."; \
    target=`echo $@ | sed s/-recursive//`; \
    for subdir in $$rev; do \
      echo "Making $$target in $$subdir"; \
      if test "$$subdir" = "."; then \
        local_target="$$target-am"; \
      else \
        local_target="$$target"; \
      fi; \
      (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
      || eval $$failcom; \
    done && test -z "$$fail"
tags-recursive:
    list='$(SUBDIRS)'; for subdir in $$list; do \
      test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
    done
ctags-recursive:
    list='$(SUBDIRS)'; for subdir in $$list; do \
      test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
    done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
    list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
        $(TAGS_FILES) $(LISP)
    tags=; \
    here=`pwd`; \
    if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
      include_option=--etags-include; \
      empty_fix=.; \
    else \
      include_option=--include; \
      empty_fix=; \
    fi; \
    list='$(SUBDIRS)'; for subdir in $$list; do \
      if test "$$subdir" = .; then :; else \
        test ! -f $$subdir/TAGS || \
          tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
      fi; \
    done; \
    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
      test -n "$$unique" || unique=$$empty_fix; \
      $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
        $$tags $$unique; \
    fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
        $(TAGS_FILES) $(LISP)
    tags=; \
    here=`pwd`; \
    list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    unique=`for i in $$list; do \
        if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
      done | \
      $(AWK) '    { files[$$0] = 1; } \
           END { for (i in files) print i; }'`; \
    test -z "$(CTAGS_ARGS)$$tags$$unique" \
      || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
         $$tags $$unique
GTAGS:
    here=`$(am__cd) $(top_builddir) && pwd` \
      && cd $(top_srcdir) \
      && gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
    -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
    $(am__remove_distdir)
    test -d $(distdir) || mkdir $(distdir)
    @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    list='$(DISTFILES)'; \
      dist_files=`for file in $$list; do echo $$file; done | \
      sed -e "s|^$$srcdirstrip/||;t" \
          -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    case $$dist_files in \
      */*) $(MKDIR_P) `echo "$$dist_files" | \
               sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
               sort -u` ;; \
    esac; \
    for file in $$dist_files; do \
      if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
      if test -d $$d/$$file; then \
        dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
        if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
          cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
        fi; \
        cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
      else \
        test -f $(distdir)/$$file \
        || cp -p $$d/$$file $(distdir)/$$file \
        || exit 1; \
      fi; \
    done
    list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
      if test "$$subdir" = .; then :; else \
        test -d "$(distdir)/$$subdir" \
        || $(MKDIR_P) "$(distdir)/$$subdir" \
        || exit 1; \
        distdir=`$(am__cd) $(distdir) && pwd`; \
        top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
        (cd $$subdir && \
          $(MAKE) $(AM_MAKEFLAGS) \
            top_distdir="$$top_distdir" \
            distdir="$$distdir/$$subdir" \
        am__remove_distdir=: \
        am__skip_length_check=: \
            distdir) \
          || exit 1; \
      fi; \
    done
    -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
      ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
      ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
      ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
    || chmod -R a+r $(distdir)
dist-gzip: distdir
    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
    $(am__remove_distdir)
dist-bzip2: distdir
    tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
    $(am__remove_distdir)
dist-tarZ: distdir
    tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
    $(am__remove_distdir)
dist-shar: distdir
    shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
    $(am__remove_distdir)
dist-zip: distdir
    -rm -f $(distdir).zip
    zip -rq $(distdir).zip $(distdir)
    $(am__remove_distdir)
dist dist-all: distdir
    tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
    $(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
    case '$(DIST_ARCHIVES)' in \
    *.tar.gz*) \
      GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
    *.tar.bz2*) \
      bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
    *.tar.Z*) \
      uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
    *.shar.gz*) \
      GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
    *.zip*) \
      unzip $(distdir).zip ;;\
    esac
    chmod -R a-w $(distdir); chmod a+w $(distdir)
    mkdir $(distdir)/_build
    mkdir $(distdir)/_inst
    chmod a-w $(distdir)
    dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
      && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
      && cd $(distdir)/_build \
      && ../configure --srcdir=.. --prefix="$$dc_install_base" \
        $(DISTCHECK_CONFIGURE_FLAGS) \
      && $(MAKE) $(AM_MAKEFLAGS) \
      && $(MAKE) $(AM_MAKEFLAGS) dvi \
      && $(MAKE) $(AM_MAKEFLAGS) check \
      && $(MAKE) $(AM_MAKEFLAGS) install \
      && $(MAKE) $(AM_MAKEFLAGS) installcheck \
      && $(MAKE) $(AM_MAKEFLAGS) uninstall \
      && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
            distuninstallcheck \
      && chmod -R a-w "$$dc_install_base" \
      && ({ \
           (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
           && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
                distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
          } || { rm -rf "$$dc_destdir"; exit 1; }) \
      && rm -rf "$$dc_destdir" \
      && $(MAKE) $(AM_MAKEFLAGS) dist \
      && rm -rf $(DIST_ARCHIVES) \
      && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
    $(am__remove_distdir)
    @(echo "$(distdir) archives ready for distribution: "; \
      list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
      sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
    @cd $(distuninstallcheck_dir) \
    && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
       || { echo "ERROR: files left after uninstall:" ; \
            if test -n "$(DESTDIR)"; then \
              echo "  (check DESTDIR support)"; \
            fi ; \
            $(distuninstallcheck_listfiles) ; \
            exit 1; } >&2
distcleancheck: distclean
    @if test '$(srcdir)' = . ; then \
      echo "ERROR: distcleancheck can only run from a VPATH build" ; \
      exit 1 ; \
    fi
    @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
      || { echo "ERROR: files left in build directory after distclean:" ; \
           $(distcleancheck_listfiles) ; \
           exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile config.h
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
    @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
    $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
      install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
      `test -z '$(STRIP)' || \
        echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
    -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
    @echo "This command is intended for maintainers to use"
    @echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
    -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr \
    distclean-libtool distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-exec-am:
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
    -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    -rm -rf $(top_srcdir)/autom4te.cache
    -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am:
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
    install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
    all all-am am--refresh check check-am clean clean-generic \
    clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
    dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
    distclean-generic distclean-hdr distclean-libtool \
    distclean-tags distcleancheck distdir distuninstallcheck dvi \
    dvi-am html html-am info info-am install install-am \
    install-data install-data-am install-dvi install-dvi-am \
    install-exec install-exec-am install-html install-html-am \
    install-info install-info-am install-man install-pdf \
    install-pdf-am install-ps install-ps-am install-strip \
    installcheck installcheck-am installdirs installdirs-am \
    maintainer-clean maintainer-clean-generic mostlyclean \
    mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
    tags tags-recursive uninstall uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
ok335xD/3rdparty/file/file-5.04/NEWS
New file
@@ -0,0 +1 @@
See ChangeLog.
ok335xD/3rdparty/file/file-5.04/README
New file
@@ -0,0 +1,134 @@
** README for file(1) Command **
@(#) $File: README,v 1.42 2009/02/14 15:16:24 christos Exp $
E-mail: christos@astron.com
Mailing List: file@mx.gw.com
Phone: Do not even think of telephoning me about this program. Send cash first!
This is Release 5.x of Ian Darwin's (copyright but distributable)
file(1) command. This version is the standard "file" command for Linux,
*BSD, and other systems. (See "patchlevel.h" for the exact release number).
The major changes for 5.x are CDF file parsing, indirect magic, and
overhaul in mime and ascii encoding handling.
The major feature of 4.x is the refactoring of the code into a library,
and the re-write of the file command in terms of that library. The library
itself, libmagic can be used by 3rd party programs that wish to identify
file types without having to fork() and exec() file. The prime contributor
for 4.0 was M\xe5ns Rullg\xe5rd.
UNIX is a trademark of UNIX System Laboratories.
The prime contributor to Release 3.8 was Guy Harris, who put in megachanges
including byte-order independence.
The prime contributor to Release 3.0 was Christos Zoulas, who put
in hundreds of lines of source code changes, including his own
ANSIfication of the code (I liked my own ANSIfication better, but
his (__P()) is the "Berkeley standard" way of doing it, and I wanted UCB
to include the code...), his HP-like "indirection" (a feature of
the HP file command, I think), and his mods that finally got the
uncompress (-z) mode finished and working.
This release has compiled in numerous environments; see PORTING
for a list and problems.
This fine freeware file(1) follows the USG (System V) model of the file
command, rather than the Research (V7) version or the V7-derived 4.[23]
Berkeley one. That is, the file /etc/magic contains much of the ritual
information that is the source of this program's power. My version
knows a little more magic (including tar archives) than System V; the
/etc/magic parsing seems to be compatible with the (poorly documented)
System V /etc/magic format (with one exception; see the man page).
In addition, the /etc/magic file is built from a subdirectory
for easier(?) maintenance.  I will act as a clearinghouse for
magic numbers assigned to all sorts of data files that
are in reasonable circulation. Send your magic numbers,
in magic(5) format please, to the maintainer, Christos Zoulas.
COPYING - read this first.
README - read this second (you are currently reading this file).
INSTALL - read on how to install
src/apprentice.c - parses /etc/magic to learn magic
src/apptype.c - used for OS/2 specific application type magic
src/asprintf.c - replacement for OS's that don't have it.
src/ascmagic.c - third & last set of tests, based on hardwired assumptions.
src/cdf.c - parser for Microsoft Compound Document Files
src/cdf_time.c - time converter for CDF.
src/compress.c - handles decompressing files to look inside.
src/encoding.c - handles unicode encodings
src/file.c - the main program
src/file.h - header file
src/fsmagic.c - first set of tests the program runs, based on filesystem info
src/funcs.c - utilility functions
src/getopt_long.c - used for OS/2 specific application type magic
src/is_tar.c, tar.h - knows about tarchives (courtesy John Gilmore).
src/names.h - header file for ascmagic.c
src/magic.c - the libmagic api
src/print.c - print results, errors, warnings.
src/readcdf.c - CDF wrapper.
src/readelf.[ch] - Stand-alone elf parsing code.
src/softmagic.c - 2nd set of tests, based on /etc/magic
src/strlcat.c - used for OS/2 specific application type magic
src/strlcpy.c - used for OS/2 specific application type magic
src/vasprintf.c - used for OS/2 specific application type magic
doc/file.1 - man page for the command
doc/magic.4 - man page for the magic file, courtesy Guy Harris.
    Install as magic.4 on USG and magic.5 on V7 or Berkeley; cf Makefile.
Magdir - directory of /etc/magic pieces
------------------------------------------------------------------------------
If you submit a new magic entry please make sure you read the following
guidelines:
- Initial match is preferably at least 32 bits long, and is a _unique_ match
- If this is not feasible, use additional check
- Match of <= 16 bits are not accepted
- Delay printing string as much as possible, don't print output too early
- Avoid printf arbitrary byte as string, which can be a source of
  crash and buffer overflow
- Provide complete information with entry:
  * One line short summary
  * Optional long description
  * File extension, if applicable
  * Full name and contact method (for discussion when entry has problem)
  * Further reference, such as documentation of format
------------------------------------------------------------------------------
You can download the latest version of file from:
    ftp://ftp.astron.com/pub/file/
If your gzip sometimes fails to decompress things complaining about a short
file, apply this patch [which is going to be in the next version of gzip]:
*** -   Tue Oct 29 02:06:35 1996
--- util.c      Sun Jul 21 21:51:38 1996
*** 106,111 ****
--- 108,114 ----
      if (insize == 0) {
        if (eof_ok) return EOF;
+       flush_window();
        read_error();
      }
      bytes_in += (ulg)insize;
Parts of this software were developed at SoftQuad Inc., developers
of SGML/HTML/XML publishing software, in Toronto, Canada.
SoftQuad was swallowed up by Corel in 2002
and does not exist any longer.
From: Kees Zeelenberg
An MS-Windows (Win32) port of File-4.17 is available from
http://gnuwin32.sourceforge.net/
File is an implementation of the Unix File(1) command.
It knows the 'magic number' of several thousands of file types.
ok335xD/3rdparty/file/file-5.04/TODO
New file
@@ -0,0 +1,15 @@
Fix output so that tests for MIME and APPLE flags are not needed all
over the place, and actual output is only done in one place. This
needs a design. Suggestion: push possible outputs on to a list, then
pick the last-pushed (most specific, one hopes) value at the end, or
use a default if the list is empty.
Continue to squash all magic bugs. See Debian BTS for a good source.
Store arbitrarily long strings, for example for %s patterns, so that
they can be printed out. Fixes Debian bug #271672.
Add syntax for other sorts of counted string (Debian bug #466032). Use
to fix bug #283760.
Add syntax for relative offsets after current level (Debian bug #466037).
ok335xD/3rdparty/file/file-5.04/acinclude.m4
New file
@@ -0,0 +1,55 @@
dnl from autoconf 2.13 acspecific.m4, with changes to check for daylight
AC_DEFUN([AC_STRUCT_TIMEZONE_DAYLIGHT],
[AC_REQUIRE([AC_STRUCT_TM])dnl
AC_CACHE_CHECK([for tm_zone in struct tm], ac_cv_struct_tm_zone,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;],
  ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)])
if test "$ac_cv_struct_tm_zone" = yes; then
  AC_DEFINE(HAVE_TM_ZONE,1,[HAVE_TM_ZONE])
fi
AC_CACHE_CHECK(for tzname, ac_cv_var_tzname,
[AC_TRY_LINK(
changequote(<<, >>)dnl
<<#include <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
#endif>>,
changequote([, ])dnl
[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])
  if test $ac_cv_var_tzname = yes; then
    AC_DEFINE(HAVE_TZNAME,1,[HAVE_TZNAME])
  fi
AC_CACHE_CHECK([for tm_isdst in struct tm], ac_cv_struct_tm_isdst,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_isdst;],
  ac_cv_struct_tm_isdst=yes, ac_cv_struct_tm_isdst=no)])
if test "$ac_cv_struct_tm_isdst" = yes; then
  AC_DEFINE(HAVE_TM_ISDST,1,[HAVE_TM_ISDST])
fi
AC_CACHE_CHECK(for daylight, ac_cv_var_daylight,
[AC_TRY_LINK(
changequote(<<, >>)dnl
<<#include <time.h>
#ifndef daylight /* In case IRIX #defines this, too  */
extern int daylight;
#endif>>,
changequote([, ])dnl
[atoi(daylight);], ac_cv_var_daylight=yes, ac_cv_var_daylight=no)])
  if test $ac_cv_var_daylight = yes; then
    AC_DEFINE(HAVE_DAYLIGHT,1,[HAVE_DAYLIGHT])
  fi
])
AC_DEFUN([AC_STRUCT_OPTION_GETOPT_H],
[AC_CACHE_CHECK([for struct option in getopt], ac_cv_struct_option_getopt_h,
[AC_TRY_COMPILE([#include <getopt.h>], [struct option op; op.name;],
  ac_cv_struct_option_getopt_h=yes, ac_cv_struct_option_getopt_h=no)])
if test "$ac_cv_struct_option_getopt_h" = yes; then
  AC_DEFINE(HAVE_STRUCT_OPTION,1,[HAVE_STRUCT_OPTION])
fi
])
ok335xD/3rdparty/file/file-5.04/aclocal.m4
New file
Diff too large
ok335xD/3rdparty/file/file-5.04/compile
New file
@@ -0,0 +1,142 @@
#! /bin/sh
# Wrapper for compilers which do not understand `-c -o'.
scriptversion=2005-05-14.22
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.com>.
#
# This program 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 2, or (at your option)
# any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
case $1 in
  '')
     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
     exit 1;
     ;;
  -h | --h*)
    cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand `-c -o'.
Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file `INSTALL'.
Report bugs to <bug-automake@gnu.org>.
EOF
    exit $?
    ;;
  -v | --v*)
    echo "compile $scriptversion"
    exit $?
    ;;
esac
ofile=
cfile=
eat=
for arg
do
  if test -n "$eat"; then
    eat=
  else
    case $1 in
      -o)
    # configure might choose to run compile as `compile cc -o foo foo.c'.
    # So we strip `-o arg' only if arg is an object.
    eat=1
    case $2 in
      *.o | *.obj)
        ofile=$2
        ;;
      *)
        set x "$@" -o "$2"
        shift
        ;;
    esac
    ;;
      *.c)
    cfile=$1
    set x "$@" "$1"
    shift
    ;;
      *)
    set x "$@" "$1"
    shift
    ;;
    esac
  fi
  shift
done
if test -z "$ofile" || test -z "$cfile"; then
  # If no `-o' option was seen then we might have been invoked from a
  # pattern rule where we don't need one.  That is ok -- this is a
  # normal compilation that the losing compiler can handle.  If no
  # `.c' file was seen then we are probably linking.  That is also
  # ok.
  exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
# Create the lock directory.
# Note: use `[/.-]' here to ensure that we don't use the same name
# that we are using for the .o file.  Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
while true; do
  if mkdir "$lockdir" >/dev/null 2>&1; then
    break
  fi
  sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
  mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
  mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
ok335xD/3rdparty/file/file-5.04/config.guess
New file
@@ -0,0 +1,1504 @@
#! /bin/sh
#
# $NetBSD: config.guess,v 1.9 2006/10/29 23:50:54 wiz Exp $
#
# Attempt to guess a canonical system name.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
#   Inc.
timestamp='2006-07-02'
# This file 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Per Bothner <per@bothner.com>.
# Please send patches to <config-patches@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
#
# This script attempts to guess a canonical system name similar to
# config.sub.  If it succeeds, it prints the system name on stdout, and
# exits with 0.  Otherwise, it exits with 1.
#
# The plan is that this can be called by configure scripts if you
# don't specify an explicit build system type.
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION]
Output the configuration name of the system \`$me' is run on.
Operation modes:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit
Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
help="
Try \`$me --help' for more information."
# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )    # Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done
if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi
trap 'exit 1' 1 2 15
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
# Portable tmp directory creation inspired by the Autoconf team.
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
    for c in cc gcc c89 c99 ; do
      if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
         CC_FOR_BUILD="$c"; break ;
      fi ;
    done ;
    if test x"$CC_FOR_BUILD" = x ; then
      CC_FOR_BUILD=no_compiler_found ;
    fi
    ;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
    PATH=$PATH:/.attbin ; export PATH
fi
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    *:NetBSD:*:*)
    # NetBSD (nbsd) targets should (where applicable) match one or
    # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
    # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
    # switched to ELF, *-*-netbsd* would select the old
    # object file format.  This provides both forward
    # compatibility and a consistent mechanism for selecting the
    # object file format.
    #
    # Note: NetBSD doesn't particularly care about the vendor
    # portion of the name.  We always set it to "unknown".
    sysctl="sysctl -n hw.machine_arch"
    UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
        /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
    case "${UNAME_MACHINE_ARCH}" in
        armeb) machine=armeb-unknown ;;
        arm*) machine=arm-unknown ;;
        sh3el) machine=shl-unknown ;;
        sh3eb) machine=sh-unknown ;;
        sh5el) machine=sh5le-unknown ;;
        *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    esac
    # The Operating System including object format, if it has switched
    # to ELF recently, or will in the future.
    case "${UNAME_MACHINE_ARCH}" in
        arm*|i386|m68k|ns32k|sh3*|sparc|vax)
        eval $set_cc_for_build
        if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
            | grep __ELF__ >/dev/null
        then
            # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
            # Return netbsd for either.  FIX?
            os=netbsd
        else
            os=netbsdelf
        fi
        ;;
        *)
            os=netbsd
        ;;
    esac
    # The OS release
    # Debian GNU/NetBSD machines have a different userland, and
    # thus, need a distinct triplet. However, they do not need
    # kernel version information, so it can be replaced with a
    # suitable tag, in the style of linux-gnu.
    case "${UNAME_VERSION}" in
        Debian*)
        release='-gnu'
        ;;
        *)
        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
        ;;
    esac
    # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    # contains redundant information, the shorter form:
    # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    echo "${machine}-${os}${release}"
    exit ;;
    *:OpenBSD:*:*)
    UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
    exit ;;
    *:ekkoBSD:*:*)
    echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    exit ;;
    *:SolidBSD:*:*)
    echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
    exit ;;
    macppc:MirBSD:*:*)
    echo powerpc-unknown-mirbsd${UNAME_RELEASE}
    exit ;;
    *:MirBSD:*:*)
    echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    exit ;;
    alpha:OSF1:*:*)
    case $UNAME_RELEASE in
    *4.0)
        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
        ;;
    *5.*)
            UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
        ;;
    esac
    # According to Compaq, /usr/sbin/psrinfo has been available on
    # OSF/1 and Tru64 systems produced since 1995.  I hope that
    # covers most systems running today.  This code pipes the CPU
    # types through head -n 1, so we only detect the type of CPU 0.
    ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
    case "$ALPHA_CPU_TYPE" in
        "EV4 (21064)")
        UNAME_MACHINE="alpha" ;;
        "EV4.5 (21064)")
        UNAME_MACHINE="alpha" ;;
        "LCA4 (21066/21068)")
        UNAME_MACHINE="alpha" ;;
        "EV5 (21164)")
        UNAME_MACHINE="alphaev5" ;;
        "EV5.6 (21164A)")
        UNAME_MACHINE="alphaev56" ;;
        "EV5.6 (21164PC)")
        UNAME_MACHINE="alphapca56" ;;
        "EV5.7 (21164PC)")
        UNAME_MACHINE="alphapca57" ;;
        "EV6 (21264)")
        UNAME_MACHINE="alphaev6" ;;
        "EV6.7 (21264A)")
        UNAME_MACHINE="alphaev67" ;;
        "EV6.8CB (21264C)")
        UNAME_MACHINE="alphaev68" ;;
        "EV6.8AL (21264B)")
        UNAME_MACHINE="alphaev68" ;;
        "EV6.8CX (21264D)")
        UNAME_MACHINE="alphaev68" ;;
        "EV6.9A (21264/EV69A)")
        UNAME_MACHINE="alphaev69" ;;
        "EV7 (21364)")
        UNAME_MACHINE="alphaev7" ;;
        "EV7.9 (21364A)")
        UNAME_MACHINE="alphaev79" ;;
    esac
    # A Pn.n version is a patched version.
    # A Vn.n version is a released version.
    # A Tn.n version is a released field test version.
    # A Xn.n version is an unreleased experimental baselevel.
    # 1.2 uses "1.2" for uname -r.
    echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    exit ;;
    Alpha\ *:Windows_NT*:*)
    # How do we know it's Interix rather than the generic POSIX subsystem?
    # Should we change UNAME_MACHINE based on the output of uname instead
    # of the specific Alpha model?
    echo alpha-pc-interix
    exit ;;
    21064:Windows_NT:50:3)
    echo alpha-dec-winnt3.5
    exit ;;
    Amiga*:UNIX_System_V:4.0:*)
    echo m68k-unknown-sysv4
    exit ;;
    *:[Aa]miga[Oo][Ss]:*:*)
    echo ${UNAME_MACHINE}-unknown-amigaos
    exit ;;
    *:[Mm]orph[Oo][Ss]:*:*)
    echo ${UNAME_MACHINE}-unknown-morphos
    exit ;;
    *:OS/390:*:*)
    echo i370-ibm-openedition
    exit ;;
    *:z/VM:*:*)
    echo s390-ibm-zvmoe
    exit ;;
    *:OS400:*:*)
        echo powerpc-ibm-os400
    exit ;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    echo arm-acorn-riscix${UNAME_RELEASE}
    exit ;;
    arm:riscos:*:*|arm:RISCOS:*:*)
    echo arm-unknown-riscos
    exit ;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    echo hppa1.1-hitachi-hiuxmpp
    exit ;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
    if test "`(/bin/universe) 2>/dev/null`" = att ; then
        echo pyramid-pyramid-sysv3
    else
        echo pyramid-pyramid-bsd
    fi
    exit ;;
    NILE*:*:*:dcosx)
    echo pyramid-pyramid-svr4
    exit ;;
    DRS?6000:unix:4.0:6*)
    echo sparc-icl-nx6
    exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    case `/usr/bin/uname -p` in
        sparc) echo sparc-icl-nx7; exit ;;
    esac ;;
    sun4H:SunOS:5.*:*)
    echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    exit ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    exit ;;
    i86pc:SunOS:5.*:*)
    echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    exit ;;
    sun4*:SunOS:6*:*)
    # According to config.sub, this is the proper way to canonicalize
    # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
    # it's likely to be more like Solaris than SunOS4.
    echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    exit ;;
    sun4*:SunOS:*:*)
    case "`/usr/bin/arch -k`" in
        Series*|S4*)
        UNAME_RELEASE=`uname -v`
        ;;
    esac
    # Japanese Language versions have a version number like `4.1.3-JL'.
    echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    exit ;;
    sun3*:SunOS:*:*)
    echo m68k-sun-sunos${UNAME_RELEASE}
    exit ;;
    sun*:*:4.2BSD:*)
    UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
    case "`/bin/arch`" in
        sun3)
        echo m68k-sun-sunos${UNAME_RELEASE}
        ;;
        sun4)
        echo sparc-sun-sunos${UNAME_RELEASE}
        ;;
    esac
    exit ;;
    aushp:SunOS:*:*)
    echo sparc-auspex-sunos${UNAME_RELEASE}
    exit ;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
        echo m68k-atari-mint${UNAME_RELEASE}
    exit ;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    echo m68k-atari-mint${UNAME_RELEASE}
        exit ;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
        echo m68k-atari-mint${UNAME_RELEASE}
    exit ;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
        echo m68k-milan-mint${UNAME_RELEASE}
        exit ;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
        echo m68k-hades-mint${UNAME_RELEASE}
        exit ;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
        echo m68k-unknown-mint${UNAME_RELEASE}
        exit ;;
    m68k:machten:*:*)
    echo m68k-apple-machten${UNAME_RELEASE}
    exit ;;
    powerpc:machten:*:*)
    echo powerpc-apple-machten${UNAME_RELEASE}
    exit ;;
    RISC*:Mach:*:*)
    echo mips-dec-mach_bsd4.3
    exit ;;
    RISC*:ULTRIX:*:*)
    echo mips-dec-ultrix${UNAME_RELEASE}
    exit ;;
    VAX*:ULTRIX*:*:*)
    echo vax-dec-ultrix${UNAME_RELEASE}
    exit ;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
    echo clipper-intergraph-clix${UNAME_RELEASE}
    exit ;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
    eval $set_cc_for_build
    sed 's/^    //' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
    int main (int argc, char *argv[]) {
#else
    int main (argc, argv) int argc; char *argv[]; {
#endif
    #if defined (host_mips) && defined (MIPSEB)
    #if defined (SYSTYPE_SYSV)
      printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
    #endif
    #if defined (SYSTYPE_SVR4)
      printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
    #endif
    #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
      printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
    #endif
    #endif
      exit (-1);
    }
EOF
    $CC_FOR_BUILD -o $dummy $dummy.c &&
      dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
      SYSTEM_NAME=`$dummy $dummyarg` &&
        { echo "$SYSTEM_NAME"; exit; }
    echo mips-mips-riscos${UNAME_RELEASE}
    exit ;;
    Motorola:PowerMAX_OS:*:*)
    echo powerpc-motorola-powermax
    exit ;;
    Motorola:*:4.3:PL8-*)
    echo powerpc-harris-powermax
    exit ;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    echo powerpc-harris-powermax
    exit ;;
    Night_Hawk:Power_UNIX:*:*)
    echo powerpc-harris-powerunix
    exit ;;
    m88k:CX/UX:7*:*)
    echo m88k-harris-cxux7
    exit ;;
    m88k:*:4*:R4*)
    echo m88k-motorola-sysv4
    exit ;;
    m88k:*:3*:R3*)
    echo m88k-motorola-sysv3
    exit ;;
    AViiON:dgux:*:*)
        # DG/UX returns AViiON for all architectures
        UNAME_PROCESSOR=`/usr/bin/uname -p`
    if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
    then
        if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
           [ ${TARGET_BINARY_INTERFACE}x = x ]
        then
        echo m88k-dg-dgux${UNAME_RELEASE}
        else
        echo m88k-dg-dguxbcs${UNAME_RELEASE}
        fi
    else
        echo i586-dg-dgux${UNAME_RELEASE}
    fi
     exit ;;
    M88*:DolphinOS:*:*)    # DolphinOS (SVR3)
    echo m88k-dolphin-sysv3
    exit ;;
    M88*:*:R3*:*)
    # Delta 88k system running SVR3
    echo m88k-motorola-sysv3
    exit ;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    echo m88k-tektronix-sysv3
    exit ;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    echo m68k-tektronix-bsd
    exit ;;
    *:IRIX*:*:*)
    echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    exit ;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
    exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
    echo i386-ibm-aix
    exit ;;
    ia64:AIX:*:*)
    if [ -x /usr/bin/oslevel ] ; then
        IBM_REV=`/usr/bin/oslevel`
    else
        IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    fi
    echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    exit ;;
    *:AIX:2:3)
    if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
        eval $set_cc_for_build
        sed 's/^        //' << EOF >$dummy.c
        #include <sys/systemcfg.h>
        main()
            {
            if (!__power_pc())
                exit(1);
            puts("powerpc-ibm-aix3.2.5");
            exit(0);
            }
EOF
        if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
        then
            echo "$SYSTEM_NAME"
        else
            echo rs6000-ibm-aix3.2.5
        fi
    elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
        echo rs6000-ibm-aix3.2.4
    else
        echo rs6000-ibm-aix3.2
    fi
    exit ;;
    *:AIX:*:[45])
    IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
        IBM_ARCH=rs6000
    else
        IBM_ARCH=powerpc
    fi
    if [ -x /usr/bin/oslevel ] ; then
        IBM_REV=`/usr/bin/oslevel`
    else
        IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    fi
    echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    exit ;;
    *:AIX:*:*)
    echo rs6000-ibm-aix
    exit ;;
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    echo romp-ibm-bsd4.4
    exit ;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    exit ;;                             # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
    echo rs6000-bull-bosx
    exit ;;
    DPX/2?00:B.O.S.:*:*)
    echo m68k-bull-sysv3
    exit ;;
    9000/[34]??:4.3bsd:1.*:*)
    echo m68k-hp-bsd
    exit ;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    echo m68k-hp-bsd4.4
    exit ;;
    9000/[34678]??:HP-UX:*:*)
    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    case "${UNAME_MACHINE}" in
        9000/31? )            HP_ARCH=m68000 ;;
        9000/[34]?? )         HP_ARCH=m68k ;;
        9000/[678][0-9][0-9])
        if [ -x /usr/bin/getconf ]; then
            sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
                    case "${sc_cpu_version}" in
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
                      532)                      # CPU_PA_RISC2_0
                        case "${sc_kernel_bits}" in
                          32) HP_ARCH="hppa2.0n" ;;
                          64) HP_ARCH="hppa2.0w" ;;
              '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
                        esac ;;
                    esac
        fi
        if [ "${HP_ARCH}" = "" ]; then
            eval $set_cc_for_build
            sed 's/^              //' << EOF >$dummy.c
              #define _HPUX_SOURCE
              #include <stdlib.h>
              #include <unistd.h>
              int main ()
              {
              #if defined(_SC_KERNEL_BITS)
                  long bits = sysconf(_SC_KERNEL_BITS);
              #endif
                  long cpu  = sysconf (_SC_CPU_VERSION);
                  switch (cpu)
                  {
                  case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
                  case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
                  case CPU_PA_RISC2_0:
              #if defined(_SC_KERNEL_BITS)
                      switch (bits)
                      {
                      case 64: puts ("hppa2.0w"); break;
                      case 32: puts ("hppa2.0n"); break;
                      default: puts ("hppa2.0"); break;
                      } break;
              #else  /* !defined(_SC_KERNEL_BITS) */
                      puts ("hppa2.0"); break;
              #endif
                  default: puts ("hppa1.0"); break;
                  }
                  exit (0);
              }
EOF
            (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
            test -z "$HP_ARCH" && HP_ARCH=hppa
        fi ;;
    esac
    if [ ${HP_ARCH} = "hppa2.0w" ]
    then
        eval $set_cc_for_build
        # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
        # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
        # generating 64-bit code.  GNU and HP use different nomenclature:
        #
        # $ CC_FOR_BUILD=cc ./config.guess
        # => hppa2.0w-hp-hpux11.23
        # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
        # => hppa64-hp-hpux11.23
        if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
        grep __LP64__ >/dev/null
        then
        HP_ARCH="hppa2.0w"
        else
        HP_ARCH="hppa64"
        fi
    fi
    echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    exit ;;
    ia64:HP-UX:*:*)
    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    echo ia64-hp-hpux${HPUX_REV}
    exit ;;
    3050*:HI-UX:*:*)
    eval $set_cc_for_build
    sed 's/^    //' << EOF >$dummy.c
    #include <unistd.h>
    int
    main ()
    {
      long cpu = sysconf (_SC_CPU_VERSION);
      /* The order matters, because CPU_IS_HP_MC68K erroneously returns
         true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
         results, however.  */
      if (CPU_IS_PA_RISC (cpu))
        {
          switch (cpu)
        {
          case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
          case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
          case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
          default: puts ("hppa-hitachi-hiuxwe2"); break;
        }
        }
      else if (CPU_IS_HP_MC68K (cpu))
        puts ("m68k-hitachi-hiuxwe2");
      else puts ("unknown-hitachi-hiuxwe2");
      exit (0);
    }
EOF
    $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
        { echo "$SYSTEM_NAME"; exit; }
    echo unknown-hitachi-hiuxwe2
    exit ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    echo hppa1.1-hp-bsd
    exit ;;
    9000/8??:4.3bsd:*:*)
    echo hppa1.0-hp-bsd
    exit ;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    echo hppa1.0-hp-mpeix
    exit ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    echo hppa1.1-hp-osf
    exit ;;
    hp8??:OSF1:*:*)
    echo hppa1.0-hp-osf
    exit ;;
    i*86:OSF1:*:*)
    if [ -x /usr/sbin/sysversion ] ; then
        echo ${UNAME_MACHINE}-unknown-osf1mk
    else
        echo ${UNAME_MACHINE}-unknown-osf1
    fi
    exit ;;
    parisc*:Lites*:*:*)
    echo hppa1.1-hp-lites
    exit ;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    echo c1-convex-bsd
        exit ;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    if getsysinfo -f scalar_acc
    then echo c32-convex-bsd
    else echo c2-convex-bsd
    fi
        exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    echo c34-convex-bsd
        exit ;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    echo c38-convex-bsd
        exit ;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    echo c4-convex-bsd
        exit ;;
    CRAY*Y-MP:*:*:*)
    echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    exit ;;
    CRAY*[A-Z]90:*:*:*)
    echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
    | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
          -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
          -e 's/\.[^.]*$/.X/'
    exit ;;
    CRAY*TS:*:*:*)
    echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    exit ;;
    CRAY*T3E:*:*:*)
    echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    exit ;;
    CRAY*SV1:*:*:*)
    echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    exit ;;
    *:UNICOS/mp:*:*)
    echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    exit ;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
        exit ;;
    5000:UNIX_System_V:4.*:*)
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    exit ;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    exit ;;
    sparc*:BSD/OS:*:*)
    echo sparc-unknown-bsdi${UNAME_RELEASE}
    exit ;;
    *:BSD/OS:*:*)
    echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    exit ;;
    *:FreeBSD:*:*)
    case ${UNAME_MACHINE} in
        pc98)
        echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
        amd64)
        echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
        *)
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    esac
    exit ;;
    i*:CYGWIN*:*)
    echo ${UNAME_MACHINE}-pc-cygwin
    exit ;;
    i*:MINGW*:*)
    echo ${UNAME_MACHINE}-pc-mingw32
    exit ;;
    i*:windows32*:*)
        # uname -m includes "-pc" on this system.
        echo ${UNAME_MACHINE}-mingw32
    exit ;;
    i*:PW*:*)
    echo ${UNAME_MACHINE}-pc-pw32
    exit ;;
    x86:Interix*:[3456]*)
    echo i586-pc-interix${UNAME_RELEASE}
    exit ;;
    EM64T:Interix*:[3456]*)
    echo x86_64-unknown-interix${UNAME_RELEASE}
    exit ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    echo i${UNAME_MACHINE}-pc-mks
    exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    # How do we know it's Interix rather than the generic POSIX subsystem?
    # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    # UNAME_MACHINE based on the output of uname instead of i386?
    echo i586-pc-interix
    exit ;;
    i*:UWIN*:*)
    echo ${UNAME_MACHINE}-pc-uwin
    exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    echo x86_64-unknown-cygwin
    exit ;;
    p*:CYGWIN*:*)
    echo powerpcle-unknown-cygwin
    exit ;;
    prep*:SunOS:5.*:*)
    echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    exit ;;
    *:GNU:*:*)
    # the GNU system
    echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    exit ;;
    *:GNU/*:*:*)
    # other systems with GNU libc and userland
    echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    exit ;;
    i*86:Minix:*:*)
    echo ${UNAME_MACHINE}-pc-minix
    exit ;;
    arm*:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    avr32*:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    cris:Linux:*:*)
    echo cris-axis-linux-gnu
    exit ;;
    crisv32:Linux:*:*)
    echo crisv32-axis-linux-gnu
    exit ;;
    frv:Linux:*:*)
        echo frv-unknown-linux-gnu
    exit ;;
    ia64:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    m32r*:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    m68*:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    mips:Linux:*:*)
    eval $set_cc_for_build
    sed 's/^    //' << EOF >$dummy.c
    #undef CPU
    #undef mips
    #undef mipsel
    #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    CPU=mipsel
    #else
    #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    CPU=mips
    #else
    CPU=
    #endif
    #endif
EOF
    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
        /^CPU/{
        s: ::g
        p
        }'`"
    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    ;;
    mips64:Linux:*:*)
    eval $set_cc_for_build
    sed 's/^    //' << EOF >$dummy.c
    #undef CPU
    #undef mips64
    #undef mips64el
    #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    CPU=mips64el
    #else
    #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    CPU=mips64
    #else
    CPU=
    #endif
    #endif
EOF
    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
        /^CPU/{
        s: ::g
        p
        }'`"
    test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    ;;
    or32:Linux:*:*)
    echo or32-unknown-linux-gnu
    exit ;;
    ppc:Linux:*:*)
    echo powerpc-unknown-linux-gnu
    exit ;;
    ppc64:Linux:*:*)
    echo powerpc64-unknown-linux-gnu
    exit ;;
    alpha:Linux:*:*)
    case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
      EV5)   UNAME_MACHINE=alphaev5 ;;
      EV56)  UNAME_MACHINE=alphaev56 ;;
      PCA56) UNAME_MACHINE=alphapca56 ;;
      PCA57) UNAME_MACHINE=alphapca56 ;;
      EV6)   UNAME_MACHINE=alphaev6 ;;
      EV67)  UNAME_MACHINE=alphaev67 ;;
      EV68*) UNAME_MACHINE=alphaev68 ;;
        esac
    objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    exit ;;
    parisc:Linux:*:* | hppa:Linux:*:*)
    # Look for CPU level
    case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
      PA7*) echo hppa1.1-unknown-linux-gnu ;;
      PA8*) echo hppa2.0-unknown-linux-gnu ;;
      *)    echo hppa-unknown-linux-gnu ;;
    esac
    exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
    echo hppa64-unknown-linux-gnu
    exit ;;
    s390:Linux:*:* | s390x:Linux:*:*)
    echo ${UNAME_MACHINE}-ibm-linux
    exit ;;
    sh64*:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    sh*:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
    echo ${UNAME_MACHINE}-unknown-linux-gnu
    exit ;;
    vax:Linux:*:*)
    echo ${UNAME_MACHINE}-dec-linux-gnu
    exit ;;
    x86_64:Linux:*:*)
    echo x86_64-unknown-linux-gnu
    exit ;;
    i*86:Linux:*:*)
    # The BFD linker knows what the default object file format is, so
    # first see if it will tell us. cd to the root directory to prevent
    # problems with other programs or directories called `ld' in the path.
    # Set LC_ALL=C to ensure ld outputs messages in English.
    ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
             | sed -ne '/supported targets:/!d
                    s/[     ][     ]*/ /g
                    s/.*supported targets: *//
                    s/ .*//
                    p'`
        case "$ld_supported_targets" in
      elf32-i386)
        TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
        ;;
      a.out-i386-linux)
        echo "${UNAME_MACHINE}-pc-linux-gnuaout"
        exit ;;
      coff-i386)
        echo "${UNAME_MACHINE}-pc-linux-gnucoff"
        exit ;;
      "")
        # Either a pre-BFD a.out linker (linux-gnuoldld) or
        # one that does not give us useful --help.
        echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
        exit ;;
    esac
    # Determine whether the default compiler is a.out or elf
    eval $set_cc_for_build
    sed 's/^    //' << EOF >$dummy.c
    #include <features.h>
    #ifdef __ELF__
    # ifdef __GLIBC__
    #  if __GLIBC__ >= 2
    LIBC=gnu
    #  else
    LIBC=gnulibc1
    #  endif
    # else
    LIBC=gnulibc1
    # endif
    #else
    #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
    LIBC=gnu
    #else
    LIBC=gnuaout
    #endif
    #endif
    #ifdef __dietlibc__
    LIBC=dietlibc
    #endif
EOF
    eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
        /^LIBC/{
        s: ::g
        p
        }'`"
    test x"${LIBC}" != x && {
        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
        exit
    }
    test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
    ;;
    i*86:DYNIX/ptx:4*:*)
    # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
    # earlier versions are messed up and put the nodename in both
    # sysname and nodename.
    echo i386-sequent-sysv4
    exit ;;
    i*86:UNIX_SV:4.2MP:2.*)
        # Unixware is an offshoot of SVR4, but it has its own version
        # number series starting with 2...
        # I am not positive that other SVR4 systems won't match this,
    # I just have to hope.  -- rms.
        # Use sysv4.2uw... so that sysv4* matches it.
    echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    exit ;;
    i*86:OS/2:*:*)
    # If we were able to find `uname', then EMX Unix compatibility
    # is probably installed.
    echo ${UNAME_MACHINE}-pc-os2-emx
    exit ;;
    i*86:XTS-300:*:STOP)
    echo ${UNAME_MACHINE}-unknown-stop
    exit ;;
    i*86:atheos:*:*)
    echo ${UNAME_MACHINE}-unknown-atheos
    exit ;;
    i*86:syllable:*:*)
    echo ${UNAME_MACHINE}-pc-syllable
    exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    echo i386-unknown-lynxos${UNAME_RELEASE}
    exit ;;
    i*86:*DOS:*:*)
    echo ${UNAME_MACHINE}-pc-msdosdjgpp
    exit ;;
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
        echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
    else
        echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    fi
    exit ;;
    i*86:*:5:[678]*)
        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    case `/bin/uname -X | grep "^Machine"` in
        *486*)         UNAME_MACHINE=i486 ;;
        *Pentium)         UNAME_MACHINE=i586 ;;
        *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    esac
    echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    exit ;;
    i*86:*:3.2:*)
    if test -f /usr/options/cb.name; then
        UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
        echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    elif /bin/uname -X 2>/dev/null >/dev/null ; then
        UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
        (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
        (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
            && UNAME_MACHINE=i586
        (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
            && UNAME_MACHINE=i686
        (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
            && UNAME_MACHINE=i686
        echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
    else
        echo ${UNAME_MACHINE}-pc-sysv32
    fi
    exit ;;
    pc:*:*:*)
    # Left here for compatibility:
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # the processor, so we play safe by assuming i386.
    echo i386-pc-msdosdjgpp
        exit ;;
    Intel:Mach:3*:*)
    echo i386-pc-mach3
    exit ;;
    paragon:*:*:*)
    echo i860-intel-osf1
    exit ;;
    i860:*:4.*:*) # i860-SVR4
    if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
      echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
    else # Add other i860-SVR4 vendors below as they are discovered.
      echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    fi
    exit ;;
    mini*:CTIX:SYS*5:*)
    # "miniframe"
    echo m68010-convergent-sysv
    exit ;;
    mc68k:UNIX:SYSTEM5:3.51m)
    echo m68k-convergent-sysv
    exit ;;
    M680?0:D-NIX:5.3:*)
    echo m68k-diab-dnix
    exit ;;
    M68*:*:R3V[5678]*:*)
    test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
    OS_REL=''
    test -r /etc/.relid \
    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
      && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
      && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
          && { echo i486-ncr-sysv4; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    echo m68k-unknown-lynxos${UNAME_RELEASE}
    exit ;;
    mc68030:UNIX_System_V:4.*:*)
    echo m68k-atari-sysv4
    exit ;;
    TSUNAMI:LynxOS:2.*:*)
    echo sparc-unknown-lynxos${UNAME_RELEASE}
    exit ;;
    rs6000:LynxOS:2.*:*)
    echo rs6000-unknown-lynxos${UNAME_RELEASE}
    exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    echo powerpc-unknown-lynxos${UNAME_RELEASE}
    exit ;;
    SM[BE]S:UNIX_SV:*:*)
    echo mips-dde-sysv${UNAME_RELEASE}
    exit ;;
    RM*:ReliantUNIX-*:*:*)
    echo mips-sni-sysv4
    exit ;;
    RM*:SINIX-*:*:*)
    echo mips-sni-sysv4
    exit ;;
    *:SINIX-*:*:*)
    if uname -p 2>/dev/null >/dev/null ; then
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
        echo ${UNAME_MACHINE}-sni-sysv4
    else
        echo ns32k-sni-sysv
    fi
    exit ;;
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
        echo i586-unisys-sysv4
        exit ;;
    *:UNIX_System_V:4*:FTX*)
    # From Gerald Hewes <hewes@openmarket.com>.
    # How about differentiating between stratus architectures? -djm
    echo hppa1.1-stratus-sysv4
    exit ;;
    *:*:*:FTX*)
    # From seanf@swdc.stratus.com.
    echo i860-stratus-sysv4
    exit ;;
    i*86:VOS:*:*)
    # From Paul.Green@stratus.com.
    echo ${UNAME_MACHINE}-stratus-vos
    exit ;;
    *:VOS:*:*)
    # From Paul.Green@stratus.com.
    echo hppa1.1-stratus-vos
    exit ;;
    mc68*:A/UX:*:*)
    echo m68k-apple-aux${UNAME_RELEASE}
    exit ;;
    news*:NEWS-OS:6*:*)
    echo mips-sony-newsos6
    exit ;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    if [ -d /usr/nec ]; then
            echo mips-nec-sysv${UNAME_RELEASE}
    else
            echo mips-unknown-sysv${UNAME_RELEASE}
    fi
        exit ;;
    BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
    echo powerpc-be-beos
    exit ;;
    BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
    echo powerpc-apple-beos
    exit ;;
    BePC:BeOS:*:*)    # BeOS running on Intel PC compatible.
    echo i586-pc-beos
    exit ;;
    SX-4:SUPER-UX:*:*)
    echo sx4-nec-superux${UNAME_RELEASE}
    exit ;;
    SX-5:SUPER-UX:*:*)
    echo sx5-nec-superux${UNAME_RELEASE}
    exit ;;
    SX-6:SUPER-UX:*:*)
    echo sx6-nec-superux${UNAME_RELEASE}
    exit ;;
    Power*:Rhapsody:*:*)
    echo powerpc-apple-rhapsody${UNAME_RELEASE}
    exit ;;
    *:Rhapsody:*:*)
    echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    exit ;;
    *:Darwin:*:*)
    UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    case $UNAME_PROCESSOR in
        unknown) UNAME_PROCESSOR=powerpc ;;
    esac
    echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    exit ;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    UNAME_PROCESSOR=`uname -p`
    if test "$UNAME_PROCESSOR" = "x86"; then
        UNAME_PROCESSOR=i386
        UNAME_MACHINE=pc
    fi
    echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    exit ;;
    *:QNX:*:4*)
    echo i386-pc-qnx
    exit ;;
    NSE-?:NONSTOP_KERNEL:*:*)
    echo nse-tandem-nsk${UNAME_RELEASE}
    exit ;;
    NSR-?:NONSTOP_KERNEL:*:*)
    echo nsr-tandem-nsk${UNAME_RELEASE}
    exit ;;
    *:NonStop-UX:*:*)
    echo mips-compaq-nonstopux
    exit ;;
    BS2000:POSIX*:*:*)
    echo bs2000-siemens-sysv
    exit ;;
    DS/*:UNIX_System_V:*:*)
    echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    exit ;;
    *:Plan9:*:*)
    # "uname -m" is not consistent, so use $cputype instead. 386
    # is converted to i386 for consistency with other x86
    # operating systems.
    if test "$cputype" = "386"; then
        UNAME_MACHINE=i386
    else
        UNAME_MACHINE="$cputype"
    fi
    echo ${UNAME_MACHINE}-unknown-plan9
    exit ;;
    *:TOPS-10:*:*)
    echo pdp10-unknown-tops10
    exit ;;
    *:TENEX:*:*)
    echo pdp10-unknown-tenex
    exit ;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    echo pdp10-dec-tops20
    exit ;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    echo pdp10-xkl-tops20
    exit ;;
    *:TOPS-20:*:*)
    echo pdp10-unknown-tops20
    exit ;;
    *:ITS:*:*)
    echo pdp10-unknown-its
    exit ;;
    SEI:*:*:SEIUX)
        echo mips-sei-seiux${UNAME_RELEASE}
    exit ;;
    *:DragonFly:*:*)
    echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    exit ;;
    *:*VMS:*:*)
        UNAME_MACHINE=`(uname -p) 2>/dev/null`
    case "${UNAME_MACHINE}" in
        A*) echo alpha-dec-vms ; exit ;;
        I*) echo ia64-dec-vms ; exit ;;
        V*) echo vax-dec-vms ; exit ;;
    esac ;;
    *:XENIX:*:SysV)
    echo i386-pc-xenix
    exit ;;
    i*86:skyos:*:*)
    echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
    exit ;;
    i*86:rdos:*:*)
    echo ${UNAME_MACHINE}-pc-rdos
    exit ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
eval $set_cc_for_build
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/utsname.h>
#endif
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
          "4"
#else
      ""
#endif
         ); exit (0);
#endif
#endif
#if defined (__arm) && defined (__acorn) && defined (__unix)
  printf ("arm-acorn-riscix\n"); exit (0);
#endif
#if defined (hp300) && !defined (hpux)
  printf ("m68k-hp-bsd\n"); exit (0);
#endif
#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif
#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif
#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif
#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif
#if defined (_SEQUENT_)
    struct utsname un;
    uname(&un);
    if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
    }
    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
    }
    printf ("i386-sequent-ptx\n"); exit (0);
#endif
#if defined (vax)
# if !defined (ultrix)
#  include <sys/param.h>
#  if defined (BSD)
#   if BSD == 43
      printf ("vax-dec-bsd4.3\n"); exit (0);
#   else
#    if BSD == 199006
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
#    else
      printf ("vax-dec-bsd\n"); exit (0);
#    endif
#   endif
#  else
    printf ("vax-dec-bsd\n"); exit (0);
#  endif
# else
    printf ("vax-dec-ultrix\n"); exit (0);
# endif
#endif
#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif
  exit (1);
}
EOF
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
    { echo "$SYSTEM_NAME"; exit; }
# Apollos put the system type in the environment.
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
# Convex versions that predate uname can use getsysinfo(1)
if [ -x /usr/convex/getsysinfo ]
then
    case `getsysinfo -f cpu_type` in
    c1*)
    echo c1-convex-bsd
    exit ;;
    c2*)
    if getsysinfo -f scalar_acc
    then echo c32-convex-bsd
    else echo c2-convex-bsd
    fi
    exit ;;
    c34*)
    echo c34-convex-bsd
    exit ;;
    c38*)
    echo c38-convex-bsd
    exit ;;
    c4*)
    echo c4-convex-bsd
    exit ;;
    esac
fi
cat >&2 <<EOF
$0: unable to guess system type
This script, last modified $timestamp, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.
config.guess timestamp = $timestamp
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF
exit 1
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
ok335xD/3rdparty/file/file-5.04/config.h
New file
@@ -0,0 +1,269 @@
/* config.h.  Generated from config.h.in by configure.  */
/* config.h.in.  Generated from configure.ac by autoheader.  */
/* Define in built-in ELF support is used */
#define BUILTIN_ELF 1
/* Define for ELF core file support */
#define ELFCORE 1
/* Define to 1 if you have the `asprintf' function. */
#define HAVE_ASPRINTF 1
/* HAVE_DAYLIGHT */
#define HAVE_DAYLIGHT 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <err.h> header file. */
#define HAVE_ERR_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1
/* Define to 1 if you have the `getopt_long' function. */
#define HAVE_GETOPT_LONG 1
/* Define to 1 if the system has the type `int32_t'. */
#define HAVE_INT32_T 1
/* Define to 1 if the system has the type `int64_t'. */
#define HAVE_INT64_T 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `z' library (-lz). */
/* #undef HAVE_LIBZ */
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the `mbrtowc' function. */
#define HAVE_MBRTOWC 1
/* Define to 1 if <wchar.h> declares mbstate_t. */
#define HAVE_MBSTATE_T 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mkstemp' function. */
#define HAVE_MKSTEMP 1
/* Define to 1 if you have the `mmap' function. */
#define HAVE_MMAP 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the `strlcat' function. */
/* #undef HAVE_STRLCAT */
/* Define to 1 if you have the `strlcpy' function. */
/* #undef HAVE_STRLCPY */
/* Define to 1 if you have the `strndup' function. */
#define HAVE_STRNDUP 1
/* Define to 1 if you have the `strtof' function. */
#define HAVE_STRTOF 1
/* Define to 1 if you have the `strtoul' function. */
#define HAVE_STRTOUL 1
/* HAVE_STRUCT_OPTION */
#define HAVE_STRUCT_OPTION 1
/* Define to 1 if `st_rdev' is member of `struct stat'. */
#define HAVE_STRUCT_STAT_ST_RDEV 1
/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
/* #undef HAVE_STRUCT_TM_TM_GMTOFF */
/* Define to 1 if `tm_zone' is member of `struct tm'. */
/* #undef HAVE_STRUCT_TM_TM_ZONE */
/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/utime.h> header file. */
/* #undef HAVE_SYS_UTIME_H */
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1
/* HAVE_TM_ISDST */
#define HAVE_TM_ISDST 1
/* HAVE_TM_ZONE */
#define HAVE_TM_ZONE 1
/* HAVE_TZNAME */
#define HAVE_TZNAME 1
/* Define to 1 if the system has the type `uint16_t'. */
#define HAVE_UINT16_T 1
/* Define to 1 if the system has the type `uint32_t'. */
#define HAVE_UINT32_T 1
/* Define to 1 if the system has the type `uint64_t'. */
#define HAVE_UINT64_T 1
/* Define to 1 if the system has the type `uint8_t'. */
#define HAVE_UINT8_T 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to 1 if you have the `utime' function. */
#define HAVE_UTIME 1
/* Define to 1 if you have the `utimes' function. */
#define HAVE_UTIMES 1
/* Define to 1 if you have the <utime.h> header file. */
#define HAVE_UTIME_H 1
/* Define to 1 if you have the `vasprintf' function. */
#define HAVE_VASPRINTF 1
/* Define to 1 if you have the <wchar.h> header file. */
#define HAVE_WCHAR_H 1
/* Define to 1 if you have the <wctype.h> header file. */
#define HAVE_WCTYPE_H 1
/* Define to 1 if you have the `wcwidth' function. */
#define HAVE_WCWIDTH 1
/* Define to 1 if you have the <zlib.h> header file. */
/* #undef HAVE_ZLIB_H */
/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
   */
/* #undef MAJOR_IN_MKDEV */
/* Define to 1 if `major', `minor', and `makedev' are declared in
   <sysmacros.h>. */
/* #undef MAJOR_IN_SYSMACROS */
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* Name of package */
#define PACKAGE "file"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "christos@astron.com"
/* Define to the full name of this package. */
#define PACKAGE_NAME "file"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "file 5.04"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "file"
/* Define to the version of this package. */
#define PACKAGE_VERSION "5.04"
/* The size of `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */
/* Version number of package */
#define VERSION "5.04"
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
/* #undef _LARGEFILE_SOURCE */
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to a type if <wchar.h> does not define. */
/* #undef mbstate_t */
/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */
#ifndef HAVE_UINT8_T
typedef unsigned char uint8_t;
#endif
#ifndef HAVE_UINT16_T
typedef unsigned short uint16_t;
#endif
#ifndef HAVE_UINT32_T
typedef unsigned int uint32_t;
#endif
#ifndef HAVE_INT32_T
typedef int int32_t;
#endif
#ifndef HAVE_UINT64_T
#if SIZEOF_LONG_LONG == 8
typedef unsigned long long uint64_t;
#else
typedef unsigned long uint64_t;
#endif
#endif
#ifndef HAVE_INT64_T
#if SIZEOF_LONG_LONG == 8
typedef long long int64_t;
#else
typedef long int64_t;
#endif
#endif
ok335xD/3rdparty/file/file-5.04/config.h.in
New file
@@ -0,0 +1,268 @@
/* config.h.in.  Generated from configure.ac by autoheader.  */
/* Define in built-in ELF support is used */
#undef BUILTIN_ELF
/* Define for ELF core file support */
#undef ELFCORE
/* Define to 1 if you have the `asprintf' function. */
#undef HAVE_ASPRINTF
/* HAVE_DAYLIGHT */
#undef HAVE_DAYLIGHT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <err.h> header file. */
#undef HAVE_ERR_H
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#undef HAVE_FSEEKO
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
/* Define to 1 if you have the `getopt_long' function. */
#undef HAVE_GETOPT_LONG
/* Define to 1 if the system has the type `int32_t'. */
#undef HAVE_INT32_T
/* Define to 1 if the system has the type `int64_t'. */
#undef HAVE_INT64_T
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `z' library (-lz). */
#undef HAVE_LIBZ
/* Define to 1 if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define to 1 if you have the `mbrtowc' function. */
#undef HAVE_MBRTOWC
/* Define to 1 if <wchar.h> declares mbstate_t. */
#undef HAVE_MBSTATE_T
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the `mkstemp' function. */
#undef HAVE_MKSTEMP
/* Define to 1 if you have the `mmap' function. */
#undef HAVE_MMAP
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the `strerror' function. */
#undef HAVE_STRERROR
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strlcat' function. */
#undef HAVE_STRLCAT
/* Define to 1 if you have the `strlcpy' function. */
#undef HAVE_STRLCPY
/* Define to 1 if you have the `strndup' function. */
#undef HAVE_STRNDUP
/* Define to 1 if you have the `strtof' function. */
#undef HAVE_STRTOF
/* Define to 1 if you have the `strtoul' function. */
#undef HAVE_STRTOUL
/* HAVE_STRUCT_OPTION */
#undef HAVE_STRUCT_OPTION
/* Define to 1 if `st_rdev' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_RDEV
/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
#undef HAVE_STRUCT_TM_TM_GMTOFF
/* Define to 1 if `tm_zone' is member of `struct tm'. */
#undef HAVE_STRUCT_TM_TM_ZONE
/* Define to 1 if you have the <sys/mman.h> header file. */
#undef HAVE_SYS_MMAN_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/utime.h> header file. */
#undef HAVE_SYS_UTIME_H
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* HAVE_TM_ISDST */
#undef HAVE_TM_ISDST
/* HAVE_TM_ZONE */
#undef HAVE_TM_ZONE
/* HAVE_TZNAME */
#undef HAVE_TZNAME
/* Define to 1 if the system has the type `uint16_t'. */
#undef HAVE_UINT16_T
/* Define to 1 if the system has the type `uint32_t'. */
#undef HAVE_UINT32_T
/* Define to 1 if the system has the type `uint64_t'. */
#undef HAVE_UINT64_T
/* Define to 1 if the system has the type `uint8_t'. */
#undef HAVE_UINT8_T
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `utime' function. */
#undef HAVE_UTIME
/* Define to 1 if you have the `utimes' function. */
#undef HAVE_UTIMES
/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Define to 1 if you have the `vasprintf' function. */
#undef HAVE_VASPRINTF
/* Define to 1 if you have the <wchar.h> header file. */
#undef HAVE_WCHAR_H
/* Define to 1 if you have the <wctype.h> header file. */
#undef HAVE_WCTYPE_H
/* Define to 1 if you have the `wcwidth' function. */
#undef HAVE_WCWIDTH
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H
/* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
   */
#undef MAJOR_IN_MKDEV
/* Define to 1 if `major', `minor', and `makedev' are declared in
   <sysmacros.h>. */
#undef MAJOR_IN_SYSMACROS
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
/* Version number of package */
#undef VERSION
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
#undef _LARGEFILE_SOURCE
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to a type if <wchar.h> does not define. */
#undef mbstate_t
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
#ifndef HAVE_UINT8_T
typedef unsigned char uint8_t;
#endif
#ifndef HAVE_UINT16_T
typedef unsigned short uint16_t;
#endif
#ifndef HAVE_UINT32_T
typedef unsigned int uint32_t;
#endif
#ifndef HAVE_INT32_T
typedef int int32_t;
#endif
#ifndef HAVE_UINT64_T
#if SIZEOF_LONG_LONG == 8
typedef unsigned long long uint64_t;
#else
typedef unsigned long uint64_t;
#endif
#endif
#ifndef HAVE_INT64_T
#if SIZEOF_LONG_LONG == 8
typedef long long int64_t;
#else
typedef long int64_t;
#endif
#endif
ok335xD/3rdparty/file/file-5.04/config.log
New file
@@ -0,0 +1,2704 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by file configure 5.04, which was
generated by GNU Autoconf 2.61.  Invocation command line was
  $ ./configure --prefix=/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin --build=i686-pc-linux --host=arm-linux --enable-static --disable-shared
## --------- ##
## Platform. ##
## --------- ##
hostname = ubuntu-master
uname -m = x86_64
uname -r = 4.4.0-31-generic
uname -s = Linux
uname -v = #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016
/usr/bin/uname -p = unknown
/bin/uname -X     = unknown
/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
PATH: /home/guowenxue/bin
PATH: /home/guowenxue/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /usr/lib/jvm/java-8-oracle/bin
PATH: /usr/lib/jvm/java-8-oracle/db/bin
PATH: /usr/lib/jvm/java-8-oracle/jre/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1992: checking for a BSD-compatible install
configure:2048: result: /usr/bin/install -c
configure:2059: checking whether build environment is sane
configure:2102: result: yes
configure:2130: checking for a thread-safe mkdir -p
configure:2169: result: /bin/mkdir -p
configure:2182: checking for gawk
configure:2198: found /usr/bin/gawk
configure:2209: result: gawk
configure:2220: checking whether make sets $(MAKE)
configure:2241: result: yes
configure:2321: checking for arm-linux-strip
configure:2348: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip
configure:2433: checking for builtin ELF support
configure:2452: result: yes
configure:2463: checking for ELF core file support
configure:2482: result: yes
configure:2493: checking for file formats in man section 5
configure:2509: result: no
configure:2544: checking for arm-linux-gcc
configure:2571: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
configure:2849: checking for C compiler version
configure:2856: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc --version >&5
arm-linux-gnueabi-gcc (Linaro GCC 4.9-2017.01) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2859: $? = 0
configure:2866: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/crosstool/cortex-a7/bin/../libexec/gcc/arm-linux-gnueabi/4.9.4/lto-wrapper
Target: arm-linux-gnueabi
Configured with: /home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/snapshots/gcc-linaro-4.9-2017.01/configure SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-objc-gc --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=soft --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --with-fpu=vfpv3-d16 --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/sysroots/arm-linux-gnueabi --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabi/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabi --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/docker-trusty-amd64-tcwg-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 4.9.4 (Linaro GCC 4.9-2017.01)
configure:2869: $? = 0
configure:2876: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -V >&5
arm-linux-gnueabi-gcc: error: unrecognized command line option '-V'
arm-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:2879: $? = 1
configure:2902: checking for C compiler default output file name
configure:2929: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc    conftest.c  >&5
configure:2932: $? = 0
configure:2970: result: a.out
configure:2987: checking whether the C compiler works
configure:3017: result: yes
configure:3024: checking whether we are cross compiling
configure:3026: result: yes
configure:3029: checking for suffix of executables
configure:3036: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:3039: $? = 0
configure:3063: result:
configure:3069: checking for suffix of object files
configure:3095: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:3098: $? = 0
configure:3121: result: o
configure:3125: checking whether we are using the GNU C compiler
configure:3154: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:3160: $? = 0
configure:3177: result: yes
configure:3182: checking whether /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc accepts -g
configure:3212: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c -g  conftest.c >&5
configure:3218: $? = 0
configure:3317: result: yes
configure:3334: checking for /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc option to accept ISO C89
configure:3408: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc  -c   conftest.c >&5
configure:3414: $? = 0
configure:3437: result: none needed
configure:3466: checking for style of include used by make
configure:3494: result: GNU
configure:3519: checking dependency style of /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
configure:3610: result: gcc3
configure:3626: checking whether /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc and cc understand -c and -o together
configure:3661: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c conftest.c -o conftest2.o >&5
configure:3664: $? = 0
configure:3670: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c conftest.c -o conftest2.o >&5
configure:3673: $? = 0
configure:3684: cc -c conftest.c >&5
configure:3687: $? = 0
configure:3695: cc -c conftest.c -o conftest2.o >&5
configure:3698: $? = 0
configure:3704: cc -c conftest.c -o conftest2.o >&5
configure:3707: $? = 0
configure:3725: result: yes
configure:3764: checking for a BSD-compatible install
configure:3820: result: /usr/bin/install -c
configure:3831: checking whether ln -s works
configure:3835: result: yes
configure:3920: checking build system type
configure:3938: result: i686-pc-linux-gnu
configure:3960: checking host system type
configure:3975: result: arm-unknown-linux-gnu
configure:3997: checking for a sed that does not truncate output
configure:4053: result: /bin/sed
configure:4056: checking for grep that handles long lines and -e
configure:4130: result: /bin/grep
configure:4135: checking for egrep
configure:4213: result: /bin/grep -E
configure:4229: checking for ld used by /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
configure:4296: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld
configure:4305: checking if the linker (/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld) is GNU ld
configure:4320: result: yes
configure:4325: checking for /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld option to reload object files
configure:4332: result: -r
configure:4350: checking for BSD-compatible nm
configure:4399: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-nm
configure:4403: checking how to recognize dependent libraries
configure:4589: result: pass_all
configure:4834: checking how to run the C preprocessor
configure:4874: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:4880: $? = 0
configure:4911: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
conftest.c:13:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:4917: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:4950: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E
configure:4979: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:4985: $? = 0
configure:5016: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
conftest.c:13:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:5022: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5060: checking for ANSI C header files
configure:5090: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5096: $? = 0
configure:5224: result: yes
configure:5248: checking for sys/types.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for sys/stat.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for stdlib.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for string.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for memory.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for strings.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for inttypes.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for stdint.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5248: checking for unistd.h
configure:5269: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5275: $? = 0
configure:5291: result: yes
configure:5318: checking dlfcn.h usability
configure:5335: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:5341: $? = 0
configure:5355: result: yes
configure:5359: checking dlfcn.h presence
configure:5374: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:5380: $? = 0
configure:5394: result: yes
configure:5427: checking for dlfcn.h
configure:5435: result: yes
configure:5462: checking for arm-linux-g++
configure:5492: result: no
configure:5462: checking for arm-linux-c++
configure:5492: result: no
configure:5462: checking for arm-linux-gpp
configure:5492: result: no
configure:5462: checking for arm-linux-aCC
configure:5492: result: no
configure:5462: checking for arm-linux-CC
configure:5492: result: no
configure:5462: checking for arm-linux-cxx
configure:5492: result: no
configure:5462: checking for arm-linux-cc++
configure:5492: result: no
configure:5462: checking for arm-linux-cl.exe
configure:5492: result: no
configure:5462: checking for arm-linux-FCC
configure:5492: result: no
configure:5462: checking for arm-linux-KCC
configure:5492: result: no
configure:5462: checking for arm-linux-RCC
configure:5492: result: no
configure:5462: checking for arm-linux-xlC_r
configure:5492: result: no
configure:5462: checking for arm-linux-xlC
configure:5492: result: no
configure:5506: checking for g++
configure:5522: found /usr/bin/g++
configure:5533: result: g++
configure:5551: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
configure:5564: checking for C++ compiler version
configure:5571: g++ --version >&5
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:5574: $? = 0
configure:5581: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.4' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.4)
configure:5584: $? = 0
configure:5591: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:5594: $? = 4
configure:5597: checking whether we are using the GNU C++ compiler
configure:5626: g++ -c   conftest.cpp >&5
configure:5632: $? = 0
configure:5649: result: yes
configure:5654: checking whether g++ accepts -g
configure:5684: g++ -c -g  conftest.cpp >&5
configure:5690: $? = 0
configure:5789: result: yes
configure:5814: checking dependency style of g++
configure:5905: result: gcc3
configure:5930: checking how to run the C++ preprocessor
configure:5966: g++ -E  conftest.cpp
configure:5972: $? = 0
configure:6003: g++ -E  conftest.cpp
conftest.cpp:24:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:6009: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6042: result: g++ -E
configure:6071: g++ -E  conftest.cpp
configure:6077: $? = 0
configure:6108: g++ -E  conftest.cpp
conftest.cpp:24:28: fatal error: ac_nonexistent.h: No such file or directory
 #include <ac_nonexistent.h>
                            ^
compilation terminated.
configure:6114: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:6163: checking for arm-linux-g77
configure:6193: result: no
configure:6163: checking for arm-linux-xlf
configure:6193: result: no
configure:6163: checking for arm-linux-f77
configure:6193: result: no
configure:6163: checking for arm-linux-frt
configure:6193: result: no
configure:6163: checking for arm-linux-pgf77
configure:6193: result: no
configure:6163: checking for arm-linux-cf77
configure:6193: result: no
configure:6163: checking for arm-linux-fort77
configure:6193: result: no
configure:6163: checking for arm-linux-fl32
configure:6193: result: no
configure:6163: checking for arm-linux-af77
configure:6193: result: no
configure:6163: checking for arm-linux-xlf90
configure:6193: result: no
configure:6163: checking for arm-linux-f90
configure:6193: result: no
configure:6163: checking for arm-linux-pgf90
configure:6193: result: no
configure:6163: checking for arm-linux-pghpf
configure:6193: result: no
configure:6163: checking for arm-linux-epcf90
configure:6193: result: no
configure:6163: checking for arm-linux-gfortran
configure:6193: result: no
configure:6163: checking for arm-linux-g95
configure:6193: result: no
configure:6163: checking for arm-linux-xlf95
configure:6193: result: no
configure:6163: checking for arm-linux-f95
configure:6193: result: no
configure:6163: checking for arm-linux-fort
configure:6193: result: no
configure:6163: checking for arm-linux-ifort
configure:6193: result: no
configure:6163: checking for arm-linux-ifc
configure:6193: result: no
configure:6163: checking for arm-linux-efc
configure:6193: result: no
configure:6163: checking for arm-linux-pgf95
configure:6193: result: no
configure:6163: checking for arm-linux-lf95
configure:6193: result: no
configure:6163: checking for arm-linux-ftn
configure:6193: result: no
configure:6207: checking for g77
configure:6237: result: no
configure:6207: checking for xlf
configure:6237: result: no
configure:6207: checking for f77
configure:6237: result: no
configure:6207: checking for frt
configure:6237: result: no
configure:6207: checking for pgf77
configure:6237: result: no
configure:6207: checking for cf77
configure:6237: result: no
configure:6207: checking for fort77
configure:6237: result: no
configure:6207: checking for fl32
configure:6237: result: no
configure:6207: checking for af77
configure:6237: result: no
configure:6207: checking for xlf90
configure:6237: result: no
configure:6207: checking for f90
configure:6237: result: no
configure:6207: checking for pgf90
configure:6237: result: no
configure:6207: checking for pghpf
configure:6237: result: no
configure:6207: checking for epcf90
configure:6237: result: no
configure:6207: checking for gfortran
configure:6237: result: no
configure:6207: checking for g95
configure:6237: result: no
configure:6207: checking for xlf95
configure:6237: result: no
configure:6207: checking for f95
configure:6237: result: no
configure:6207: checking for fort
configure:6237: result: no
configure:6207: checking for ifort
configure:6237: result: no
configure:6207: checking for ifc
configure:6237: result: no
configure:6207: checking for efc
configure:6237: result: no
configure:6207: checking for pgf95
configure:6237: result: no
configure:6207: checking for lf95
configure:6237: result: no
configure:6207: checking for ftn
configure:6237: result: no
configure:6264: checking for Fortran 77 compiler version
configure:6271:  --version >&5
./configure: line 6272: --version: command not found
configure:6274: $? = 127
configure:6281:  -v >&5
./configure: line 6282: -v: command not found
configure:6284: $? = 127
configure:6291:  -V >&5
./configure: line 6292: -V: command not found
configure:6294: $? = 127
configure:6302: checking whether we are using the GNU Fortran 77 compiler
configure:6321:  -c  conftest.F >&5
./configure: line 6322: -c: command not found
configure:6327: $? = 127
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
|
|       end
configure:6344: result: no
configure:6350: checking whether  accepts -g
configure:6367:  -c -g conftest.f >&5
./configure: line 6368: -c: command not found
configure:6373: $? = 127
configure: failed program was:
|       program main
|
|       end
configure:6389: result: no
configure:6418: checking the maximum length of command line arguments
configure:6530: result: 1572864
configure:6542: checking command to parse /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-nm output from /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc object
configure:6647: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:6650: $? = 0
configure:6654: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-nm conftest.o \| sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm
configure:6657: $? = 0
configure:6709: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c conftstm.o >&5
configure:6712: $? = 0
configure:6750: result: ok
configure:6754: checking for objdir
configure:6769: result: .libs
configure:6821: checking for arm-linux-ar
configure:6848: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar
configure:6917: checking for arm-linux-ranlib
configure:6944: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib
configure:7013: checking for arm-linux-strip
configure:7040: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip
configure:7678: checking if /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions
configure:7696: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   -fno-rtti -fno-exceptions conftest.c >&5
cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C
configure:7700: $? = 0
configure:7713: result: no
configure:7728: checking for /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc option to produce PIC
configure:7960: result: -fPIC
configure:7968: checking if /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc PIC flag -fPIC works
configure:7986: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   -fPIC -DPIC conftest.c >&5
configure:7990: $? = 0
configure:8003: result: yes
configure:8031: checking if /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc static flag -static works
configure:8059: result: yes
configure:8069: checking if /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc supports -c -o file.o
configure:8090: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   -o out/conftest2.o conftest.c >&5
configure:8094: $? = 0
configure:8116: result: yes
configure:8142: checking whether the /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc linker (/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld) supports shared libraries
configure:9122: result: yes
configure:9189: checking dynamic linker characteristics
configure:9791: result: GNU/Linux ld.so
configure:9815: checking how to hardcode library paths into programs
configure:9840: result: immediate
configure:9854: checking whether stripping libraries is possible
configure:9859: result: yes
configure:10661: checking if libtool supports shared libraries
configure:10663: result: yes
configure:10666: checking whether to build shared libraries
configure:10687: result: no
configure:10690: checking whether to build static libraries
configure:10694: result: yes
configure:10788: creating libtool
configure:11381: checking for ld used by g++
configure:11448: result: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld
configure:11457: checking if the linker (/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld) is GNU ld
configure:11472: result: yes
configure:11523: checking whether the g++ linker (/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld) supports shared libraries
configure:12469: result: yes
configure:12486: g++ -c -g -O2  conftest.cpp >&5
configure:12489: $? = 0
configure:12645: checking for g++ option to produce PIC
configure:12929: result: -fPIC
configure:12937: checking if g++ PIC flag -fPIC works
configure:12955: g++ -c -g -O2  -fPIC -DPIC conftest.cpp >&5
configure:12959: $? = 0
configure:12972: result: yes
configure:13000: checking if g++ static flag -static works
configure:13028: result: yes
configure:13038: checking if g++ supports -c -o file.o
configure:13059: g++ -c -g -O2  -o out/conftest2.o conftest.cpp >&5
configure:13063: $? = 0
configure:13085: result: yes
configure:13111: checking whether the g++ linker (/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld) supports shared libraries
configure:13137: result: yes
configure:13204: checking dynamic linker characteristics
configure:13754: result: GNU/Linux ld.so
configure:13778: checking how to hardcode library paths into programs
configure:13803: result: immediate
configure:20025: checking for ANSI C header files
configure:20189: result: yes
configure:20199: checking whether sys/types.h defines makedev
configure:20225: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:20231: $? = 0
configure:20249: result: yes
configure:20536: checking for sys/wait.h that is POSIX.1 compatible
configure:20572: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20578: $? = 0
configure:20593: result: yes
configure:20613: checking for stdint.h
configure:20619: result: yes
configure:20623: checking fcntl.h usability
configure:20640: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20646: $? = 0
configure:20660: result: yes
configure:20664: checking fcntl.h presence
configure:20679: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20685: $? = 0
configure:20699: result: yes
configure:20732: checking for fcntl.h
configure:20740: result: yes
configure:20623: checking locale.h usability
configure:20640: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20646: $? = 0
configure:20660: result: yes
configure:20664: checking locale.h presence
configure:20679: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20685: $? = 0
configure:20699: result: yes
configure:20732: checking for locale.h
configure:20740: result: yes
configure:20613: checking for stdint.h
configure:20619: result: yes
configure:20613: checking for inttypes.h
configure:20619: result: yes
configure:20613: checking for unistd.h
configure:20619: result: yes
configure:20771: checking utime.h usability
configure:20788: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20794: $? = 0
configure:20808: result: yes
configure:20812: checking utime.h presence
configure:20827: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20833: $? = 0
configure:20847: result: yes
configure:20880: checking for utime.h
configure:20888: result: yes
configure:20771: checking wchar.h usability
configure:20788: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20794: $? = 0
configure:20808: result: yes
configure:20812: checking wchar.h presence
configure:20827: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20833: $? = 0
configure:20847: result: yes
configure:20880: checking for wchar.h
configure:20888: result: yes
configure:20771: checking wctype.h usability
configure:20788: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20794: $? = 0
configure:20808: result: yes
configure:20812: checking wctype.h presence
configure:20827: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20833: $? = 0
configure:20847: result: yes
configure:20880: checking for wctype.h
configure:20888: result: yes
configure:20771: checking limits.h usability
configure:20788: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20794: $? = 0
configure:20808: result: yes
configure:20812: checking limits.h presence
configure:20827: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20833: $? = 0
configure:20847: result: yes
configure:20880: checking for limits.h
configure:20888: result: yes
configure:20917: checking getopt.h usability
configure:20934: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20940: $? = 0
configure:20954: result: yes
configure:20958: checking getopt.h presence
configure:20973: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20979: $? = 0
configure:20993: result: yes
configure:21026: checking for getopt.h
configure:21034: result: yes
configure:20917: checking err.h usability
configure:20934: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:20940: $? = 0
configure:20954: result: yes
configure:20958: checking err.h presence
configure:20973: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:20979: $? = 0
configure:20993: result: yes
configure:21026: checking for err.h
configure:21034: result: yes
configure:21066: checking sys/mman.h usability
configure:21083: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21089: $? = 0
configure:21103: result: yes
configure:21107: checking sys/mman.h presence
configure:21122: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:21128: $? = 0
configure:21142: result: yes
configure:21175: checking for sys/mman.h
configure:21183: result: yes
configure:21056: checking for sys/stat.h
configure:21062: result: yes
configure:21056: checking for sys/types.h
configure:21062: result: yes
configure:21066: checking sys/utime.h usability
configure:21083: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c:74:23: fatal error: sys/utime.h: No such file or directory
 #include <sys/utime.h>
                       ^
compilation terminated.
configure:21089: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/utime.h>
configure:21103: result: no
configure:21107: checking sys/utime.h presence
configure:21122: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
conftest.c:41:23: fatal error: sys/utime.h: No such file or directory
 #include <sys/utime.h>
                       ^
compilation terminated.
configure:21128: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| /* end confdefs.h.  */
| #include <sys/utime.h>
configure:21142: result: no
configure:21175: checking for sys/utime.h
configure:21183: result: no
configure:21066: checking sys/time.h usability
configure:21083: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21089: $? = 0
configure:21103: result: yes
configure:21107: checking sys/time.h presence
configure:21122: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
configure:21128: $? = 0
configure:21142: result: yes
configure:21175: checking for sys/time.h
configure:21183: result: yes
configure:21211: checking zlib.h usability
configure:21228: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c:75:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
configure:21234: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <zlib.h>
configure:21248: result: no
configure:21252: checking zlib.h presence
configure:21267: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E  conftest.c
conftest.c:42:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
configure:21273: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| /* end confdefs.h.  */
| #include <zlib.h>
configure:21287: result: no
configure:21320: checking for zlib.h
configure:21328: result: no
configure:21342: checking for an ANSI C-conforming const
configure:21417: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21423: $? = 0
configure:21438: result: yes
configure:21448: checking for off_t
configure:21478: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21484: $? = 0
configure:21499: result: yes
configure:21511: checking for size_t
configure:21541: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21547: $? = 0
configure:21562: result: yes
configure:21574: checking for struct stat.st_rdev
configure:21602: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21608: $? = 0
configure:21665: result: yes
configure:21677: checking whether struct tm is in sys/time.h or time.h
configure:21707: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21713: $? = 0
configure:21728: result: time.h
configure:21738: checking for struct tm.tm_gmtoff
configure:21766: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:79:18: error: storage size of 'ac_aggr' isn't known
 static struct tm ac_aggr;
                  ^
configure:21772: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static struct tm ac_aggr;
| if (ac_aggr.tm_gmtoff)
| return 0;
|   ;
|   return 0;
| }
configure:21805: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:79:18: error: storage size of 'ac_aggr' isn't known
 static struct tm ac_aggr;
                  ^
configure:21811: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static struct tm ac_aggr;
| if (sizeof ac_aggr.tm_gmtoff)
| return 0;
|   ;
|   return 0;
| }
configure:21829: result: no
configure:21839: checking for struct tm.tm_zone
configure:21867: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:79:18: error: storage size of 'ac_aggr' isn't known
 static struct tm ac_aggr;
                  ^
configure:21873: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static struct tm ac_aggr;
| if (ac_aggr.tm_zone)
| return 0;
|   ;
|   return 0;
| }
configure:21906: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:79:18: error: storage size of 'ac_aggr' isn't known
 static struct tm ac_aggr;
                  ^
configure:21912: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| static struct tm ac_aggr;
| if (sizeof ac_aggr.tm_zone)
| return 0;
|   ;
|   return 0;
| }
configure:21930: result: no
configure:21941: checking for tm_zone in struct tm
configure:21968: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:21974: $? = 0
configure:21989: result: yes
configure:21999: checking for tzname
configure:22028: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:22034: $? = 0
configure:22051: result: yes
configure:22061: checking for tm_isdst in struct tm
configure:22088: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22094: $? = 0
configure:22109: result: yes
configure:22119: checking for daylight
configure:22148: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:22154: $? = 0
configure:22171: result: yes
configure:22188: checking for special C compiler options needed for large files
configure:22281: result: no
configure:22287: checking for _FILE_OFFSET_BITS value needed for large files
configure:22322: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c:53:3: warning: left shift count >= width of type
   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   ^
conftest.c:53:3: warning: left shift count >= width of type
conftest.c:54:10: warning: left shift count >= width of type
          && LARGE_OFF_T % 2147483647 == 1)
          ^
conftest.c:54:10: warning: left shift count >= width of type
conftest.c:53:7: error: variably modified 'off_t_is_large' at file scope
   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
       ^
configure:22328: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| /* end confdefs.h.  */
| #include <sys/types.h>
|  /* Check that off_t can represent 2**63 - 1 correctly.
|     We can't simply define LARGE_OFF_T to be 9223372036854775807,
|     since some C++ compilers masquerading as C compilers
|     incorrectly reject 9223372036854775807.  */
| #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|                && LARGE_OFF_T % 2147483647 == 1)
|               ? 1 : -1];
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:22372: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22378: $? = 0
configure:22396: result: 64
configure:22531: checking for _LARGEFILE_SOURCE value needed for large files
configure:22558: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:22564: $? = 0
configure:22628: result: no
configure:22651: checking for mbstate_t
configure:22678: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22684: $? = 0
configure:22699: result: yes
configure:22715: checking for struct option in getopt
configure:22741: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22747: $? = 0
configure:22762: result: yes
configure:22773: checking for uint8_t
configure:22803: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22809: $? = 0
configure:22824: result: yes
configure:22834: checking for uint16_t
configure:22864: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22870: $? = 0
configure:22885: result: yes
configure:22895: checking for uint32_t
configure:22925: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22931: $? = 0
configure:22946: result: yes
configure:22956: checking for int32_t
configure:22986: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:22992: $? = 0
configure:23007: result: yes
configure:23017: checking for uint64_t
configure:23047: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23053: $? = 0
configure:23068: result: yes
configure:23078: checking for int64_t
configure:23108: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23114: $? = 0
configure:23129: result: yes
configure:23140: checking for long long
configure:23170: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23176: $? = 0
configure:23191: result: yes
configure:23198: checking size of long long
configure:23229: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23235: $? = 0
configure:23266: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:94:12: error: size of array 'test_array' is negative
 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 0)];
            ^
configure:23272: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|    typedef long long ac__type_sizeof_;
| int
| main ()
| {
| static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 0)];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:23266: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:94:12: error: size of array 'test_array' is negative
 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 1)];
            ^
configure:23272: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|    typedef long long ac__type_sizeof_;
| int
| main ()
| {
| static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 1)];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:23266: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:94:12: error: size of array 'test_array' is negative
 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 3)];
            ^
configure:23272: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|    typedef long long ac__type_sizeof_;
| int
| main ()
| {
| static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 3)];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:23266: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
conftest.c: In function 'main':
conftest.c:94:12: error: size of array 'test_array' is negative
 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 7)];
            ^
configure:23272: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
|    typedef long long ac__type_sizeof_;
| int
| main ()
| {
| static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= 7)];
| test_array [0] = 0
|
|   ;
|   return 0;
| }
configure:23266: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23272: $? = 0
configure:23421: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23427: $? = 0
configure:23421: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23427: $? = 0
configure:23421: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -c   conftest.c >&5
configure:23427: $? = 0
configure:23535: result: 8
configure:23548: checking for gcc compiler warnings
configure:23567: result: yes
configure:23594: checking for mmap
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for strerror
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for strndup
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
conftest.c:83:6: warning: conflicting types for built-in function 'strndup'
 char strndup ();
      ^
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for strtoul
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for mbrtowc
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for mkstemp
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for utimes
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for utime
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for wcwidth
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23594: checking for strtof
configure:23650: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23656: $? = 0
configure:23674: result: yes
configure:23693: checking for getopt_long
configure:23749: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23755: $? = 0
configure:23773: result: yes
configure:23693: checking for asprintf
configure:23749: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23755: $? = 0
configure:23773: result: yes
configure:23693: checking for vasprintf
configure:23749: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
configure:23755: $? = 0
configure:23773: result: yes
configure:23693: checking for strlcpy
configure:23749: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
/tmp/ccU22xnI.o: In function `main':
conftest.c:(.text+0x4): undefined reference to `strlcpy'
collect2: error: ld returned 1 exit status
configure:23755: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| #define SIZEOF_LONG_LONG 8
| #define HAVE_MMAP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNDUP 1
| #define HAVE_STRTOUL 1
| #define HAVE_MBRTOWC 1
| #define HAVE_MKSTEMP 1
| #define HAVE_UTIMES 1
| #define HAVE_UTIME 1
| #define HAVE_WCWIDTH 1
| #define HAVE_STRTOF 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_ASPRINTF 1
| #define HAVE_VASPRINTF 1
| /* end confdefs.h.  */
| /* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define strlcpy innocuous_strlcpy
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char strlcpy (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef strlcpy
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char strlcpy ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_strlcpy || defined __stub___strlcpy
| choke me
| #endif
|
| int
| main ()
| {
| return strlcpy ();
|   ;
|   return 0;
| }
configure:23773: result: no
configure:23693: checking for strlcat
configure:23749: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c  >&5
/tmp/cczNUVOL.o: In function `main':
conftest.c:(.text+0x4): undefined reference to `strlcat'
collect2: error: ld returned 1 exit status
configure:23755: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| #define SIZEOF_LONG_LONG 8
| #define HAVE_MMAP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNDUP 1
| #define HAVE_STRTOUL 1
| #define HAVE_MBRTOWC 1
| #define HAVE_MKSTEMP 1
| #define HAVE_UTIMES 1
| #define HAVE_UTIME 1
| #define HAVE_WCWIDTH 1
| #define HAVE_STRTOF 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_ASPRINTF 1
| #define HAVE_VASPRINTF 1
| /* end confdefs.h.  */
| /* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define strlcat innocuous_strlcat
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char strlcat (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef strlcat
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char strlcat ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_strlcat || defined __stub___strlcat
| choke me
| #endif
|
| int
| main ()
| {
| return strlcat ();
|   ;
|   return 0;
| }
configure:23773: result: no
configure:23793: checking for gzopen in -lz
configure:23828: /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -o conftest    conftest.c -lz   >&5
/opt/crosstool/cortex-a7/bin/../lib/gcc/arm-linux-gnueabi/4.9.4/../../../../arm-linux-gnueabi/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
configure:23834: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "file"
| #define PACKAGE_TARNAME "file"
| #define PACKAGE_VERSION "5.04"
| #define PACKAGE_STRING "file 5.04"
| #define PACKAGE_BUGREPORT "christos@astron.com"
| #define PACKAGE "file"
| #define VERSION "5.04"
| #define BUILTIN_ELF 1
| #define ELFCORE 1
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_WCTYPE_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_ERR_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_STRUCT_STAT_ST_RDEV 1
| #define HAVE_TM_ZONE 1
| #define HAVE_TZNAME 1
| #define HAVE_TM_ISDST 1
| #define HAVE_DAYLIGHT 1
| #define _FILE_OFFSET_BITS 64
| #define HAVE_FSEEKO 1
| #define HAVE_MBSTATE_T 1
| #define HAVE_STRUCT_OPTION 1
| #define HAVE_UINT8_T 1
| #define HAVE_UINT16_T 1
| #define HAVE_UINT32_T 1
| #define HAVE_INT32_T 1
| #define HAVE_UINT64_T 1
| #define HAVE_INT64_T 1
| #define SIZEOF_LONG_LONG 8
| #define HAVE_MMAP 1
| #define HAVE_STRERROR 1
| #define HAVE_STRNDUP 1
| #define HAVE_STRTOUL 1
| #define HAVE_MBRTOWC 1
| #define HAVE_MKSTEMP 1
| #define HAVE_UTIMES 1
| #define HAVE_UTIME 1
| #define HAVE_WCWIDTH 1
| #define HAVE_STRTOF 1
| #define HAVE_GETOPT_LONG 1
| #define HAVE_ASPRINTF 1
| #define HAVE_VASPRINTF 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char gzopen ();
| int
| main ()
| {
| return gzopen ();
|   ;
|   return 0;
| }
configure:23852: result: no
configure:24010: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by file config.status 5.04, which was
generated by GNU Autoconf 2.61.  Invocation command line was
  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status
on ubuntu-master
config.status:676: creating Makefile
config.status:676: creating src/Makefile
config.status:676: creating magic/Makefile
config.status:676: creating tests/Makefile
config.status:676: creating doc/Makefile
config.status:676: creating python/Makefile
config.status:676: creating config.h
config.status:1007: executing depfiles commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_f77_compiler_gnu=no
ac_cv_func_asprintf=yes
ac_cv_func_getopt_long=yes
ac_cv_func_mbrtowc=yes
ac_cv_func_mkstemp=yes
ac_cv_func_mmap=yes
ac_cv_func_strerror=yes
ac_cv_func_strlcat=no
ac_cv_func_strlcpy=no
ac_cv_func_strndup=yes
ac_cv_func_strtof=yes
ac_cv_func_strtoul=yes
ac_cv_func_utime=yes
ac_cv_func_utimes=yes
ac_cv_func_vasprintf=yes
ac_cv_func_wcwidth=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_err_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_getopt_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_limits_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_mman_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_types_h_makedev=yes
ac_cv_header_sys_utime_h=no
ac_cv_header_sys_wait_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_utime_h=yes
ac_cv_header_wchar_h=yes
ac_cv_header_wctype_h=yes
ac_cv_header_zlib_h=no
ac_cv_host=arm-unknown-linux-gnu
ac_cv_lib_z_gzopen=no
ac_cv_member_struct_stat_st_rdev=yes
ac_cv_member_struct_tm_tm_gmtoff=no
ac_cv_member_struct_tm_tm_zone=no
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AR=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
ac_cv_prog_CPP='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_RANLIB=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib
ac_cv_prog_STRIP=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc__opt_crosstool_cortex_a7_bin_arm_linux_gnueabi_gcc_c_o=yes
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_f77_g=no
ac_cv_prog_make_make_set=yes
ac_cv_sizeof_long_long=8
ac_cv_struct_option_getopt_h=yes
ac_cv_struct_tm=time.h
ac_cv_struct_tm_isdst=yes
ac_cv_struct_tm_zone=yes
ac_cv_sys_file_offset_bits=64
ac_cv_sys_largefile_CC=no
ac_cv_sys_largefile_source=no
ac_cv_type_int32_t=yes
ac_cv_type_int64_t=yes
ac_cv_type_long_long=yes
ac_cv_type_mbstate_t=yes
ac_cv_type_off_t=yes
ac_cv_type_size_t=yes
ac_cv_type_uint16_t=yes
ac_cv_type_uint32_t=yes
ac_cv_type_uint64_t=yes
ac_cv_type_uint8_t=yes
ac_cv_var_daylight=yes
ac_cv_var_tzname=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld
lt_cv_path_LDCXX=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ld
lt_cv_path_NM=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-nm
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_lib_dlsearch_path_spec='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/freetype/lib /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu /usr/local/lib /usr/local/mysql/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa /lib32 /usr/lib32 /libx32 /usr/libx32 /lib /usr/lib /usr/local/lib '
lt_cv_sys_lib_search_path_spec='/opt/crosstool/cortex-a7/lib/gcc/arm-linux-gnueabi/4.9.4 /opt/crosstool/cortex-a7/lib/gcc/arm-linux-gnueabi /opt/crosstool/cortex-a7/lib/gcc /opt/crosstool/cortex-a7/arm-linux-gnueabi/lib /opt/crosstool/cortex-a7/arm-linux-gnueabi/libc/lib /opt/crosstool/cortex-a7/arm-linux-gnueabi/libc/usr/lib'
lt_cv_sys_max_cmd_len=1572864
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"yes"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[     ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[     ][     ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/  {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/  {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run aclocal-1.10'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run tar'
AR='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar'
AUTOCONF='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoconf'
AUTOHEADER='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoheader'
AUTOMAKE='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run automake-1.10'
AWK='gawk'
CC='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS=''
CPP='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DSYMUTIL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
F77=''
FFLAGS=''
FSECT5_FALSE=''
FSECT5_TRUE='#'
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
IS_CROSS_COMPILE_FALSE='#'
IS_CROSS_COMPILE_TRUE=''
LDFLAGS=''
LIBOBJS=' ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}strlcat$U.o'
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LN_S='ln -s'
LTLIBOBJS=' ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}strlcat$U.lo'
MAKEINFO='${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run makeinfo'
NMEDIT=''
OBJEXT='o'
PACKAGE='file'
PACKAGE_BUGREPORT='christos@astron.com'
PACKAGE_NAME='file'
PACKAGE_STRING='file 5.04'
PACKAGE_TARNAME='file'
PACKAGE_VERSION='5.04'
PATH_SEPARATOR=':'
RANLIB='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP='/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip'
VERSION='5.04'
WARNINGS='-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter'
ac_ct_CC=''
ac_ct_CXX='g++'
ac_ct_F77=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
fsect='4'
host='arm-unknown-linux-gnu'
host_alias='arm-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgdatadir='$(datadir)/misc'
prefix='/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "file"
#define PACKAGE_TARNAME "file"
#define PACKAGE_VERSION "5.04"
#define PACKAGE_STRING "file 5.04"
#define PACKAGE_BUGREPORT "christos@astron.com"
#define PACKAGE "file"
#define VERSION "5.04"
#define BUILTIN_ELF 1
#define ELFCORE 1
#define _GNU_SOURCE 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define STDC_HEADERS 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_STDINT_H 1
#define HAVE_FCNTL_H 1
#define HAVE_LOCALE_H 1
#define HAVE_STDINT_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UTIME_H 1
#define HAVE_WCHAR_H 1
#define HAVE_WCTYPE_H 1
#define HAVE_LIMITS_H 1
#define HAVE_GETOPT_H 1
#define HAVE_ERR_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_STRUCT_STAT_ST_RDEV 1
#define HAVE_TM_ZONE 1
#define HAVE_TZNAME 1
#define HAVE_TM_ISDST 1
#define HAVE_DAYLIGHT 1
#define _FILE_OFFSET_BITS 64
#define HAVE_FSEEKO 1
#define HAVE_MBSTATE_T 1
#define HAVE_STRUCT_OPTION 1
#define HAVE_UINT8_T 1
#define HAVE_UINT16_T 1
#define HAVE_UINT32_T 1
#define HAVE_INT32_T 1
#define HAVE_UINT64_T 1
#define HAVE_INT64_T 1
#define SIZEOF_LONG_LONG 8
#define HAVE_MMAP 1
#define HAVE_STRERROR 1
#define HAVE_STRNDUP 1
#define HAVE_STRTOUL 1
#define HAVE_MBRTOWC 1
#define HAVE_MKSTEMP 1
#define HAVE_UTIMES 1
#define HAVE_UTIME 1
#define HAVE_WCWIDTH 1
#define HAVE_STRTOF 1
#define HAVE_GETOPT_LONG 1
#define HAVE_ASPRINTF 1
#define HAVE_VASPRINTF 1
configure: exit 0
ok335xD/3rdparty/file/file-5.04/config.status
New file
@@ -0,0 +1,1143 @@
#! /bin/bash
# Generated by configure.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=${CONFIG_SHELL-/bin/bash}
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac
fi
# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
as_nl='
'
IFS=" ""    $as_nl"
# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS
     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  { (exit 1); exit 1; }
fi
# Work around bugs in pre-3.0 UWIN ksh.
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    eval $as_var=C; export $as_var
  else
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  fi
done
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi
# Name of the executable.
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     X"$0" : 'X\(//\)$' \| \
     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
        s//\1/
        q
      }
      /^X\/\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\/\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
# CDPATH.
$as_unset CDPATH
  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
   { (exit 1); exit 1; }; }
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi
ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='    ';;    # ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
esac
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir
fi
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
  as_ln_s='ln -s'
  # ... but there are two gotchas:
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  # In both cases, we have to default to `cp -p'.
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    as_ln_s='cp -p'
elif ln conf$$.file conf$$ 2>/dev/null; then
  as_ln_s=ln
else
  as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
        test -d "$1/.";
      else
    case $1 in
        -*)set "./$1";;
    esac;
    case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    ???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
exec 6>&1
# Save the log message, to keep $[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by file $as_me 5.04, which was
generated by GNU Autoconf 2.61.  Invocation command line was
  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"
# Files that config.status was made for.
config_files=" Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
config_headers=" config.h"
config_commands=" depfiles"
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
Usage: $0 [OPTIONS] [FILE]...
  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
  -q, --quiet      do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
  --file=FILE[:TEMPLATE]
           instantiate the configuration file FILE
  --header=FILE[:TEMPLATE]
           instantiate the configuration header FILE
Configuration files:
$config_files
Configuration headers:
$config_headers
Configuration commands:
$config_commands
Report bugs to <bug-autoconf@gnu.org>."
ac_cs_version="\
file config.status 5.04
configured by ./configure, generated by GNU Autoconf 2.61,
  with options \"'--prefix=/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin' '--build=i686-pc-linux' '--host=arm-linux' '--enable-static' '--disable-shared' 'build_alias=i686-pc-linux' 'host_alias=arm-linux' 'CC=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc' 'CFLAGS=' 'LDFLAGS='\"
Copyright (C) 2006 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
ac_pwd='/home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04'
srcdir='.'
INSTALL='/usr/bin/install -c'
MKDIR_P='/bin/mkdir -p'
# If no file are specified by the user, then we need to provide default
# value.  By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac
  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    echo "$ac_cs_version"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    { echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
    echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;
  # This is an error.
  -*) { echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; } ;;
  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;
  esac
  shift
done
ac_configure_extra_args=
if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
if $ac_cs_recheck; then
  echo "running CONFIG_SHELL=/bin/bash /bin/bash ./configure " '--prefix=/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin' '--build=i686-pc-linux' '--host=arm-linux' '--enable-static' '--disable-shared' 'build_alias=i686-pc-linux' 'host_alias=arm-linux' 'CC=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc' 'CFLAGS=' 'LDFLAGS=' $ac_configure_extra_args " --no-create --no-recursion" >&6
  CONFIG_SHELL=/bin/bash
  export CONFIG_SHELL
  exec /bin/bash "./configure" '--prefix=/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin' '--build=i686-pc-linux' '--host=arm-linux' '--enable-static' '--disable-shared' 'build_alias=i686-pc-linux' 'host_alias=arm-linux' 'CC=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc' 'CFLAGS=' 'LDFLAGS=' $ac_configure_extra_args --no-create --no-recursion
fi
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  echo "$ac_log"
} >&5
#
# INIT-COMMANDS
#
AMDEP_TRUE="" ac_aux_dir="."
# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
   { (exit 1); exit 1; }; };;
  esac
done
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi
# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.
{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -n "$tmp" && test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} ||
{
   echo "$me: cannot create a temporary directory in ." >&2
   { (exit 1); exit 1; }
}
#
# Set up the sed scripts for CONFIG_FILES section.
#
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "$CONFIG_FILES"; then
cat >"$tmp/subs-1.sed" <<\CEOF
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@SHELL@,|#_!!_#|/bin/bash,g
s,@PATH_SEPARATOR@,|#_!!_#|:,g
s,@PACKAGE_NAME@,|#_!!_#|file,g
s,@PACKAGE_TARNAME@,|#_!!_#|file,g
s,@PACKAGE_VERSION@,|#_!!_#|5.04,g
s,@PACKAGE_STRING@,|#_!!_#|file 5.04,g
s,@PACKAGE_BUGREPORT@,|#_!!_#|christos@|#_!!_#|astron.com,g
s,@exec_prefix@,|#_!!_#|${prefix},g
s,@prefix@,|#_!!_#|/home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin,g
s,@program_transform_name@,|#_!!_#|s\,x\,x\,,g
s,@bindir@,|#_!!_#|${exec_prefix}/bin,g
s,@sbindir@,|#_!!_#|${exec_prefix}/sbin,g
s,@libexecdir@,|#_!!_#|${exec_prefix}/libexec,g
s,@datarootdir@,|#_!!_#|${prefix}/share,g
s,@datadir@,|#_!!_#|${datarootdir},g
s,@sysconfdir@,|#_!!_#|${prefix}/etc,g
s,@sharedstatedir@,|#_!!_#|${prefix}/com,g
s,@localstatedir@,|#_!!_#|${prefix}/var,g
s,@includedir@,|#_!!_#|${prefix}/include,g
s,@oldincludedir@,|#_!!_#|/usr/include,g
s,@docdir@,|#_!!_#|${datarootdir}/doc/${PACKAGE_TARNAME},g
s,@infodir@,|#_!!_#|${datarootdir}/info,g
s,@htmldir@,|#_!!_#|${docdir},g
s,@dvidir@,|#_!!_#|${docdir},g
s,@pdfdir@,|#_!!_#|${docdir},g
s,@psdir@,|#_!!_#|${docdir},g
s,@libdir@,|#_!!_#|${exec_prefix}/lib,g
s,@localedir@,|#_!!_#|${datarootdir}/locale,g
s,@mandir@,|#_!!_#|${datarootdir}/man,g
s,@DEFS@,|#_!!_#|-DHAVE_CONFIG_H,g
s,@ECHO_C@,|#_!!_#|,g
s,@ECHO_N@,|#_!!_#|-n,g
s,@ECHO_T@,|#_!!_#|,g
s,@LIBS@,|#_!!_#|,g
s,@build_alias@,|#_!!_#|i686-pc-linux,g
s,@host_alias@,|#_!!_#|arm-linux,g
s,@target_alias@,|#_!!_#|,g
s,@INSTALL_PROGRAM@,|#_!!_#|${INSTALL},g
s,@INSTALL_SCRIPT@,|#_!!_#|${INSTALL},g
s,@INSTALL_DATA@,|#_!!_#|${INSTALL} -m 644,g
s,@am__isrc@,|#_!!_#|,g
s,@CYGPATH_W@,|#_!!_#|echo,g
s,@PACKAGE@,|#_!!_#|file,g
s,@VERSION@,|#_!!_#|5.04,g
s,@ACLOCAL@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run aclocal-1.10,g
s,@AUTOCONF@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoconf,g
s,@AUTOMAKE@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run automake-1.10,g
s,@AUTOHEADER@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoheader,g
s,@MAKEINFO@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run makeinfo,g
s,@install_sh@,|#_!!_#|$(SHELL) /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/install-sh,g
s,@STRIP@,|#_!!_#|/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip,g
s,@INSTALL_STRIP_PROGRAM@,|#_!!_#|$(install_sh) -c -s,g
s,@mkdir_p@,|#_!!_#|/bin/mkdir -p,g
s,@AWK@,|#_!!_#|gawk,g
s,@SET_MAKE@,|#_!!_#|,g
s,@am__leading_dot@,|#_!!_#|.,g
s,@AMTAR@,|#_!!_#|${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run tar,g
s,@am__tar@,|#_!!_#|${AMTAR} chof - "$$tardir",g
s,@am__untar@,|#_!!_#|${AMTAR} xf -,g
s,@pkgdatadir@,|#_!!_#|$(datadir)/misc,g
s,@fsect@,|#_!!_#|4,g
s,@FSECT5_TRUE@,|#_!!_#|#,g
s,@FSECT5_FALSE@,|#_!!_#|,g
s,@WARNINGS@,|#_!!_#|-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter,g
s,@CC@,|#_!!_#|/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc,g
s,@CFLAGS@,|#_!!_#|,g
s,@LDFLAGS@,|#_!!_#|,g
s,@CPPFLAGS@,|#_!!_#|,g
s,@ac_ct_CC@,|#_!!_#|,g
s,@EXEEXT@,|#_!!_#|,g
s,@OBJEXT@,|#_!!_#|o,g
s,@DEPDIR@,|#_!!_#|.deps,g
s,@am__include@,|#_!!_#|include,g
s,@am__quote@,|#_!!_#|,g
s,@AMDEP_TRUE@,|#_!!_#|,g
s,@AMDEP_FALSE@,|#_!!_#|#,g
s,@AMDEPBACKSLASH@,|#_!!_#|\\,g
s,@CCDEPMODE@,|#_!!_#|depmode=gcc3,g
s,@am__fastdepCC_TRUE@,|#_!!_#|,g
s,@am__fastdepCC_FALSE@,|#_!!_#|#,g
s,@LN_S@,|#_!!_#|ln -s,g
s,@build@,|#_!!_#|i686-pc-linux-gnu,g
s,@build_cpu@,|#_!!_#|i686,g
s,@build_vendor@,|#_!!_#|pc,g
s,@build_os@,|#_!!_#|linux-gnu,g
s,@host@,|#_!!_#|arm-unknown-linux-gnu,g
s,@host_cpu@,|#_!!_#|arm,g
s,@host_vendor@,|#_!!_#|unknown,g
s,@host_os@,|#_!!_#|linux-gnu,g
s,@SED@,|#_!!_#|/bin/sed,g
s,@GREP@,|#_!!_#|/bin/grep,g
s,@EGREP@,|#_!!_#|/bin/grep -E,g
s,@ECHO@,|#_!!_#|echo,g
s,@AR@,|#_!!_#|/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar,g
s,@RANLIB@,|#_!!_#|/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib,g
s,@DSYMUTIL@,|#_!!_#|,g
s,@NMEDIT@,|#_!!_#|,g
CEOF
cat >"$tmp/subs-2.sed" <<\CEOF
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
s,@CPP@,|#_!!_#|/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E,g
s,@CXX@,|#_!!_#|g++,g
s,@CXXFLAGS@,|#_!!_#|-g -O2,g
s,@ac_ct_CXX@,|#_!!_#|g++,g
s,@CXXDEPMODE@,|#_!!_#|depmode=gcc3,g
s,@am__fastdepCXX_TRUE@,|#_!!_#|,g
s,@am__fastdepCXX_FALSE@,|#_!!_#|#,g
s,@CXXCPP@,|#_!!_#|g++ -E,g
s,@F77@,|#_!!_#|,g
s,@FFLAGS@,|#_!!_#|,g
s,@ac_ct_F77@,|#_!!_#|,g
s,@LIBTOOL@,|#_!!_#|$(SHELL) $(top_builddir)/libtool,g
s,@LIBOBJS@,|#_!!_#| ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}strlcat$U.o,g
s,@IS_CROSS_COMPILE_TRUE@,|#_!!_#|,g
s,@IS_CROSS_COMPILE_FALSE@,|#_!!_#|#,g
s,@LTLIBOBJS@,|#_!!_#| ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}strlcat$U.lo,g
:end
s/|#_!!_#|//g
CEOF
fi # test -n "$CONFIG_FILES"
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
   { (exit 1); exit 1; }; };;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift
  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
     # (if the path is not absolute).  The absolute path cannot be DOS-style,
     # because $ac_f cannot contain `:'.
     test -f "$ac_f" ||
       case $ac_f in
       [\\/$]*) false;;
       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
       esac ||
       { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
   { (exit 1); exit 1; }; };;
      esac
      ac_file_inputs="$ac_file_inputs $ac_f"
    done
    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input="Generated from "`IFS=:
      echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
    fi
    case $ac_tag in
    *:-:* | *:-) cat >"$tmp/stdin";;
    esac
    ;;
  esac
  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X"$ac_file" : 'X\(//\)[^/]' \| \
     X"$ac_file" : 'X\(//\)$' \| \
     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
  { as_dir="$ac_dir"
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X"$as_dir" : 'X\(//\)[^/]' \| \
     X"$as_dir" : 'X\(//\)$' \| \
     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
  ac_builddir=.
case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix
case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #
  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
case `sed -n '/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p
' $ac_file_inputs` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  ac_datarootdir_hack='
  s&@datadir@&${datarootdir}&g
  s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
  s&@infodir@&${datarootdir}/info&g
  s&@localedir@&${datarootdir}/locale&g
  s&@mandir@&${datarootdir}/man&g
    s&\${datarootdir}&${prefix}/share&g' ;;
esac
  sed "/^[     ]*VPATH[     ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[     ]*\):*/\1/
s/:*$//
s/^[^=]*=[     ]*$//
}
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s&@configure_input@&$configure_input&;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[     ]*datarootdir[     ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&5
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined." >&2;}
  rm -f "$tmp/stdin"
  case $ac_file in
  -) cat "$tmp/out"; rm -f "$tmp/out";;
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  esac
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
    # First, check the format of the line:
    cat >"$tmp/defines.sed" <<\CEOF
/^[     ]*#[     ]*undef[     ][     ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[     ]*$/b def
/^[     ]*#[     ]*define[     ][     ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[(     ]/b def
b
:def
s/$/ /
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE_NAME\)[     (].*,\1define\2 "file" ,
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE_TARNAME\)[     (].*,\1define\2 "file" ,
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE_VERSION\)[     (].*,\1define\2 "5.04" ,
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE_STRING\)[     (].*,\1define\2 "file 5.04" ,
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE_BUGREPORT\)[     (].*,\1define\2 "christos@astron.com" ,
s,^\([     #]*\)[^     ]*\([     ]*PACKAGE\)[     (].*,\1define\2 "file" ,
s,^\([     #]*\)[^     ]*\([     ]*VERSION\)[     (].*,\1define\2 "5.04" ,
s,^\([     #]*\)[^     ]*\([     ]*BUILTIN_ELF\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*ELFCORE\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*_GNU_SOURCE\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*STDC_HEADERS\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_TYPES_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_STAT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STDLIB_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRING_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_MEMORY_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRINGS_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_INTTYPES_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STDINT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UNISTD_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_DLFCN_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*STDC_HEADERS\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_WAIT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STDINT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_FCNTL_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_LOCALE_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STDINT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_INTTYPES_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UNISTD_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UTIME_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_WCHAR_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_WCTYPE_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_LIMITS_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_GETOPT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_ERR_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_MMAN_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_STAT_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_TYPES_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_SYS_TIME_H\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRUCT_STAT_ST_RDEV\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_TM_ZONE\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_TZNAME\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_TM_ISDST\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_DAYLIGHT\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*_FILE_OFFSET_BITS\)[     (].*,\1define\2 64 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_FSEEKO\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_MBSTATE_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRUCT_OPTION\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UINT8_T\)[     (].*,\1define\2 1 ,
CEOF
    sed -f "$tmp/defines.sed" $ac_file_inputs >"$tmp/out1"
    # First, check the format of the line:
    cat >"$tmp/defines.sed" <<\CEOF
/^[     ]*#[     ]*undef[     ][     ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[     ]*$/b def
/^[     ]*#[     ]*define[     ][     ]*[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*[(     ]/b def
b
:def
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UINT16_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UINT32_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_INT32_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UINT64_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_INT64_T\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*SIZEOF_LONG_LONG\)[     (].*,\1define\2 8 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_MMAP\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRERROR\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRNDUP\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRTOUL\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_MBRTOWC\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_MKSTEMP\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UTIMES\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_UTIME\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_WCWIDTH\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_STRTOF\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_GETOPT_LONG\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_ASPRINTF\)[     (].*,\1define\2 1 ,
s,^\([     #]*\)[^     ]*\([     ]*HAVE_VASPRINTF\)[     (].*,\1define\2 1 ,
s/ $//
s,^[     #]*u.*,/* & */,
CEOF
    sed -f "$tmp/defines.sed" "$tmp/out1" >"$tmp/out2"
ac_result="$tmp/out2"
  if test x"$ac_file" != x-; then
    echo "/* $configure_input  */" >"$tmp/config.h"
    cat "$ac_result" >>"$tmp/config.h"
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f $ac_file
      mv "$tmp/config.h" $ac_file
    fi
  else
    echo "/* $configure_input  */"
    cat "$ac_result"
  fi
  rm -f "$tmp/out12"
# Compute $ac_file's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $ac_file | $ac_file:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X$ac_file : 'X\(//\)[^/]' \| \
     X$ac_file : 'X\(//\)$' \| \
     X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
echo X$ac_file |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac
  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  # Strip MF so we end up with the name of the file.
  mf=`echo "$mf" | sed -e 's/:.*$//'`
  # Check whether this is an Automake generated Makefile or not.
  # We used to match only the files named `Makefile.in', but
  # some people rename them; so instead we look at the file content.
  # Grep'ing the first line is not enough: some people post-process
  # each Makefile.in and add a new line on top of each file to say so.
  # Grep'ing the whole file is not good either: AIX grep has a line
  # limit of 2048, but all sed's we know have understand at least 4000.
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
    dirpart=`$as_dirname -- "$mf" ||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X"$mf" : 'X\(//\)[^/]' \| \
     X"$mf" : 'X\(//\)$' \| \
     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
  else
    continue
  fi
  # Extract the definition of DEPDIR, am__include, and am__quote
  # from the Makefile without running `make'.
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  test -z "$DEPDIR" && continue
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
  test -z "am__include" && continue
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  # When using ansi2knr, U may be empty or an underscore; expand it
  U=`sed -n 's/^U = //p' < "$mf"`
  # Find all dependency output files, they are included files with
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
  # simplest approach to changing $(DEPDIR) to its actual value in the
  # expansion.
  for file in `sed -n "
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    # Make sure the directory exists.
    test -f "$dirpart/$file" && continue
    fdir=`$as_dirname -- "$file" ||
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X"$file" : 'X\(//\)[^/]' \| \
     X"$file" : 'X\(//\)$' \| \
     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
    { as_dir=$dirpart/$fdir
  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     X"$as_dir" : 'X\(//\)[^/]' \| \
     X"$as_dir" : 'X\(//\)$' \| \
     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
        s//\1/
        q
      }
      /^X\(\/\/\)[^/].*/{
        s//\1/
        q
      }
      /^X\(\/\/\)$/{
        s//\1/
        q
      }
      /^X\(\/\).*/{
        s//\1/
        q
      }
      s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
echo "$as_me: error: cannot create directory $as_dir" >&2;}
   { (exit 1); exit 1; }; }; }
    # echo "creating $dirpart/$file"
    echo '# dummy' > "$dirpart/$file"
  done
done
 ;;
  esac
done # for ac_tag
{ (exit 0); exit 0; }
ok335xD/3rdparty/file/file-5.04/config.sub
New file
@@ -0,0 +1,1622 @@
#! /bin/sh
#
# $NetBSD: config.sub,v 1.8 2006/10/29 23:52:55 wiz Exp $
#
# Configuration validation subroutine script.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
#   Inc.
timestamp='2006-09-20'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine.  It does not imply ALL GNU software can.
#
# This file 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.
# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support.  The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.
# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
#    CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
       $0 [OPTION] ALIAS
Canonicalize a configuration name.
Operation modes:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit
Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
help="
Try \`$me --help' for more information."
# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )    # Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help"
       exit 1 ;;
    *local*)
       # First pass through any local machine types.
       echo $1
       exit ;;
    * )
       break ;;
  esac
done
case $# in
 0) echo "$me: missing argument$help" >&2
    exit 1;;
 1) ;;
 *) echo "$me: too many arguments$help" >&2
    exit 1;;
esac
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
  *)
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
    else os=; fi
    ;;
esac
### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
    -sun*os*)
        # Prevent following clause from handling this invalid input.
        ;;
    -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
    -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
    -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
    -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    -apple | -axis | -knuth | -cray)
        os=
        basic_machine=$1
        ;;
    -sim | -cisco | -oki | -wec | -winbond)
        os=
        basic_machine=$1
        ;;
    -scout)
        ;;
    -wrs)
        os=-vxworks
        basic_machine=$1
        ;;
    -chorusos*)
        os=-chorusos
        basic_machine=$1
        ;;
     -chorusrdb)
         os=-chorusrdb
        basic_machine=$1
         ;;
    -hiux*)
        os=-hiuxwe2
        ;;
    -sco6)
        os=-sco5v6
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco5)
        os=-sco3.2v5
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco4)
        os=-sco3.2v4
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco3.2.[4-9]*)
        os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco3.2v[4-9]*)
        # Don't forget version if it is 3.2v4 or newer.
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco5v6*)
        # Don't forget version if it is 3.2v4 or newer.
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -sco*)
        os=-sco3.2v2
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -udk*)
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -isc)
        os=-isc2.2
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -clix*)
        basic_machine=clipper-intergraph
        ;;
    -isc*)
        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
        ;;
    -lynx*)
        os=-lynxos
        ;;
    -ptx*)
        basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
        ;;
    -windowsnt*)
        os=`echo $os | sed -e 's/windowsnt/winnt/'`
        ;;
    -psos*)
        os=-psos
        ;;
    -mint | -mint[0-9]*)
        basic_machine=m68k-atari
        os=-mint
        ;;
esac
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
    # Recognize the basic CPU types without company name.
    # Some are omitted here because they have special meanings below.
    1750a | 580 \
    | a29k \
    | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    | am33_2.0 \
    | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
    | bfin \
    | c4x | clipper \
    | d10v | d30v | dlx | dsp16xx \
    | fr30 | frv \
    | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    | i370 | i860 | i960 | ia64 \
    | ip2k | iq2000 \
    | m32c | m32r | m32rle | m68000 | m68k | m88k \
    | maxq | mb | microblaze | mcore \
    | mips | mipsbe | mipseb | mipsel | mipsle \
    | mips16 \
    | mips64 | mips64el \
    | mips64vr | mips64vrel \
    | mips64orion | mips64orionel \
    | mips64vr4100 | mips64vr4100el \
    | mips64vr4300 | mips64vr4300el \
    | mips64vr5000 | mips64vr5000el \
    | mips64vr5900 | mips64vr5900el \
    | mipsisa32 | mipsisa32el \
    | mipsisa32r2 | mipsisa32r2el \
    | mipsisa64 | mipsisa64el \
    | mipsisa64r2 | mipsisa64r2el \
    | mipsisa64sb1 | mipsisa64sb1el \
    | mipsisa64sr71k | mipsisa64sr71kel \
    | mipstx39 | mipstx39el \
    | mn10200 | mn10300 \
    | mt \
    | msp430 \
    | nios | nios2 \
    | ns16k | ns32k \
    | or32 \
    | pdp10 | pdp11 | pj | pjl \
    | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    | pyramid \
    | score \
    | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    | sh64 | sh64le \
    | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
    | spu | strongarm \
    | tahoe | thumb | tic4x | tic80 | tron \
    | v850 | v850e \
    | we32k \
    | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
    | z8k)
        basic_machine=$basic_machine-unknown
        ;;
    m6811 | m68hc11 | m6812 | m68hc12)
        # Motorola 68HC11/12.
        basic_machine=$basic_machine-unknown
        os=-none
        ;;
    m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
        ;;
    ms1)
        basic_machine=mt-unknown
        ;;
    # We use `pc' rather than `unknown'
    # because (1) that's what they normally are, and
    # (2) the word "unknown" tends to confuse beginning users.
    i*86 | x86_64)
      basic_machine=$basic_machine-pc
      ;;
    # Object if more than one company name word.
    *-*-*)
        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
        exit 1
        ;;
    # Recognize the basic CPU types with company name.
    580-* \
    | a29k-* \
    | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
    | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
    | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
    | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    | avr-* | avr32-* \
    | bfin-* | bs2000-* \
    | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    | clipper-* | craynv-* | cydra-* \
    | d10v-* | d30v-* | dlx-* \
    | elxsi-* \
    | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    | h8300-* | h8500-* \
    | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    | i*86-* | i860-* | i960-* | ia64-* \
    | ip2k-* | iq2000-* \
    | m32c-* | m32r-* | m32rle-* \
    | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    | m88110-* | m88k-* | maxq-* | mcore-* \
    | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    | mips16-* \
    | mips64-* | mips64el-* \
    | mips64vr-* | mips64vrel-* \
    | mips64orion-* | mips64orionel-* \
    | mips64vr4100-* | mips64vr4100el-* \
    | mips64vr4300-* | mips64vr4300el-* \
    | mips64vr5000-* | mips64vr5000el-* \
    | mips64vr5900-* | mips64vr5900el-* \
    | mipsisa32-* | mipsisa32el-* \
    | mipsisa32r2-* | mipsisa32r2el-* \
    | mipsisa64-* | mipsisa64el-* \
    | mipsisa64r2-* | mipsisa64r2el-* \
    | mipsisa64sb1-* | mipsisa64sb1el-* \
    | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    | mipstx39-* | mipstx39el-* \
    | mmix-* \
    | mt-* \
    | msp430-* \
    | nios-* | nios2-* \
    | none-* | np1-* | ns16k-* | ns32k-* \
    | orion-* \
    | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    | pyramid-* \
    | romp-* | rs6000-* \
    | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
    | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
    | sparclite-* \
    | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
    | tahoe-* | thumb-* \
    | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    | tron-* \
    | v850-* | v850e-* | vax-* \
    | we32k-* \
    | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
    | xstormy16-* | xtensa-* \
    | ymp-* \
    | z8k-*)
        ;;
    # Recognize the various machine names and aliases which stand
    # for a CPU type and a company and sometimes even an OS.
    386bsd)
        basic_machine=i386-unknown
        os=-bsd
        ;;
    3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
        basic_machine=m68000-att
        ;;
    3b*)
        basic_machine=we32k-att
        ;;
    a29khif)
        basic_machine=a29k-amd
        os=-udi
        ;;
        abacus)
        basic_machine=abacus-unknown
        ;;
    adobe68k)
        basic_machine=m68010-adobe
        os=-scout
        ;;
    alliant | fx80)
        basic_machine=fx80-alliant
        ;;
    altos | altos3068)
        basic_machine=m68k-altos
        ;;
    am29k)
        basic_machine=a29k-none
        os=-bsd
        ;;
    amd64)
        basic_machine=x86_64-pc
        ;;
    amd64-*)
        basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    amdahl)
        basic_machine=580-amdahl
        os=-sysv
        ;;
    amiga | amiga-*)
        basic_machine=m68k-unknown
        ;;
    amigaos | amigados)
        basic_machine=m68k-unknown
        os=-amigaos
        ;;
    amigaunix | amix)
        basic_machine=m68k-unknown
        os=-sysv4
        ;;
    apollo68)
        basic_machine=m68k-apollo
        os=-sysv
        ;;
    apollo68bsd)
        basic_machine=m68k-apollo
        os=-bsd
        ;;
    aux)
        basic_machine=m68k-apple
        os=-aux
        ;;
    balance)
        basic_machine=ns32k-sequent
        os=-dynix
        ;;
    c90)
        basic_machine=c90-cray
        os=-unicos
        ;;
    convex-c1)
        basic_machine=c1-convex
        os=-bsd
        ;;
    convex-c2)
        basic_machine=c2-convex
        os=-bsd
        ;;
    convex-c32)
        basic_machine=c32-convex
        os=-bsd
        ;;
    convex-c34)
        basic_machine=c34-convex
        os=-bsd
        ;;
    convex-c38)
        basic_machine=c38-convex
        os=-bsd
        ;;
    cray | j90)
        basic_machine=j90-cray
        os=-unicos
        ;;
    craynv)
        basic_machine=craynv-cray
        os=-unicosmp
        ;;
    cr16c)
        basic_machine=cr16c-unknown
        os=-elf
        ;;
    crds | unos)
        basic_machine=m68k-crds
        ;;
    crisv32 | crisv32-* | etraxfs*)
        basic_machine=crisv32-axis
        ;;
    cris | cris-* | etrax*)
        basic_machine=cris-axis
        ;;
    crx)
        basic_machine=crx-unknown
        os=-elf
        ;;
    da30 | da30-*)
        basic_machine=m68k-da30
        ;;
    decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
        basic_machine=mips-dec
        ;;
    decsystem10* | dec10*)
        basic_machine=pdp10-dec
        os=-tops10
        ;;
    decsystem20* | dec20*)
        basic_machine=pdp10-dec
        os=-tops20
        ;;
    delta | 3300 | motorola-3300 | motorola-delta \
          | 3300-motorola | delta-motorola)
        basic_machine=m68k-motorola
        ;;
    delta88)
        basic_machine=m88k-motorola
        os=-sysv3
        ;;
    djgpp)
        basic_machine=i586-pc
        os=-msdosdjgpp
        ;;
    dpx20 | dpx20-*)
        basic_machine=rs6000-bull
        os=-bosx
        ;;
    dpx2* | dpx2*-bull)
        basic_machine=m68k-bull
        os=-sysv3
        ;;
    ebmon29k)
        basic_machine=a29k-amd
        os=-ebmon
        ;;
    elxsi)
        basic_machine=elxsi-elxsi
        os=-bsd
        ;;
    encore | umax | mmax)
        basic_machine=ns32k-encore
        ;;
    es1800 | OSE68k | ose68k | ose | OSE)
        basic_machine=m68k-ericsson
        os=-ose
        ;;
    fx2800)
        basic_machine=i860-alliant
        ;;
    genix)
        basic_machine=ns32k-ns
        ;;
    gmicro)
        basic_machine=tron-gmicro
        os=-sysv
        ;;
    go32)
        basic_machine=i386-pc
        os=-go32
        ;;
    h3050r* | hiux*)
        basic_machine=hppa1.1-hitachi
        os=-hiuxwe2
        ;;
    h8300hms)
        basic_machine=h8300-hitachi
        os=-hms
        ;;
    h8300xray)
        basic_machine=h8300-hitachi
        os=-xray
        ;;
    h8500hms)
        basic_machine=h8500-hitachi
        os=-hms
        ;;
    harris)
        basic_machine=m88k-harris
        os=-sysv3
        ;;
    hp300-*)
        basic_machine=m68k-hp
        ;;
    hp300bsd)
        basic_machine=m68k-hp
        os=-bsd
        ;;
    hp300hpux)
        basic_machine=m68k-hp
        os=-hpux
        ;;
    hp3k9[0-9][0-9] | hp9[0-9][0-9])
        basic_machine=hppa1.0-hp
        ;;
    hp9k2[0-9][0-9] | hp9k31[0-9])
        basic_machine=m68000-hp
        ;;
    hp9k3[2-9][0-9])
        basic_machine=m68k-hp
        ;;
    hp9k6[0-9][0-9] | hp6[0-9][0-9])
        basic_machine=hppa1.0-hp
        ;;
    hp9k7[0-79][0-9] | hp7[0-79][0-9])
        basic_machine=hppa1.1-hp
        ;;
    hp9k78[0-9] | hp78[0-9])
        # FIXME: really hppa2.0-hp
        basic_machine=hppa1.1-hp
        ;;
    hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
        # FIXME: really hppa2.0-hp
        basic_machine=hppa1.1-hp
        ;;
    hp9k8[0-9][13679] | hp8[0-9][13679])
        basic_machine=hppa1.1-hp
        ;;
    hp9k8[0-9][0-9] | hp8[0-9][0-9])
        basic_machine=hppa1.0-hp
        ;;
    hppa-next)
        os=-nextstep3
        ;;
    hppaosf)
        basic_machine=hppa1.1-hp
        os=-osf
        ;;
    hppro)
        basic_machine=hppa1.1-hp
        os=-proelf
        ;;
    i370-ibm* | ibm*)
        basic_machine=i370-ibm
        ;;
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
    i*86v32)
        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        os=-sysv32
        ;;
    i*86v4*)
        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        os=-sysv4
        ;;
    i*86v)
        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        os=-sysv
        ;;
    i*86sol2)
        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
        os=-solaris2
        ;;
    i386mach)
        basic_machine=i386-mach
        os=-mach
        ;;
    i386-vsta | vsta)
        basic_machine=i386-unknown
        os=-vsta
        ;;
    iris | iris4d)
        basic_machine=mips-sgi
        case $os in
            -irix*)
            ;;
            *)
            os=-irix4
            ;;
        esac
        ;;
    isi68 | isi)
        basic_machine=m68k-isi
        os=-sysv
        ;;
    m88k-omron*)
        basic_machine=m88k-omron
        ;;
    magnum | m3230)
        basic_machine=mips-mips
        os=-sysv
        ;;
    merlin)
        basic_machine=ns32k-utek
        os=-sysv
        ;;
    mingw32)
        basic_machine=i386-pc
        os=-mingw32
        ;;
    miniframe)
        basic_machine=m68000-convergent
        ;;
    *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
        basic_machine=m68k-atari
        os=-mint
        ;;
    mips3*-*)
        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
        ;;
    mips3*)
        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
        ;;
    monitor)
        basic_machine=m68k-rom68k
        os=-coff
        ;;
    morphos)
        basic_machine=powerpc-unknown
        os=-morphos
        ;;
    msdos)
        basic_machine=i386-pc
        os=-msdos
        ;;
    ms1-*)
        basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
        ;;
    mvs)
        basic_machine=i370-ibm
        os=-mvs
        ;;
    ncr3000)
        basic_machine=i486-ncr
        os=-sysv4
        ;;
    netbsd386)
        basic_machine=i386-unknown
        os=-netbsd
        ;;
    netwinder)
        basic_machine=armv4l-rebel
        os=-linux
        ;;
    news | news700 | news800 | news900)
        basic_machine=m68k-sony
        os=-newsos
        ;;
    news1000)
        basic_machine=m68030-sony
        os=-newsos
        ;;
    news-3600 | risc-news)
        basic_machine=mips-sony
        os=-newsos
        ;;
    necv70)
        basic_machine=v70-nec
        os=-sysv
        ;;
    next | m*-next )
        basic_machine=m68k-next
        case $os in
            -nextstep* )
            ;;
            -ns2*)
              os=-nextstep2
            ;;
            *)
              os=-nextstep3
            ;;
        esac
        ;;
    nh3000)
        basic_machine=m68k-harris
        os=-cxux
        ;;
    nh[45]000)
        basic_machine=m88k-harris
        os=-cxux
        ;;
    nindy960)
        basic_machine=i960-intel
        os=-nindy
        ;;
    mon960)
        basic_machine=i960-intel
        os=-mon960
        ;;
    nonstopux)
        basic_machine=mips-compaq
        os=-nonstopux
        ;;
    np1)
        basic_machine=np1-gould
        ;;
    nsr-tandem)
        basic_machine=nsr-tandem
        ;;
    op50n-* | op60c-*)
        basic_machine=hppa1.1-oki
        os=-proelf
        ;;
    openrisc | openrisc-*)
        basic_machine=or32-unknown
        ;;
    os400)
        basic_machine=powerpc-ibm
        os=-os400
        ;;
    OSE68000 | ose68000)
        basic_machine=m68000-ericsson
        os=-ose
        ;;
    os68k)
        basic_machine=m68k-none
        os=-os68k
        ;;
    pa-hitachi)
        basic_machine=hppa1.1-hitachi
        os=-hiuxwe2
        ;;
    paragon)
        basic_machine=i860-intel
        os=-osf
        ;;
    pbd)
        basic_machine=sparc-tti
        ;;
    pbb)
        basic_machine=m68k-tti
        ;;
    pc532 | pc532-*)
        basic_machine=ns32k-pc532
        ;;
    pc98)
        basic_machine=i386-pc
        ;;
    pc98-*)
        basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    pentium | p5 | k5 | k6 | nexgen | viac3)
        basic_machine=i586-pc
        ;;
    pentiumpro | p6 | 6x86 | athlon | athlon_*)
        basic_machine=i686-pc
        ;;
    pentiumii | pentium2 | pentiumiii | pentium3)
        basic_machine=i686-pc
        ;;
    pentium4)
        basic_machine=i786-pc
        ;;
    pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    pentiumpro-* | p6-* | 6x86-* | athlon-*)
        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    pentium4-*)
        basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    pn)
        basic_machine=pn-gould
        ;;
    power)    basic_machine=power-ibm
        ;;
    ppc)    basic_machine=powerpc-unknown
        ;;
    ppc-*)    basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    ppcle | powerpclittle | ppc-le | powerpc-little)
        basic_machine=powerpcle-unknown
        ;;
    ppcle-* | powerpclittle-*)
        basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    ppc64)    basic_machine=powerpc64-unknown
        ;;
    ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    ppc64le | powerpc64little | ppc64-le | powerpc64-little)
        basic_machine=powerpc64le-unknown
        ;;
    ppc64le-* | powerpc64little-*)
        basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
        ;;
    ps2)
        basic_machine=i386-ibm
        ;;
    pw32)
        basic_machine=i586-unknown
        os=-pw32
        ;;
    rdos)
        basic_machine=i386-pc
        os=-rdos
        ;;
    rom68k)
        basic_machine=m68k-rom68k
        os=-coff
        ;;
    rm[46]00)
        basic_machine=mips-siemens
        ;;
    rtpc | rtpc-*)
        basic_machine=romp-ibm
        ;;
    s390 | s390-*)
        basic_machine=s390-ibm
        ;;
    s390x | s390x-*)
        basic_machine=s390x-ibm
        ;;
    sa29200)
        basic_machine=a29k-amd
        os=-udi
        ;;
    sb1)
        basic_machine=mipsisa64sb1-unknown
        ;;
    sb1el)
        basic_machine=mipsisa64sb1el-unknown
        ;;
    sde)
        basic_machine=mipsisa32-sde
        os=-elf
        ;;
    sei)
        basic_machine=mips-sei
        os=-seiux
        ;;
    sequent)
        basic_machine=i386-sequent
        ;;
    sh)
        basic_machine=sh-hitachi
        os=-hms
        ;;
    sh5el)
        basic_machine=sh5le-unknown
        ;;
    sh64)
        basic_machine=sh64-unknown
        ;;
    sparclite-wrs | simso-wrs)
        basic_machine=sparclite-wrs
        os=-vxworks
        ;;
    sps7)
        basic_machine=m68k-bull
        os=-sysv2
        ;;
    spur)
        basic_machine=spur-unknown
        ;;
    st2000)
        basic_machine=m68k-tandem
        ;;
    stratus)
        basic_machine=i860-stratus
        os=-sysv4
        ;;
    sun2)
        basic_machine=m68000-sun
        ;;
    sun2os3)
        basic_machine=m68000-sun
        os=-sunos3
        ;;
    sun2os4)
        basic_machine=m68000-sun
        os=-sunos4
        ;;
    sun3os3)
        basic_machine=m68k-sun
        os=-sunos3
        ;;
    sun3os4)
        basic_machine=m68k-sun
        os=-sunos4
        ;;
    sun4os3)
        basic_machine=sparc-sun
        os=-sunos3
        ;;
    sun4os4)
        basic_machine=sparc-sun
        os=-sunos4
        ;;
    sun4sol2)
        basic_machine=sparc-sun
        os=-solaris2
        ;;
    sun3 | sun3-*)
        basic_machine=m68k-sun
        ;;
    sun4)
        basic_machine=sparc-sun
        ;;
    sun386 | sun386i | roadrunner)
        basic_machine=i386-sun
        ;;
    sv1)
        basic_machine=sv1-cray
        os=-unicos
        ;;
    symmetry)
        basic_machine=i386-sequent
        os=-dynix
        ;;
    t3e)
        basic_machine=alphaev5-cray
        os=-unicos
        ;;
    t90)
        basic_machine=t90-cray
        os=-unicos
        ;;
    tic54x | c54x*)
        basic_machine=tic54x-unknown
        os=-coff
        ;;
    tic55x | c55x*)
        basic_machine=tic55x-unknown
        os=-coff
        ;;
    tic6x | c6x*)
        basic_machine=tic6x-unknown
        os=-coff
        ;;
    tx39)
        basic_machine=mipstx39-unknown
        ;;
    tx39el)
        basic_machine=mipstx39el-unknown
        ;;
    toad1)
        basic_machine=pdp10-xkl
        os=-tops20
        ;;
    tower | tower-32)
        basic_machine=m68k-ncr
        ;;
    tpf)
        basic_machine=s390x-ibm
        os=-tpf
        ;;
    udi29k)
        basic_machine=a29k-amd
        os=-udi
        ;;
    ultra3)
        basic_machine=a29k-nyu
        os=-sym1
        ;;
    v810 | necv810)
        basic_machine=v810-nec
        os=-none
        ;;
    vaxv)
        basic_machine=vax-dec
        os=-sysv
        ;;
    vms)
        basic_machine=vax-dec
        os=-vms
        ;;
    vpp*|vx|vx-*)
        basic_machine=f301-fujitsu
        ;;
    vxworks960)
        basic_machine=i960-wrs
        os=-vxworks
        ;;
    vxworks68)
        basic_machine=m68k-wrs
        os=-vxworks
        ;;
    vxworks29k)
        basic_machine=a29k-wrs
        os=-vxworks
        ;;
    w65*)
        basic_machine=w65-wdc
        os=-none
        ;;
    w89k-*)
        basic_machine=hppa1.1-winbond
        os=-proelf
        ;;
    xbox)
        basic_machine=i686-pc
        os=-mingw32
        ;;
    xps | xps100)
        basic_machine=xps100-honeywell
        ;;
    ymp)
        basic_machine=ymp-cray
        os=-unicos
        ;;
    z8k-*-coff)
        basic_machine=z8k-unknown
        os=-sim
        ;;
    none)
        basic_machine=none-none
        os=-none
        ;;
# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
    w89k)
        basic_machine=hppa1.1-winbond
        ;;
    op50n)
        basic_machine=hppa1.1-oki
        ;;
    op60c)
        basic_machine=hppa1.1-oki
        ;;
    romp)
        basic_machine=romp-ibm
        ;;
    mmix)
        basic_machine=mmix-knuth
        ;;
    rs6000)
        basic_machine=rs6000-ibm
        ;;
    vax)
        basic_machine=vax-dec
        ;;
    pdp10)
        # there are many clones, so DEC is not a safe bet
        basic_machine=pdp10-unknown
        ;;
    pdp11)
        basic_machine=pdp11-dec
        ;;
    we32k)
        basic_machine=we32k-att
        ;;
    sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
        basic_machine=sh-unknown
        ;;
    sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
        basic_machine=sparc-sun
        ;;
    cydra)
        basic_machine=cydra-cydrome
        ;;
    orion)
        basic_machine=orion-highlevel
        ;;
    orion105)
        basic_machine=clipper-highlevel
        ;;
    mac | mpw | mac-mpw)
        basic_machine=m68k-apple
        ;;
    pmac | pmac-mpw)
        basic_machine=powerpc-apple
        ;;
    *-unknown)
        # Make sure to match an already-canonicalized machine name.
        ;;
    *)
        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
        exit 1
        ;;
esac
# Here we canonicalize certain aliases for manufacturers.
case $basic_machine in
    *-digital*)
        basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
        ;;
    *-commodore*)
        basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
        ;;
    *)
        ;;
esac
# Decode manufacturer-specific aliases for certain operating systems.
if [ x"$os" != x"" ]
then
case $os in
        # First match some system type aliases
        # that might get confused with valid system types.
    # -solaris* is a basic system type, with this one exception.
    -solaris1 | -solaris1.*)
        os=`echo $os | sed -e 's|solaris1|sunos4|'`
        ;;
    -solaris)
        os=-solaris2
        ;;
    -svr4*)
        os=-sysv4
        ;;
    -unixware*)
        os=-sysv4.2uw
        ;;
    -gnu/linux*)
        os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
        ;;
    # First accept the basic system types.
    # The portable systems comes first.
    # Each alternative MUST END IN A *, to match a version number.
    # -sysv* is not here because it comes later, after sysvr4.
    -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
          | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
          | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
          | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
          | -aos* \
          | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
          | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
          | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
          | -openbsd* | -solidbsd* \
          | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
          | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
          | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
          | -chorusos* | -chorusrdb* \
          | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
          | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
          | -uxpv* | -beos* | -mpeix* | -udk* \
          | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
          | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
          | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
          | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
          | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
          | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
          | -skyos* | -haiku* | -rdos* | -toppers*)
    # Remember, each alternative MUST END IN *, to match a version number.
        ;;
    -qnx*)
        case $basic_machine in
            x86-* | i*86-*)
            ;;
            *)
            os=-nto$os
            ;;
        esac
        ;;
    -nto-qnx*)
        ;;
    -nto*)
        os=`echo $os | sed -e 's|nto|nto-qnx|'`
        ;;
    -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
          | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
          | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
        ;;
    -mac*)
        os=`echo $os | sed -e 's|mac|macos|'`
        ;;
    -linux-dietlibc)
        os=-linux-dietlibc
        ;;
    -linux*)
        os=`echo $os | sed -e 's|linux|linux-gnu|'`
        ;;
    -sunos5*)
        os=`echo $os | sed -e 's|sunos5|solaris2|'`
        ;;
    -sunos6*)
        os=`echo $os | sed -e 's|sunos6|solaris3|'`
        ;;
    -opened*)
        os=-openedition
        ;;
        -os400*)
        os=-os400
        ;;
    -wince*)
        os=-wince
        ;;
    -osfrose*)
        os=-osfrose
        ;;
    -osf*)
        os=-osf
        ;;
    -utek*)
        os=-bsd
        ;;
    -dynix*)
        os=-bsd
        ;;
    -acis*)
        os=-aos
        ;;
    -atheos*)
        os=-atheos
        ;;
    -syllable*)
        os=-syllable
        ;;
    -386bsd)
        os=-bsd
        ;;
    -ctix* | -uts*)
        os=-sysv
        ;;
    -nova*)
        os=-rtmk-nova
        ;;
    -ns2 )
        os=-nextstep2
        ;;
    -nsk*)
        os=-nsk
        ;;
    # Preserve the version number of sinix5.
    -sinix5.*)
        os=`echo $os | sed -e 's|sinix|sysv|'`
        ;;
    -sinix*)
        os=-sysv4
        ;;
        -tpf*)
        os=-tpf
        ;;
    -triton*)
        os=-sysv3
        ;;
    -oss*)
        os=-sysv3
        ;;
    -svr4)
        os=-sysv4
        ;;
    -svr3)
        os=-sysv3
        ;;
    -sysvr4)
        os=-sysv4
        ;;
    # This must come after -sysvr4.
    -sysv*)
        ;;
    -ose*)
        os=-ose
        ;;
    -es1800*)
        os=-ose
        ;;
    -xenix)
        os=-xenix
        ;;
    -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
        os=-mint
        ;;
    -aros*)
        os=-aros
        ;;
    -kaos*)
        os=-kaos
        ;;
    -zvmoe)
        os=-zvmoe
        ;;
    -none)
        ;;
    *)
        # Get rid of the `-' at the beginning of $os.
        os=`echo $os | sed 's/[^-]*-//'`
        echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
        exit 1
        ;;
esac
else
# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.
# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system.  Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.
case $basic_machine in
        score-*)
        os=-elf
        ;;
        spu-*)
        os=-elf
        ;;
    *-acorn)
        os=-riscix1.2
        ;;
    arm*-rebel)
        os=-linux
        ;;
    arm*-semi)
        os=-aout
        ;;
        c4x-* | tic4x-*)
            os=-coff
        ;;
    # This must come before the *-dec entry.
    pdp10-*)
        os=-tops20
        ;;
    pdp11-*)
        os=-none
        ;;
    *-dec | vax-*)
        os=-ultrix4.2
        ;;
    m68*-apollo)
        os=-domain
        ;;
    i386-sun)
        os=-sunos4.0.2
        ;;
    m68000-sun)
        os=-sunos3
        # This also exists in the configure program, but was not the
        # default.
        # os=-sunos4
        ;;
    m68*-cisco)
        os=-aout
        ;;
    mips*-cisco)
        os=-elf
        ;;
    mips*-*)
        os=-elf
        ;;
    or32-*)
        os=-coff
        ;;
    *-tti)    # must be before sparc entry or we get the wrong os.
        os=-sysv3
        ;;
    sparc-* | *-sun)
        os=-sunos4.1.1
        ;;
    *-be)
        os=-beos
        ;;
    *-haiku)
        os=-haiku
        ;;
    *-ibm)
        os=-aix
        ;;
        *-knuth)
        os=-mmixware
        ;;
    *-wec)
        os=-proelf
        ;;
    *-winbond)
        os=-proelf
        ;;
    *-oki)
        os=-proelf
        ;;
    *-hp)
        os=-hpux
        ;;
    *-hitachi)
        os=-hiux
        ;;
    i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
        os=-sysv
        ;;
    *-cbm)
        os=-amigaos
        ;;
    *-dg)
        os=-dgux
        ;;
    *-dolphin)
        os=-sysv3
        ;;
    m68k-ccur)
        os=-rtu
        ;;
    m88k-omron*)
        os=-luna
        ;;
    *-next )
        os=-nextstep
        ;;
    *-sequent)
        os=-ptx
        ;;
    *-crds)
        os=-unos
        ;;
    *-ns)
        os=-genix
        ;;
    i370-*)
        os=-mvs
        ;;
    *-next)
        os=-nextstep3
        ;;
    *-gould)
        os=-sysv
        ;;
    *-highlevel)
        os=-bsd
        ;;
    *-encore)
        os=-bsd
        ;;
    *-sgi)
        os=-irix
        ;;
    *-siemens)
        os=-sysv4
        ;;
    *-masscomp)
        os=-rtu
        ;;
    f30[01]-fujitsu | f700-fujitsu)
        os=-uxpv
        ;;
    *-rom68k)
        os=-coff
        ;;
    *-*bug)
        os=-coff
        ;;
    *-apple)
        os=-macos
        ;;
    *-atari*)
        os=-mint
        ;;
    *)
        os=-none
        ;;
esac
fi
# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer.  We pick the logical manufacturer.
vendor=unknown
case $basic_machine in
    *-unknown)
        case $os in
            -riscix*)
                vendor=acorn
                ;;
            -sunos*)
                vendor=sun
                ;;
            -aix*)
                vendor=ibm
                ;;
            -beos*)
                vendor=be
                ;;
            -hpux*)
                vendor=hp
                ;;
            -mpeix*)
                vendor=hp
                ;;
            -hiux*)
                vendor=hitachi
                ;;
            -unos*)
                vendor=crds
                ;;
            -dgux*)
                vendor=dg
                ;;
            -luna*)
                vendor=omron
                ;;
            -genix*)
                vendor=ns
                ;;
            -mvs* | -opened*)
                vendor=ibm
                ;;
            -os400*)
                vendor=ibm
                ;;
            -ptx*)
                vendor=sequent
                ;;
            -tpf*)
                vendor=ibm
                ;;
            -vxsim* | -vxworks* | -windiss*)
                vendor=wrs
                ;;
            -aux*)
                vendor=apple
                ;;
            -hms*)
                vendor=hitachi
                ;;
            -mpw* | -macos*)
                vendor=apple
                ;;
            -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
                vendor=atari
                ;;
            -vos*)
                vendor=stratus
                ;;
        esac
        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
        ;;
esac
echo $basic_machine$os
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
ok335xD/3rdparty/file/file-5.04/configure
New file
Diff too large
ok335xD/3rdparty/file/file-5.04/configure.ac
New file
@@ -0,0 +1,157 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(file, 5.04, christos@astron.com)
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
#AC_CONFIG_MACRO_DIR([m4])
AC_MSG_CHECKING(for builtin ELF support)
AC_ARG_ENABLE(elf,
[  --disable-elf            disable builtin ELF support],
[if test "${enableval}" = yes; then
  AC_MSG_RESULT(yes)
  AC_DEFINE([BUILTIN_ELF], 1, [Define if built-in ELF support is used])
else
  AC_MSG_RESULT(no)
fi], [
  # enable by default
  AC_MSG_RESULT(yes)
  AC_DEFINE([BUILTIN_ELF], 1, [Define in built-in ELF support is used])
])
AC_MSG_CHECKING(for ELF core file support)
AC_ARG_ENABLE(elf-core,
[  --disable-elf-core       disable ELF core file support],
[if test "${enableval}" = yes; then
  AC_MSG_RESULT(yes)
  AC_DEFINE([ELFCORE], 1, [Define for ELF core file support])
else
  AC_MSG_RESULT(no)
fi], [
  # enable by default
  AC_MSG_RESULT(yes)
  AC_DEFINE([ELFCORE], 1, [Define for ELF core file support])
])
AC_MSG_CHECKING(for file formats in man section 5)
AC_ARG_ENABLE(fsect-man5,
[  --enable-fsect-man5      enable file formats in man section 5],
[if test "${enableval}" = yes; then
  AC_MSG_RESULT(yes)
  fsect=5
else
  AC_MSG_RESULT(no)
  fsect=4
fi], [
  # disable by default
  AC_MSG_RESULT(no)
  fsect=4
])
AC_SUBST([pkgdatadir], ['$(datadir)/misc'])
AC_SUBST(fsect)
AM_CONDITIONAL(FSECT5, test x$fsect = x5)
AC_SUBST(WARNINGS)
AC_GNU_SOURCE
dnl Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
dnl Checks for headers
AC_HEADER_STDC
AC_HEADER_MAJOR
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h)
AC_CHECK_HEADERS(utime.h wchar.h wctype.h limits.h)
AC_CHECK_HEADERS(getopt.h err.h)
AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h)
AC_CHECK_HEADERS(zlib.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_STRUCT_TM
AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.tm_zone])
AC_STRUCT_TIMEZONE_DAYLIGHT
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
AC_TYPE_MBSTATE_T
AC_STRUCT_OPTION_GETOPT_H
AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t, int32_t, uint64_t, int64_t])
AC_CHECK_SIZEOF(long long)
AH_BOTTOM([
#ifndef HAVE_UINT8_T
typedef unsigned char uint8_t;
#endif
#ifndef HAVE_UINT16_T
typedef unsigned short uint16_t;
#endif
#ifndef HAVE_UINT32_T
typedef unsigned int uint32_t;
#endif
#ifndef HAVE_INT32_T
typedef int int32_t;
#endif
#ifndef HAVE_UINT64_T
#if SIZEOF_LONG_LONG == 8
typedef unsigned long long uint64_t;
#else
typedef unsigned long uint64_t;
#endif
#endif
#ifndef HAVE_INT64_T
#if SIZEOF_LONG_LONG == 8
typedef long long int64_t;
#else
typedef long int64_t;
#endif
#endif
])
AC_MSG_CHECKING(for gcc compiler warnings)
AC_ARG_ENABLE(warnings,
[  --disable-warnings    disable compiler warnings],
[if test "${enableval}" = no -o "$GCC" = no; then
   AC_MSG_RESULT(no)
   WARNINGS=
else
   AC_MSG_RESULT(yes)
   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
fi], [
if test "$GCC" = yes; then
   AC_MSG_RESULT(yes)
   WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
       -Wmissing-declarations -Wredundant-decls -Wnested-externs \
       -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
       -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
else
   WARNINGS=
   AC_MSG_RESULT(no)
fi])
dnl Checks for functions
AC_CHECK_FUNCS(mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof)
dnl Provide implementation of some required functions if necessary
AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat)
dnl Checks for libraries
AC_CHECK_LIB(z,gzopen)
dnl See if we are cross-compiling
AM_CONDITIONAL(IS_CROSS_COMPILE, test "$cross_compiling" = yes)
AC_CONFIG_FILES([Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile])
AC_OUTPUT
ok335xD/3rdparty/file/file-5.04/depcomp
New file
@@ -0,0 +1,584 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2006-10-15.18
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
# Foundation, Inc.
# This program 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 2, or (at your option)
# any later version.
# This program 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 this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
case $1 in
  '')
     echo "$0: No command.  Try \`$0 --help' for more information." 1>&2
     exit 1;
     ;;
  -h | --h*)
    cat <<\EOF
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
Run PROGRAMS ARGS to compile a file, generating dependencies
as side-effects.
Environment variables:
  depmode     Dependency tracking mode.
  source      Source file read by `PROGRAMS ARGS'.
  object      Object file output by `PROGRAMS ARGS'.
  DEPDIR      directory where to store dependencies.
  depfile     Dependency file to output.
  tmpdepfile  Temporary file to use when outputing dependencies.
  libtool     Whether libtool is used (yes/no).
Report bugs to <bug-automake@gnu.org>.
EOF
    exit $?
    ;;
  -v | --v*)
    echo "depcomp $scriptversion"
    exit $?
    ;;
esac
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  echo "depcomp: Variables source, object and depmode must be set" 1>&2
  exit 1
fi
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
depfile=${depfile-`echo "$object" |
  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Some modes work just like other modes, but use different flags.  We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write.  Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
  # HP compiler uses -M and no extra arg.
  gccflag=-M
  depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
   # This is just like dashmstdout with a different argument.
   dashmflag=-xM
   depmode=dashmstdout
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff.  Hmm.
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
## the command line argument order; so add the flags where they
## appear in depend2.am.  Note that the slowdown incurred here
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  for arg
  do
    case $arg in
    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
    *)  set fnord "$@" "$arg" ;;
    esac
    shift # fnord
    shift # $arg
  done
  "$@"
  stat=$?
  if test $stat -eq 0; then :
  else
    rm -f "$tmpdepfile"
    exit $stat
  fi
  mv "$tmpdepfile" "$depfile"
  ;;
gcc)
## There are various ways to get dependency output from gcc.  Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
##   up in a subdir.  Having to rename by hand is ugly.
##   (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
##   -MM, not -M (despite what the docs say).
## - Using -M directly means running the compiler twice (even worse
##   than renaming).
  if test -z "$gccflag"; then
    gccflag=-MD,
  fi
  "$@" -Wp,"$gccflag$tmpdepfile"
  stat=$?
  if test $stat -eq 0; then :
  else
    rm -f "$tmpdepfile"
    exit $stat
  fi
  rm -f "$depfile"
  echo "$object : \\" > "$depfile"
  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
  sed -e 's/^[^:]*: / /' \
      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the `deleted header file' problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header).  We avoid this by adding
## dummy dependencies for each header file.  Too bad gcc doesn't do
## this for us directly.
  tr ' ' '
' < "$tmpdepfile" |
## Some versions of gcc put a space before the `:'.  On the theory
## that the space means something, we add a space to the output as
## well.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly.  Breaking it into two sed invocations is a workaround.
    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  rm -f "$tmpdepfile"
  ;;
hp)
  # This case exists only to let depend.m4 do its work.  It works by
  # looking at the text of this script.  This case will never be run,
  # since it is checked for above.
  exit 1
  ;;
sgi)
  if test "$libtool" = yes; then
    "$@" "-Wp,-MDupdate,$tmpdepfile"
  else
    "$@" -MDupdate "$tmpdepfile"
  fi
  stat=$?
  if test $stat -eq 0; then :
  else
    rm -f "$tmpdepfile"
    exit $stat
  fi
  rm -f "$depfile"
  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
    echo "$object : \\" > "$depfile"
    # Clip off the initial element (the dependent).  Don't try to be
    # clever and replace this with sed code, as IRIX sed won't handle
    # lines with more than a fixed number of characters (4096 in
    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
    # the IRIX cc adds comments like `#:fec' to the end of the
    # dependency line.
    tr ' ' '
' < "$tmpdepfile" \
    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
    tr '
' ' ' >> $depfile
    echo >> $depfile
    # The second pass generates a dummy entry for each header file.
    tr ' ' '
' < "$tmpdepfile" \
   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
   >> $depfile
  else
    # The sourcefile does not contain any dependencies, so just
    # store a dummy comment line, to avoid errors with the Makefile
    # "include basename.Plo" scheme.
    echo "#dummy" > "$depfile"
  fi
  rm -f "$tmpdepfile"
  ;;
aix)
  # The C for AIX Compiler uses -M and outputs the dependencies
  # in a .u file.  In older versions, this file always lives in the
  # current directory.  Also, the AIX compiler puts `$object:' at the
  # start of each line; $object doesn't have directory information.
  # Version 6 uses the directory in both cases.
  stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  tmpdepfile="$stripped.u"
  if test "$libtool" = yes; then
    "$@" -Wc,-M
  else
    "$@" -M
  fi
  stat=$?
  if test -f "$tmpdepfile"; then :
  else
    stripped=`echo "$stripped" | sed 's,^.*/,,'`
    tmpdepfile="$stripped.u"
  fi
  if test $stat -eq 0; then :
  else
    rm -f "$tmpdepfile"
    exit $stat
  fi
  if test -f "$tmpdepfile"; then
    outname="$stripped.o"
    # Each line is of the form `foo.o: dependent.h'.
    # Do two passes, one to just change these to
    # `$object: dependent.h' and one to simply `dependent.h:'.
    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  else
    # The sourcefile does not contain any dependencies, so just
    # store a dummy comment line, to avoid errors with the Makefile
    # "include basename.Plo" scheme.
    echo "#dummy" > "$depfile"
  fi
  rm -f "$tmpdepfile"
  ;;
icc)
  # Intel's C compiler understands `-MD -MF file'.  However on
  #    icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  # ICC 7.0 will fill foo.d with something like
  #    foo.o: sub/foo.c
  #    foo.o: sub/foo.h
  # which is wrong.  We want:
  #    sub/foo.o: sub/foo.c
  #    sub/foo.o: sub/foo.h
  #    sub/foo.c:
  #    sub/foo.h:
  # ICC 7.1 will output
  #    foo.o: sub/foo.c sub/foo.h
  # and will wrap long lines using \ :
  #    foo.o: sub/foo.c ... \
  #     sub/foo.h ... \
  #     ...
  "$@" -MD -MF "$tmpdepfile"
  stat=$?
  if test $stat -eq 0; then :
  else
    rm -f "$tmpdepfile"
    exit $stat
  fi
  rm -f "$depfile"
  # Each line is of the form `foo.o: dependent.h',
  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  # Do two passes, one to just change these to
  # `$object: dependent.h' and one to simply `dependent.h:'.
  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  # Some versions of the HPUX 10.20 sed can't process this invocation
  # correctly.  Breaking it into two sed invocations is a workaround.
  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
    sed -e 's/$/ :/' >> "$depfile"
  rm -f "$tmpdepfile"
  ;;
hp2)
  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  # compilers, which have integrated preprocessors.  The correct option
  # to use with these is +Maked; it writes dependencies to a file named
  # 'foo.d', which lands next to the object file, wherever that
  # happens to be.
  # Much of this is similar to the tru64 case; see comments there.
  dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  test "x$dir" = "x$object" && dir=
  base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  if test "$libtool" = yes; then
    tmpdepfile1=$dir$base.d
    tmpdepfile2=$dir.libs/$base.d
    "$@" -Wc,+Maked
  else
    tmpdepfile1=$dir$base.d
    tmpdepfile2=$dir$base.d
    "$@" +Maked
  fi
  stat=$?
  if test $stat -eq 0; then :
  else
     rm -f "$tmpdepfile1" "$tmpdepfile2"
     exit $stat
  fi
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  do
    test -f "$tmpdepfile" && break
  done
  if test -f "$tmpdepfile"; then
    sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
    # Add `dependent.h:' lines.
    sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  else
    echo "#dummy" > "$depfile"
  fi
  rm -f "$tmpdepfile" "$tmpdepfile2"
  ;;
tru64)
   # The Tru64 compiler uses -MD to generate dependencies as a side
   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
   # dependencies in `foo.d' instead, so we check for that too.
   # Subdirectories are respected.
   dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
   test "x$dir" = "x$object" && dir=
   base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
   if test "$libtool" = yes; then
      # With Tru64 cc, shared objects can also be used to make a
      # static library.  This mechanism is used in libtool 1.4 series to
      # handle both shared and static libraries in a single compilation.
      # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
      #
      # With libtool 1.5 this exception was removed, and libtool now
      # generates 2 separate objects for the 2 libraries.  These two
      # compilations output dependencies in $dir.libs/$base.o.d and
      # in $dir$base.o.d.  We have to check for both files, because
      # one of the two compilations can be disabled.  We should prefer
      # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
      # automatically cleaned when .libs/ is deleted, while ignoring
      # the former would cause a distcleancheck panic.
      tmpdepfile1=$dir.libs/$base.lo.d   # libtool 1.4
      tmpdepfile2=$dir$base.o.d          # libtool 1.5
      tmpdepfile3=$dir.libs/$base.o.d    # libtool 1.5
      tmpdepfile4=$dir.libs/$base.d      # Compaq CCC V6.2-504
      "$@" -Wc,-MD
   else
      tmpdepfile1=$dir$base.o.d
      tmpdepfile2=$dir$base.d
      tmpdepfile3=$dir$base.d
      tmpdepfile4=$dir$base.d
      "$@" -MD
   fi
   stat=$?
   if test $stat -eq 0; then :
   else
      rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
      exit $stat
   fi
   for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
   do
     test -f "$tmpdepfile" && break
   done
   if test -f "$tmpdepfile"; then
      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
      # That's a tab and a space in the [].
      sed -e 's,^.*\.[a-z]*:[     ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
   else
      echo "#dummy" > "$depfile"
   fi
   rm -f "$tmpdepfile"
   ;;
#nosideeffect)
  # This comment above is used by automake to tell side-effect
  # dependency tracking mechanisms from slower ones.
dashmstdout)
  # Important note: in order to support this mode, a compiler *must*
  # always write the preprocessed file to stdout, regardless of -o.
  "$@" || exit $?
  # Remove the call to Libtool.
  if test "$libtool" = yes; then
    while test $1 != '--mode=compile'; do
      shift
    done
    shift
  fi
  # Remove `-o $object'.
  IFS=" "
  for arg
  do
    case $arg in
    -o)
      shift
      ;;
    $object)
      shift
      ;;
    *)
      set fnord "$@" "$arg"
      shift # fnord
      shift # $arg
      ;;
    esac
  done
  test -z "$dashmflag" && dashmflag=-M
  # Require at least two characters before searching for `:'
  # in the target name.  This is to cope with DOS-style filenames:
  # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  "$@" $dashmflag |
    sed 's:^[  ]*[^: ][^:][^:]*\:[    ]*:'"$object"'\: :' > "$tmpdepfile"
  rm -f "$depfile"
  cat < "$tmpdepfile" > "$depfile"
  tr ' ' '
' < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly.  Breaking it into two sed invocations is a workaround.
    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  rm -f "$tmpdepfile"
  ;;
dashXmstdout)
  # This case only exists to satisfy depend.m4.  It is never actually
  # run, as this mode is specially recognized in the preamble.
  exit 1
  ;;
makedepend)
  "$@" || exit $?
  # Remove any Libtool call
  if test "$libtool" = yes; then
    while test $1 != '--mode=compile'; do
      shift
    done
    shift
  fi
  # X makedepend
  shift
  cleared=no
  for arg in "$@"; do
    case $cleared in
    no)
      set ""; shift
      cleared=yes ;;
    esac
    case "$arg" in
    -D*|-I*)
      set fnord "$@" "$arg"; shift ;;
    # Strip any option that makedepend may not understand.  Remove
    # the object too, otherwise makedepend will parse it as a source file.
    -*|$object)
      ;;
    *)
      set fnord "$@" "$arg"; shift ;;
    esac
  done
  obj_suffix="`echo $object | sed 's/^.*\././'`"
  touch "$tmpdepfile"
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  rm -f "$depfile"
  cat < "$tmpdepfile" > "$depfile"
  sed '1,2d' "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly.  Breaking it into two sed invocations is a workaround.
    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  rm -f "$tmpdepfile" "$tmpdepfile".bak
  ;;
cpp)
  # Important note: in order to support this mode, a compiler *must*
  # always write the preprocessed file to stdout.
  "$@" || exit $?
  # Remove the call to Libtool.
  if test "$libtool" = yes; then
    while test $1 != '--mode=compile'; do
      shift
    done
    shift
  fi
  # Remove `-o $object'.
  IFS=" "
  for arg
  do
    case $arg in
    -o)
      shift
      ;;
    $object)
      shift
      ;;
    *)
      set fnord "$@" "$arg"
      shift # fnord
      shift # $arg
      ;;
    esac
  done
  "$@" -E |
    sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
       -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
    sed '$ s: \\$::' > "$tmpdepfile"
  rm -f "$depfile"
  echo "$object : \\" > "$depfile"
  cat < "$tmpdepfile" >> "$depfile"
  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
  rm -f "$tmpdepfile"
  ;;
msvisualcpp)
  # Important note: in order to support this mode, a compiler *must*
  # always write the preprocessed file to stdout, regardless of -o,
  # because we must use -o when running libtool.
  "$@" || exit $?
  IFS=" "
  for arg
  do
    case "$arg" in
    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
    set fnord "$@"
    shift
    shift
    ;;
    *)
    set fnord "$@" "$arg"
    shift
    shift
    ;;
    esac
  done
  "$@" -E |
  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  rm -f "$depfile"
  echo "$object : \\" > "$depfile"
  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::    \1 \\:p' >> "$depfile"
  echo "    " >> "$depfile"
  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  rm -f "$tmpdepfile"
  ;;
none)
  exec "$@"
  ;;
*)
  echo "Unknown depmode $depmode" 1>&2
  exit 1
  ;;
esac
exit 0
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
ok335xD/3rdparty/file/file-5.04/doc/Makefile
New file
@@ -0,0 +1,550 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# doc/Makefile.  Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
pkglibdir = $(libdir)/file
pkgincludedir = $(includedir)/file
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = arm-unknown-linux-gnu
subdir = doc
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
    $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    $(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
man1dir = $(mandir)/man1
am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" \
    "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)"
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
NROFF = nroff
MANS = $(man_MANS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkgdatadir = $(datadir)/misc
ACLOCAL = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run aclocal-1.10
AMTAR = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run tar
AR = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ar
AUTOCONF = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoconf
AUTOHEADER = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run autoheader
AUTOMAKE = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run automake-1.10
AWK = gawk
CC = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc
CCDEPMODE = depmode=gcc3
CFLAGS =
CPP = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-gcc -E
CPPFLAGS =
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O2
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DSYMUTIL =
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
F77 =
FFLAGS =
GREP = /bin/grep
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LDFLAGS =
LIBOBJS =  ${LIBOBJDIR}strlcpy$U.o ${LIBOBJDIR}strlcat$U.o
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LN_S = ln -s
LTLIBOBJS =  ${LIBOBJDIR}strlcpy$U.lo ${LIBOBJDIR}strlcat$U.lo
MAKEINFO = ${SHELL} /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/missing --run makeinfo
MKDIR_P = /bin/mkdir -p
NMEDIT =
OBJEXT = o
PACKAGE = file
PACKAGE_BUGREPORT = christos@astron.com
PACKAGE_NAME = file
PACKAGE_STRING = file 5.04
PACKAGE_TARNAME = file
PACKAGE_VERSION = 5.04
PATH_SEPARATOR = :
RANLIB = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/bash
STRIP = /opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-strip
VERSION = 5.04
WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith        -Wmissing-declarations -Wredundant-decls -Wnested-externs        -Wsign-compare -Wreturn-type -Wswitch -Wshadow        -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter
abs_builddir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/doc
abs_srcdir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/doc
abs_top_builddir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
abs_top_srcdir = /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04
ac_ct_CC =
ac_ct_CXX = g++
ac_ct_F77 =
am__include = include
am__leading_dot = .
am__quote =
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias = i686-pc-linux
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
fsect = 4
host = arm-unknown-linux-gnu
host_alias = arm-linux
host_cpu = arm
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /home/guowenxue/ok335x-sdk/3rdparty/file/file-5.04/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /home/guowenxue/ok335x-sdk/3rdparty/file/../install/bin
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_builddir = ..
top_srcdir = ..
MAGIC = $(pkgdatadir)/magic
man_MAGIC = magic.4
#man_MAGIC = magic.5
man_MANS = file.1 $(man_MAGIC) libmagic.3
EXTRA_DIST = file.man magic.man libmagic.man
CLEANFILES = $(man_MANS)
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    @for dep in $?; do \
      case '$(am__configure_deps)' in \
        *$$dep*) \
          cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
        && exit 0; \
          exit 1;; \
      esac; \
    done; \
    echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  doc/Makefile'; \
    cd $(top_srcdir) && \
      $(AUTOMAKE) --gnu  doc/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @case '$?' in \
      *config.status*) \
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
      *) \
        echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
    esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure:  $(am__configure_deps)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
mostlyclean-libtool:
    -rm -f *.lo
clean-libtool:
    -rm -rf .libs _libs
install-man1: $(man1_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
    @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.1*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        1*) ;; \
        *) ext='1' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
    done
uninstall-man1:
    @$(NORMAL_UNINSTALL)
    @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.1*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        1*) ;; \
        *) ext='1' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
    done
install-man3: $(man3_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
    @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.3*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        3*) ;; \
        *) ext='3' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
    done
uninstall-man3:
    @$(NORMAL_UNINSTALL)
    @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.3*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        3*) ;; \
        *) ext='3' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
    done
install-man4: $(man4_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man4dir)" || $(MKDIR_P) "$(DESTDIR)$(man4dir)"
    @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.4*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        4*) ;; \
        *) ext='4' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man4dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man4dir)/$$inst"; \
    done
uninstall-man4:
    @$(NORMAL_UNINSTALL)
    @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.4*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        4*) ;; \
        *) ext='4' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man4dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man4dir)/$$inst"; \
    done
install-man5: $(man5_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
    @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.5*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        5*) ;; \
        *) ext='5' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
    done
uninstall-man5:
    @$(NORMAL_UNINSTALL)
    @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.5*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        5*) ;; \
        *) ext='5' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
    done
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
distdir: $(DISTFILES)
    @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    list='$(DISTFILES)'; \
      dist_files=`for file in $$list; do echo $$file; done | \
      sed -e "s|^$$srcdirstrip/||;t" \
          -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    case $$dist_files in \
      */*) $(MKDIR_P) `echo "$$dist_files" | \
               sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
               sort -u` ;; \
    esac; \
    for file in $$dist_files; do \
      if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
      if test -d $$d/$$file; then \
        dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
        if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
          cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
        fi; \
        cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
      else \
        test -f $(distdir)/$$file \
        || cp -p $$d/$$file $(distdir)/$$file \
        || exit 1; \
      fi; \
    done
check-am: all-am
check: check-am
all-am: Makefile $(MANS)
installdirs:
    for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)"; do \
      test -z "$$dir" || $(MKDIR_P) "$$dir"; \
    done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
    @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
    $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
      install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
      `test -z '$(STRIP)' || \
        echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
    -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
    -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
    @echo "This command is intended for maintainers to use"
    @echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
    -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am: install-man
install-dvi: install-dvi-am
install-exec-am:
install-html: install-html-am
install-info: install-info-am
install-man: install-man1 install-man3 install-man4 install-man5
install-pdf: install-pdf-am
install-ps: install-ps-am
installcheck-am:
maintainer-clean: maintainer-clean-am
    -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-man
uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4 \
    uninstall-man5
.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
    distclean distclean-generic distclean-libtool distdir dvi \
    dvi-am html html-am info info-am install install-am \
    install-data install-data-am install-dvi install-dvi-am \
    install-exec install-exec-am install-html install-html-am \
    install-info install-info-am install-man install-man1 \
    install-man3 install-man4 install-man5 install-pdf \
    install-pdf-am install-ps install-ps-am install-strip \
    installcheck installcheck-am installdirs maintainer-clean \
    maintainer-clean-generic mostlyclean mostlyclean-generic \
    mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
    uninstall-man uninstall-man1 uninstall-man3 uninstall-man4 \
    uninstall-man5
file.1:    Makefile file.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
magic.${fsect}: Makefile magic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
libmagic.3: Makefile libmagic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
ok335xD/3rdparty/file/file-5.04/doc/Makefile.am
New file
@@ -0,0 +1,32 @@
MAGIC     = $(pkgdatadir)/magic
if FSECT5
man_MAGIC = magic.5
else
man_MAGIC = magic.4
endif
fsect = @fsect@
man_MANS = file.1 $(man_MAGIC) libmagic.3
EXTRA_DIST = file.man magic.man libmagic.man
CLEANFILES = $(man_MANS)
file.1:    Makefile file.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
magic.${fsect}: Makefile magic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
libmagic.3: Makefile libmagic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@
ok335xD/3rdparty/file/file-5.04/doc/Makefile.in
New file
@@ -0,0 +1,550 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = doc
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
    $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    $(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
man1dir = $(mandir)/man1
am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" \
    "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)"
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
NROFF = nroff
MANS = $(man_MANS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkgdatadir = @pkgdatadir@
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DSYMUTIL = @DSYMUTIL@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
NMEDIT = @NMEDIT@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WARNINGS = @WARNINGS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
fsect = @fsect@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
MAGIC = $(pkgdatadir)/magic
@FSECT5_FALSE@man_MAGIC = magic.4
@FSECT5_TRUE@man_MAGIC = magic.5
man_MANS = file.1 $(man_MAGIC) libmagic.3
EXTRA_DIST = file.man magic.man libmagic.man
CLEANFILES = $(man_MANS)
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    @for dep in $?; do \
      case '$(am__configure_deps)' in \
        *$$dep*) \
          cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
        && exit 0; \
          exit 1;; \
      esac; \
    done; \
    echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  doc/Makefile'; \
    cd $(top_srcdir) && \
      $(AUTOMAKE) --gnu  doc/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    @case '$?' in \
      *config.status*) \
        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
      *) \
        echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
    esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure:  $(am__configure_deps)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
mostlyclean-libtool:
    -rm -f *.lo
clean-libtool:
    -rm -rf .libs _libs
install-man1: $(man1_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
    @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.1*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        1*) ;; \
        *) ext='1' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
    done
uninstall-man1:
    @$(NORMAL_UNINSTALL)
    @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.1*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        1*) ;; \
        *) ext='1' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
    done
install-man3: $(man3_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
    @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.3*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        3*) ;; \
        *) ext='3' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
    done
uninstall-man3:
    @$(NORMAL_UNINSTALL)
    @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.3*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        3*) ;; \
        *) ext='3' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
    done
install-man4: $(man4_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man4dir)" || $(MKDIR_P) "$(DESTDIR)$(man4dir)"
    @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.4*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        4*) ;; \
        *) ext='4' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man4dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man4dir)/$$inst"; \
    done
uninstall-man4:
    @$(NORMAL_UNINSTALL)
    @list='$(man4_MANS) $(dist_man4_MANS) $(nodist_man4_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.4*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        4*) ;; \
        *) ext='4' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man4dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man4dir)/$$inst"; \
    done
install-man5: $(man5_MANS) $(man_MANS)
    @$(NORMAL_INSTALL)
    test -z "$(man5dir)" || $(MKDIR_P) "$(DESTDIR)$(man5dir)"
    @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.5*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
      else file=$$i; fi; \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        5*) ;; \
        *) ext='5' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
      $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
    done
uninstall-man5:
    @$(NORMAL_UNINSTALL)
    @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
    l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
    for i in $$l2; do \
      case "$$i" in \
        *.5*) list="$$list $$i" ;; \
      esac; \
    done; \
    for i in $$list; do \
      ext=`echo $$i | sed -e 's/^.*\\.//'`; \
      case "$$ext" in \
        5*) ;; \
        *) ext='5' ;; \
      esac; \
      inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
      inst=`echo $$inst | sed -e 's/^.*\///'`; \
      inst=`echo $$inst | sed '$(transform)'`.$$ext; \
      echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
      rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
    done
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
distdir: $(DISTFILES)
    @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
    list='$(DISTFILES)'; \
      dist_files=`for file in $$list; do echo $$file; done | \
      sed -e "s|^$$srcdirstrip/||;t" \
          -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
    case $$dist_files in \
      */*) $(MKDIR_P) `echo "$$dist_files" | \
               sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
               sort -u` ;; \
    esac; \
    for file in $$dist_files; do \
      if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
      if test -d $$d/$$file; then \
        dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
        if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
          cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
        fi; \
        cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
      else \
        test -f $(distdir)/$$file \
        || cp -p $$d/$$file $(distdir)/$$file \
        || exit 1; \
      fi; \
    done
check-am: all-am
check: check-am
all-am: Makefile $(MANS)
installdirs:
    for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man4dir)" "$(DESTDIR)$(man5dir)"; do \
      test -z "$$dir" || $(MKDIR_P) "$$dir"; \
    done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
    @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
    $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
      install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
      `test -z '$(STRIP)' || \
        echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
    -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
    -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
    @echo "This command is intended for maintainers to use"
    @echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
    -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am: install-man
install-dvi: install-dvi-am
install-exec-am:
install-html: install-html-am
install-info: install-info-am
install-man: install-man1 install-man3 install-man4 install-man5
install-pdf: install-pdf-am
install-ps: install-ps-am
installcheck-am:
maintainer-clean: maintainer-clean-am
    -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-man
uninstall-man: uninstall-man1 uninstall-man3 uninstall-man4 \
    uninstall-man5
.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
    distclean distclean-generic distclean-libtool distdir dvi \
    dvi-am html html-am info info-am install install-am \
    install-data install-data-am install-dvi install-dvi-am \
    install-exec install-exec-am install-html install-html-am \
    install-info install-info-am install-man install-man1 \
    install-man3 install-man4 install-man5 install-pdf \
    install-pdf-am install-ps install-ps-am install-strip \
    installcheck installcheck-am installdirs maintainer-clean \
    maintainer-clean-generic mostlyclean mostlyclean-generic \
    mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
    uninstall-man uninstall-man1 uninstall-man3 uninstall-man4 \
    uninstall-man5
file.1:    Makefile file.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/file.man > $@
magic.${fsect}: Makefile magic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/magic.man > $@
libmagic.3: Makefile libmagic.man
    @rm -f $@
    sed -e s@__CSECTION__@1@g \
        -e s@__FSECTION__@${fsect}@g \
        -e s@__VERSION__@${VERSION}@g \
        -e s@__MAGIC__@${MAGIC}@g $(srcdir)/libmagic.man > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
ok335xD/3rdparty/file/file-5.04/doc/file.man
New file
@@ -0,0 +1,553 @@
.\" $File: file.man,v 1.82 2009/11/04 22:30:34 christos Exp $
.Dd October 9, 2008
.Dt FILE __CSECTION__
.Os
.Sh NAME
.Nm file
.Nd determine file type
.Sh SYNOPSIS
.Nm
.Bk -words
.Op Fl bchikLNnprsvz0
.Op Fl -apple
.Op Fl -mime-encoding
.Op Fl -mime-type
.Op Fl e Ar testname
.Op Fl F Ar separator
.Op Fl f Ar namefile
.Op Fl m Ar magicfiles
.Ar
.Ek -words
.Nm
.Fl C
.Op Fl m Ar magicfiles
.Nm
.Op Fl -help
.Sh DESCRIPTION
This manual page documents version __VERSION__ of the
.Nm
command.
.Pp
.Nm
tests each argument in an attempt to classify it.
There are three sets of tests, performed in this order:
filesystem tests, magic tests, and language tests.
The
.Em first
test that succeeds causes the file type to be printed.
.Pp
The type printed will usually contain one of the words
.Em text
(the file contains only
printing characters and a few common control
characters and is probably safe to read on an
.Dv ASCII
terminal),
.Em executable
(the file contains the result of compiling a program
in a form understandable to some
.Dv UNIX
kernel or another),
or
.Em data
meaning anything else (data is usually
.Sq binary
or non-printable).
Exceptions are well-known file formats (core files, tar archives)
that are known to contain binary data.
When modifying magic files or the program itself, make sure to
.Em "preserve these keywords" .
Users depend on knowing that all the readable files in a directory
have the word
.Sq text
printed.
Don't do as Berkeley did and change
.Sq shell commands text
to
.Sq shell script .
.Pp
The filesystem tests are based on examining the return from a
.Xr stat 2
system call.
The program checks to see if the file is empty,
or if it's some sort of special file.
Any known file types appropriate to the system you are running on
(sockets, symbolic links, or named pipes (FIFOs) on those systems that
implement them)
are intuited if they are defined in
the system header file
.In sys/stat.h .
.Pp
The magic tests are used to check for files with data in
particular fixed formats.
The canonical example of this is a binary executable (compiled program)
.Dv a.out
file, whose format is defined in
.In elf.h ,
.In a.out.h
and possibly
.In exec.h
in the standard include directory.
These files have a
.Sq "magic number"
stored in a particular place
near the beginning of the file that tells the
.Dv UNIX operating system
that the file is a binary executable, and which of several types thereof.
The concept of a
.Sq "magic"
has been applied by extension to data files.
Any file with some invariant identifier at a small fixed
offset into the file can usually be described in this way.
The information identifying these files is read from the compiled
magic file
.Pa __MAGIC__.mgc ,
or the files in the directory
.Pa __MAGIC__
if the compiled file does not exist. In addition, if
.Pa $HOME/.magic.mgc
or
.Pa $HOME/.magic
exists, it will be used in preference to the system magic files.
.Pp
If a file does not match any of the entries in the magic file,
it is examined to see if it seems to be a text file.
ASCII, ISO-8859-x, non-ISO 8-bit extended-ASCII character sets
(such as those used on Macintosh and IBM PC systems),
UTF-8-encoded Unicode, UTF-16-encoded Unicode, and EBCDIC
character sets can be distinguished by the different
ranges and sequences of bytes that constitute printable text
in each set.
If a file passes any of these tests, its character set is reported.
ASCII, ISO-8859-x, UTF-8, and extended-ASCII files are identified
as
.Sq text
because they will be mostly readable on nearly any terminal;
UTF-16 and EBCDIC are only
.Sq character data
because, while
they contain text, it is text that will require translation
before it can be read.
In addition,
.Nm
will attempt to determine other characteristics of text-type files.
If the lines of a file are terminated by CR, CRLF, or NEL, instead
of the Unix-standard LF, this will be reported.
Files that contain embedded escape sequences or overstriking
will also be identified.
.Pp
Once
.Nm
has determined the character set used in a text-type file,
it will
attempt to determine in what language the file is written.
The language tests look for particular strings (cf.
.In names.h
) that can appear anywhere in the first few blocks of a file.
For example, the keyword
.Em .br
indicates that the file is most likely a
.Xr troff 1
input file, just as the keyword
.Em struct
indicates a C program.
These tests are less reliable than the previous
two groups, so they are performed last.
The language test routines also test for some miscellany
(such as
.Xr tar 1
archives).
.Pp
Any file that cannot be identified as having been written
in any of the character sets listed above is simply said to be
.Sq data .
.Sh OPTIONS
.Bl -tag -width indent
.It Fl b , -brief
Do not prepend filenames to output lines (brief mode).
.It Fl C , -compile
Write a
.Pa magic.mgc
output file that contains a pre-parsed version of the magic file or directory.
.It Fl c , -checking-printout
Cause a checking printout of the parsed form of the magic file.
This is usually used in conjunction with the
.Fl m
flag to debug a new magic file before installing it.
.It Fl e , -exclude Ar testname
Exclude the test named in
.Ar testname
from the list of tests made to determine the file type. Valid test names
are:
.Bl -tag -width compress
.It apptype
.Dv EMX
application type (only on EMX).
.It text
Various types of text files (this test will try to guess the text encoding, irrespective of the setting of the
.Sq encoding
option).
.It encoding
Different text encodings for soft magic tests.
.It tokens
Looks for known tokens inside text files.
.It cdf
Prints details of Compound Document Files.
.It compress
Checks for, and looks inside, compressed files.
.It elf
Prints ELF file details.
.It soft
Consults magic files.
.It tar
Examines tar files.
.El
.It Fl F , -separator Ar separator
Use the specified string as the separator between the filename and the
file result returned. Defaults to
.Sq \&: .
.It Fl f , -files-from Ar namefile
Read the names of the files to be examined from
.Ar namefile
(one per line)
before the argument list.
Either
.Ar namefile
or at least one filename argument must be present;
to test the standard input, use
.Sq -
as a filename argument.
.It Fl h , -no-dereference
option causes symlinks not to be followed
(on systems that support symbolic links). This is the default if the
environment variable
.Dv POSIXLY_CORRECT
is not defined.
.It Fl i , -mime
Causes the file command to output mime type strings rather than the more
traditional human readable ones. Thus it may say
.Sq text/plain; charset=us-ascii
rather than
.Sq ASCII text .
In order for this option to work, file changes the way
it handles files recognized by the command itself (such as many of the
text file types, directories etc), and makes use of an alternative
.Sq magic
file.
(See the FILES section, below).
.It Fl -mime-type , -mime-encoding
Like
.Fl i ,
but print only the specified element(s).
.It Fl k , -keep-going
Don't stop at the first match, keep going. Subsequent matches will be
have the string
.Sq "\[rs]012\- "
prepended.
(If you want a newline, see the
.Sq "\-r"
option.)
.It Fl L , -dereference
option causes symlinks to be followed, as the like-named option in
.Xr ls 1
(on systems that support symbolic links).
This is the default if the environment variable
.Dv POSIXLY_CORRECT
is defined.
.It Fl m , -magic-file Ar magicfiles
Specify an alternate list of files and directories containing magic.
This can be a single item, or a colon-separated list.
If a compiled magic file is found alongside a file or directory, it will be used instead.
.It Fl N , -no-pad
Don't pad filenames so that they align in the output.
.It Fl n , -no-buffer
Force stdout to be flushed after checking each file.
This is only useful if checking a list of files.
It is intended to be used by programs that want filetype output from a pipe.
.It Fl p , -preserve-date
On systems that support
.Xr utime 2
or
.Xr utimes 2 ,
attempt to preserve the access time of files analyzed, to pretend that
.Nm
never read them.
.It Fl r , -raw
Don't translate unprintable characters to \eooo.
Normally
.Nm
translates unprintable characters to their octal representation.
.It Fl s , -special-files
Normally,
.Nm
only attempts to read and determine the type of argument files which
.Xr stat 2
reports are ordinary files.
This prevents problems, because reading special files may have peculiar
consequences.
Specifying the
.Fl s
option causes
.Nm
to also read argument files which are block or character special files.
This is useful for determining the filesystem types of the data in raw
disk partitions, which are block special files.
This option also causes
.Nm
to disregard the file size as reported by
.Xr stat 2
since on some systems it reports a zero size for raw disk partitions.
.It Fl v , -version
Print the version of the program and exit.
.It Fl z , -uncompress
Try to look inside compressed files.
.It Fl 0 , -print0
Output a null character
.Sq \e0
after the end of the filename. Nice to
.Xr cut 1
the output. This does not affect the separator which is still printed.
.It Fl -help
Print a help message and exit.
.El
.Sh FILES
.Bl -tag -width __MAGIC__.mgc -compact
.It Pa __MAGIC__.mgc
Default compiled list of magic.
.It Pa __MAGIC__
Directory containing default magic files.
.El
.Sh ENVIRONMENT
The environment variable
.Dv MAGIC
can be used to set the default magic file name.
If that variable is set, then
.Nm
will not attempt to open
.Pa $HOME/.magic .
.Nm
adds
.Sq .mgc
to the value of this variable as appropriate.
The environment variable
.Dv POSIXLY_CORRECT
controls (on systems that support symbolic links), whether
.Nm
will attempt to follow symlinks or not. If set, then
.Nm
follows symlink, otherwise it does not. This is also controlled
by the
.Fl L
and
.Fl h
options.
.Sh SEE ALSO
.Xr magic __FSECTION__ ,
.Xr strings 1 ,
.Xr od 1 ,
.Xr hexdump 1,
.Xr file 1posix
.Sh STANDARDS CONFORMANCE
This program is believed to exceed the System V Interface Definition
of FILE(CMD), as near as one can determine from the vague language
contained therein.
Its behavior is mostly compatible with the System V program of the same name.
This version knows more magic, however, so it will produce
different (albeit more accurate) output in many cases.
.\" URL: http://www.opengroup.org/onlinepubs/009695399/utilities/file.html
.Pp
The one significant difference
between this version and System V
is that this version treats any white space
as a delimiter, so that spaces in pattern strings must be escaped.
For example,
.Bd -literal -offset indent
>10    string    language impress\     (imPRESS data)
.Ed
.Pp
in an existing magic file would have to be changed to
.Bd -literal -offset indent
>10    string    language\e impress    (imPRESS data)
.Ed
.Pp
In addition, in this version, if a pattern string contains a backslash,
it must be escaped.
For example
.Bd -literal -offset indent
0    string        \ebegindata    Andrew Toolkit document
.Ed
.Pp
in an existing magic file would have to be changed to
.Bd -literal -offset indent
0    string        \e\ebegindata    Andrew Toolkit document
.Ed
.Pp
SunOS releases 3.2 and later from Sun Microsystems include a
.Nm
command derived from the System V one, but with some extensions.
My version differs from Sun's only in minor ways.
It includes the extension of the
.Sq &
operator, used as,
for example,
.Bd -literal -offset indent
>16    long&0x7fffffff    >0        not stripped
.Ed
.Sh MAGIC DIRECTORY
The magic file entries have been collected from various sources,
mainly USENET, and contributed by various authors.
Christos Zoulas (address below) will collect additional
or corrected magic file entries.
A consolidation of magic file entries
will be distributed periodically.
.Pp
The order of entries in the magic file is significant.
Depending on what system you are using, the order that
they are put together may be incorrect.
If your old
.Nm
command uses a magic file,
keep the old magic file around for comparison purposes
(rename it to
.Pa __MAGIC__.orig ).
.Sh EXAMPLES
.Bd -literal -offset indent
$ file file.c file /dev/{wd0a,hda}
file.c:   C program text
file:     ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
      dynamically linked (uses shared libs), stripped
/dev/wd0a: block special (0/0)
/dev/hda: block special (3/0)
$ file -s /dev/wd0{b,d}
/dev/wd0b: data
/dev/wd0d: x86 boot sector
$ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
/dev/hda:   x86 boot sector
/dev/hda1:  Linux/i386 ext2 filesystem
/dev/hda2:  x86 boot sector
/dev/hda3:  x86 boot sector, extended partition table
/dev/hda4:  Linux/i386 ext2 filesystem
/dev/hda5:  Linux/i386 swap file
/dev/hda6:  Linux/i386 swap file
/dev/hda7:  Linux/i386 swap file
/dev/hda8:  Linux/i386 swap file
/dev/hda9:  empty
/dev/hda10: empty
$ file -i file.c file /dev/{wd0a,hda}
file.c:      text/x-c
file:        application/x-executable
/dev/hda:    application/x-not-regular-file
/dev/wd0a:   application/x-not-regular-file
.Ed
.Sh HISTORY
There has been a
.Nm
command in every
.Dv UNIX since at least Research Version 4
(man page dated November, 1973).
The System V version introduced one significant major change:
the external list of magic types.
This slowed the program down slightly but made it a lot more flexible.
.Pp
This program, based on the System V version,
was written by Ian Darwin <ian@darwinsys.com>
without looking at anybody else's source code.
.Pp
John Gilmore revised the code extensively, making it better than
the first version.
Geoff Collyer found several inadequacies
and provided some magic file entries.
Contributions by the `&' operator by Rob McMahon, cudcv@warwick.ac.uk, 1989.
.Pp
Guy Harris, guy@netapp.com, made many changes from 1993 to the present.
.Pp
Primary development and maintenance from 1990 to the present by
Christos Zoulas (christos@astron.com).
.Pp
Altered by Chris Lowth, chris@lowth.com, 2000:
Handle the
.Fl i
option to output mime type strings, using an alternative
magic file and internal logic.
.Pp
Altered by Eric Fischer (enf@pobox.com), July, 2000,
to identify character codes and attempt to identify the languages
of non-ASCII files.
.Pp
Altered by Reuben Thomas (rrt@sc3d.org), 2007 to 2008, to improve MIME
support and merge MIME and non-MIME magic, support directories as well
as files of magic, apply many bug fixes and improve the build system.
.Pp
The list of contributors to the
.Sq magic
directory (magic files)
is too long to include here.
You know who you are; thank you.
Many contributors are listed in the source files.
.Sh LEGAL NOTICE
Copyright (c) Ian F. Darwin, Toronto, Canada, 1986-1999.
Covered by the standard Berkeley Software Distribution copyright; see the file
LEGAL.NOTICE in the source distribution.
.Pp
The files
.Dv tar.h
and
.Dv is_tar.c
were written by John Gilmore from his public-domain
.Xr tar 1
program, and are not covered by the above license.
.Sh BUGS
.Pp
There must be a better way to automate the construction of the Magic
file from all the glop in Magdir.
What is it?
.Pp
.Nm
uses several algorithms that favor speed over accuracy,
thus it can be misled about the contents of
text
files.
.Pp
The support for text files (primarily for programming languages)
is simplistic, inefficient and requires recompilation to update.
.Pp
The list of keywords in
.Dv ascmagic
probably belongs in the Magic file.
This could be done by using some keyword like
.Sq *
for the offset value.
.Pp
Complain about conflicts in the magic file entries.
Make a rule that the magic entries sort based on file offset rather
than position within the magic file?
.Pp
The program should provide a way to give an estimate
of
.Sq how good
a guess is.
We end up removing guesses (e.g.
.Sq From\
as first 5 chars of file) because
they are not as good as other guesses (e.g.
.Sq Newsgroups:
versus
.Sq Return-Path:
).
Still, if the others don't pan out, it should be possible to use the
first guess.
.Pp
This manual page, and particularly this section, is too long.
.Sh RETURN CODE
.Nm
returns 0 on success, and non-zero on error.
.Sh AVAILABILITY
You can obtain the original author's latest version by anonymous FTP
on
.Dv ftp.astron.com
in the directory
.Dv /pub/file/file-X.YZ.tar.gz
ok335xD/3rdparty/file/file-5.04/doc/libmagic.man
New file
@@ -0,0 +1,249 @@
.\" $File: libmagic.man,v 1.21 2009/11/24 21:16:14 christos Exp $
.\"
.\" Copyright (c) Christos Zoulas 2003.
.\" All Rights Reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice immediately at the beginning of the file, without modification,
.\"    this list of conditions, and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd November 24, 2009
.Dt LIBMAGIC 3
.Os
.Sh NAME
.Nm magic_open ,
.Nm magic_close ,
.Nm magic_error ,
.Nm magic_file ,
.Nm magic_buffer ,
.Nm magic_setflags ,
.Nm magic_check ,
.Nm magic_compile ,
.Nm magic_load
.Nd Magic number recognition library.
.Sh LIBRARY
.Lb libmagic
.Sh SYNOPSIS
.In magic.h
.Ft magic_t
.Fn magic_open "int flags"
.Ft void
.Fn magic_close "magic_t cookie"
.Ft const char *
.Fn magic_error "magic_t cookie"
.Ft int
.Fn magic_errno "magic_t cookie"
.Ft const char *
.Fn magic_file "magic_t cookie, const char *filename"
.Ft const char *
.Fn magic_buffer "magic_t cookie, const void *buffer, size_t length"
.Ft int
.Fn magic_setflags "magic_t cookie, int flags"
.Ft int
.Fn magic_check "magic_t cookie, const char *filename"
.Ft int
.Fn magic_compile "magic_t cookie, const char *filename"
.Ft int
.Fn magic_load "magic_t cookie, const char *filename"
.Sh DESCRIPTION
These functions
operate on the magic database file
which is described
in
.Xr magic __FSECTION__ .
.Pp
The function
.Fn magic_open
creates a magic cookie pointer and returns it. It returns NULL if
there was an error allocating the magic cookie. The
.Ar flags
argument specifies how the other magic functions should behave:
.Bl -tag -width MAGIC_COMPRESS
.It Dv MAGIC_NONE
No special handling.
.It Dv MAGIC_DEBUG
Print debugging messages to stderr.
.It Dv MAGIC_SYMLINK
If the file queried is a symlink, follow it.
.It Dv MAGIC_COMPRESS
If the file is compressed, unpack it and look at the contents.
.It Dv MAGIC_DEVICES
If the file is a block or character special device, then open the device
and try to look in its contents.
.It Dv MAGIC_MIME_TYPE
Return a MIME type string, instead of a textual description.
.It Dv MAGIC_MIME_ENCODING
Return a MIME encoding, instead of a textual description.
.It Dv MAGIC_CONTINUE
Return all matches, not just the first.
.It Dv MAGIC_CHECK
Check the magic database for consistency and print warnings to stderr.
.It Dv MAGIC_PRESERVE_ATIME
On systems that support
.Xr utime 2
or
.Xr utimes 2 ,
attempt to preserve the access time of files analyzed.
.It Dv MAGIC_RAW
Don't translate unprintable characters to a \eooo octal representation.
.It Dv MAGIC_ERROR
Treat operating system errors while trying to open files and follow symlinks
as real errors, instead of printing them in the magic buffer.
.It Dv MAGIC_NO_CHECK_APPTYPE
Check for
.Dv EMX
application type (only on EMX).
.It Dv MAGIC_NO_CHECK_ASCII
Check for various types of ascii files.
.It Dv MAGIC_NO_CHECK_COMPRESS
Don't look for, or inside compressed files.
.It Dv MAGIC_NO_CHECK_ELF
Don't print elf details.
.It Dv MAGIC_NO_CHECK_FORTRAN
Don't look for fortran sequences inside ascii files.
.It Dv MAGIC_NO_CHECK_SOFT
Don't consult magic files.
.It Dv MAGIC_NO_CHECK_TAR
Don't examine tar files.
.It Dv MAGIC_NO_CHECK_TOKENS
Don't look for known tokens inside ascii files.
.It Dv MAGIC_NO_CHECK_TROFF
Don't look for troff sequences inside ascii files.
.El
.Pp
The
.Fn magic_close
function closes the
.Xr magic __FSECTION__
database and deallocates any resources used.
.Pp
The
.Fn magic_error
function returns a textual explanation of the last error, or NULL if there was
no error.
.Pp
The
.Fn magic_errno
function returns the last operating system error number
.Pq Xr errno 2
that was encountered by a system call.
.Pp
The
.Fn magic_file
function returns a textual description of the contents of the
.Ar filename
argument, or NULL if an error occurred.
If the
.Ar filename
is NULL, then stdin is used.
.Pp
The
.Fn magic_buffer
function returns a textual description of the contents of the
.Ar buffer
argument with
.Ar length
bytes size.
.Pp
The
.Fn magic_setflags
function sets the
.Ar flags
described above. Note that using both MIME flags together can also
return extra information on the charset.
.Pp
The
.Fn magic_check
function can be used to check the validity of entries in the colon
separated database files passed in as
.Ar filename ,
or NULL for the default database. It returns 0 on success and -1 on
failure.
.Pp
The
.Fn magic_compile
function can be used to compile the the colon
separated list of database files passed in as
.Ar filename ,
or NULL for the default database. It returns 0 on success and -1 on
failure. The compiled files created are named from the
.Xr basename 1
of each file argument with
.Dq .mgc
appended to it.
.Pp
The
.Fn magic_load
function must be used to load the the colon
separated list of database files passed in as
.Ar filename ,
or NULL for the default database file
before any magic queries can performed.
.Pp
The default database file is named by the MAGIC environment variable.  If
that variable is not set, the default database file name is __MAGIC__.
.Fn magic_load
adds
.Dq .mgc
to the database filename as appropriate.
.Sh RETURN VALUES
The function
.Fn magic_open
returns a magic cookie on success and NULL on failure setting errno to
an appropriate value. It will set errno to EINVAL if an unsupported
value for flags was given.
The
.Fn magic_load ,
.Fn magic_compile ,
and
.Fn magic_check
functions return 0 on success and -1 on failure.
The
.Fn magic_file ,
and
.Fn magic_buffer
functions return a string on success and NULL on failure. The
.Fn magic_error
function returns a textual description of the errors of the above
functions, or NULL if there was no error.
Finally,
.Fn magic_setflags
returns -1 on systems that don't support
.Xr utime 2 ,
or
.Xr utimes 2
when
.Dv MAGIC_PRESERVE_ATIME
is set.
.Sh FILES
.Bl -tag -width __MAGIC__.mgc -compact
.It Pa __MAGIC__
The non-compiled default magic database.
.It Pa __MAGIC__.mgc
The compiled default magic database.
.El
.Sh SEE ALSO
.Xr file __CSECTION__ ,
.Xr magic __FSECTION__
.Sh AUTHORS
Måns Rullgård Initial libmagic implementation,
and configuration.
Christos Zoulas API cleanup, error code and allocation handling.
ok335xD/3rdparty/file/file-5.04/doc/magic.man
New file
@@ -0,0 +1,521 @@
.\" $File: magic.man,v 1.60 2009/05/08 23:02:44 christos Exp $
.Dd August 30, 2008
.Dt MAGIC __FSECTION__
.Os
.\" install as magic.4 on USG, magic.5 on V7, Berkeley and Linux systems.
.Sh NAME
.Nm magic
.Nd file command's magic pattern file
.Sh DESCRIPTION
This manual page documents the format of the magic file as
used by the
.Xr file __CSECTION__
command, version __VERSION__.
The
.Xr file __CSECTION__
command identifies the type of a file using,
among other tests,
a test for whether the file contains certain
.Dq "magic patterns" .
The file
.Pa __MAGIC__
specifies what patterns are to be tested for, what message or
MIME type to print if a particular pattern is found,
and additional information to extract from the file.
.Pp
Each line of the file specifies a test to be performed.
A test compares the data starting at a particular offset
in the file with a byte value, a string or a numeric value.
If the test succeeds, a message is printed.
The line consists of the following fields:
.Bl -tag -width ".Dv message"
.It Dv offset
A number specifying the offset, in bytes, into the file of the data
which is to be tested.
.It Dv type
The type of the data to be tested.
The possible values are:
.Bl -tag -width ".Dv lestring16"
.It Dv byte
A one-byte value.
.It Dv short
A two-byte value in this machine's native byte order.
.It Dv long
A four-byte value in this machine's native byte order.
.It Dv quad
An eight-byte value in this machine's native byte order.
.It Dv float
A 32-bit single precision IEEE floating point number in this machine's native byte order.
.It Dv double
A 64-bit double precision IEEE floating point number in this machine's native byte order.
.It Dv string
A string of bytes.
The string type specification can be optionally followed
by /[Bbc]*.
The
.Dq B
flag compacts whitespace in the target, which must
contain at least one whitespace character.
If the magic has
.Dv n
consecutive blanks, the target needs at least
.Dv n
consecutive blanks to match.
The
.Dq b
flag treats every blank in the target as an optional blank.
Finally the
.Dq c
flag, specifies case insensitive matching: lowercase
characters in the magic match both lower and upper case characters in the
target, whereas upper case characters in the magic only match uppercase
characters in the target.
.It Dv pstring
A Pascal-style string where the first byte is interpreted as the an
unsigned length.
The string is not NUL terminated.
.It Dv date
A four-byte value interpreted as a UNIX date.
.It Dv qdate
A eight-byte value interpreted as a UNIX date.
.It Dv ldate
A four-byte value interpreted as a UNIX-style date, but interpreted as
local time rather than UTC.
.It Dv qldate
An eight-byte value interpreted as a UNIX-style date, but interpreted as
local time rather than UTC.
.It Dv beid3
A 32-bit ID3 length in big-endian byte order.
.It Dv beshort
A two-byte value in big-endian byte order.
.It Dv belong
A four-byte value in big-endian byte order.
.It Dv bequad
An eight-byte value in big-endian byte order.
.It Dv befloat
A 32-bit single precision IEEE floating point number in big-endian byte order.
.It Dv bedouble
A 64-bit double precision IEEE floating point number in big-endian byte order.
.It Dv bedate
A four-byte value in big-endian byte order,
interpreted as a Unix date.
.It Dv beqdate
An eight-byte value in big-endian byte order,
interpreted as a Unix date.
.It Dv beldate
A four-byte value in big-endian byte order,
interpreted as a UNIX-style date, but interpreted as local time rather
than UTC.
.It Dv beqldate
An eight-byte value in big-endian byte order,
interpreted as a UNIX-style date, but interpreted as local time rather
than UTC.
.It Dv bestring16
A two-byte unicode (UCS16) string in big-endian byte order.
.It Dv leid3
A 32-bit ID3 length in little-endian byte order.
.It Dv leshort
A two-byte value in little-endian byte order.
.It Dv lelong
A four-byte value in little-endian byte order.
.It Dv lequad
An eight-byte value in little-endian byte order.
.It Dv lefloat
A 32-bit single precision IEEE floating point number in little-endian byte order.
.It Dv ledouble
A 64-bit double precision IEEE floating point number in little-endian byte order.
.It Dv ledate
A four-byte value in little-endian byte order,
interpreted as a UNIX date.
.It Dv leqdate
An eight-byte value in little-endian byte order,
interpreted as a UNIX date.
.It Dv leldate
A four-byte value in little-endian byte order,
interpreted as a UNIX-style date, but interpreted as local time rather
than UTC.
.It Dv leqldate
An eight-byte value in little-endian byte order,
interpreted as a UNIX-style date, but interpreted as local time rather
than UTC.
.It Dv lestring16
A two-byte unicode (UCS16) string in little-endian byte order.
.It Dv melong
A four-byte value in middle-endian (PDP-11) byte order.
.It Dv medate
A four-byte value in middle-endian (PDP-11) byte order,
interpreted as a UNIX date.
.It Dv meldate
A four-byte value in middle-endian (PDP-11) byte order,
interpreted as a UNIX-style date, but interpreted as local time rather
than UTC.
.It Dv indirect
Starting at the given offset, consult the magic database again.
.It Dv regex
A regular expression match in extended POSIX regular expression syntax
(like egrep). Regular expressions can take exponential time to
process, and their performance is hard to predict, so their use is
discouraged. When used in production environments, their performance
should be carefully checked. The type specification can be optionally
followed by
.Dv /[c][s] .
The
.Dq c
flag makes the match case insensitive, while the
.Dq s
flag update the offset to the start offset of the match, rather than the end.
The regular expression is tested against line
.Dv N + 1
onwards, where
.Dv N
is the given offset.
Line endings are assumed to be in the machine's native format.
.Dv ^
and
.Dv $
match the beginning and end of individual lines, respectively,
not beginning and end of file.
.It Dv search
A literal string search starting at the given offset. The same
modifier flags can be used as for string patterns. The modifier flags
(if any) must be followed by
.Dv /number
the range, that is, the number of positions at which the match will be
attempted, starting from the start offset. This is suitable for
searching larger binary expressions with variable offsets, using
.Dv \e
escapes for special characters. The offset works as for regex.
.It Dv default
This is intended to be used with the test
.Em x
(which is always true) and a message that is to be used if there are
no other matches.
.El
.Pp
Each top-level magic pattern (see below for an explanation of levels)
is classified as text or binary according to the types used. Types
.Dq regex
and
.Dq search
are classified as text tests, unless non-printable characters are used
in the pattern. All other tests are classified as binary. A top-level
pattern is considered to be a test text when all its patterns are text
patterns; otherwise, it is considered to be a binary pattern. When
matching a file, binary patterns are tried first; if no match is
found, and the file looks like text, then its encoding is determined
and the text patterns are tried.
.Pp
The numeric types may optionally be followed by
.Dv \*[Am]
and a numeric value,
to specify that the value is to be AND'ed with the
numeric value before any comparisons are done.
Prepending a
.Dv u
to the type indicates that ordered comparisons should be unsigned.
.It Dv test
The value to be compared with the value from the file.
If the type is
numeric, this value
is specified in C form; if it is a string, it is specified as a C string
with the usual escapes permitted (e.g. \en for new-line).
.Pp
Numeric values
may be preceded by a character indicating the operation to be performed.
It may be
.Dv = ,
to specify that the value from the file must equal the specified value,
.Dv \*[Lt] ,
to specify that the value from the file must be less than the specified
value,
.Dv \*[Gt] ,
to specify that the value from the file must be greater than the specified
value,
.Dv \*[Am] ,
to specify that the value from the file must have set all of the bits
that are set in the specified value,
.Dv ^ ,
to specify that the value from the file must have clear any of the bits
that are set in the specified value, or
.Dv ~ ,
the value specified after is negated before tested.
.Dv x ,
to specify that any value will match.
If the character is omitted, it is assumed to be
.Dv = .
Operators
.Dv \*[Am] ,
.Dv ^ ,
and
.Dv ~
don't work with floats and doubles.
The operator
.Dv !\&
specifies that the line matches if the test does
.Em not
succeed.
.Pp
Numeric values are specified in C form; e.g.
.Dv 13
is decimal,
.Dv 013
is octal, and
.Dv 0x13
is hexadecimal.
.Pp
For string values, the string from the
file must match the specified string.
The operators
.Dv = ,
.Dv \*[Lt]
and
.Dv \*[Gt]
(but not
.Dv \*[Am] )
can be applied to strings.
The length used for matching is that of the string argument
in the magic file.
This means that a line can match any non-empty string (usually used to
then print the string), with
.Em \*[Gt]\e0
(because all non-empty strings are greater than the empty string).
.Pp
The special test
.Em x
always evaluates to true.
.Dv message
The message to be printed if the comparison succeeds.
If the string contains a
.Xr printf 3
format specification, the value from the file (with any specified masking
performed) is printed using the message as the format string.
If the string begins with
.Dq \eb ,
the message printed is the remainder of the string with no whitespace
added before it: multiple matches are normally separated by a single
space.
.El
.Pp
An APPLE 4+4 character APPLE creator and type can be specified as:
.Bd -literal -offset indent
!:apple    CREATYPE
.Ed
.Pp
A MIME type is given on a separate line, which must be the next
non-blank or comment line after the magic line that identifies the
file type, and has the following format:
.Bd -literal -offset indent
!:mime    MIMETYPE
.Ed
.Pp
i.e. the literal string
.Dq !:mime
followed by the MIME type.
.Pp
An optional strength can be supplied on a separate line which refers to
the current magic description using the following format:
.Bd -literal -offset indent
!:strength OP VALUE
.Ed
.Pp
The operand
.Dv OP
can be:
.Dv + ,
.Dv - ,
.Dv * ,
or
.Dv /
and
.Dv VALUE
is a constant between 0 and 255.
This constant is applied using the specified operand
to the currently computed default magic strength.
.Pp
Some file formats contain additional information which is to be printed
along with the file type or need additional tests to determine the true
file type.
These additional tests are introduced by one or more
.Em \*[Gt]
characters preceding the offset.
The number of
.Em \*[Gt]
on the line indicates the level of the test; a line with no
.Em \*[Gt]
at the beginning is considered to be at level 0.
Tests are arranged in a tree-like hierarchy:
If a the test on a line at level
.Em n
succeeds, all following tests at level
.Em n+1
are performed, and the messages printed if the tests succeed, untile a line
with level
.Em n
(or less) appears.
For more complex files, one can use empty messages to get just the
"if/then" effect, in the following way:
.Bd -literal -offset indent
0      string   MZ
\*[Gt]0x18  leshort  \*[Lt]0x40   MS-DOS executable
\*[Gt]0x18  leshort  \*[Gt]0x3f   extended PC executable (e.g., MS Windows)
.Ed
.Pp
Offsets do not need to be constant, but can also be read from the file
being examined.
If the first character following the last
.Em \*[Gt]
is a
.Em (
then the string after the parenthesis is interpreted as an indirect offset.
That means that the number after the parenthesis is used as an offset in
the file.
The value at that offset is read, and is used again as an offset
in the file.
Indirect offsets are of the form:
.Em (( x [.[bislBISL]][+\-][ y ]) .
The value of
.Em x
is used as an offset in the file.
A byte, id3 length, short or long is read at that offset depending on the
.Em [bislBISLm]
type specifier.
The capitalized types interpret the number as a big endian
value, whereas the small letter versions interpret the number as a little
endian value;
the
.Em m
type interprets the number as a middle endian (PDP-11) value.
To that number the value of
.Em y
is added and the result is used as an offset in the file.
The default type if one is not specified is long.
.Pp
That way variable length structures can be examined:
.Bd -literal -offset indent
# MS Windows executables are also valid MS-DOS executables
0           string  MZ
\*[Gt]0x18       leshort \*[Lt]0x40   MZ executable (MS-DOS)
# skip the whole block below if it is not an extended executable
\*[Gt]0x18       leshort \*[Gt]0x3f
\*[Gt]\*[Gt](0x3c.l)  string  PE\e0\e0  PE executable (MS-Windows)
\*[Gt]\*[Gt](0x3c.l)  string  LX\e0\e0  LX executable (OS/2)
.Ed
.Pp
This strategy of examining has a drawback: You must make sure that
you eventually print something, or users may get empty output (like, when
there is neither PE\e0\e0 nor LE\e0\e0 in the above example)
.Pp
If this indirect offset cannot be used directly, simple calculations are
possible: appending
.Em [+-*/%\*[Am]|^]number
inside parentheses allows one to modify
the value read from the file before it is used as an offset:
.Bd -literal -offset indent
# MS Windows executables are also valid MS-DOS executables
0           string  MZ
# sometimes, the value at 0x18 is less that 0x40 but there's still an
# extended executable, simply appended to the file
\*[Gt]0x18       leshort \*[Lt]0x40
\*[Gt]\*[Gt](4.s*512) leshort 0x014c  COFF executable (MS-DOS, DJGPP)
\*[Gt]\*[Gt](4.s*512) leshort !0x014c MZ executable (MS-DOS)
.Ed
.Pp
Sometimes you do not know the exact offset as this depends on the length or
position (when indirection was used before) of preceding fields.
You can specify an offset relative to the end of the last up-level
field using
.Sq \*[Am]
as a prefix to the offset:
.Bd -literal -offset indent
0           string  MZ
\*[Gt]0x18       leshort \*[Gt]0x3f
\*[Gt]\*[Gt](0x3c.l)  string  PE\e0\e0    PE executable (MS-Windows)
# immediately following the PE signature is the CPU type
\*[Gt]\*[Gt]\*[Gt]\*[Am]0       leshort 0x14c     for Intel 80386
\*[Gt]\*[Gt]\*[Gt]\*[Am]0       leshort 0x184     for DEC Alpha
.Ed
.Pp
Indirect and relative offsets can be combined:
.Bd -literal -offset indent
0             string  MZ
\*[Gt]0x18         leshort \*[Lt]0x40
\*[Gt]\*[Gt](4.s*512)   leshort !0x014c MZ executable (MS-DOS)
# if it's not COFF, go back 512 bytes and add the offset taken
# from byte 2/3, which is yet another way of finding the start
# of the extended executable
\*[Gt]\*[Gt]\*[Gt]\*[Am](2.s-514) string  LE      LE executable (MS Windows VxD driver)
.Ed
.Pp
Or the other way around:
.Bd -literal -offset indent
0                 string  MZ
\*[Gt]0x18             leshort \*[Gt]0x3f
\*[Gt]\*[Gt](0x3c.l)        string  LE\e0\e0  LE executable (MS-Windows)
# at offset 0x80 (-4, since relative offsets start at the end
# of the up-level match) inside the LE header, we find the absolute
# offset to the code area, where we look for a specific signature
\*[Gt]\*[Gt]\*[Gt](\*[Am]0x7c.l+0x26) string  UPX     \eb, UPX compressed
.Ed
.Pp
Or even both!
.Bd -literal -offset indent
0                string  MZ
\*[Gt]0x18            leshort \*[Gt]0x3f
\*[Gt]\*[Gt](0x3c.l)       string  LE\e0\e0 LE executable (MS-Windows)
# at offset 0x58 inside the LE header, we find the relative offset
# to a data area where we look for a specific signature
\*[Gt]\*[Gt]\*[Gt]\*[Am](\*[Am]0x54.l-3)  string  UNACE  \eb, ACE self-extracting archive
.Ed
.Pp
Finally, if you have to deal with offset/length pairs in your file, even the
second value in a parenthesized expression can be taken from the file itself,
using another set of parentheses.
Note that this additional indirect offset is always relative to the
start of the main indirect offset.
.Bd -literal -offset indent
0                 string       MZ
\*[Gt]0x18             leshort      \*[Gt]0x3f
\*[Gt]\*[Gt](0x3c.l)        string       PE\e0\e0 PE executable (MS-Windows)
# search for the PE section called ".idata"...
\*[Gt]\*[Gt]\*[Gt]\*[Am]0xf4          search/0x140 .idata
# ...and go to the end of it, calculated from start+length;
# these are located 14 and 10 bytes after the section name
\*[Gt]\*[Gt]\*[Gt]\*[Gt](\*[Am]0xe.l+(-4)) string       PK\e3\e4 \eb, ZIP self-extracting archive
.Ed
.Sh SEE ALSO
.Xr file __CSECTION__
\- the command that reads this file.
.Sh BUGS
The formats
.Dv long ,
.Dv belong ,
.Dv lelong ,
.Dv melong ,
.Dv short ,
.Dv beshort ,
.Dv leshort ,
.Dv date ,
.Dv bedate ,
.Dv medate ,
.Dv ledate ,
.Dv beldate ,
.Dv leldate ,
and
.Dv meldate
are system-dependent; perhaps they should be specified as a number
of bytes (2B, 4B, etc),
since the files being recognized typically come from
a system on which the lengths are invariant.
.\"
.\" From: guy@sun.uucp (Guy Harris)
.\" Newsgroups: net.bugs.usg
.\" Subject: /etc/magic's format isn't well documented
.\" Message-ID: <2752@sun.uucp>
.\" Date: 3 Sep 85 08:19:07 GMT
.\" Organization: Sun Microsystems, Inc.
.\" Lines: 136
.\"
.\" Here's a manual page for the format accepted by the "file" made by adding
.\" the changes I posted to the S5R2 version.
.\"
.\" Modified for Ian Darwin's version of the file command.
ok335xD/3rdparty/file/file-5.04/install-sh
New file
@@ -0,0 +1,507 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2006-10-14.15
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" ""    $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
if test -z "$doit"; then
  doit_exec=exec
else
  doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
posix_glob=
posix_mkdir=
# Desired mode of installed file.
mode=0755
chmodcmd=$chmodprog
chowncmd=
chgrpcmd=
stripcmd=
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=
dst=
dir_arg=
dstarg=
no_target_directory=
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
   or: $0 [OPTION]... SRCFILES... DIRECTORY
   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
   or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
-c         (ignored)
-d         create directories instead of installing files.
-g GROUP   $chgrpprog installed files to GROUP.
-m MODE    $chmodprog installed files to MODE.
-o USER    $chownprog installed files to USER.
-s         $stripprog installed files.
-t DIRECTORY  install into DIRECTORY.
-T         report an error if DSTFILE is a directory.
--help     display this help and exit.
--version  display version info and exit.
Environment variables override the default commands:
  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
"
while test $# -ne 0; do
  case $1 in
    -c) shift
        continue;;
    -d) dir_arg=true
        shift
        continue;;
    -g) chgrpcmd="$chgrpprog $2"
        shift
        shift
        continue;;
    --help) echo "$usage"; exit $?;;
    -m) mode=$2
        shift
        shift
    case $mode in
      *' '* | *'    '* | *'
'*      | *'*'* | *'?'* | *'['*)
        echo "$0: invalid mode: $mode" >&2
        exit 1;;
    esac
        continue;;
    -o) chowncmd="$chownprog $2"
        shift
        shift
        continue;;
    -s) stripcmd=$stripprog
        shift
        continue;;
    -t) dstarg=$2
    shift
    shift
    continue;;
    -T) no_target_directory=true
    shift
    continue;;
    --version) echo "$0 $scriptversion"; exit $?;;
    --)    shift
    break;;
    -*)    echo "$0: invalid option: $1" >&2
    exit 1;;
    *)  break;;
  esac
done
if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  # When -d is used, all remaining arguments are directories to create.
  # When -t is used, the destination is already specified.
  # Otherwise, the last argument is the destination.  Remove it from $@.
  for arg
  do
    if test -n "$dstarg"; then
      # $@ is not empty: it contains at least $arg.
      set fnord "$@" "$dstarg"
      shift # fnord
    fi
    shift # arg
    dstarg=$arg
  done
fi
if test $# -eq 0; then
  if test -z "$dir_arg"; then
    echo "$0: no input file specified." >&2
    exit 1
  fi
  # It's OK to call `install-sh -d' without argument.
  # This can happen when creating conditional directories.
  exit 0
fi
if test -z "$dir_arg"; then
  trap '(exit $?); exit' 1 2 13 15
  # Set umask so as not to create temps with too-generous modes.
  # However, 'strip' requires both read and write access to temps.
  case $mode in
    # Optimize common cases.
    *644) cp_umask=133;;
    *755) cp_umask=22;;
    *[0-7])
      if test -z "$stripcmd"; then
    u_plus_rw=
      else
    u_plus_rw='% 200'
      fi
      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
    *)
      if test -z "$stripcmd"; then
    u_plus_rw=
      else
    u_plus_rw=,u+rw
      fi
      cp_umask=$mode$u_plus_rw;;
  esac
fi
for src
do
  # Protect names starting with `-'.
  case $src in
    -*) src=./$src ;;
  esac
  if test -n "$dir_arg"; then
    dst=$src
    dstdir=$dst
    test -d "$dstdir"
    dstdir_status=$?
  else
    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
    # might cause directories to be created, which would be especially bad
    # if $src (and thus $dsttmp) contains '*'.
    if test ! -f "$src" && test ! -d "$src"; then
      echo "$0: $src does not exist." >&2
      exit 1
    fi
    if test -z "$dstarg"; then
      echo "$0: no destination specified." >&2
      exit 1
    fi
    dst=$dstarg
    # Protect names starting with `-'.
    case $dst in
      -*) dst=./$dst ;;
    esac
    # If destination is a directory, append the input filename; won't work
    # if double slashes aren't ignored.
    if test -d "$dst"; then
      if test -n "$no_target_directory"; then
    echo "$0: $dstarg: Is a directory" >&2
    exit 1
      fi
      dstdir=$dst
      dst=$dstdir/`basename "$src"`
      dstdir_status=0
    else
      # Prefer dirname, but fall back on a substitute if dirname fails.
      dstdir=`
    (dirname "$dst") 2>/dev/null ||
    expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         X"$dst" : 'X\(//\)[^/]' \| \
         X"$dst" : 'X\(//\)$' \| \
         X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
    echo X"$dst" |
        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
           s//\1/
           q
         }
         /^X\(\/\/\)[^/].*/{
           s//\1/
           q
         }
         /^X\(\/\/\)$/{
           s//\1/
           q
         }
         /^X\(\/\).*/{
           s//\1/
           q
         }
         s/.*/./; q'
      `
      test -d "$dstdir"
      dstdir_status=$?
    fi
  fi
  obsolete_mkdir_used=false
  if test $dstdir_status != 0; then
    case $posix_mkdir in
      '')
    # Create intermediate dirs using mode 755 as modified by the umask.
    # This is like FreeBSD 'install' as of 1997-10-28.
    umask=`umask`
    case $stripcmd.$umask in
      # Optimize common cases.
      *[2367][2367]) mkdir_umask=$umask;;
      .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
      *[0-7])
        mkdir_umask=`expr $umask + 22 \
          - $umask % 100 % 40 + $umask % 20 \
          - $umask % 10 % 4 + $umask % 2
        `;;
      *) mkdir_umask=$umask,go-w;;
    esac
    # With -d, create the new directory with the user-specified mode.
    # Otherwise, rely on $mkdir_umask.
    if test -n "$dir_arg"; then
      mkdir_mode=-m$mode
    else
      mkdir_mode=
    fi
    posix_mkdir=false
    case $umask in
      *[123567][0-7][0-7])
        # POSIX mkdir -p sets u+wx bits regardless of umask, which
        # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
        ;;
      *)
        tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
        trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
        if (umask $mkdir_umask &&
        exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
        then
          if test -z "$dir_arg" || {
           # Check for POSIX incompatibilities with -m.
           # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
           # other-writeable bit of parent directory when it shouldn't.
           # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
           ls_ld_tmpdir=`ls -ld "$tmpdir"`
           case $ls_ld_tmpdir in
             d????-?r-*) different_mode=700;;
             d????-?--*) different_mode=755;;
             *) false;;
           esac &&
           $mkdirprog -m$different_mode -p -- "$tmpdir" && {
             ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
             test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
           }
         }
          then posix_mkdir=:
          fi
          rmdir "$tmpdir/d" "$tmpdir"
        else
          # Remove any dirs left behind by ancient mkdir implementations.
          rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
        fi
        trap '' 0;;
    esac;;
    esac
    if
      $posix_mkdir && (
    umask $mkdir_umask &&
    $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
      )
    then :
    else
      # The umask is ridiculous, or mkdir does not conform to POSIX,
      # or it failed possibly due to a race condition.  Create the
      # directory the slow way, step by step, checking for races as we go.
      case $dstdir in
    /*) prefix=/ ;;
    -*) prefix=./ ;;
    *)  prefix= ;;
      esac
      case $posix_glob in
        '')
      if (set -f) 2>/dev/null; then
        posix_glob=true
      else
        posix_glob=false
      fi ;;
      esac
      oIFS=$IFS
      IFS=/
      $posix_glob && set -f
      set fnord $dstdir
      shift
      $posix_glob && set +f
      IFS=$oIFS
      prefixes=
      for d
      do
    test -z "$d" && continue
    prefix=$prefix$d
    if test -d "$prefix"; then
      prefixes=
    else
      if $posix_mkdir; then
        (umask=$mkdir_umask &&
         $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
        # Don't fail if two instances are running concurrently.
        test -d "$prefix" || exit 1
      else
        case $prefix in
          *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
          *) qprefix=$prefix;;
        esac
        prefixes="$prefixes '$qprefix'"
      fi
    fi
    prefix=$prefix/
      done
      if test -n "$prefixes"; then
    # Don't fail if two instances are running concurrently.
    (umask $mkdir_umask &&
     eval "\$doit_exec \$mkdirprog $prefixes") ||
      test -d "$dstdir" || exit 1
    obsolete_mkdir_used=true
      fi
    fi
  fi
  if test -n "$dir_arg"; then
    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  else
    # Make a couple of temp file names in the proper directory.
    dsttmp=$dstdir/_inst.$$_
    rmtmp=$dstdir/_rm.$$_
    # Trap to clean up those temp files at exit.
    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
    # Copy the file name to the temp name.
    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
    # and set any options; do chmod last to preserve setuid bits.
    #
    # If any of these fail, we abort the whole thing.  If we want to
    # ignore errors from any of these, just make sure not to ignore
    # errors from the above "$doit $cpprog $src $dsttmp" command.
    #
    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
      && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
    # Now rename the file to the real destination.
    { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
      || {
       # The rename failed, perhaps because mv can't rename something else
       # to itself, or perhaps because mv is so ancient that it does not
       # support -f.
       # Now remove or move aside any old file at destination location.
       # We try this two ways since rm can't unlink itself on some
       # systems and the destination file might be busy for other
       # reasons.  In this case, the final cleanup might fail but the new
       # file should still install successfully.
       {
         if test -f "$dst"; then
           $doit $rmcmd -f "$dst" 2>/dev/null \
           || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
             && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
           || {
         echo "$0: cannot unlink or rename $dst" >&2
         (exit 1); exit 1
           }
         else
           :
         fi
       } &&
       # Now rename the file to the real destination.
       $doit $mvcmd "$dsttmp" "$dst"
     }
    } || exit 1
    trap '' 0
  fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
ok335xD/3rdparty/file/file-5.04/libtool
New file
Diff too large
ok335xD/3rdparty/file/file-5.04/ltmain.sh
New file
Diff too large
ok335xD/3rdparty/file/file-5.04/magic/Header
New file
@@ -0,0 +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.
ok335xD/3rdparty/file/file-5.04/magic/Localstuff
New file
@@ -0,0 +1,7 @@
#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
#
# $File: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $
# Add any locally observed files here.  Remember:
# text if readable, executable if runnable binary, data if unreadable.
ok335xD/3rdparty/file/file-5.04/magic/Magdir/acorn
New file
@@ -0,0 +1,69 @@
#------------------------------------------------------------------------------
# $File: acorn,v 1.5 2009/09/19 16:28:07 christos Exp $
# acorn:  file(1) magic for files found on Acorn systems
#
# RISC OS Chunk File Format
# From RISC OS Programmer's Reference Manual, Appendix D
# We guess the file type from the type of the first chunk.
0    lelong        0xc3cbc6c5    RISC OS Chunk data
>12    string        OBJ_        \b, AOF object
>12    string        LIB_        \b, ALF library
# RISC OS AIF, contains "SWI OS_Exit" at offset 16.
16    lelong        0xef000011    RISC OS AIF executable
# RISC OS Draw files
# From RISC OS Programmer's Reference Manual, Appendix E
0    string         Draw        RISC OS Draw file data
# RISC OS new format font files
# From RISC OS Programmer's Reference Manual, Appendix E
0    string        FONT\0        RISC OS outline font data,
>5    byte        x        version %d
0    string        FONT\1        RISC OS 1bpp font data,
>5    byte        x        version %d
0    string        FONT\4        RISC OS 4bpp font data
>5    byte        x        version %d
# RISC OS Music files
# From RISC OS Programmer's Reference Manual, Appendix E
0    string        Maestro\r    RISC OS music file
>8    byte        x        version %d
>8    byte        x        type %d
# Digital Symphony data files
# From: Bernard Jungen (bern8817@euphonynet.be)
0        string    \x02\x01\x13\x13\x13\x01\x0d\x10    Digital Symphony sound sample (RISC OS),
>8        byte    x    version %d,
>9        pstring    x    named "%s",
>(9.b+19)    byte    =0    8-bit logarithmic
>(9.b+19)    byte    =1    LZW-compressed linear
>(9.b+19)    byte    =2    8-bit linear signed
>(9.b+19)    byte    =3    16-bit linear signed
>(9.b+19)    byte    =4    SigmaDelta-compressed linear
>(9.b+19)    byte    =5    SigmaDelta-compressed logarithmic
>(9.b+19)    byte    >5    unknown format
0    string    \x02\x01\x13\x13\x14\x12\x01\x0b    Digital Symphony song (RISC OS),
>8    byte    x    version %d,
>9    byte    =1    1 voice,
>9    byte    !1    %d voices,
>10    leshort    =1    1 track,
>10    leshort    !1    %d tracks,
>12    leshort    =1    1 pattern
>12    leshort    !1    %d patterns
0    string    \x02\x01\x13\x13\x10\x14\x12\x0e
>9    byte    =0    Digital Symphony sequence (RISC OS),
>>8    byte    x    version %d,
>>10    byte    =1    1 line,
>>10    byte    !1    %d lines,
>>11    leshort    =1    1 position
>>11    leshort    !1    %d positions
>9    byte    =1    Digital Symphony pattern data (RISC OS),
>>8    byte    x    version %d,
>>10    leshort    =1    1 pattern
>>10    leshort    !1    %d patterns
ok335xD/3rdparty/file/file-5.04/magic/Magdir/adi
New file
@@ -0,0 +1,13 @@
#------------------------------------------------------------------------------
# $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>
#
0    leshort        0x521c        COFF DSP21k
>18    lelong        &02        executable,
>18    lelong        ^02
>>18    lelong        &01        static object,
>>18    lelong        ^01        relocatable object,
>18    lelong        &010        stripped
>18    lelong        ^010        not stripped
ok335xD/3rdparty/file/file-5.04/magic/Magdir/adventure
New file
@@ -0,0 +1,86 @@
#------------------------------------------------------------------------------
# $File: adventure,v 1.10 2009/09/19 16:28:07 christos Exp $
# adventure: file(1) magic for Adventure game files
#
# from Allen Garvin <earendil@faeryland.tamu-commerce.edu>
# Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998
# Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002
#
# ALAN
# I assume there are other, lower versions, but these are the only ones I
# saw in the archive.
0    beshort    0x0206    ALAN game data
>2    byte    <10    version 2.6%d
# Infocom (see z-machine)
#------------------------------------------------------------------------------
# Z-machine:  file(1) magic for Z-machine binaries.
#
# This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which
# appears to be a version-0 Z-machine binary.
#
# The (false match) message is to correct that behavior.  Perhaps it is
# not 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)
#------------------------------------------------------------------------------
# Glulx:  file(1) magic for Glulx binaries.
#
# I haven't checked for false matches yet.
#
0    string            Glul    Glulx game data
>4    beshort            x    (Version %d
>>6    byte            x    \b.%d
>>8    byte            x    \b.%d)
>36    string            Info    Compiled by Inform
# For Quetzal and blorb magic see iff
# TADS (Text Adventure Development System)
#  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).
#  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
>9    belong     0x0A0D1A00
>>13    string    >\0        %s game data
#  Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.
0    string    TADS2\ rsc    TADS
>9    belong  !0x0A0D1A00    resource data, CORRUPTED
>9    belong     0x0A0D1A00
>>13    string    >\0        %s resource data
#  Some saved game files start with "TADS2 save/g\n\r\032\0", a little-endian
#  2-byte length N, the N-char name of the game file *without* a NUL (darn!),
# "TADS2 save\n\r\032\0" and the interpreter version.
0    string    TADS2\ save/g    TADS
>12    belong    !0x0A0D1A00    saved game data, CORRUPTED
>12    belong     0x0A0D1A00
>>(16.s+32) string >\0        %s saved game data
#  Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter
#  version.
0    string    TADS2\ save    TADS
>10    belong    !0x0A0D1A00    saved game data, CORRUPTED
>10    belong     0x0A0D1A00
>>14    string    >\0        %s saved game data
# 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)
# 0x9445376139FA (V 3.90)
# 0x9445366139FA (V 3.80)
# this is from source (http://www.adrift.org.uk/) and I have some taf
# files, and checked them.
#0    belong    0x3C423FC9
#>4    belong    0x6A87C2CF    Adrift game file
#!:mime    application/x-adrift
ok335xD/3rdparty/file/file-5.04/magic/Magdir/allegro
New file
@@ -0,0 +1,9 @@
#------------------------------------------------------------------------------
# $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>
#
0 belong 0x736C6821   Allegro datafile (packed)
0 belong 0x736C682E   Allegro datafile (not packed/autodetect)
0 belong 0x736C682B   Allegro datafile (appended exe data)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/alliant
New file
@@ -0,0 +1,18 @@
#------------------------------------------------------------------------------
# $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
# instruction set, the "short" should probably become "beshort" and the
# "long" should probably become "belong".
# If it's the i860-based one, they should probably become either the
# big-endian or little-endian versions, depending on the mode they ran
# the 860 in....
#
0    short        0420        0420 Alliant virtual executable
>2    short        &0x0020        common library
>16    long        >0        not stripped
0    short        0421        0421 Alliant compact executable
>2    short        &0x0020        common library
>16    long        >0        not stripped
ok335xD/3rdparty/file/file-5.04/magic/Magdir/alpha
New file
@@ -0,0 +1,32 @@
#------------------------------------------------------------------------------
# $File: alpha,v 1.7 2009/09/19 16:28:07 christos Exp $
# 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'
ok335xD/3rdparty/file/file-5.04/magic/Magdir/amanda
New file
@@ -0,0 +1,12 @@
#------------------------------------------------------------------------------
# $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
>8    string    TAPESTART\ DATE        tape header file,
>>23    string    X
>>>25    string    >\             Unused %s
>>23    string    >\             DATE %s
>8    string    FILE\             dump file,
>>13    string    >\             DATE %s
ok335xD/3rdparty/file/file-5.04/magic/Magdir/amigaos
New file
@@ -0,0 +1,65 @@
#------------------------------------------------------------------------------
# $File: amigaos,v 1.14 2009/09/19 16:28:07 christos Exp $
# amigaos:  file(1) magic for AmigaOS binary formats:
#
# From ignatios@cs.uni-bonn.de (Ignatios Souvatzis)
#
0    belong        0x000003fa    AmigaOS shared library
0    belong        0x000003f3    AmigaOS loadseg()ble executable/binary
0    belong        0x000003e7    AmigaOS object/library data
#
0    beshort        0xe310        Amiga Workbench
>2    beshort        1
>>48    byte        1        disk icon
>>48    byte        2        drawer icon
>>48    byte        3        tool icon
>>48    byte        4        project icon
>>48    byte        5        garbage icon
>>48    byte        6        device icon
>>48    byte        7        kickstart icon
>>48    byte        8        workbench application icon
>2    beshort        >1        icon, vers. %d
#
# various sound formats from the Amiga
# G=F6tz Waschk <waschk@informatik.uni-rostock.de>
#
0    string        FC14        Future Composer 1.4 Module sound file
0    string        SMOD        Future Composer 1.3 Module sound file
0    string        AON4artofnoise    Art Of Noise Module sound file
1    string        MUGICIAN/SOFTEYES Mugician Module sound file
58    string        SIDMON\ II\ -\ THE    Sidmon 2.0 Module sound file
0    string        Synth4.0    Synthesis Module sound file
0    string        ARP.        The Holy Noise Module sound file
0    string        BeEp\0        JamCracker Module sound file
0    string        COSO\0        Hippel-COSO Module sound file
# Too simple (short, pure ASCII, deep), MPi
#26    string        V.3        Brian Postma's Soundmon Module sound file v3
#26    string        BPSM        Brian Postma's Soundmon Module sound file v3
#26    string        V.2        Brian Postma's Soundmon Module sound file v2
# The following are from: "Stefan A. Haubenthal" <polluks@web.de>
0    beshort        0x0f00        AmigaOS bitmap font
0    beshort        0x0f03        AmigaOS outline font
0    belong        0x80001001    AmigaOS outline tag
0    string        ##\ version    catalog translation
0    string        EMOD\0        Amiga E module
8    string        ECXM\0        ECX module
0    string/c    @database    AmigaGuide file
# Amiga disk types
#
0    string        RDSK        Rigid Disk Block
>160    string        x        on %.24s
0    string        DOS\0        Amiga DOS disk
0    string        DOS\1        Amiga FFS disk
0    string        DOS\2        Amiga Inter DOS disk
0    string        DOS\3        Amiga Inter FFS disk
0    string        DOS\4        Amiga Fastdir DOS disk
0    string        DOS\5        Amiga Fastdir FFS disk
0    string        KICK        Kickstart disk
# From: Alex Beregszaszi <alex@fsn.hu>
0    string        LZX        LZX compressed archive (Amiga)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/animation
New file
@@ -0,0 +1,821 @@
#------------------------------------------------------------------------------
# $File: animation,v 1.39 2009/09/27 19:02:12 christos Exp $
# animation:  file(1) magic for animation/movie formats
#
# animation formats
# MPEG, FLI, DL originally from vax@ccwf.cc.utexas.edu (VaX#n8)
# FLC, SGI, Apple originally from Daniel Quinlan (quinlan@yggdrasil.com)
# SGI and Apple formats
0    string        MOVI        Silicon Graphics movie file
!:mime    video/x-sgi-movie
4       string          moov            Apple QuickTime
!:mime    video/quicktime
>12     string          mvhd            \b movie (fast start)
>12     string          mdra            \b URL
>12     string          cmov            \b movie (fast start, compressed header)
>12     string          rmra            \b multiple URLs
4       string          mdat            Apple QuickTime movie (unoptimized)
!:mime    video/quicktime
#4       string          wide            Apple QuickTime movie (unoptimized)
#!:mime    video/quicktime
#4       string          skip            Apple QuickTime movie (modified)
#!:mime    video/quicktime
#4       string          free            Apple QuickTime movie (modified)
#!:mime    video/quicktime
4       string          idsc            Apple QuickTime image (fast start)
!:mime    image/x-quicktime
#4       string          idat            Apple QuickTime image (unoptimized)
#!:mime    image/x-quicktime
4       string          pckg            Apple QuickTime compressed archive
!:mime    application/x-quicktime-player
4    string/W    jP        JPEG 2000 image
!:mime    image/jp2
4    string        ftyp        ISO Media
>8    string        isom        \b, MPEG v4 system, version 1
!:mime    video/mp4
>8    string        iso2        \b, MPEG v4 system, part 12 revision
>8    string        mp41        \b, MPEG v4 system, version 1
!:mime    video/mp4
>8    string        mp42        \b, MPEG v4 system, version 2
!: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/W    jp2        \b, JPEG 2000
!:mime    image/jp2
>8    string        3gp        \b, MPEG v4 system, 3GPP
!:mime    video/3gpp
>>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)
>8    string        mmp4        \b, MPEG v4 system, 3GPP Mobile
!:mime    video/mp4
>8    string        avc1        \b, MPEG v4 system, 3GPP JVT AVC
!:mime    video/3gpp
>8    string/W    M4A        \b, MPEG v4 system, iTunes AAC-LC
!:mime    audio/mp4
>8    string/W    M4V        \b, MPEG v4 system, iTunes AVC-LC
!:mime    video/mp4
>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
# Scans for all common MPEG header start codes
0     belong            0x00000001
>4     byte&0x1F        0x07       JVT NAL sequence, H.264 video
>>5      byte               66             \b, baseline
>>5      byte               77             \b, main
>>5      byte               88             \b, extended
>>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)
>3       byte&0x1F          0x07           MPEG sequence, H.264 video
>>4      byte               66             \b, baseline
>>4      byte               77             \b, main
>>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
>>>>10   byte&0xF0          32             \b, still texture
>>>>10   byte&0xF0          48             \b, mesh
>>>>10   byte&0xF0          64             \b, face
>>>9     byte&0xF8          8              \b, video
>>>9     byte&0xF8          16             \b, still texture
>>>9     byte&0xF8          24             \b, mesh
>>>9     byte&0xF8          32             \b, face
>>4      byte               1              \b, simple @ L1
>>4      byte               2              \b, simple @ L2
>>4      byte               3              \b, simple @ L3
>>4      byte               4              \b, simple @ L0
>>4      byte               17             \b, simple scalable @ L1
>>4      byte               18             \b, simple scalable @ L2
>>4      byte               33             \b, core @ L1
>>4      byte               34             \b, core @ L2
>>4      byte               50             \b, main @ L2
>>4      byte               51             \b, main @ L3
>>4      byte               53             \b, main @ L4
>>4      byte               66             \b, n-bit @ L2
>>4      byte               81             \b, scalable texture @ L1
>>4      byte               97             \b, simple face animation @ L1
>>4      byte               98             \b, simple face animation @ L2
>>4      byte               99             \b, simple face basic animation @ L1
>>4      byte               100            \b, simple face basic animation @ L2
>>4      byte               113            \b, basic animation text @ L1
>>4      byte               114            \b, basic animation text @ L2
>>4      byte               129            \b, hybrid @ L1
>>4      byte               130            \b, hybrid @ L2
>>4      byte               145            \b, advanced RT simple @ L!
>>4      byte               146            \b, advanced RT simple @ L2
>>4      byte               147            \b, advanced RT simple @ L3
>>4      byte               148            \b, advanced RT simple @ L4
>>4      byte               161            \b, core scalable @ L1
>>4      byte               162            \b, core scalable @ L2
>>4      byte               163            \b, core scalable @ L3
>>4      byte               177            \b, advanced coding efficiency @ L1
>>4      byte               178            \b, advanced coding efficiency @ L2
>>4      byte               179            \b, advanced coding efficiency @ L3
>>4      byte               180            \b, advanced coding efficiency @ L4
>>4      byte               193            \b, advanced core @ L1
>>4      byte               194            \b, advanced core @ L2
>>4      byte               209            \b, advanced scalable texture @ L1
>>4      byte               210            \b, advanced scalable texture @ L2
>>4      byte               211            \b, advanced scalable texture @ L3
>>4      byte               225            \b, simple studio @ L1
>>4      byte               226            \b, simple studio @ L2
>>4      byte               227            \b, simple studio @ L3
>>4      byte               228            \b, simple studio @ L4
>>4      byte               229            \b, core studio @ L1
>>4      byte               230            \b, core studio @ L2
>>4      byte               231            \b, core studio @ L3
>>4      byte               232            \b, core studio @ L4
>>4      byte               240            \b, advanced simple @ L0
>>4      byte               241            \b, advanced simple @ L1
>>4      byte               242            \b, advanced simple @ L2
>>4      byte               243            \b, advanced simple @ L3
>>4      byte               244            \b, advanced simple @ L4
>>4      byte               245            \b, advanced simple @ L5
>>4      byte               247            \b, advanced simple @ L3b
>>4      byte               248            \b, FGS @ L0
>>4      byte               249            \b, FGS @ L1
>>4      byte               250            \b, FGS @ L2
>>4      byte               251            \b, FGS @ L3
>>4      byte               252            \b, FGS @ L4
>>4      byte               253            \b, FGS @ L5
>3       byte               0xB5           MPEG sequence, v4
>>4      byte               &0x80
>>>5     byte&0xF0          16             \b, video (missing profile header)
>>>5     byte&0xF0          32             \b, still texture (missing profile header)
>>>5     byte&0xF0          48             \b, mesh (missing profile header)
>>>5     byte&0xF0          64             \b, face (missing profile header)
>>4      byte&0xF8          8              \b, video (missing profile header)
>>4      byte&0xF8          16             \b, still texture (missing profile header)
>>4      byte&0xF8          24             \b, mesh (missing profile header)
>>4      byte&0xF8          32             \b, face (missing profile header)
>3       byte               0xB3           MPEG sequence
>>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,
>>>16    byte&0x0F          1              \b HP
>>>16    byte&0x0F          2              \b Spt
>>>16    byte&0x0F          3              \b SNR
>>>16    byte&0x0F          4              \b MP
>>>16    byte&0x0F          5              \b SP
>>>17    byte&0xF0          64             \b@HL
>>>17    byte&0xF0          96             \b@H-14
>>>17    byte&0xF0          128            \b@ML
>>>17    byte&0xF0          160            \b@LL
>>>17    byte               &0x08          \b progressive
>>>17    byte               ^0x08          \b interlaced
>>>17    byte&0x06          2              \b Y'CbCr 4:2:0 video
>>>17    byte&0x06          4              \b Y'CbCr 4:2:2 video
>>>17    byte&0x06          6              \b Y'CbCr 4:4:4 video
>>11     byte               &0x02
>>>75    byte               &0x01
>>>>140  belong             0x000001B8     \b, v1, progressive Y'CbCr 4:2:0 video
>>>>140  belong             0x000001B2     \b, v1, progressive Y'CbCr 4:2:0 video
>>>>140  belong             0x000001B5     \b, v2,
>>>>>144 byte&0x0F          1              \b HP
>>>>>144 byte&0x0F          2              \b Spt
>>>>>144 byte&0x0F          3              \b SNR
>>>>>144 byte&0x0F          4              \b MP
>>>>>144 byte&0x0F          5              \b SP
>>>>>145 byte&0xF0          64             \b@HL
>>>>>145 byte&0xF0          96             \b@H-14
>>>>>145 byte&0xF0          128            \b@ML
>>>>>145 byte&0xF0          160            \b@LL
>>>>>145 byte               &0x08          \b progressive
>>>>>145 byte               ^0x08          \b interlaced
>>>>>145 byte&0x06          2              \b Y'CbCr 4:2:0 video
>>>>>145 byte&0x06          4              \b Y'CbCr 4:2:2 video
>>>>>145 byte&0x06          6              \b Y'CbCr 4:4:4 video
>>76    belong             0x000001B8     \b, v1, progressive Y'CbCr 4:2:0 video
>>76    belong             0x000001B2     \b, v1, progressive Y'CbCr 4:2:0 video
>>76    belong             0x000001B5     \b, v2,
>>>80   byte&0x0F          1              \b HP
>>>80   byte&0x0F          2              \b Spt
>>>80   byte&0x0F          3              \b SNR
>>>80   byte&0x0F          4              \b MP
>>>80   byte&0x0F          5              \b SP
>>>81   byte&0xF0          64             \b@HL
>>>81   byte&0xF0          96             \b@H-14
>>>81   byte&0xF0          128            \b@ML
>>>81   byte&0xF0          160            \b@LL
>>>81   byte               &0x08          \b progressive
>>>81   byte               ^0x08          \b interlaced
>>>81   byte&0x06          2              \b Y'CbCr 4:2:0 video
>>>81   byte&0x06          4              \b Y'CbCr 4:2:2 video
>>>81   byte&0x06          6              \b Y'CbCr 4:4:4 video
>>4      belong&0xFFFFFF00  0x78043800     \b, HD-TV 1920P
>>>7     byte&0xF0          0x10           \b, 16:9
>>4      belong&0xFFFFFF00  0x50002D00     \b, SD-TV 1280I
>>>7     byte&0xF0          0x10           \b, 16:9
>>4      belong&0xFFFFFF00  0x30024000     \b, PAL Capture
>>>7     byte&0xF0          0x10           \b, 4:3
>>4      beshort&0xFFF0     0x2C00         \b, 4CIF
>>>5     beshort&0x0FFF     0x01E0         \b NTSC
>>>5     beshort&0x0FFF     0x0240         \b PAL
>>>7     byte&0xF0          0x20           \b, 4:3
>>>7     byte&0xF0          0x30           \b, 16:9
>>>7     byte&0xF0          0x40           \b, 11:5
>>>7     byte&0xF0          0x80           \b, PAL 4:3
>>>7     byte&0xF0          0xC0           \b, NTSC 4:3
>>4      belong&0xFFFFFF00  0x2801E000     \b, LD-TV 640P
>>>7     byte&0xF0          0x10           \b, 4:3
>>4      belong&0xFFFFFF00  0x1400F000     \b, 320x240
>>>7     byte&0xF0          0x10           \b, 4:3
>>4      belong&0xFFFFFF00  0x0F00A000     \b, 240x160
>>>7     byte&0xF0          0x10           \b, 4:3
>>4      belong&0xFFFFFF00  0x0A007800     \b, 160x120
>>>7     byte&0xF0          0x10           \b, 4:3
>>4      beshort&0xFFF0     0x1600         \b, CIF
>>>5     beshort&0x0FFF     0x00F0         \b NTSC
>>>5     beshort&0x0FFF     0x0120         \b PAL
>>>7     byte&0xF0          0x20           \b, 4:3
>>>7     byte&0xF0          0x30           \b, 16:9
>>>7     byte&0xF0          0x40           \b, 11:5
>>>7     byte&0xF0          0x80           \b, PAL 4:3
>>>7     byte&0xF0          0xC0           \b, NTSC 4:3
>>>5     beshort&0x0FFF     0x0240         \b PAL 625
>>>>7    byte&0xF0          0x20           \b, 4:3
>>>>7    byte&0xF0          0x30           \b, 16:9
>>>>7    byte&0xF0          0x40           \b, 11:5
>>4      beshort&0xFFF0     0x2D00         \b, CCIR/ITU
>>>5     beshort&0x0FFF     0x01E0         \b NTSC 525
>>>5     beshort&0x0FFF     0x0240         \b PAL 625
>>>7     byte&0xF0          0x20           \b, 4:3
>>>7     byte&0xF0          0x30           \b, 16:9
>>>7     byte&0xF0          0x40           \b, 11:5
>>4      beshort&0xFFF0     0x1E00         \b, SVCD
>>>5     beshort&0x0FFF     0x01E0         \b NTSC 525
>>>5     beshort&0x0FFF     0x0240         \b PAL 625
>>>7     byte&0xF0          0x20           \b, 4:3
>>>7     byte&0xF0          0x30           \b, 16:9
>>>7     byte&0xF0          0x40           \b, 11:5
>>7      byte&0x0F          1              \b, 23.976 fps
>>7      byte&0x0F          2              \b, 24 fps
>>7      byte&0x0F          3              \b, 25 fps
>>7      byte&0x0F          4              \b, 29.97 fps
>>7      byte&0x0F          5              \b, 30 fps
>>7      byte&0x0F          6              \b, 50 fps
>>7      byte&0x0F          7              \b, 59.94 fps
>>7      byte&0x0F          8              \b, 60 fps
>>11     byte               &0x04          \b, Constrained
# MPEG ADTS Audio (*.mpx/mxa/aac)
# from dreesen@math.fu-berlin.de
# modified to fully support MPEG ADTS
# MP3, M1A
# modified by Joerg Jenderek
# GRR the original test are too common for many DOS files
# so don't accept as MP3 until we've tested the rate
0       beshort&0xFFFE  0xFFFA
# rates
>2      byte&0xF0       0x10           MPEG ADTS, layer III, v1,  32 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x20           MPEG ADTS, layer III, v1,  40 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x30           MPEG ADTS, layer III, v1,  48 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x40           MPEG ADTS, layer III, v1,  56 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x50           MPEG ADTS, layer III, v1,  64 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x60           MPEG ADTS, layer III, v1,  80 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x70           MPEG ADTS, layer III, v1,  96 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x80           MPEG ADTS, layer III, v1, 112 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0x90           MPEG ADTS, layer III, v1, 128 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0xA0           MPEG ADTS, layer III, v1, 160 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0xB0           MPEG ADTS, layer III, v1, 192 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0xC0           MPEG ADTS, layer III, v1, 224 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0xD0           MPEG ADTS, layer III, v1, 256 kbps
!:mime    audio/mpeg
>2      byte&0xF0       0xE0           MPEG ADTS, layer III, v1, 320 kbps
!:mime    audio/mpeg
# timing
>2      byte&0x0C       0x00           \b, 44.1 kHz
>2      byte&0x0C       0x04           \b, 48 kHz
>2      byte&0x0C       0x08           \b, 32 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# MP2, M1A
0       beshort&0xFFFE  0xFFFC         MPEG ADTS, layer II, v1
!:mime    audio/mpeg
# rates
>2      byte&0xF0       0x10           \b,  32 kbps
>2      byte&0xF0       0x20           \b,  48 kbps
>2      byte&0xF0       0x30           \b,  56 kbps
>2      byte&0xF0       0x40           \b,  64 kbps
>2      byte&0xF0       0x50           \b,  80 kbps
>2      byte&0xF0       0x60           \b,  96 kbps
>2      byte&0xF0       0x70           \b, 112 kbps
>2      byte&0xF0       0x80           \b, 128 kbps
>2      byte&0xF0       0x90           \b, 160 kbps
>2      byte&0xF0       0xA0           \b, 192 kbps
>2      byte&0xF0       0xB0           \b, 224 kbps
>2      byte&0xF0       0xC0           \b, 256 kbps
>2      byte&0xF0       0xD0           \b, 320 kbps
>2      byte&0xF0       0xE0           \b, 384 kbps
# timing
>2      byte&0x0C       0x00           \b, 44.1 kHz
>2      byte&0x0C       0x04           \b, 48 kHz
>2      byte&0x0C       0x08           \b, 32 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# MPA, M1A
# updated by Joerg Jenderek
# GRR the original test are too common for many DOS files, so test 32 <= kbits <= 448
# GRR this test is still too general as it catches a BOM of UTF-16 files (0xFFFE)
# FIXME: Almost all little endian UTF-16 text with BOM are clobbered by these entries
#0    beshort&0xFFFE        0xFFFE
#>2    ubyte&0xF0    >0x0F
#>>2    ubyte&0xF0    <0xE1        MPEG ADTS, layer I, v1
## rate
#>>>2      byte&0xF0       0x10           \b,  32 kbps
#>>>2      byte&0xF0       0x20           \b,  64 kbps
#>>>2      byte&0xF0       0x30           \b,  96 kbps
#>>>2      byte&0xF0       0x40           \b, 128 kbps
#>>>2      byte&0xF0       0x50           \b, 160 kbps
#>>>2      byte&0xF0       0x60           \b, 192 kbps
#>>>2      byte&0xF0       0x70           \b, 224 kbps
#>>>2      byte&0xF0       0x80           \b, 256 kbps
#>>>2      byte&0xF0       0x90           \b, 288 kbps
#>>>2      byte&0xF0       0xA0           \b, 320 kbps
#>>>2      byte&0xF0       0xB0           \b, 352 kbps
#>>>2      byte&0xF0       0xC0           \b, 384 kbps
#>>>2      byte&0xF0       0xD0           \b, 416 kbps
#>>>2      byte&0xF0       0xE0           \b, 448 kbps
## timing
#>>>2      byte&0x0C       0x00           \b, 44.1 kHz
#>>>2      byte&0x0C       0x04           \b, 48 kHz
#>>>2      byte&0x0C       0x08           \b, 32 kHz
## channels/options
#>>>3      byte&0xC0       0x00           \b, Stereo
#>>>3      byte&0xC0       0x40           \b, JntStereo
#>>>3      byte&0xC0       0x80           \b, 2x Monaural
#>>>3      byte&0xC0       0xC0           \b, Monaural
##>1     byte            ^0x01          \b, Data Verify
##>2     byte            &0x02          \b, Packet Pad
##>2     byte            &0x01          \b, Custom Flag
##>3     byte            &0x08          \b, Copyrighted
##>3     byte            &0x04          \b, Original Source
##>3     byte&0x03       1              \b, NR: 50/15 ms
##>3     byte&0x03       3              \b, NR: CCIT J.17
# MP3, M2A
0       beshort&0xFFFE  0xFFF2         MPEG ADTS, layer III, v2
!:mime    audio/mpeg
# rate
>2      byte&0xF0       0x10           \b,   8 kbps
>2      byte&0xF0       0x20           \b,  16 kbps
>2      byte&0xF0       0x30           \b,  24 kbps
>2      byte&0xF0       0x40           \b,  32 kbps
>2      byte&0xF0       0x50           \b,  40 kbps
>2      byte&0xF0       0x60           \b,  48 kbps
>2      byte&0xF0       0x70           \b,  56 kbps
>2      byte&0xF0       0x80           \b,  64 kbps
>2      byte&0xF0       0x90           \b,  80 kbps
>2      byte&0xF0       0xA0           \b,  96 kbps
>2      byte&0xF0       0xB0           \b, 112 kbps
>2      byte&0xF0       0xC0           \b, 128 kbps
>2      byte&0xF0       0xD0           \b, 144 kbps
>2      byte&0xF0       0xE0           \b, 160 kbps
# timing
>2      byte&0x0C       0x00           \b, 22.05 kHz
>2      byte&0x0C       0x04           \b, 24 kHz
>2      byte&0x0C       0x08           \b, 16 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# MP2, M2A
0       beshort&0xFFFE  0xFFF4         MPEG ADTS, layer II, v2
# rate
>2      byte&0xF0       0x10           \b,   8 kbps
>2      byte&0xF0       0x20           \b,  16 kbps
>2      byte&0xF0       0x30           \b,  24 kbps
>2      byte&0xF0       0x40           \b,  32 kbps
>2      byte&0xF0       0x50           \b,  40 kbps
>2      byte&0xF0       0x60           \b,  48 kbps
>2      byte&0xF0       0x70           \b,  56 kbps
>2      byte&0xF0       0x80           \b,  64 kbps
>2      byte&0xF0       0x90           \b,  80 kbps
>2      byte&0xF0       0xA0           \b,  96 kbps
>2      byte&0xF0       0xB0           \b, 112 kbps
>2      byte&0xF0       0xC0           \b, 128 kbps
>2      byte&0xF0       0xD0           \b, 144 kbps
>2      byte&0xF0       0xE0           \b, 160 kbps
# timing
>2      byte&0x0C       0x00           \b, 22.05 kHz
>2      byte&0x0C       0x04           \b, 24 kHz
>2      byte&0x0C       0x08           \b, 16 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# 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
>2      byte&0xF0       0x30           \b,  56 kbps
>2      byte&0xF0       0x40           \b,  64 kbps
>2      byte&0xF0       0x50           \b,  80 kbps
>2      byte&0xF0       0x60           \b,  96 kbps
>2      byte&0xF0       0x70           \b, 112 kbps
>2      byte&0xF0       0x80           \b, 128 kbps
>2      byte&0xF0       0x90           \b, 144 kbps
>2      byte&0xF0       0xA0           \b, 160 kbps
>2      byte&0xF0       0xB0           \b, 176 kbps
>2      byte&0xF0       0xC0           \b, 192 kbps
>2      byte&0xF0       0xD0           \b, 224 kbps
>2      byte&0xF0       0xE0           \b, 256 kbps
# timing
>2      byte&0x0C       0x00           \b, 22.05 kHz
>2      byte&0x0C       0x04           \b, 24 kHz
>2      byte&0x0C       0x08           \b, 16 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# 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
>2      byte&0xF0       0x30           \b,  24 kbps
>2      byte&0xF0       0x40           \b,  32 kbps
>2      byte&0xF0       0x50           \b,  40 kbps
>2      byte&0xF0       0x60           \b,  48 kbps
>2      byte&0xF0       0x70           \b,  56 kbps
>2      byte&0xF0       0x80           \b,  64 kbps
>2      byte&0xF0       0x90           \b,  80 kbps
>2      byte&0xF0       0xA0           \b,  96 kbps
>2      byte&0xF0       0xB0           \b, 112 kbps
>2      byte&0xF0       0xC0           \b, 128 kbps
>2      byte&0xF0       0xD0           \b, 144 kbps
>2      byte&0xF0       0xE0           \b, 160 kbps
# timing
>2      byte&0x0C       0x00           \b, 11.025 kHz
>2      byte&0x0C       0x04           \b, 12 kHz
>2      byte&0x0C       0x08           \b, 8 kHz
# channels/options
>3      byte&0xC0       0x00           \b, Stereo
>3      byte&0xC0       0x40           \b, JntStereo
>3      byte&0xC0       0x80           \b, 2x Monaural
>3      byte&0xC0       0xC0           \b, Monaural
#>1     byte            ^0x01          \b, Data Verify
#>2     byte            &0x02          \b, Packet Pad
#>2     byte            &0x01          \b, Custom Flag
#>3     byte            &0x08          \b, Copyrighted
#>3     byte            &0x04          \b, Original Source
#>3     byte&0x03       1              \b, NR: 50/15 ms
#>3     byte&0x03       3              \b, NR: CCIT J.17
# AAC (aka MPEG-2 NBC audio) and MPEG-4 audio
# Stored AAC streams (instead of the MP4 format)
0       string          ADIF           MPEG ADIF, AAC
!:mime    audio/x-hx-aac-adif
>4      byte            &0x80
>>13    byte            &0x10          \b, VBR
>>13    byte            ^0x10          \b, CBR
>>16    byte&0x1E       0x02           \b, single stream
>>16    byte&0x1E       0x04           \b, 2 streams
>>16    byte&0x1E       0x06           \b, 3 streams
>>16    byte            &0x08          \b, 4 or more streams
>>16    byte            &0x10          \b, 8 or more streams
>>4    byte            &0x80          \b, Copyrighted
>>13   byte            &0x40          \b, Original Source
>>13   byte            &0x20          \b, Home Flag
>4      byte            ^0x80
>>4     byte            &0x10          \b, VBR
>>4     byte            ^0x10          \b, CBR
>>7     byte&0x1E       0x02           \b, single stream
>>7     byte&0x1E       0x04           \b, 2 streams
>>7     byte&0x1E       0x06           \b, 3 streams
>>7     byte            &0x08          \b, 4 or more streams
>>7     byte            &0x10          \b, 8 or more streams
>>4    byte            &0x40          \b, Original Stream(s)
>>4    byte            &0x20          \b, Home Source
# Live or stored single AAC stream (used with MPEG-2 systems)
0       beshort&0xFFF6  0xFFF0         MPEG ADTS, AAC
!:mime    audio/x-hx-aac-adts
>1      byte            &0x08          \b, v2
>1      byte            ^0x08          \b, v4
# profile
>>2     byte            &0xC0          \b LTP
>2      byte&0xc0       0x00           \b Main
>2      byte&0xc0       0x40           \b LC
>2      byte&0xc0       0x80           \b SSR
# timing
>2      byte&0x3c       0x00           \b, 96 kHz
>2      byte&0x3c       0x04           \b, 88.2 kHz
>2      byte&0x3c       0x08           \b, 64 kHz
>2      byte&0x3c       0x0c           \b, 48 kHz
>2      byte&0x3c       0x10           \b, 44.1 kHz
>2      byte&0x3c       0x14           \b, 32 kHz
>2      byte&0x3c       0x18           \b, 24 kHz
>2      byte&0x3c       0x1c           \b, 22.05 kHz
>2      byte&0x3c       0x20           \b, 16 kHz
>2      byte&0x3c       0x24           \b, 12 kHz
>2      byte&0x3c       0x28           \b, 11.025 kHz
>2      byte&0x3c       0x2c           \b, 8 kHz
# channels
>2      beshort&0x01c0  0x0040         \b, monaural
>2      beshort&0x01c0  0x0080         \b, stereo
>2      beshort&0x01c0  0x00c0         \b, stereo + center
>2      beshort&0x01c0  0x0100         \b, stereo+center+LFE
>2      beshort&0x01c0  0x0140         \b, surround
>2      beshort&0x01c0  0x0180         \b, surround + LFE
>2      beshort         &0x01C0        \b, surround + side
#>1     byte            ^0x01           \b, Data Verify
#>2     byte            &0x02           \b, Custom Flag
#>3     byte            &0x20           \b, Original Stream
#>3     byte            &0x10           \b, Home Source
#>3     byte            &0x08           \b, Copyrighted
# Live MPEG-4 audio streams (instead of RTP FlexMux)
0       beshort&0xFFE0  0x56E0         MPEG-4 LOAS
!:mime    audio/x-mp4a-latm
#>1     beshort&0x1FFF  x              \b, %u byte packet
>3      byte&0xE0       0x40
>>4     byte&0x3C       0x04           \b, single stream
>>4     byte&0x3C       0x08           \b, 2 streams
>>4     byte&0x3C       0x0C           \b, 3 streams
>>4     byte            &0x08          \b, 4 or more streams
>>4     byte            &0x20          \b, 8 or more streams
>3      byte&0xC0       0
>>4     byte&0x78       0x08           \b, single stream
>>4     byte&0x78       0x10           \b, 2 streams
>>4     byte&0x78       0x18           \b, 3 streams
>>4     byte            &0x20          \b, 4 or more streams
>>4     byte            &0x40          \b, 8 or more streams
# This magic isn't strong enough (matches plausible ISO-8859-1 text)
#0       beshort         0x4DE1         MPEG-4 LO-EP audio stream
#!:mime    audio/x-mp4a-latm
# Summary: FLI animation format
# Created by: Daniel Quinlan <quinlan@yggdrasil.com>
# Modified by (1): Abel Cheung <abelcheung@gmail.com> (avoid over-generic detection)
4    leshort        0xAF11
# standard FLI always has 320x200 resolution and 8 bit color
>8    leshort        320
>>10    leshort        200
>>>12    leshort        8            FLI animation, 320x200x8
!:mime    video/x-fli
>>>>6    leshort        x            \b, %d frames
# frame speed is multiple of 1/70s
>>>>16    leshort        x            \b, %d/70s per frame
# Summary: FLC animation format
# Created by: Daniel Quinlan <quinlan@yggdrasil.com>
# Modified by (1): Abel Cheung <abelcheung@gmail.com> (avoid over-generic detection)
4    leshort        0xAF12
# standard FLC always use 8 bit color
>12    leshort        8            FLC animation
!:mime    video/x-flc
>>8    leshort        x            \b, %d
>>10    leshort        x            \bx%dx8
>>6    uleshort    x            \b, %d frames
>>16    uleshort    x            \b, %dms per frame
# DL animation format
# XXX - collision with most `mips' magic
#
# I couldn't find a real magic number for these, however, this
# -appears- to work.  Note that it might catch other files, too, so be
# careful!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)!  The DL format is really bad.
#
#0    byte    1    DL version 1, medium format (160x100, 4 images/screen)
#!:mime    video/x-unknown
#>42    byte    x    - %d screens,
#>43    byte    x    %d commands
#0    byte    2    DL version 2
#!:mime    video/x-unknown
#>1    byte    1    - large format (320x200,1 image/screen),
#>1    byte    2    - medium format (160x100,4 images/screen),
#>1    byte    >2    - unknown format,
#>42    byte    x    %d screens,
#>43    byte    x    %d commands
# Based on empirical evidence, DL version 3 have several nulls following the
# \003.  Most of them start with non-null values at hex offset 0x34 or so.
#0    string    \3\0\0\0\0\0\0\0\0\0\0\0    DL version 3
# iso 13818 transport stream
#
# from Oskar Schirmer <schirmer@scara.com> Feb 3, 2001 (ISO 13818.1)
# (the following is a little bit restrictive and works fine for a stream
#  that starts with PAT properly. it won't work for stream data, that is
#  cut from an input device data right in the middle, but this shouldn't
#  disturb)
# syncbyte      8 bit    0x47
# error_ind     1 bit    -
# payload_start 1 bit    1
# priority      1 bit    -
# PID          13 bit    0x0000
# scrambling    2 bit    -
# adaptfld_ctrl 2 bit    1 or 3
# conti_count   4 bit    0
0    belong&0xFF5FFF1F    0x47400010    MPEG transport stream data
>188    byte            !0x47        CORRUPTED
# DIF digital video file format <mpruett@sgi.com>
0    belong&0xffffff00    0x1f070000      DIF
>4    byte            &0x01        (DVCPRO) movie file
>4    byte            ^0x01        (DV) movie file
>3    byte            &0x80        (PAL)
>3    byte            ^0x80        (NTSC)
# 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,
!:mime    video/x-mng
>4    belong            !0x0d0a1a0a    CORRUPTED,
>4    belong            0x0d0a1a0a
>>16    belong    x                %ld x
>>20    belong    x                %ld
# JNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
0    string            \x8bJNG        JNG video data,
!:mime    video/x-jng
>4    belong            !0x0d0a1a0a    CORRUPTED,
>4    belong            0x0d0a1a0a
>>16    belong    x                %ld x
>>20    belong    x                %ld
# Vivo video (Wolfram Kleff)
3    string        \x0D\x0AVersion:Vivo    Vivo video data
# VRML (Virtual Reality Modelling Language)
0       string/w        #VRML\ V1.0\ ascii    VRML 1 file
!:mime    model/vrml
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="
!:strength +1
>20    search/1000/cw  \<!DOCTYPE\ X3D        X3D (Extensible 3D) model xml text
!:mime model/x3d
#---------------------------------------------------------------------------
# HVQM4: compressed movie format designed by Hudson for Nintendo GameCube
# From Mark Sheppard <msheppard@climax.co.uk>, 2002-10-03
#
0    string        HVQM4        %s
>6    string        >\0        v%s
>0    byte        x        GameCube movie,
>0x34    ubeshort    x        %d x
>0x36    ubeshort    x        %d,
>0x26    ubeshort    x        %dµs,
>0x42    ubeshort    0        no audio
>0x42    ubeshort    >0        %dHz audio
# From: "Stefan A. Haubenthal" <polluks@web.de>
0    string        DVDVIDEO-VTS    Video title set,
>0x21    byte        x        v%x
0    string        DVDVIDEO-VMG    Video manager,
>0x21    byte        x        v%x
# From: Behan Webster <behanw@websterwood.com>
# NuppelVideo used by Mythtv (*.nuv)
# Note: there are two identical stanzas here differing only in the
# initial string matched. It used to be done with a regex, but we're
# trying to get rid of those.
0    string        NuppelVideo    MythTV NuppelVideo
>12    string        x        v%s
>20    lelong        x        (%d
>24    lelong        x        \bx%d),
>36    string        P        \bprogressive,
>36    string        I        \binterlaced,
>40    ledouble    x        \baspect:%.2f,
>48    ledouble    x        \bfps:%.2f
0    string        MythTV        MythTV NuppelVideo
>12    string        x        v%s
>20    lelong        x        (%d
>24    lelong        x        \bx%d),
>36    string        P        \bprogressive,
>36    string        I        \binterlaced,
>40    ledouble    x        \baspect:%.2f,
>48    ledouble    x        \bfps:%.2f
#                        MPEG file
# MPEG sequences
# FIXME: This section is from the old magic.mime file and needs integrating with the rest
0       belong             0x000001BA
>4      byte               &0x40
!:mime    video/mp2p
>4      byte               ^0x40
!:mime    video/mpeg
0       belong             0x000001BB
!:mime    video/mpeg
0       belong             0x000001B0
!:mime    video/mp4v-es
0       belong             0x000001B5
!:mime    video/mp4v-es
0       belong             0x000001B3
!:mime    video/mpv
0       belong&0xFF5FFF1F  0x47400010
!:mime    video/mp2t
0       belong             0x00000001
>4      byte&0x1F       0x07
!:mime    video/h264
# Type: Bink Video
# URL:  http://wiki.multimedia.cx/index.php?title=3DBink_Container
# From: <hoehle@users.sourceforge.net>  2008-07-18
0    string        BIK    Bink Video
>3    regex        =[a-z]    rev.%s
#>4    ulelong        x    size %d
>20    ulelong        x    \b, %d
>24    ulelong        x    \bx%d
>8    ulelong        x    \b, %d frames
>32    ulelong        x    at rate %d/
>28    ulelong        >1    \b%d
>40    ulelong        =0    \b, no audio
>40    ulelong        !0    \b, %d audio track
>>40    ulelong        !1    \bs
# follow properties of the first audio track only
>>48    uleshort    x    %dHz
>>51    byte&0x20    0    mono
>>51    byte&0x20    !0    stereo
#>>51    byte&0x10    0    FFT
#>>51    byte&0x10    !0    DCT
ok335xD/3rdparty/file/file-5.04/magic/Magdir/apl
New file
@@ -0,0 +1,7 @@
#------------------------------------------------------------------------------
# $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)
#
0    long        0100554        APL workspace (Ken's original?)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/apple
New file
@@ -0,0 +1,251 @@
#------------------------------------------------------------------------------
# $File: apple,v 1.23 2009/09/19 16:28:08 christos Exp $
# apple:  file(1) magic for Apple file formats
#
0    search/1    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
0    string        N\xf5F\xe9l\xe5        NuFile archive (apple ][) data
0    belong        0x00051600        AppleSingle encoded Macintosh file
0    belong        0x00051607        AppleDouble encoded Macintosh file
# Type: Apple Emulator 2IMG format
# From: Radek Vokal <rvokal@redhat.com>
0    string        2IMG    Apple ][ 2IMG Disk Image
>4    string        XGS!    \b, XGS
>4    string        CTKG    \b, Catakig
>4    string        ShIm    \b, Sheppy's ImageMaker
>4    string        WOOF    \b, Sweet 16
>4    string        B2TR    \b, Bernie ][ the Rescue
>4    string        !nfc    \b, ASIMOV2
>4    string        x    \b, Unknown Format
>0xc    byte        00    \b, DOS 3.3 sector order
>>0x10    byte        00    \b, Volume 254
>>0x10    byte&0x7f    x    \b, Volume %u
>0xc    byte        01    \b, ProDOS sector order
>>0x14    short        x    \b, %u Blocks
>0xc    byte        02    \b, NIB data
# magic for Newton PDA package formats
# from Ruda Moura <ruda@helllabs.org>
0    string    package0    Newton package, NOS 1.x,
>12    belong    &0x80000000    AutoRemove,
>12    belong    &0x40000000    CopyProtect,
>12    belong    &0x10000000    NoCompression,
>12    belong    &0x04000000    Relocation,
>12    belong    &0x02000000    UseFasterCompression,
>16    belong    x        version %d
0    string    package1    Newton package, NOS 2.x,
>12    belong    &0x80000000    AutoRemove,
>12    belong    &0x40000000    CopyProtect,
>12    belong    &0x10000000    NoCompression,
>12    belong    &0x04000000    Relocation,
>12    belong    &0x02000000    UseFasterCompression,
>16    belong    x        version %d
0    string    package4    Newton package,
>8    byte    8        NOS 1.x,
>8    byte    9        NOS 2.x,
>12    belong    &0x80000000    AutoRemove,
>12    belong    &0x40000000    CopyProtect,
>12    belong    &0x10000000    NoCompression,
# The following entries for the Apple II are for files that have
# been transferred as raw binary data from an Apple, without having
# been encapsulated by any of the above archivers.
#
# In general, Apple II formats are hard to identify because Apple DOS
# and especially Apple ProDOS have strong typing in the file system and
# therefore programmers never felt much need to include type information
# in the files themselves.
#
# Eric Fischer <enf@pobox.com>
# AppleWorks word processor:
#
# This matches the standard tab stops for an AppleWorks file, but if
# a file has a tab stop set in the first four columns this will fail.
#
# The "O" is really the magic number, but that's so common that it's
# necessary to check the tab stops that follow it to avoid false positives.
4       string          O====   AppleWorks word processor data
>85     byte&0x01       >0      \b, zoomed
>90     byte&0x01       >0      \b, paginated
>92     byte&0x01       >0      \b, with mail merge
#>91    byte            x       \b, left margin %d
# AppleWorks database:
#
# This isn't really a magic number, but it's the closest thing to one
# that I could find.  The 1 and 2 really mean "order in which you defined
# categories" and "left to right, top to bottom," respectively; the D and R
# mean that the cursor should move either down or right when you press Return.
#30    string        \x01D    AppleWorks database data
#30    string        \x02D    AppleWorks database data
#30    string        \x01R    AppleWorks database data
#30    string        \x02R    AppleWorks database data
# AppleWorks spreadsheet:
#
# Likewise, this isn't really meant as a magic number.  The R or C means
# row- or column-order recalculation; the A or M means automatic or manual
# recalculation.
#131    string        RA    AppleWorks spreadsheet data
#131    string        RM    AppleWorks spreadsheet data
#131    string        CA    AppleWorks spreadsheet data
#131    string        CM    AppleWorks spreadsheet data
# Applesoft BASIC:
#
# This is incredibly sloppy, but will be true if the program was
# written at its usual memory location of 2048 and its first line
# number is less than 256.  Yuck.
0       belong&0xff00ff 0x80000 Applesoft BASIC program data
#>2     leshort         x       \b, first line number %d
# ORCA/EZ assembler:
#
# This will not identify ORCA/M source files, since those have
# some sort of date code instead of the two zero bytes at 6 and 7
# XXX Conflicts with ELF
#4       belong&0xff00ffff       0x01000000      ORCA/EZ assembler source data
#>5      byte                    x               \b, build number %d
# Broderbund Fantavision
#
# I don't know what these values really mean, but they seem to recur.
# Will they cause too many conflicts?
# Probably :-)
#2    belong&0xFF00FF        0x040008    Fantavision movie data
# Some attempts at images.
#
# These are actually just bit-for-bit dumps of the frame buffer, so
# there's really no reasonably way to distinguish them except for their
# address (if preserved) -- 8192 or 16384 -- and their length -- 8192
# or, occasionally, 8184.
#
# Nevertheless this will manage to catch a lot of images that happen
# to have a solid-colored line at the bottom of the screen.
# GRR: Magic too weak
#8144    string    \x7F\x7F\x7F\x7F\x7F\x7F\x7F\x7F    Apple II image with white background
#8144    string    \x55\x2A\x55\x2A\x55\x2A\x55\x2A    Apple II image with purple background
#8144    string    \x2A\x55\x2A\x55\x2A\x55\x2A\x55    Apple II image with green background
#8144    string    \xD5\xAA\xD5\xAA\xD5\xAA\xD5\xAA    Apple II image with blue background
#8144    string    \xAA\xD5\xAA\xD5\xAA\xD5\xAA\xD5    Apple II image with orange background
# Beagle Bros. Apple Mechanic fonts
0    belong&0xFF00FFFF    0x6400D000    Apple Mechanic font
# Apple Universal Disk Image Format (UDIF) - dmg files.
# From Johan Gade.
# These entries are disabled for now until we fix the following issues.
#
# Note there might be some problems with the "VAX COFF executable"
# entry. Note this entry should be placed before the mac filesystem section,
# particularly the "Apple Partition data" entry.
#
# The intended meaning of these tests is, that the file is only of the
# specified type if both of the lines are correct - i.e. if the first
# line matches and the second doesn't then it is not of that type.
#
#0    long    0x7801730d
#>4    long    0x62626060    UDIF read-only zlib-compressed image (UDZO)
#
# Note that this entry is recognized correctly by the "Apple Partition
# data" entry - however since this entry is more specific - this
# information seems to be more useful.
#0    long    0x45520200
#>0x410    string    disk\ image    UDIF read/write image (UDRW)
# From: Toby Peterson <toby@apple.com>
0    string    bplist00    Apple binary property list
# Apple binary property list (bplist)
#  Assumes version bytes are hex.
#  Provides content hints for version 0 files. Assumes that the root
#  object is the first object (true for CoreFoundation implementation).
# From: David Remahl <dremahl@apple.com>
0        string    bplist
>6        byte    x    \bCoreFoundation binary property list data, version 0x%c
>>7        byte    x    \b%c
>6        string        00        \b
>>8        byte&0xF0    0x00    \b
>>>8    byte&0x0F    0x00    \b, root type: null
>>>8    byte&0x0F    0x08    \b, root type: false boolean
>>>8    byte&0x0F    0x09    \b, root type: true boolean
>>8        byte&0xF0    0x10    \b, root type: integer
>>8        byte&0xF0    0x20    \b, root type: real
>>8        byte&0xF0    0x30    \b, root type: date
>>8        byte&0xF0    0x40    \b, root type: data
>>8        byte&0xF0    0x50    \b, root type: ascii string
>>8        byte&0xF0    0x60    \b, root type: unicode string
>>8        byte&0xF0    0x80    \b, root type: uid (CORRUPT)
>>8        byte&0xF0    0xa0    \b, root type: array
>>8        byte&0xF0    0xd0    \b, root type: dictionary
# Apple/NeXT typedstream data
#  Serialization format used by NeXT and Apple for various
#  purposes in YellowStep/Cocoa, including some nib files.
# From: David Remahl <dremahl@apple.com>
2        string        typedstream    NeXT/Apple typedstream data, big endian
>0        byte        x        \b, version %hhd
>0        byte        <5        \b
>>13    byte        0x81    \b
>>>14    ubeshort    x        \b, system %hd
2        string        streamtyped NeXT/Apple typedstream data, little endian
>0        byte        x        \b, version %hhd
>0        byte        <5        \b
>>13    byte        0x81    \b
>>>14    uleshort    x        \b, system %hd
#------------------------------------------------------------------------------
# CAF: Apple CoreAudio File Format
#
# Container format for high-end audio purposes.
# From: David Remahl <dremahl@apple.com>
#
0    string        caff        CoreAudio Format audio file
>4    beshort        <10        version %d
>6    beshort        x
#------------------------------------------------------------------------------
# Keychain database files
0    string        kych        Mac OS X Keychain File
#------------------------------------------------------------------------------
# Code Signing related file types
0    belong        0xfade0c00    Mac OS X Code Requirement
>8    belong        1            (opExpr)
>4    belong        x            - %d bytes
0    belong        0xfade0c01    Mac OS X Code Requirement Set
>8    belong        >1            containing %d items
>4    belong        x            - %d bytes
0    belong        0xfade0c02    Mac OS X Code Directory
>8    belong        x            version %x
>12    belong        >0            flags 0x%x
>4    belong        x            - %d bytes
0    belong        0xfade0cc0    Mac OS X Detached Code Signature (non-executable)
>4    belong        x            - %d bytes
0    belong        0xfade0cc1    Mac OS X Detached Code Signature
>8    belong        >1            (%d elements)
>4    belong        x            - %d bytes
# From: "Nelson A. de Oliveira" <naoliv@gmail.com>
# .vdi
4    string innotek\ VirtualBox\ Disk\ Image %s
ok335xD/3rdparty/file/file-5.04/magic/Magdir/applix
New file
@@ -0,0 +1,13 @@
#------------------------------------------------------------------------------
# $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>
#
0    string        *BEGIN        Applixware
>7    string        WORDS            Words Document
>7    string        GRAPHICS        Graphic
>7    string        RASTER            Bitmap
>7    string        SPREADSHEETS        Spreadsheet
>7    string        MACRO            Macro
>7    string        BUILDER            Builder Object
ok335xD/3rdparty/file/file-5.04/magic/Magdir/archive
New file
@@ -0,0 +1,832 @@
#------------------------------------------------------------------------------
# $File: archive,v 1.55 2009/12/04 15:00:47 christos Exp $
# archive:  file(1) magic for archive formats (see also "msdos" for self-
#           extracting compressed archives)
#
# cpio, ar, arc, arj, hpack, lha/lharc, rar, squish, uc2, zip, zoo, etc.
# pre-POSIX "tar" archives are handled in the C code.
# POSIX tar archives
257    string        ustar\0        POSIX tar archive
!:mime    application/x-tar # encoding: posix
257    string        ustar\040\040\0    GNU tar archive
!:mime    application/x-tar # encoding: gnu
# cpio archives
#
# Yes, the top two "cpio archive" formats *are* supposed to just be "short".
# The idea is to indicate archives produced on machines with the same
# byte order as the machine running "file" with "cpio archive", and
# to indicate archives produced on machines with the opposite byte order
# from the machine running "file" with "byte-swapped cpio archive".
#
# The SVR4 "cpio(4)" hints that there are additional formats, but they
# are defined as "short"s; I think all the new formats are
# character-header formats and thus are strings, not numbers.
0    short        070707        cpio archive
!:mime    application/x-cpio
0    short        0143561        byte-swapped cpio archive
!:mime    application/x-cpio # encoding: swapped
0    string        070707        ASCII cpio archive (pre-SVR4 or odc)
0    string        070701        ASCII cpio archive (SVR4 with no CRC)
0    string        070702        ASCII cpio archive (SVR4 with CRC)
# Debian package (needs to go before regular portable archives)
#
0    string        =!<arch>\ndebian
!:mime    application/x-debian-package
>8    string        debian-split    part of multipart Debian package
>8    string        debian-binary    Debian binary package
>8    string        !debian
>68    string        >\0        (format %s)
# These next two lines do not work, because a bzip2 Debian archive
# still uses gzip for the control.tar (first in the archive).  Only
# data.tar varies, and the location of its filename varies too.
# file/libmagic does not current have support for ascii-string based
# (offsets) as of 2005-09-15.
#>81    string        bz2        \b, uses bzip2 compression
#>84    string        gz        \b, uses gzip compression
#>136    ledate        x        created: %s
# other archives
0    long        0177555        very old archive
0    short        0177555        very old PDP-11 archive
0    long        0177545        old archive
0    short        0177545        old PDP-11 archive
0    long        0100554        apl workspace
0    string        =<ar>        archive
!:mime    application/x-archive
# MIPS archive (needs to go before regular portable archives)
#
0    string    =!<arch>\n__________E    MIPS archive
>20    string    U            with MIPS Ucode members
>21    string    L            with MIPSEL members
>21    string    B            with MIPSEB members
>19    string    L            and an EL hash table
>19    string    B            and an EB hash table
>22    string    X            -- out of date
0    search/1    -h-        Software Tools format archive text
#
# XXX - why are there multiple <ar> thingies?  Note that 0x213c6172 is
# "!<ar", so, for new-style (4.xBSD/SVR2andup) archives, we have:
#
# 0    string        =!<arch>        current ar archive
# 0    long        0x213c6172    archive file
#
# and for SVR1 archives, we have:
#
# 0    string        \<ar>        System V Release 1 ar archive
# 0    string        =<ar>        archive
#
# XXX - did Aegis really store shared libraries, breakpointed modules,
# and absolute code program modules in the same format as new-style
# "ar" archives?
#
0    string        =!<arch>        current ar archive
!:mime    application/x-archive
>8    string        __.SYMDEF    random library
>0    belong        =65538        - pre SR9.5
>0    belong        =65539        - post SR9.5
>0    beshort        2        - object archive
>0    beshort        3        - shared library module
>0    beshort        4        - debug break-pointed module
>0    beshort        5        - absolute code program module
0    string        \<ar>        System V Release 1 ar archive
0    string        =<ar>        archive
#
# XXX - from "vax", which appears to collect a bunch of byte-swapped
# thingies, to help you recognize VAX files on big-endian machines;
# with "leshort", "lelong", and "string", that's no longer necessary....
#
0    belong        0x65ff0000    VAX 3.0 archive
0    belong        0x3c61723e    VAX 5.0 archive
#
0    long        0x213c6172    archive file
0    lelong        0177555        very old VAX archive
0    leshort        0177555        very old PDP-11 archive
#
# XXX - "pdp" claims that 0177545 can have an __.SYMDEF member and thus
# be a random library (it said 0xff65 rather than 0177545).
#
0    lelong        0177545        old VAX archive
>8    string        __.SYMDEF    random library
0    leshort        0177545        old PDP-11 archive
>8    string        __.SYMDEF    random library
#
# From "pdp" (but why a 4-byte quantity?)
#
0    lelong        0x39bed        PDP-11 old archive
0    lelong        0x39bee        PDP-11 4.0 archive
# ARC archiver, from Daniel Quinlan (quinlan@yggdrasil.com)
#
# The first byte is the magic (0x1a), byte 2 is the compression type for
# the first file (0x01 through 0x09), and bytes 3 to 15 are the MS-DOS
# filename of the first file (null terminated).  Since some types collide
# we only test some types on basis of frequency: 0x08 (83%), 0x09 (5%),
# 0x02 (5%), 0x03 (3%), 0x04 (2%), 0x06 (2%).  0x01 collides with terminfo.
0    lelong&0x8080ffff    0x0000081a    ARC archive data, dynamic LZW
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000091a    ARC archive data, squashed
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000021a    ARC archive data, uncompressed
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000031a    ARC archive data, packed
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000041a    ARC archive data, squeezed
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000061a    ARC archive data, crunched
!:mime    application/x-arc
# [JW] stuff taken from idarc, obviously ARC successors:
0    lelong&0x8080ffff    0x00000a1a    PAK archive data
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000141a    ARC+ archive data
!:mime    application/x-arc
0    lelong&0x8080ffff    0x0000481a    HYP archive data
!:mime    application/x-arc
# Acorn archive formats (Disaster prone simpleton, m91dps@ecs.ox.ac.uk)
# I can't create either SPARK or ArcFS archives so I have not tested this stuff
# [GRR:  the original entries collide with ARC, above; replaced with combined
#  version (not tested)]
#0    byte        0x1a        RISC OS archive (spark format)
0    string        \032archive    RISC OS archive (ArcFS format)
0       string          Archive\000     RISC OS archive (ArcFS format)
# All these were taken from idarc, many could not be verified. Unfortunately,
# there were many low-quality sigs, i.e. easy to trigger false positives.
# Please notify me of any real-world fishy/ambiguous signatures and I'll try
# to get my hands on the actual archiver and see if I find something better. [JW]
# probably many can be enhanced by finding some 0-byte or control char near the start
# idarc calls this Crush/Uncompressed... *shrug*
0    string    CRUSH Crush archive data
# Squeeze It (.sqz)
0    string    HLSQZ Squeeze It archive data
# SQWEZ
0    string    SQWEZ SQWEZ archive data
# HPack (.hpk)
0    string    HPAK HPack archive data
# HAP
0    string    \x91\x33HF HAP archive data
# MD/MDCD
0    string    MDmd MDCD archive data
# LIM
0    string    LIM\x1a LIM archive data
# SAR
3    string    LH5 SAR archive data
# BSArc/BS2
0    string    \212\3SB \0 BSArc/BS2 archive data
# MAR
2    string    =-ah MAR archive data
# ACB
0    belong&0x00f800ff    0x00800000 ACB archive data
# CPZ
# TODO, this is what idarc says: 0    string    \0\0\0 CPZ archive data
# JRC
0    string    JRchive JRC archive data
# Quantum
0    string    DS\0 Quantum archive data
# ReSOF
0    string    PK\3\6 ReSOF archive data
# QuArk
0    string    7\4 QuArk archive data
# YAC
14    string    YC YAC archive data
# X1
0    string    X1 X1 archive data
0    string    XhDr X1 archive data
# CDC Codec (.dqt)
0    belong&0xffffe000    0x76ff2000 CDC Codec archive data
# AMGC
0    string    \xad6" AMGC archive data
# NuLIB
0    string    NõFélå NuLIB archive data
# PakLeo
0    string    LEOLZW PAKLeo archive data
# ChArc
0    string    SChF ChArc archive data
# PSA
0    string    PSA PSA archive data
# CrossePAC
0    string    DSIGDCC CrossePAC archive data
# Freeze
0    string    \x1f\x9f\x4a\x10\x0a Freeze archive data
# KBoom
0    string    ¨MP¨ KBoom archive data
# NSQ, must go after CDC Codec
0    string    \x76\xff NSQ archive data
# DPA
0    string    Dirk\ Paehl DPA archive data
# BA
# TODO: idarc says "bytes 0-2 == bytes 3-5"
# TTComp
0    string    \0\6 TTComp archive data
# ESP, could this conflict with Easy Software Products' (e.g.ESP ghostscript) documentation?
0    string    ESP ESP archive data
# ZPack
0    string    \1ZPK\1 ZPack archive data
# Sky
0    string    \xbc\x40 Sky archive data
# UFA
0    string    UFA UFA archive data
# Dry
0    string    =-H2O DRY archive data
# FoxSQZ
0    string    FOXSQZ FoxSQZ archive data
# AR7
0    string    ,AR7 AR7 archive data
# PPMZ
0    string    PPMZ PPMZ archive data
# MS Compress
4    string    \x88\xf0\x27 MS Compress archive data
# updated by Joerg Jenderek
>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
# MP3 (archiver, not lossy audio compression)
0    string    MP3\x1a MP3-Archiver archive data
# ZET
0    string    OZÝ ZET archive data
# TSComp
0    string    \x65\x5d\x13\x8c\x08\x01\x03\x00 TSComp archive data
# ARQ
0    string    gW\4\1 ARQ archive data
# Squash
3    string    OctSqu Squash archive data
# Terse
0    string    \5\1\1\0 Terse archive data
# PUCrunch
0    string    \x01\x08\x0b\x08\xef\x00\x9e\x32\x30\x36\x31 PUCrunch archive data
# UHarc
0    string    UHA UHarc archive data
# ABComp
0    string    \2AB ABComp archive data
0    string    \3AB2 ABComp archive data
# CMP
0    string    CO\0 CMP archive data
# Splint
0    string    \x93\xb9\x06 Splint archive data
# InstallShield
0    string     \x13\x5d\x65\x8c InstallShield Z archive Data
# Gather
1    string    GTH Gather archive data
# BOA
0    string    BOA BOA archive data
# RAX
0    string    ULEB\xa RAX archive data
# Xtreme
0    string    ULEB\0 Xtreme archive data
# Pack Magic
0    string    @â\1\0 Pack Magic archive data
# BTS
0    belong&0xfeffffff    0x1a034465 BTS archive data
# ELI 5750
0    string    Ora\  ELI 5750 archive data
# QFC
0    string    \x1aFC\x1a QFC archive data
0    string    \x1aQF\x1a QFC archive data
# PRO-PACK
0    string    RNC PRO-PACK archive data
# 777
0    string    777 777 archive data
# LZS221
0    string    sTaC LZS221 archive data
# HPA
0    string    HPA HPA archive data
# Arhangel
0    string    LG Arhangel archive data
# EXP1, uses bzip2
0    string    0123456789012345BZh EXP1 archive data
# IMP
0    string    IMP\xa IMP archive data
# NRV
0    string    \x00\x9E\x6E\x72\x76\xFF NRV archive data
# Squish
0    string    \x73\xb2\x90\xf4 Squish archive data
# Par
0    string    PHILIPP Par archive data
0    string    PAR Par archive data
# HIT
0    string    UB HIT archive data
# SBX
0    belong&0xfffff000    0x53423000 SBX archive data
# NaShrink
0    string    NSK NaShrink archive data
# SAPCAR
0    string    #\ CAR\ archive\ header SAPCAR archive data
0    string    CAR\ 2.00RG SAPCAR archive data
# Disintegrator
0    string    DST Disintegrator archive data
# ASD
0    string    ASD ASD archive data
# InstallShield CAB
0    string    ISc( InstallShield CAB
# TOP4
0    string    T4\x1a TOP4 archive data
# BatComp left out: sig looks like COM executable
# so TODO: get real 4dos batcomp file and find sig
# BlakHole
0    string    BH\5\7 BlakHole archive data
# BIX
0    string    BIX0 BIX archive data
# ChiefLZA
0    string    ChfLZ ChiefLZA archive data
# Blink
0    string    Blink Blink archive data
# Logitech Compress
0    string    \xda\xfa Logitech Compress archive data
# ARS-Sfx (FIXME: really a SFX? then goto COM/EXE)
1    string    (C)\ STEPANYUK ARS-Sfx archive data
# AKT/AKT32
0    string    AKT32 AKT32 archive data
0    string    AKT AKT archive data
# NPack
0    string    MSTSM NPack archive data
# PFT
0    string    \0\x50\0\x14 PFT archive data
# SemOne
0    string    SEM SemOne archive data
# PPMD
0    string    \x8f\xaf\xac\x84 PPMD archive data
# FIZ
0    string    FIZ FIZ archive data
# MSXiE
0    belong&0xfffff0f0    0x4d530000 MSXiE archive data
# DeepFreezer
0    belong&0xfffffff0    0x797a3030 DeepFreezer archive data
# DC
0    string    =<DC- DC archive data
# TPac
0    string    \4TPAC\3 TPac archive data
# Ai
0    string    Ai\1\1\0 Ai archive data
0    string    Ai\1\0\0 Ai archive data
# Ai32
0    string    Ai\2\0 Ai32 archive data
0    string    Ai\2\1 Ai32 archive data
# SBC
0    string    SBC SBC archive data
# Ybs
0    string    YBS Ybs archive data
# DitPack
0    string    \x9e\0\0 DitPack archive data
# DMS
0    string    DMS! DMS archive data
# EPC
0    string    \x8f\xaf\xac\x8c EPC archive data
# VSARC
0    string    VS\x1a VSARC archive data
# PDZ
0    string    PDZ PDZ archive data
# ReDuq
0    string    rdqx ReDuq archive data
# GCA
0    string    GCAX GCA archive data
# PPMN
0    string    pN PPMN archive data
# WinImage
3    string    WINIMAGE WinImage archive data
# Compressia
0    string    CMP0CMP Compressia archive data
# UHBC
0    string    UHB UHBC archive data
# WinHKI
0    string    \x61\x5C\x04\x05 WinHKI archive data
# WWPack data file
0    string    WWP WWPack archive data
# BSN (BSA, PTS-DOS)
0    string    \xffBSG BSN archive data
1    string    \xffBSG BSN archive data
3    string    \xffBSG BSN archive data
1    string    \0\xae\2 BSN archive data
1    string    \0\xae\3 BSN archive data
1    string    \0\xae\7 BSN archive data
# AIN
0    string    \x33\x18 AIN archive data
0    string    \x33\x17 AIN archive data
# XPA32
0    string    xpa\0\1 XPA32 archive data
# SZip (TODO: doesn't catch all versions)
0    string    SZ\x0a\4 SZip archive data
# XPack DiskImage
0    string    jm XPack DiskImage archive data
# XPack Data
0    string    xpa XPack archive data
# XPack Single Data
0    string    Í\ jm XPack single archive data
# TODO: missing due to unknown magic/magic at end of file:
#DWC
#ARG
#ZAR
#PC/3270
#InstallIt
#RKive
#RK
#XPack Diskimage
# These were inspired by idarc, but actually verified
# Dzip archiver (.dz)
0    string    DZ Dzip archive data
>2    byte    x \b, version %i
>3    byte    x \b.%i
# ZZip archiver (.zz)
0    string    ZZ\ \0\0 ZZip archive data
0    string    ZZ0 ZZip archive data
# PAQ archiver (.paq)
0    string    \xaa\x40\x5f\x77\x1f\xe5\x82\x0d PAQ archive data
0    string    PAQ PAQ archive data
>3    byte&0xf0    0x30
>>3    byte    x (v%c)
# JAR archiver (.j), this is the successor to ARJ, not Java's JAR (which is essentially ZIP)
0xe    string    \x1aJar\x1b JAR (ARJ Software, Inc.) archive data
0    string    JARCS JAR (ARJ Software, Inc.) archive data
# ARJ archiver (jason@jarthur.Claremont.EDU)
0    leshort        0xea60        ARJ archive data
!:mime    application/x-arj
>5    byte        x        \b, v%d,
>8    byte        &0x04        multi-volume,
>8    byte        &0x10        slash-switched,
>8    byte        &0x20        backup,
>34    string        x        original name: %s,
>7    byte        0        os: MS-DOS
>7    byte        1        os: PRIMOS
>7    byte        2        os: Unix
>7    byte        3        os: Amiga
>7    byte        4        os: Macintosh
>7    byte        5        os: OS/2
>7    byte        6        os: Apple ][ GS
>7    byte        7        os: Atari ST
>7    byte        8        os: NeXT
>7    byte        9        os: VAX/VMS
>3    byte        >0        %d]
# [JW] idarc says this is also possible
2    leshort        0xea60        ARJ archive data
# HA archiver (Greg Roelofs, newt@uchicago.edu)
# This is a really bad format. A file containing HAWAII will match this...
#0    string        HA        HA archive data,
#>2    leshort        =1        1 file,
#>2    leshort        >1        %u files,
#>4    byte&0x0f    =0        first is type CPY
#>4    byte&0x0f    =1        first is type ASC
#>4    byte&0x0f    =2        first is type HSC
#>4    byte&0x0f    =0x0e        first is type DIR
#>4    byte&0x0f    =0x0f        first is type SPECIAL
# suggestion: at least identify small archives (<1024 files)
0  belong&0xffff00fc 0x48410000 HA archive data
>2    leshort        =1        1 file,
>2    leshort        >1        %u files,
>4    byte&0x0f    =0        first is type CPY
>4    byte&0x0f    =1        first is type ASC
>4    byte&0x0f    =2        first is type HSC
>4    byte&0x0f    =0x0e        first is type DIR
>4    byte&0x0f    =0x0f        first is type SPECIAL
# HPACK archiver (Peter Gutmann, pgut1@cs.aukuni.ac.nz)
0    string        HPAK        HPACK archive data
# JAM Archive volume format, by Dmitry.Kohmanyuk@UA.net
0    string        \351,\001JAM\         JAM archive,
>7    string        >\0            version %.4s
>0x26    byte        =0x27            -
>>0x2b    string          >\0            label %.11s,
>>0x27    lelong        x            serial %08x,
>>0x36    string        >\0            fstype %.8s
# LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu)
2    string        -lh0-        LHarc 1.x/ARX archive data [lh0]
!:mime    application/x-lharc
2    string        -lh1-        LHarc 1.x/ARX archive data [lh1]
!:mime    application/x-lharc
2    string        -lz4-        LHarc 1.x archive data [lz4]
!:mime    application/x-lharc
2    string        -lz5-        LHarc 1.x archive data [lz5]
!:mime    application/x-lharc
#    [never seen any but the last; -lh4- reported in comp.compression:]
2    string        -lzs-        LHa/LZS archive data [lzs]
!:mime    application/x-lha
2    string        -lh\40-        LHa 2.x? archive data [lh ]
!:mime    application/x-lha
2    string        -lhd-        LHa 2.x? archive data [lhd]
!:mime    application/x-lha
2    string        -lh2-        LHa 2.x? archive data [lh2]
!:mime    application/x-lha
2    string        -lh3-        LHa 2.x? archive data [lh3]
!:mime    application/x-lha
2    string        -lh4-        LHa (2.x) archive data [lh4]
!:mime    application/x-lha
2    string        -lh5-        LHa (2.x) archive data [lh5]
!:mime    application/x-lha
2    string        -lh6-        LHa (2.x) archive data [lh6]
!:mime    application/x-lha
2    string        -lh7-        LHa (2.x)/LHark archive data [lh7]
!:mime    application/x-lha
>20    byte        x        - header level %d
# taken from idarc [JW]
2   string      -lZ         PUT archive data
2   string      -lz         LZS archive data
2   string      -sw1-       Swag archive data
# RAR archiver (Greg Roelofs, newt@uchicago.edu)
0    string        Rar!        RAR archive data,
!:mime    application/x-rar
>44    byte        x        v%0x,
>10    byte        >0        flags:
>>10    byte        &0x01        Archive volume,
>>10    byte        &0x02        Commented,
>>10    byte        &0x04        Locked,
>>10    byte        &0x08        Solid,
>>10    byte        &0x20        Authenticated,
>35    byte        0        os: MS-DOS
>35    byte        1        os: OS/2
>35    byte        2        os: Win32
>35    byte        3        os: Unix
# some old version? idarc says:
0   string      RE\x7e\x5e  RAR archive data
# SQUISH archiver (Greg Roelofs, newt@uchicago.edu)
0    string        SQSH        squished archive data (Acorn RISCOS)
# UC2 archiver (Greg Roelofs, newt@uchicago.edu)
# [JW] see exe section for self-extracting version
0    string        UC2\x1a        UC2 archive data
# 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
>30    ubelong        !0x6d696d65
>>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        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>
>30    string        mimetype
# 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
# 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
# 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
!:mime    application/vnd.oasis.opendocument.text
>>>>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
# Zoo archiver
20    lelong        0xfdc4a7dc    Zoo archive data
!:mime    application/x-zoo
>4    byte        >48        \b, v%c.
>>6    byte        >47        \b%c
>>>7    byte        >47        \b%c
>32    byte        >0        \b, modify: v%d
>>33    byte        x        \b.%d+
>42    lelong        0xfdc4a7dc    \b,
>>70    byte        >0        extract: v%d
>>>71    byte        x        \b.%d+
# Shell archives
10    string        #\ This\ is\ a\ shell\ archive    shell archive text
!:mime    application/octet-stream
#
# LBR. NB: May conflict with the questionable
#          "binary Computer Graphics Metafile" format.
#
0       string  \0\ \ \ \ \ \ \ \ \ \ \ \0\0    LBR archive data
#
# PMA (CP/M derivative of LHA)
#
2       string          -pm0-           PMarc archive data [pm0]
2       string          -pm1-           PMarc archive data [pm1]
2       string          -pm2-           PMarc archive data [pm2]
2       string          -pms-           PMarc SFX archive (CP/M, DOS)
5       string          -pc1-           PopCom compressed executable (CP/M)
# 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:
0    leshort        0xeb81    PRCS packaged project
# 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
#>24    byte    x        \b.%d
# MPi: All CABs have version 1.3, so this is pointless.
# Better magic in debian-additions.
# GTKtalog catalogs
# by David Necas (Yeti) <yeti@physics.muni.cz>
4    string    gtktalog\     GTKtalog catalog data,
>13    string    3        version 3
>>14    beshort    0x677a        (gzipped)
>>14    beshort    !0x677a        (not gzipped)
>13    string    >3        version %s
############################################################################
# Parity archive reconstruction file, the 'par' file format now used on Usenet.
0       string          PAR\0    PARity archive data
>48    leshort        =0    - Index file
>48    leshort        >0    - file number %d
# Felix von Leitner <felix-file@fefe.de>
0    string    d8:announce    BitTorrent file
!: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
# Alternate ZIP string (amc@arwen.cs.berkeley.edu)
0    string    PK00PK\003\004    Zip archive data
# ACE archive (from http://www.wotsit.org/download.asp?f=ace)
# by Stefan `Sec` Zehl <sec@42.org>
7    string        **ACE**        ACE archive data
>15    byte    >0        version %d
>16    byte    =0x00        \b, from MS-DOS
>16    byte    =0x01        \b, from OS/2
>16    byte    =0x02        \b, from Win/32
>16    byte    =0x03        \b, from Unix
>16    byte    =0x04        \b, from MacOS
>16    byte    =0x05        \b, from WinNT
>16    byte    =0x06        \b, from Primos
>16    byte    =0x07        \b, from AppleGS
>16    byte    =0x08        \b, from Atari
>16    byte    =0x09        \b, from Vax/VMS
>16    byte    =0x0A        \b, from Amiga
>16    byte    =0x0B        \b, from Next
>14    byte    x        \b, version %d to extract
>5    leshort &0x0080        \b, multiple volumes,
>>17    byte    x        \b (part %d),
>5    leshort &0x0002        \b, contains comment
>5    leshort    &0x0200        \b, sfx
>5    leshort    &0x0400        \b, small dictionary
>5    leshort    &0x0800        \b, multi-volume
>5    leshort    &0x1000        \b, contains AV-String
>>30    string    \x16*UNREGISTERED\x20VERSION*    (unregistered)
>5    leshort &0x2000        \b, with recovery record
>5    leshort &0x4000        \b, locked
>5    leshort &0x8000        \b, solid
# Date in MS-DOS format (whatever that is)
#>18    lelong    x        Created on
# sfArk : compression program for Soundfonts (sf2) by Dirk Jagdmann
# <doj@cubic.org>
0x1A    string    sfArk        sfArk compressed Soundfont
>0x15    string    2
>>0x1    string    >\0        Version %s
>>0x2A    string    >\0        : %s
# DR-DOS 7.03 Packed File *.??_
0    string    Packed\ File\     Personal NetWare Packed File
>12    string    x            \b, was "%.12s"
# EET archive
# From: Tilman Sauerbeck <tilman@code-monkey.de>
0    belong    0x1ee7ff00    EET archive
!:mime    application/x-eet
# rzip archives
0    string    RZIP        rzip compressed data
>4    byte    x        - version %d
>5    byte    x        \b.%d
>6    belong    x        (%d bytes)
# From: "Robert Dale" <robdale@gmail.com>
0    belong    123        dar archive,
>4    belong    x        label "%.8x
>>8    belong    x        %.8x
>>>12    beshort    x        %.4x"
>14    byte    0x54        end slice
>14    beshort    0x4e4e        multi-part
>14    beshort    0x4e53        multi-part, with -S
# Symbian installation files
#  http://www.thouky.co.uk/software/psifs/sis.html
#  http://developer.symbian.com/main/downloads/papers/SymbianOSv91/softwareinstallsis.pdf
8    lelong    0x10000419    Symbian installation file
!:mime    application/vnd.symbian.install
>4    lelong    0x1000006D    (EPOC release 3/4/5)
>4    lelong    0x10003A12    (EPOC release 6)
0    lelong    0x10201A7A    Symbian installation file (Symbian OS 9.x)
!:mime    x-epoc/x-sisx-app
# From "Nelson A. de Oliveira" <naoliv@gmail.com>
0    string    MPQ\032        MoPaQ (MPQ) archive
# From: Dirk Jagdmann <doj@cubic.org>
# xar archive format: http://code.google.com/p/xar/
0    string    xar!        xar archive
>6    beshort    x        - version %ld
# From: "Nelson A. de Oliveira" <naoliv@gmail.com>
# .kgb
0    string KGB_arch        KGB Archiver file
>10    string x        with compression level %.1s
# xar (eXtensible ARchiver) archive
# From: "David Remahl" <dremahl@apple.com>
0    string    xar!        xar archive
#>4    beshort    x        header size %d
>6    beshort    x        version %d,
#>8    quad    x        compressed TOC: %d,
#>16    quad    x        uncompressed TOC: %d,
>24    belong    0        no checksum
>24    belong    1        SHA-1 checksum
>24    belong    2        MD5 checksum
ok335xD/3rdparty/file/file-5.04/magic/Magdir/asterix
New file
@@ -0,0 +1,18 @@
#------------------------------------------------------------------------------
# $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)
#
0    string        *STA        Aster*x
>7    string        WORD            Words Document
>7    string        GRAP            Graphic
>7    string        SPRE            Spreadsheet
>7    string        MACR            Macro
0    string        2278        Aster*x Version 2
>29    byte        0x36            Words Document
>29    byte        0x35            Graphic
>29    byte        0x32            Spreadsheet
>29    byte        0x38            Macro
ok335xD/3rdparty/file/file-5.04/magic/Magdir/att3b
New file
@@ -0,0 +1,41 @@
#------------------------------------------------------------------------------
# $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.
# (Was the problem just one of endianness?)
#
# 3B20
#
# The 3B20 conflicts with SCCS.
#0    beshort        0550        3b20 COFF executable
#>12    belong        >0        not stripped
#>22    beshort        >0        - version %ld
#0    beshort        0551        3b20 COFF executable (TV)
#>12    belong        >0        not stripped
#>22    beshort        >0        - version %ld
#
# WE32K
#
0    beshort        0560        WE32000 COFF
>18    beshort        ^00000020    object
>18    beshort        &00000020    executable
>12    belong        >0        not stripped
>18    beshort        ^00010000    N/A on 3b2/300 w/paging
>18    beshort        &00020000    32100 required
>18    beshort        &00040000    and MAU hardware required
>20    beshort        0407        (impure)
>20    beshort        0410        (pure)
>20    beshort        0413        (demand paged)
>20    beshort        0443        (target shared library)
>22    beshort        >0        - version %ld
0    beshort        0561        WE32000 COFF executable (TV)
>12    belong        >0        not stripped
#>18    beshort        &00020000    - 32100 required
#>18    beshort        &00040000    and MAU hardware required
#>22    beshort        >0        - version %ld
#
# core file for 3b2
0    string        \000\004\036\212\200    3b2 core file
>364    string        >\0        of '%s'
ok335xD/3rdparty/file/file-5.04/magic/Magdir/audio
New file
@@ -0,0 +1,608 @@
#------------------------------------------------------------------------------
# $File: audio,v 1.59 2009/11/04 17:27:37 christos Exp $
# audio:  file(1) magic for sound formats (see also "iff")
#
# Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
# and others
#
# Sun/NeXT audio data
0    string        .snd        Sun/NeXT audio data:
>12    belong        1        8-bit ISDN mu-law,
!:mime    audio/basic
>12    belong        2        8-bit linear PCM [REF-PCM],
!:mime    audio/basic
>12    belong        3        16-bit linear PCM,
!:mime    audio/basic
>12    belong        4        24-bit linear PCM,
!:mime    audio/basic
>12    belong        5        32-bit linear PCM,
!:mime    audio/basic
>12    belong        6        32-bit IEEE floating point,
!:mime    audio/basic
>12    belong        7        64-bit IEEE floating point,
!:mime    audio/basic
>12    belong        8        Fragmented sample data,
>12    belong        10        DSP program,
>12    belong        11        8-bit fixed point,
>12    belong        12        16-bit fixed point,
>12    belong        13        24-bit fixed point,
>12    belong        14        32-bit fixed point,
>12    belong        18        16-bit linear with emphasis,
>12    belong        19        16-bit linear compressed,
>12    belong        20        16-bit linear with emphasis and compression,
>12    belong        21        Music kit DSP commands,
>12    belong        23        8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
!:mime  audio/x-adpcm
>12    belong        24        compressed (8-bit CCITT G.722 ADPCM)
>12    belong        25        compressed (3-bit CCITT G.723.3 ADPCM),
>12    belong        26        compressed (5-bit CCITT G.723.5 ADPCM),
>12    belong        27        8-bit A-law (CCITT G.711),
>20    belong        1        mono,
>20    belong        2        stereo,
>20    belong        4        quad,
>16    belong        >0        %d Hz
# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
0    lelong        0x0064732E    DEC audio data:
>12    lelong        1        8-bit ISDN mu-law,
!:mime    audio/x-dec-basic
>12    lelong        2        8-bit linear PCM [REF-PCM],
!:mime    audio/x-dec-basic
>12    lelong        3        16-bit linear PCM,
!:mime    audio/x-dec-basic
>12    lelong        4        24-bit linear PCM,
!:mime    audio/x-dec-basic
>12    lelong        5        32-bit linear PCM,
!:mime    audio/x-dec-basic
>12    lelong        6        32-bit IEEE floating point,
!:mime    audio/x-dec-basic
>12    lelong        7        64-bit IEEE floating point,
!:mime    audio/x-dec-basic
>12    belong        8        Fragmented sample data,
>12    belong        10        DSP program,
>12    belong        11        8-bit fixed point,
>12    belong        12        16-bit fixed point,
>12    belong        13        24-bit fixed point,
>12    belong        14        32-bit fixed point,
>12    belong        18        16-bit linear with emphasis,
>12    belong        19        16-bit linear compressed,
>12    belong        20        16-bit linear with emphasis and compression,
>12    belong        21        Music kit DSP commands,
>12    lelong        23        8-bit ISDN mu-law compressed (CCITT G.721 ADPCM voice enc.),
!:mime    audio/x-dec-basic
>12    belong        24        compressed (8-bit CCITT G.722 ADPCM)
>12    belong        25        compressed (3-bit CCITT G.723.3 ADPCM),
>12    belong        26        compressed (5-bit CCITT G.723.5 ADPCM),
>12    belong        27        8-bit A-law (CCITT G.711),
>20    lelong        1        mono,
>20    lelong        2        stereo,
>20    lelong        4        quad,
>16    lelong        >0        %d Hz
# Creative Labs AUDIO stuff
0    string    MThd            Standard MIDI data
!:mime    audio/midi
>8     beshort    x            (format %d)
>10    beshort    x            using %d track
>10    beshort        >1        \bs
>12    beshort&0x7fff    x        at 1/%d
>12    beshort&0x8000    >0        SMPTE
0    string    CTMF            Creative Music (CMF) data
!:mime    audio/x-unknown
0    string    SBI            SoundBlaster instrument data
!:mime    audio/x-unknown
0    string    Creative\ Voice\ File    Creative Labs voice data
!:mime    audio/x-unknown
# is this next line right?  it came this way...
>19    byte    0x1A
>23    byte    >0            - version %d
>22    byte    >0            \b.%d
# first entry is also the string "NTRK"
0    belong        0x4e54524b    MultiTrack sound data
>4    belong        x        - version %ld
# Extended MOD format (*.emd) (Greg Roelofs, newt@uchicago.edu); NOT TESTED
# [based on posting 940824 by "Dirk/Elastik", husberg@lehtori.cc.tut.fi]
0    string        EMOD        Extended MOD sound data,
>4    byte&0xf0    x        version %d
>4    byte&0x0f    x        \b.%d,
>45    byte        x        %d instruments
>83    byte        0        (module)
>83    byte        1        (song)
# Real Audio (Magic .ra\0375)
0    belong        0x2e7261fd    RealAudio sound file
!:mime    audio/x-pn-realaudio
0    string        .RMF        RealMedia file
!:mime    application/vnd.rn-realmedia
#video/x-pn-realvideo
#video/vnd.rn-realvideo
#application/vnd.rn-realmedia
#    sigh, there are many mimes for that but the above are the most common.
# MTM/669/FAR/S3M/ULT/XM format checking [Aaron Eppert, aeppert@dialin.ind.net]
# Oct 31, 1995
# fixed by <doj@cubic.org> 2003-06-24
# Too short...
#0    string        MTM        MultiTracker Module sound file
#0    string        if        Composer 669 Module sound data
#0    string        JN        Composer 669 Module sound data (extended format)
0    string        MAS_U        ULT(imate) Module sound data
#0    string        FAR        Module sound data
#>4    string        >\15        Title: "%s"
0x2c    string        SCRM        ScreamTracker III Module sound data
>0    string        >\0        Title: "%s"
# Gravis UltraSound patches
# From <ache@nagual.ru>
0    string        GF1PATCH110\0ID#000002\0    GUS patch
0    string        GF1PATCH100\0ID#000002\0    Old GUS    patch
# mime types according to http://www.geocities.com/nevilo/mod.htm:
#    audio/it    .it
#    audio/x-zipped-it    .itz
#    audio/xm    fasttracker modules
#    audio/x-s3m    screamtracker modules
#    audio/s3m    screamtracker modules
#    audio/x-zipped-mod    mdz
#    audio/mod    mod
#    audio/x-mod    All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
#
# Taken from loader code from mikmod version 2.14
# by Steve McIntyre (stevem@chiark.greenend.org.uk)
# <doj@cubic.org> added title printing on 2003-06-24
0    string    MAS_UTrack_V00
>14    string    >/0        ultratracker V1.%.1s module sound data
!:mime    audio/x-mod
#audio/x-tracker-module
0    string    UN05        MikMod UNI format module sound data
0    string    Extended\ Module: Fasttracker II module sound data
!:mime    audio/x-mod
#audio/x-tracker-module
>17    string    >\0        Title: "%s"
21    string/c    =!SCREAM!    Screamtracker 2 module sound data
!:mime    audio/x-mod
#audio/x-screamtracker-module
21    string    BMOD2STM    Screamtracker 2 module sound data
!:mime    audio/x-mod
#audio/x-screamtracker-module
1080    string    M.K.        4-channel Protracker module sound data
!:mime    audio/x-mod
#audio/x-protracker-module
>0    string    >\0        Title: "%s"
1080    string    M!K!        4-channel Protracker module sound data
!:mime    audio/x-mod
#audio/x-protracker-module
>0    string    >\0        Title: "%s"
1080    string    FLT4        4-channel Startracker module sound data
!:mime    audio/x-mod
#audio/x-startracker-module
>0    string    >\0        Title: "%s"
1080    string    FLT8        8-channel Startracker module sound data
!:mime    audio/x-mod
#audio/x-startracker-module
>0    string    >\0        Title: "%s"
1080    string    4CHN        4-channel Fasttracker module sound data
!:mime    audio/x-mod
#audio/x-fasttracker-module
>0    string    >\0        Title: "%s"
1080    string    6CHN        6-channel Fasttracker module sound data
!:mime    audio/x-mod
#audio/x-fasttracker-module
>0    string    >\0        Title: "%s"
1080    string    8CHN        8-channel Fasttracker module sound data
!:mime    audio/x-mod
#audio/x-fasttracker-module
>0    string    >\0        Title: "%s"
1080    string    CD81        8-channel Octalyser module sound data
!:mime    audio/x-mod
#audio/x-octalysertracker-module
>0    string    >\0        Title: "%s"
1080    string    OKTA        8-channel Octalyzer module sound data
!:mime    audio/x-mod
#audio/x-octalysertracker-module
>0    string    >\0        Title: "%s"
# Not good enough.
#1082    string    CH
#>1080    string    >/0        %.2s-channel Fasttracker "oktalyzer" module sound data
1080    string    16CN        16-channel Taketracker module sound data
!:mime    audio/x-mod
#audio/x-taketracker-module
>0    string    >\0        Title: "%s"
1080    string    32CN        32-channel Taketracker module sound data
!:mime    audio/x-mod
#audio/x-taketracker-module
>0    string    >\0        Title: "%s"
# TOC sound files -Trevor Johnson <trevor@jpj.net>
#
0       string          TOC             TOC sound file
# sidfiles <pooka@iki.fi>
# added name,author,(c) and new RSID type by <doj@cubic.org> 2003-06-24
0    string        SIDPLAY\ INFOFILE    Sidplay info file
0    string        PSID            PlaySID v2.2+ (AMIGA) sidtune
>4    beshort        >0            w/ header v%d,
>14    beshort        =1            single song,
>14    beshort        >1            %d songs,
>16    beshort        >0            default song: %d
>0x16    string        >\0            name: "%s"
>0x36    string        >\0            author: "%s"
>0x56    string        >\0            copyright: "%s"
0    string        RSID            RSID sidtune PlaySID compatible
>4    beshort        >0            w/ header v%d,
>14    beshort        =1            single song,
>14    beshort        >1            %d songs,
>16    beshort        >0            default song: %d
>0x16    string        >\0            name: "%s"
>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)
0    belong        0x64a30300        IRCAM file (MIPS little-endian)
0    belong        0x64a30400        IRCAM file (NeXT)
# NIST SPHERE <mpruett@sgi.com>
0    string        NIST_1A\n\ \ \ 1024\n    NIST SPHERE file
# Sample Vision <mpruett@sgi.com>
0    string        SOUND\ SAMPLE\ DATA\     Sample Vision file
# Audio Visual Research <tonigonenstein@users.sourceforge.net>
0    string        2BIT            Audio Visual Research file,
>12    beshort        =0            mono,
>12    beshort        =-1            stereo,
>14    beshort        x            %d bits
>16    beshort        =0            unsigned,
>16    beshort        =-1            signed,
>22    belong&0x00ffffff    x        %d Hz,
>18    beshort        =0            no loop,
>18    beshort        =-1            loop,
>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        =4            replay 21.942 KHz
>22    byte        =5            replay 32.336 KHz
>22    byte        =6            replay 43.885 KHz
>22    byte        =7            replay 47.261 KHz
# SGI SoundTrack <mpruett@sgi.com>
0    string        _SGI_SoundTrack        SGI SoundTrack project file
# ID3 version 2 tags <waschk@informatik.uni-rostock.de>
0    string        ID3    Audio file with ID3 version 2
>3    byte        x    \b.%d
>4    byte        x    \b.%d
>>5    byte        &0x80    \b, unsynchronized frames
>>5    byte        &0x40    \b, extended header
>>5    byte        &0x20    \b, experimental
>>5    byte        &0x10    \b, footer present
>(6.I)    indirect    x    \b, contains:
# NSF (NES sound file) magic
0    string        NESM\x1a    NES Sound File
>14    string        >\0        ("%s" by
>46    string        >\0        %s, copyright
>78    string        >\0        %s),
>5    byte        x        version %d,
>6    byte        x        %d tracks,
>122    byte&0x2    =1        dual PAL/NTSC
>122    byte&0x1    =1        PAL
>122    byte&0x1    =0        NTSC
# Impulse tracker module (audio/x-it)
0    string        IMPM        Impulse Tracker module sound data -
!:mime    audio/x-mod
>4    string        >\0        "%s"
>40    leshort        !0        compatible w/ITv%x
>42    leshort        !0        created w/ITv%x
# Imago Orpheus module (audio/x-imf)
60    string        IM10        Imago Orpheus module sound data -
>0    string        >\0        "%s"
# From <collver1@attbi.com>
# These are the /etc/magic entries to decode modules, instruments, and
# samples in Impulse Tracker's native format.
0    string        IMPS        Impulse Tracker Sample
>18    byte        &2        16 bit
>18    byte        ^2        8 bit
>18    byte        &4        stereo
>18    byte        ^4        mono
0    string        IMPI        Impulse Tracker Instrument
>28    leshort        !0        ITv%x
>30    byte        !0        %d samples
# Yamaha TX Wave:  file(1) magic for Yamaha TX Wave audio files
# From <collver1@attbi.com>
0    string        LM8953        Yamaha TX Wave
>22    byte        0x49        looped
>22    byte        0xC9        non-looped
>23    byte        1        33kHz
>23    byte        2        50kHz
>23    byte        3        16kHz
# scream tracker:  file(1) magic for Scream Tracker sample files
#
# From <collver1@attbi.com>
76    string        SCRS        Scream Tracker Sample
>0    byte        1        sample
>0    byte        2        adlib melody
>0    byte        >2        adlib drum
>31    byte        &2        stereo
>31    byte        ^2        mono
>31    byte        &4        16bit little endian
>31    byte        ^4        8bit
>30    byte        0        unpacked
>30    byte        1        packed
# audio
# From: Cory Dikkers <cdikkers@swbell.net>
0    string        MMD0        MED music file, version 0
0    string        MMD1        OctaMED Pro music file, version 1
0    string        MMD3        OctaMED Soundstudio music file, version 3
0    string        OctaMEDCmpr    OctaMED Soundstudio compressed file
0    string        MED        MED_Song
0    string        SymM        Symphonie SymMOD music file
#
0    string        THX        AHX version
>3    byte        =0        1 module data
>3    byte        =1        2 module data
#
0    string        OKTASONG    Oktalyzer module data
#
0    string        DIGI\ Booster\ module\0    %s
>20    byte        >0        %c
>>21    byte        >0        \b%c
>>>22    byte        >0        \b%c
>>>>23    byte        >0        \b%c
>610    string        >\0        \b, "%s"
#
0    string        DBM0           DIGI Booster Pro Module
>4    byte        >0        V%X.
>>5    byte        x        \b%02X
>16    string        >\0        \b, "%s"
#
0    string        FTMN        FaceTheMusic module
>16    string        >\0d        \b, "%s"
# From: <doj@cubic.org> 2003-06-24
0    string        AMShdr\32    Velvet Studio AMS Module v2.2
0    string        Extreme        Extreme Tracker AMS Module v1.3
0    string        DDMF        Xtracker DMF Module
>4    byte        x        v%i
>0xD    string        >\0        Title: "%s"
>0x2B    string        >\0        Composer: "%s"
0    string        DSM\32        Dynamic Studio Module DSM
0    string        SONG        DigiTrekker DTM Module
0    string        DMDL        DigiTrakker MDL Module
0    string        PSM\32        Protracker Studio PSM Module
44    string        PTMF        Poly Tracker PTM Module
>0    string        >\32        Title: "%s"
0    string        MT20        MadTracker 2.0 Module MT2
0    string        RAD\40by\40REALiTY!! RAD Adlib Tracker Module RAD
0    string        RTMM        RTM Module
0x426    string        MaDoKaN96    XMS Adlib Module
>0    string        >\0        Composer: "%s"
0    string        AMF        AMF Module
>4    string        >\0        Title: "%s"
0    string        MODINFO1    Open Cubic Player Module Inforation MDZ
0    string        Extended\40Instrument: Fast Tracker II Instrument
# From: Takeshi Hamasaki <hma@syd.odn.ne.jp>
# NOA Nancy Codec file
0    string        \210NOA\015\012\032    NOA Nancy Codec Movie file
# Yamaha SMAF format
0    string        MMMD        Yamaha SMAF file
# Sharp Jisaku Melody format for PDC
0    string        \001Sharp\040JisakuMelody    SHARP Cell-Phone ringing Melody
>20    string        Ver01.00    Ver. 1.00
>>32    byte        x        , %d tracks
# Free lossless audio codec <http://flac.sourceforge.net>
# From: Przemyslaw Augustyniak <silvathraec@rpg.pl>
0    string            fLaC        FLAC audio bitstream data
!:mime    audio/x-flac
>4    byte&0x7f        >0        \b, unknown version
>4    byte&0x7f        0        \b
# some common bits/sample values
>>20    beshort&0x1f0        0x030        \b, 4 bit
>>20    beshort&0x1f0        0x050        \b, 6 bit
>>20    beshort&0x1f0        0x070        \b, 8 bit
>>20    beshort&0x1f0        0x0b0        \b, 12 bit
>>20    beshort&0x1f0        0x0f0        \b, 16 bit
>>20    beshort&0x1f0        0x170        \b, 24 bit
>>20    byte&0xe        0x0        \b, mono
>>20    byte&0xe        0x2        \b, stereo
>>20    byte&0xe        0x4        \b, 3 channels
>>20    byte&0xe        0x6        \b, 4 channels
>>20    byte&0xe        0x8        \b, 5 channels
>>20    byte&0xe        0xa        \b, 6 channels
>>20    byte&0xe        0xc        \b, 7 channels
>>20    byte&0xe        0xe        \b, 8 channels
# some common sample rates
>>17    belong&0xfffff0        0x0ac440    \b, 44.1 kHz
>>17    belong&0xfffff0        0x0bb800    \b, 48 kHz
>>17    belong&0xfffff0        0x07d000    \b, 32 kHz
>>17    belong&0xfffff0        0x056220    \b, 22.05 kHz
>>17    belong&0xfffff0        0x05dc00    \b, 24 kHz
>>17    belong&0xfffff0        0x03e800    \b, 16 kHz
>>17    belong&0xfffff0        0x02b110    \b, 11.025 kHz
>>17    belong&0xfffff0        0x02ee00    \b, 12 kHz
>>17    belong&0xfffff0        0x01f400    \b, 8 kHz
>>17    belong&0xfffff0        0x177000    \b, 96 kHz
>>17    belong&0xfffff0        0x0fa000    \b, 64 kHz
>>21    byte&0xf        >0        \b, >4G samples
>>21    byte&0xf        0        \b
>>>22    belong            >0        \b, %u samples
>>>22    belong            0        \b, length unknown
# (ISDN) VBOX voice message file (Wolfram Kleff)
0       string          VBOX            VBOX voice message data
# ReBorn Song Files (.rbs)
# David J. Singer <doc@deadvirgins.org.uk>
8       string          RB40             RBS Song file
>29     string          ReBorn           created by ReBorn
>37     string          Propellerhead    created by ReBirth
# Synthesizer Generator and Kimwitu share their file format
0    string        A#S#C#S#S#L#V#3        Synthesizer Generator or Kimwitu data
# Kimwitu++ uses a slightly different magic
0    string        A#S#C#S#S#L#HUB        Kimwitu++ data
# From "Simon Hosie
0       string  TFMX-SONG       TFMX module sound data
# Monkey's Audio compressed audio format (.ape)
# From danny.milo@gmx.net (Danny Milosavljevic)
# New version from Abel Cheung <abel (@) oaka.org>
0        string        MAC\040        Monkey's Audio compressed format
>4        uleshort    >0x0F8B        version %d
>>(0x08.l)    uleshort    =1000        with fast compression
>>(0x08.l)    uleshort    =2000        with normal compression
>>(0x08.l)    uleshort    =3000        with high compression
>>(0x08.l)    uleshort    =4000        with extra high compression
>>(0x08.l)    uleshort    =5000        with insane compression
>>(0x08.l+18)    uleshort    =1        \b, mono
>>(0x08.l+18)    uleshort    =2        \b, stereo
>>(0x08.l+20)    ulelong        x        \b, sample rate %d
>4        uleshort    <0x0F8C        version %d
>>6        uleshort    =1000        with fast compression
>>6        uleshort    =2000        with normal compression
>>6        uleshort    =3000        with high compression
>>6        uleshort    =4000        with extra high compression
>>6        uleshort    =5000        with insane compression
>>10        uleshort    =1        \b, mono
>>10        uleshort    =2        \b, stereo
>>12        ulelong        x        \b, sample rate %d
# adlib sound files
# From Gürkan Sengün <gurkan@linuks.mine.nu>, http://www.linuks.mine.nu
0        string        RAWADATA    RdosPlay RAW
1068    string        RoR        AMUSIC Adlib Tracker
0    string        JCH        EdLib
0    string        mpu401tr    MPU-401 Trakker
0    string        SAdT        Surprise! Adlib Tracker
>4    byte        x        Version %d
0    string        XAD!        eXotic ADlib
0    string        ofTAZ!        eXtra Simple Music
# Spectrum 128 tunes (.ay files).
# From: Emanuel Haupt <ehaupt@critical.ch>
0    string        ZXAYEMUL    Spectrum 128 tune
0    string        \0BONK        BONK,
#>5    byte        x        version %d
>14    byte        x        %d channel(s),
>15    byte        =1        lossless,
>15    byte        =0        lossy,
>16    byte        x        mid-side
384    string        LockStream    LockStream Embedded file (mostly MP3 on old Nokia phones)
# format VQF (proprietary codec for sound)
# some infos on the header file available at :
# http://www.twinvq.org/english/technology_format.html
0    string        TWIN97012000    VQF data
>27    short        0        \b, Mono
>27    short        1        \b, Stereo
>31    short         >0        \b, %d kbit/s
>35    short         >0        \b, %d kHz
# Nelson A. de Oliveira (naoliv@gmail.com)
# .eqf
0    string    Winamp\ EQ\ library\ file    %s
# it will match only versions like v<digit>.<digit>
# Since I saw only eqf files with version v1.1 I think that it's OK
>23    string    x    \b%.4s
# .preset
0    string    [Equalizer\ preset]    XMMS equalizer preset
# .m3u
0    search/1    #EXTM3U     M3U playlist text
# .pls
0    search/1    [playlist]    PLS playlist text
# licq.conf
1    string    [licq]            LICQ configuration file
# Atari ST audio files by Dirk Jagdmann <doj@cubic.org>
0    string        ICE!        SNDH Atari ST music
0    string        SC68\ Music-file\ /\ (c)\ (BeN)jami    sc68 Atari ST music
# musepak support From: "Jiri Pejchal" <jiri.pejchal@gmail.com>
0       string          MP+     Musepack audio
>3      byte            255     \b, SV pre8
>3      byte&0xF        0x6     \b, SV 6
>3      byte&0xF        0x8     \b, SV 8
>3      byte&0xF        0x7     \b, SV 7
>>3     byte&0xF0       0x0     \b.0
>>3     byte&0xF0       0x10    \b.1
>>3     byte&0xF0       240     \b.15
>>10    byte&0xF0       0x0     \b, no profile
>>10    byte&0xF0       0x10    \b, profile 'Unstable/Experimental'
>>10    byte&0xF0       0x50    \b, quality 0
>>10    byte&0xF0       0x60    \b, quality 1
>>10    byte&0xF0       0x70    \b, quality 2 (Telephone)
>>10    byte&0xF0       0x80    \b, quality 3 (Thumb)
>>10    byte&0xF0       0x90    \b, quality 4 (Radio)
>>10    byte&0xF0       0xA0    \b, quality 5 (Standard)
>>10    byte&0xF0       0xB0    \b, quality 6 (Xtreme)
>>10    byte&0xF0       0xC0    \b, quality 7 (Insane)
>>10    byte&0xF0       0xD0    \b, quality 8 (BrainDead)
>>10    byte&0xF0       0xE0    \b, quality 9
>>10    byte&0xF0       0xF0    \b, quality 10
>>27    byte            0x0     \b, Buschmann 1.7.0-9, Klemm 0.90-1.05
>>27    byte            102     \b, Beta 1.02
>>27    byte            104     \b, Beta 1.04
>>27    byte            105     \b, Alpha 1.05
>>27    byte            106     \b, Beta 1.06
>>27    byte            110     \b, Release 1.1
>>27    byte            111     \b, Alpha 1.11
>>27    byte            112     \b, Beta 1.12
>>27    byte            113     \b, Alpha 1.13
>>27    byte            114     \b, Beta 1.14
>>27    byte            115     \b, Alpha 1.15
# IMY
# from http://filext.com/detaillist.php?extdetail=IMY
# http://cellphones.about.com/od/cellularfaqs/f/rf_imelody.htm
# http://download.ncl.ie/doc/api/ie/ncl/media/music/IMelody.html
# http://www.wx800.com/msg/download/irda/iMelody.pdf
0    string    BEGIN:IMELODY    iMelody Ringtone Format
# From: "Mateus Caruccio" <mateus@caruccio.com>
# guitar pro v3,4,5 from http://filext.com/file-extension/gp3
0    string    \030FICHIER\ GUITAR\ PRO\ v3.    Guitar Pro Ver. 3 Tablature
# From: "Leslie P. Polzer" <leslie.polzer@gmx.net>
60    string    SONG        SoundFX Module sound file
# Type: Adaptive Multi-Rate Codec
# URL:  http://filext.com/detaillist.php?extdetail=AMR
# From: Russell Coker <russell@coker.com.au>
0    string    #!AMR        Adaptive Multi-Rate Codec (GSM telephony)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/basis
New file
@@ -0,0 +1,18 @@
#----------------------------------------------------------------
# $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.
#
0    string        \074\074bbx\076\076    BBx
>7    string        \000            indexed file
>7    string        \001            serial file
>7    string        \002            keyed file
>>13    short        0            (sort)
>7    string        \004            program
>>18    byte        x            (LEVEL %d)
>>>23    string        >\000            psaved
>7    string        \006            mkeyed file
>>13    short        0            (sort)
>>8    string        \000            (mkey)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bflt
New file
@@ -0,0 +1,14 @@
#------------------------------------------------------------------------------
# $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>
#
0    string        bFLT        BFLT executable
>4    belong        x        - version %ld
>4    belong        4
>>36    belong&0x1    0x1        ram
>>36    belong&0x2    0x2        gotpic
>>36    belong&0x4    0x4        gzip
>>36    belong&0x8    0x8        gzdata
ok335xD/3rdparty/file/file-5.04/magic/Magdir/blender
New file
@@ -0,0 +1,39 @@
#------------------------------------------------------------------------------
# $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
# http://lists.blender.org/mailman/listinfo/bf-committers
# GLOB chunk was moved near start and provides subversion info since 2.42
0        string    =BLENDER    Blender3D,
>7        string    =_        saved as 32-bits
>>8        string    =v        little endian
>>>9        byte    x        with version %c.
>>>10        byte    x        \b%c
>>>11        byte    x        \b%c
>>>0x40        string    =GLOB        \b.
>>>>0x58    leshort    x        \b%.4d
>>8        string    =V        big endian
>>>9        byte    x        with version %c.
>>>10        byte    x        \b%c
>>>11        byte    x        \b%c
>>>0x40        string    =GLOB        \b.
>>>>0x58    beshort    x        \b%.4d
>7        string    =-        saved as 64-bits
>>8        string    =v        little endian
>>9        byte    x        with version %c.
>>10        byte    x        \b%c
>>11        byte    x        \b%c
>>0x44        string    =GLOB        \b.
>>>0x60        leshort    x        \b%.4d
>>8        string    =V        big endian
>>>9        byte    x        with version %c.
>>>10        byte    x        \b%c
>>>11        byte    x        \b%c
>>>0x44        string    =GLOB        \b.
>>>>0x60    beshort    x        \b%.4d
# Scripts that run in the embeded Python interpreter
0        string    #!BPY        Blender3D BPython script
ok335xD/3rdparty/file/file-5.04/magic/Magdir/blit
New file
@@ -0,0 +1,20 @@
#------------------------------------------------------------------------------
# $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...
#
# XXX - should this be redone with "be" and "le", so that it works on
# little-endian machines as well?  If so, what's the deal with
# "VAX-order" and "VAX-order2"?
#
#0    long        0407        68K Blit (standalone) executable
#0    short        0407        VAX-order2 68K Blit (standalone) executable
0    short        03401        VAX-order 68K Blit (standalone) executable
0    long        0406        68k Blit mpx/mux executable
0    short        0406        VAX-order2 68k Blit mpx/mux executable
0    short        03001        VAX-order 68k Blit mpx/mux executable
# Need more values for WE32 DMD executables.
# Note that 0520 is the same as COFF
#0    short        0520        tty630 layers executable
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bout
New file
@@ -0,0 +1,11 @@
#------------------------------------------------------------------------------
# $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
>16    long        >0        not stripped
#
# b.out archive (hp-rt on i960)
0    string        =!<bout>    b.out archive
>8    string        __.SYMDEF    random library
ok335xD/3rdparty/file/file-5.04/magic/Magdir/bsdi
New file
@@ -0,0 +1,43 @@
#------------------------------------------------------------------------------
# $File: bsdi,v 1.5 2009/09/19 16:28:08 christos Exp $
# bsdi:  file(1) magic for BSD/OS (from BSDI) objects
#
0    lelong        0314        386 compact demand paged pure executable
>16    lelong        >0        not stripped
>32    byte        0x6a        (uses shared libs)
0    lelong        0407        386 executable
>16    lelong        >0        not stripped
>32    byte        0x6a        (uses shared libs)
0    lelong        0410        386 pure executable
>16    lelong        >0        not stripped
>32    byte        0x6a        (uses shared libs)
0    lelong        0413        386 demand paged pure executable
>16    lelong        >0        not stripped
>32    byte        0x6a        (uses shared libs)
# same as in SunOS 4.x, except for static shared libraries
0    belong&077777777    0600413        sparc demand paged
>0    byte        &0x80
>>20    belong        <4096        shared library
>>20    belong        =4096        dynamically linked executable
>>20    belong        >4096        dynamically linked executable
>0    byte        ^0x80        executable
>16    belong        >0        not stripped
>36    belong        0xb4100001    (uses shared libs)
0    belong&077777777    0600410        sparc pure
>0    byte        &0x80        dynamically linked executable
>0    byte        ^0x80        executable
>16    belong        >0        not stripped
>36    belong        0xb4100001    (uses shared libs)
0    belong&077777777    0600407        sparc
>0    byte        &0x80        dynamically linked executable
>0    byte        ^0x80        executable
>16    belong        >0        not stripped
>36    belong        0xb4100001    (uses shared libs)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/btsnoop
New file
@@ -0,0 +1,13 @@
#------------------------------------------------------------------------------
# $File: btsnoop,v 1.5 2009/09/19 16:28:08 christos Exp $
# BTSnoop:  file(1) magic for BTSnoop files
#
# From <marcel@holtmann.org>
0    string        btsnoop\0        BTSnoop
>8    belong        x            version %d,
>12    belong        1001            Unencapsulated HCI
>12    belong        1002            HCI UART (H4)
>12    belong        1003            HCI BCSP
>12    belong        1004            HCI Serial (H5)
>>12    belong        x            type %d
ok335xD/3rdparty/file/file-5.04/magic/Magdir/c-lang
New file
@@ -0,0 +1,29 @@
#------------------------------------------------------------------------------
# $File: c-lang,v 1.14 2009/09/19 16:28:08 christos Exp $
# c-lang:  file(1) magic for C programs (or REXX)
#
# XPM icons (Greg Roelofs, newt@uchicago.edu)
# if you uncomment "/*" for C/REXX below, also uncomment this entry
#0    string        /*\ XPM\ */    X pixmap image data
#!:mime    image/x-xpmi
# 3DS (3d Studio files) Conflicts with diff output 0x3d '='
#16    beshort        0x3d3d        image/x-3ds
# this first will upset you if you're a PL/1 shop...
# in which case rm it; ascmagic will catch real C programs
#0    search/1    /*        C or REXX program text
#0    search/1    //        C++ program text
# From: Mikhail Teterin <mi@aldan.algebra.com>
0    string        cscope        cscope reference data
>7    string        x        version %.2s
# We skip the path here, because it is often long (so file will
# truncate it) and mostly redundant.
# The inverted index functionality was added some time betwen
# versions 11 and 15, so look for -q if version is above 14:
>7    string        >14
>>10    search/100    \ -q\         with inverted index
>10    search/100    \ -c\         text (non-compressed)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/c64
New file
@@ -0,0 +1,43 @@
#------------------------------------------------------------------------------
# $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>
0x16500    belong        0x12014100    D64 Image
0x16500    belong        0x12014180    D71 Image
0x61800 belong        0x28034400    D81 Image
0    string        C64\40CARTRIDGE    CCS C64 Emultar Cartridge Image
0    belong        0x43154164    X64 Image
0    string        GCR-1541    GCR Image
>8    byte        x        version: %i
>9    byte        x        tracks: %i
9    string        PSUR        ARC archive (c64)
2    string        -LH1-        LHA archive (c64)
0    string        C64File        PC64 Emulator file
>8    string        >\0        "%s"
0    string        C64Image    PC64 Freezer Image
0    beshort        0x38CD        C64 PCLink Image
0    string        CBM\144\0\0    Power 64 C64 Emulator Snapshot
0    belong        0xFF424CFF    WRAptor packer (c64)
0    string        C64S\x20tape\x20file    T64 tape Image
>32    leshort        x        Version:0x%x
>36    leshort        !0        Entries:%i
>40    string        x        Name:%.24s
0    string        C64\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0    T64 tape Image
>32    leshort        x        Version:0x%x
>36    leshort        !0        Entries:%i
>40    string        x        Name:%.24s
0    string        C64S\x20tape\x20image\x20file\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0    T64 tape Image
>32    leshort        x        Version:0x%x
>36    leshort        !0        Entries:%i
>40    string        x        Name:%.24s
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cad
New file
@@ -0,0 +1,70 @@
#------------------------------------------------------------------------------
# $File: cad,v 1.9 2009/09/19 16:28:08 christos Exp $
# autocad:  file(1) magic for cad files
#
# AutoCAD DWG versions R13/R14 (www.autodesk.com)
# Written December 01, 2003 by Lester Hightower
# Based on the DWG File Format Specifications at http://www.opendwg.org/
0    string           \101\103\061\060\061           AutoCAD
>5    string           \062\000\000\000\000           DWG ver. R13
>5    string           \064\000\000\000\000           DWG ver. R14
# Microstation DGN/CIT Files (www.bentley.com)
# Last updated July 29, 2005 by Lester Hightower
# DGN is the default file extension of Microstation/Intergraph CAD files.
# CIT is the proprietary raster format (similar to TIFF) used to attach
# raster underlays to Microstation DGN (vector) drawings.
#
# http://www.wotsit.org/search.asp
# http://filext.com/detaillist.php?extdetail=DGN
# http://filext.com/detaillist.php?extdetail=CIT
#
# http://www.bentley.com/products/default.cfm?objectid=97F351F5-9C35-4E5E-89C2
# 3F86C928&method=display&p_objectid=97F351F5-9C35-4E5E-89C280A93F86C928
# http://www.bentley.com/products/default.cfm?objectid=A5C2FD43-3AC9-4C71-B682
# 721C479F&method=display&p_objectid=A5C2FD43-3AC9-4C71-B682C7BE721C479F
0    string    \010\011\376            Microstation
>3    string    \002
>>30    string    \026\105            DGNFile
>>30    string    \034\105            DGNFile
>>30    string    \073\107            DGNFile
>>30    string    \073\110            DGNFile
>>30    string    \106\107            DGNFile
>>30    string    \110\103            DGNFile
>>30    string    \120\104            DGNFile
>>30    string    \172\104            DGNFile
>>30    string    \172\105            DGNFile
>>30    string    \172\106            DGNFile
>>30    string    \234\106            DGNFile
>>30    string    \273\105            DGNFile
>>30    string    \306\106            DGNFile
>>30    string    \310\104            DGNFile
>>30    string    \341\104            DGNFile
>>30    string    \372\103            DGNFile
>>30    string    \372\104            DGNFile
>>30    string    \372\106            DGNFile
>>30    string    \376\103            DGNFile
>4    string    \030\000\000            CITFile
>4    string    \030\000\003            CITFile
# 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)
# CAD: file(1) magic for computer aided design files
# Phillip Griffith <phillip dot griffith at gmail dot com>
# AutoCAD magic taken from the Open Design Alliance's OpenDWG specifications.
#
0    belong    0x08051700    Bentley/Intergraph MicroStation DGN cell library
0    belong    0x0809fe02    Bentley/Intergraph MicroStation DGN vector CAD
0    belong    0xc809fe02    Bentley/Intergraph MicroStation DGN vector CAD
0    beshort    0x0809        Bentley/Intergraph MicroStation
>0x02    byte    0xfe
>>0x04    beshort    0x1800        CIT raster CAD
0    string    AC1012        AutoDesk AutoCAD R13
0    string    AC1014        AutoDesk AutoCAD R14
0    string    AC1015        AutoDesk AutoCAD R2000
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cafebabe
New file
@@ -0,0 +1,40 @@
#------------------------------------------------------------------------------
# $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
# must be performed in the same "magic" sequence to get both right.  The long
# at offset 4 in a mach-O fat file tells the number of architectures; the short at
# offset 4 in a Java bytecode file is the JVM minor version and the
# short at offset 6 is the JVM major version.  Since there are only
# only 18 labeled Mach-O architectures at current, and the first released
# Java class format was version 43.0, we can safely choose any number
# between 18 and 39 to test the number of architectures against
# (and use as a hack). Let's not use 18, because the Mach-O people
# might add another one or two as time goes by...
#
0    belong        0xcafebabe
!:mime    application/x-java-applet
>4    belong        >30        compiled Java class data,
>>6    beshort        x            version %d.
>>4    beshort        x           \b%d
# Which is which?
#>>4    belong        0x032d        (Java 1.0)
#>>4    belong        0x032d        (Java 1.1)
>>4    belong        0x002e        (Java 1.2)
>>4    belong        0x002f        (Java 1.3)
>>4    belong        0x0030        (Java 1.4)
>>4    belong        0x0031        (Java 1.5)
>>4    belong        0x0032        (Java 1.6)
0    belong        0xcafebabe
>4    belong        1        Mach-O fat file with 1 architecture
>4    belong        >1
>>4    belong        <20        Mach-O fat file with %ld architectures
0    belong        0xcafed00d    JAR compressed with pack200,
>>5    byte        x        version %d.
>>4    byte        x        \b%d
!:mime    application/x-java-pack200
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cddb
New file
@@ -0,0 +1,12 @@
#------------------------------------------------------------------------------
# $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>
#
# This is the /etc/magic entry to decode datafiles as used by
# CDDB-enabled CD player applications.
#
0    search/1/w    #\040xmcd    CDDB(tm) format CD text data
ok335xD/3rdparty/file/file-5.04/magic/Magdir/chord
New file
@@ -0,0 +1,10 @@
#------------------------------------------------------------------------------
# $File: chord,v 1.4 2009/09/19 16:28:08 christos Exp $
# chord: file(1) magic for Chord music sheet typesetting utility input files
#
# From Philippe De Muyter <phdm@macqel.be>
# File format is actually free, but many distributed files begin with `{title'
#
0    string        {title        Chord text file
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cisco
New file
@@ -0,0 +1,12 @@
#------------------------------------------------------------------------------
# $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
#
# Microcode files are non-ELF, 0x8501 conflicts with NetBSD/alpha.
0    belong&0xffffff00    0x85011400  cisco IOS microcode
>7    string        >\0            for '%s'
0    belong&0xffffff00    0x8501cb00  cisco IOS experimental microcode
>7    string        >\0            for '%s'
ok335xD/3rdparty/file/file-5.04/magic/Magdir/citrus
New file
@@ -0,0 +1,8 @@
#------------------------------------------------------------------------------
# $File: citrus,v 1.4 2009/09/19 16:28:08 christos Exp $
# citrus locale declaration
#
0    string        RuneCT        Citrus locale declaration for LC_CTYPE
ok335xD/3rdparty/file/file-5.04/magic/Magdir/clarion
New file
@@ -0,0 +1,27 @@
#------------------------------------------------------------------------------
# $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>
# Database files
# signature
0    leshort    0x3343    Clarion Developer (v2 and above) data file
# attributes
>2    leshort    &0x0001    \b, locked
>2    leshort    &0x0004    \b, encrypted
>2    leshort    &0x0008    \b, memo file exists
>2    leshort    &0x0010    \b, compressed
>2    leshort    &0x0040    \b, read only
# number of records
>5    lelong    x    \b, %ld records
# Memo files
0    leshort    0x334d    Clarion Developer (v2 and above) memo data
# Key/Index files
# No magic? :(
# Help files
0    leshort    0x49e0    Clarion Developer (v2 and above) help data
ok335xD/3rdparty/file/file-5.04/magic/Magdir/claris
New file
@@ -0,0 +1,47 @@
#------------------------------------------------------------------------------
# $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.
# Version 3.0
# .pct claris works clip art files
#0000000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000 000
#*
#0001000 #010 250 377 377 377 377 000 213 000 230 000 021 002 377 014 000
#null to byte 1000 octal
514    string    \377\377\377\377\000    Claris clip art?
>0    string    \0\0\0\0\0\0\0\0\0\0\0\0\0    yes.
514    string    \377\377\377\377\001    Claris clip art?
>0    string    \0\0\0\0\0\0\0\0\0\0\0\0\0    yes.
# Claris works files
# .cwk
0    string    \002\000\210\003\102\117\102\117\000\001\206 Claris works document
# .plt
0    string    \020\341\000\000\010\010    Claris Works pallete files .plt
# .msp a dictionary file I am not sure about this I have only one .msp file
0    string    \002\271\262\000\040\002\000\164    Claris works dictionary
# .usp are user dictionary bits
# I am not sure about a magic header:
#0000000 001 123 160 146 070 125 104 040 136 123 015 012 160 157 144 151
#        soh   S   p   f   8   U   D  sp   ^   S  cr  nl   p   o   d   i
#0000020 141 164 162 151 163 164 040 136 123 015 012 144 151 166 040 043
#          a   t   r   i   s   t  sp   ^   S  cr  nl   d   i   v  sp   #
# .mth Thesaurus
# starts with \0 but no magic header
# .chy Hyphenation file
# I am not sure: 000 210 034 000 000
# other claris files
#./windows/claris/useng.ndx: data
#./windows/claris/xtndtran.l32: data
#./windows/claris/xtndtran.lst: data
#./windows/claris/clworks.lbl: data
#./windows/claris/clworks.prf: data
#./windows/claris/userd.spl: data
ok335xD/3rdparty/file/file-5.04/magic/Magdir/clipper
New file
@@ -0,0 +1,65 @@
#------------------------------------------------------------------------------
# $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?
#
# XXX - what's the "!" stuff:
#
# >18    short        !074000,000000    C1 R1
# >18    short        !074000,004000    C2 R1
# >18    short        !074000,010000    C3 R1
# >18    short        !074000,074000    TEST
#
# I shall assume it's ANDing the field with the first value and
# comparing it with the second, and rewrite it as:
#
# >18    short&074000    000000        C1 R1
# >18    short&074000    004000        C2 R1
# >18    short&074000    010000        C3 R1
# >18    short&074000    074000        TEST
#
# as SVR3.1's "file" doesn't support anything of the "!074000,000000"
# sort, nor does SunOS 4.x, so either it's something Intergraph added
# in CLIX, or something AT&T added in SVR3.2 or later, or something
# somebody else thought was a good idea; it's not documented in the
# man page for this version of "magic", nor does it appear to be
# implemented (at least not after I blew off the bogus code to turn
# old-style "&"s into new-style "&"s, which just didn't work at all).
#
0    short        0575        CLIPPER COFF executable (VAX #)
>20    short        0407        (impure)
>20    short        0410        (5.2 compatible)
>20    short        0411        (pure)
>20    short        0413        (demand paged)
>20    short        0443        (target shared library)
>12    long        >0        not stripped
>22    short        >0        - version %ld
0    short        0577        CLIPPER COFF executable
>18    short&074000    000000        C1 R1
>18    short&074000    004000        C2 R1
>18    short&074000    010000        C3 R1
>18    short&074000    074000        TEST
>20    short        0407        (impure)
>20    short        0410        (pure)
>20    short        0411        (separate I&D)
>20    short        0413        (paged)
>20    short        0443        (target shared library)
>12    long        >0        not stripped
>22    short        >0        - version %ld
>48    long&01        01        alignment trap enabled
>52    byte        1        -Ctnc
>52    byte        2        -Ctsw
>52    byte        3        -Ctpw
>52    byte        4        -Ctcb
>53    byte        1        -Cdnc
>53    byte        2        -Cdsw
>53    byte        3        -Cdpw
>53    byte        4        -Cdcb
>54    byte        1        -Csnc
>54    byte        2        -Cssw
>54    byte        3        -Cspw
>54    byte        4        -Cscb
4    string        pipe        CLIPPER instruction trace
4    string        prof        CLIPPER instruction profile
ok335xD/3rdparty/file/file-5.04/magic/Magdir/commands
New file
@@ -0,0 +1,84 @@
#------------------------------------------------------------------------------
# $File: commands,v 1.36 2010/01/24 18:41:11 christos Exp $
# commands:  file(1) magic for various shells and interpreters
#
#0    string        :            shell archive or script for antique kernel text
0    string/w    #!\ /bin/sh        POSIX shell script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /bin/csh        C shell script text executable
!:mime    text/x-shellscript
# korn shell magic, sent by George Wu, gwu@clyde.att.com
0    string/w    #!\ /bin/ksh        Korn shell script text executable
!:mime    text/x-shellscript
0    string/w     #!\ /bin/tcsh        Tenex C shell script text executable
!:mime    text/x-shellscript
0    string/w     #!\ /usr/local/tcsh    Tenex C shell script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /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/w    #!\ /bin/zsh        Paul Falstad's zsh script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /usr/bin/zsh    Paul Falstad's zsh script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /usr/local/bin/zsh    Paul Falstad's zsh script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /usr/local/bin/ash    Neil Brown's ash script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /usr/local/bin/ae    Neil Brown's ae script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /bin/nawk        new awk script text executable
!:mime    text/x-nawk
0    string/w    #!\ /usr/bin/nawk    new awk script text executable
!:mime    text/x-nawk
0    string/w    #!\ /usr/local/bin/nawk    new awk script text executable
!:mime    text/x-nawk
0    string/w    #!\ /bin/gawk        GNU awk script text executable
!:mime    text/x-gawk
0    string/w    #!\ /usr/bin/gawk    GNU awk script text executable
!:mime    text/x-gawk
0    string/w    #!\ /usr/local/bin/gawk    GNU awk script text executable
!:mime    text/x-gawk
#
0    string/w    #!\ /bin/awk        awk script text executable
!:mime    text/x-awk
0    string/w    #!\ /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/Ww    BEGIN {            awk script text
# AT&T Bell Labs' Plan 9 shell
0    string/w    #!\ /bin/rc    Plan 9 rc shell script text executable
# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
0    string/w    #!\ /bin/bash    Bourne-Again shell script text executable
!:mime    text/x-shellscript
0    string/w    #!\ /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
# PHP scripts
# Ulf Harnhammar <ulfh@update.uu.se>
0    search/1/c    =<?php            PHP script text
!:mime    text/x-php
0    search/1    =<?\n            PHP script text
!:mime    text/x-php
0    search/1    =<?\r            PHP script text
!:mime    text/x-php
0    search/1/w    #!\ /usr/local/bin/php    PHP script text executable
!:mime    text/x-php
0    search/1/w    #!\ /usr/bin/php    PHP script text executable
!:mime    text/x-php
0    string        Zend\x00        PHP script Zend Optimizer data
0    string        $!            DCL command file
ok335xD/3rdparty/file/file-5.04/magic/Magdir/communications
New file
@@ -0,0 +1,22 @@
#----------------------------------------------------------------------------
# $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.
# It is used for conformance testing of communication protocols.
# Added by W. Borgert <debacle@debian.org>.
0    string        $Suite            TTCN Abstract Test Suite
>&1    string        $SuiteId
>>&1    string        >\n            %s
>&2    string        $SuiteId
>>&1    string        >\n            %s
>&3    string        $SuiteId
>>&1    string        >\n            %s
# MSC (message sequence charts) are a formal description technique,
# described in ITU-T Z.120, mainly used for communication protocols.
# Added by W. Borgert <debacle@debian.org>.
0    string        mscdocument    Message Sequence Chart (document)
0    string        msc        Message Sequence Chart (chart)
0    string        submsc        Message Sequence Chart (subchart)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/compress
New file
@@ -0,0 +1,220 @@
#------------------------------------------------------------------------------
# $File: compress,v 1.42 2009/09/19 16:28:08 christos Exp $
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.
# standard unix compress
0    string        \037\235    compress'd data
!:mime    application/x-compress
!:apple    LZIVZIVU
>2    byte&0x80    >0        block compressed
>2    byte&0x1f    x        %d bits
# gzip (GNU zip, not to be confused with Info-ZIP or PKWARE zip archiver)
#   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).
0       string          \037\213        gzip compressed data
!:mime    application/x-gzip
>2    byte        <8        \b, reserved method
>2    byte        >8        \b, unknown method
>3    byte        &0x01        \b, ASCII
>3    byte        &0x02        \b, has CRC
>3    byte        &0x04        \b, extra field
>3    byte&0xC    =0x08
>>10    string        x        \b, was "%s"
>3    byte        &0x10        \b, has comment
>9    byte        =0x00        \b, from FAT filesystem (MS-DOS, OS/2, NT)
>9    byte        =0x01        \b, from Amiga
>9    byte        =0x02        \b, from VMS
>9    byte        =0x03        \b, from Unix
>9    byte        =0x04        \b, from VM/CMS
>9    byte        =0x05        \b, from Atari
>9    byte        =0x06        \b, from HPFS filesystem (OS/2, NT)
>9    byte        =0x07        \b, from MacOS
>9    byte        =0x08        \b, from Z-System
>9    byte        =0x09        \b, from CP/M
>9    byte        =0x0A        \b, from TOPS/20
>9    byte        =0x0B        \b, from NTFS filesystem (NT)
>9    byte        =0x0C        \b, from QDOS
>9    byte        =0x0D        \b, from Acorn RISCOS
>3    byte        &0x10        \b, comment
>3    byte        &0x20        \b, encrypted
>4    ledate        >0        \b, last modified: %s
>8    byte        2        \b, max compression
>8    byte        4        \b, max speed
# packed data, Huffman (minimum redundancy) codes on a byte-by-byte basis
0    string        \037\036    packed data
!:mime    application/octet-stream
>2    belong        >1        \b, %d characters originally
>2    belong        =1        \b, %d character originally
#
# This magic number is byte-order-independent.
0    short        0x1f1f        old packed data
!:mime    application/octet-stream
# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
0    short        0x1fff        compacted data
!:mime    application/octet-stream
# This string is valid for SunOS (BE) and a matching "short" is listed
# in the Ultrix (LE) magic file.
0    string        \377\037    compacted data
!:mime    application/octet-stream
0    short        0145405        huf output
!:mime    application/octet-stream
# bzip2
0    string        BZh        bzip2 compressed data
!:mime    application/x-bzip2
>3    byte        >47        \b, block size = %c00k
# lzip
0    string        LZIP        lzip compressed data
!:mime application/x-lzip
>4    byte        x        \b, version: %d
# squeeze and crunch
# Michael Haardt <michael@cantor.informatik.rwth-aachen.de>
0    beshort        0x76FF        squeezed data,
>4    string        x        original name %s
0    beshort        0x76FE        crunched data,
>2    string        x        original name %s
0    beshort        0x76FD        LZH compressed data,
>2    string        x        original name %s
# Freeze
0    string        \037\237    frozen file 2.1
0    string        \037\236    frozen file 1.0 (or gzip 0.5)
# SCO compress -H (LZH)
0    string        \037\240    SCO compress -H (LZH) data
# European GSM 06.10 is a provisional standard for full-rate speech
# transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
# excitation/long term prediction) coding at 13 kbit/s.
#
# There's only a magic nibble (4 bits); that nibble repeats every 33
# bytes.  This isn't suited for use, but maybe we can use it someday.
#
# This will cause very short GSM files to be declared as data and
# mismatches to be declared as data too!
#0    byte&0xF0    0xd0        data
#>33    byte&0xF0    0xd0
#>66    byte&0xF0    0xd0
#>99    byte&0xF0    0xd0
#>132    byte&0xF0    0xd0        GSM 06.10 compressed audio
# bzip    a block-sorting file compressor
#    by Julian Seward <sewardj@cs.man.ac.uk> and others
#
#0    string        BZ        bzip compressed data
#>2    byte        x        \b, version: %c
#>3    string        =1        \b, compression block size 100k
#>3    string        =2        \b, compression block size 200k
#>3    string        =3        \b, compression block size 300k
#>3    string        =4        \b, compression block size 400k
#>3    string        =5        \b, compression block size 500k
#>3    string        =6        \b, compression block size 600k
#>3    string        =7        \b, compression block size 700k
#>3    string        =8        \b, compression block size 800k
#>3    string        =9        \b, compression block size 900k
# lzop from <markus.oberhumer@jk.uni-linz.ac.at>
0    string        \x89\x4c\x5a\x4f\x00\x0d\x0a\x1a\x0a    lzop compressed data
>9    beshort        <0x0940
>>9    byte&0xf0    =0x00        - version 0.
>>9    beshort&0x0fff    x        \b%03x,
>>13    byte        1        LZO1X-1,
>>13    byte        2        LZO1X-1(15),
>>13    byte        3        LZO1X-999,
## >>22    bedate        >0        last modified: %s,
>>14    byte        =0x00        os: MS-DOS
>>14    byte        =0x01        os: Amiga
>>14    byte        =0x02        os: VMS
>>14    byte        =0x03        os: Unix
>>14    byte        =0x05        os: Atari
>>14    byte        =0x06        os: OS/2
>>14    byte        =0x07        os: MacOS
>>14    byte        =0x0A        os: Tops/20
>>14    byte        =0x0B        os: WinNT
>>14    byte        =0x0E        os: Win32
>9    beshort        >0x0939
>>9    byte&0xf0    =0x00        - version 0.
>>9    byte&0xf0    =0x10        - version 1.
>>9    byte&0xf0    =0x20        - version 2.
>>9    beshort&0x0fff    x        \b%03x,
>>15    byte        1        LZO1X-1,
>>15    byte        2        LZO1X-1(15),
>>15    byte        3        LZO1X-999,
## >>25    bedate        >0        last modified: %s,
>>17    byte        =0x00        os: MS-DOS
>>17    byte        =0x01        os: Amiga
>>17    byte        =0x02        os: VMS
>>17    byte        =0x03        os: Unix
>>17    byte        =0x05        os: Atari
>>17    byte        =0x06        os: OS/2
>>17    byte        =0x07        os: MacOS
>>17    byte        =0x0A        os: Tops/20
>>17    byte        =0x0B        os: WinNT
>>17    byte        =0x0E        os: Win32
# 4.3BSD-Quasijarus Strong Compression
# http://minnie.tuhs.org/Quasijarus/compress.html
0    string        \037\241    Quasijarus strong compressed data
# From: Cory Dikkers <cdikkers@swbell.net>
0    string        XPKF        Amiga xpkf.library compressed data
0    string        PP11        Power Packer 1.1 compressed data
0    string        PP20        Power Packer 2.0 compressed data,
>4    belong        0x09090909    fast compression
>4    belong        0x090A0A0A    mediocre compression
>4    belong        0x090A0B0B    good compression
>4    belong        0x090A0C0C    very good compression
>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
#
0    string        7z\274\257\047\034    7-zip archive data,
>6    byte        x            version %d
>7    byte        x            \b.%d
# 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
# http://tukaani.org/xz/xz-file-format.txt
0    ustring        \xFD7zXZ\x00        xz compressed data
!:mime    application/x-xz
# AFX compressed files (Wolfram Kleff)
2    string        -afx-        AFX compressed file data
# Supplementary magic data for the file(1) command to support
# rzip(1).  The format is described in magic(5).
#
# Copyright (C) 2003 by Andrew Tridgell.  You may do whatever you want with
# this file.
#
0    string        RZIP        rzip compressed data
>4    byte        x        - version %d
>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
ok335xD/3rdparty/file/file-5.04/magic/Magdir/console
New file
@@ -0,0 +1,256 @@
#------------------------------------------------------------------------------
# $File: console,v 1.16 2009/09/19 16:28:08 christos Exp $
# Console game magic
# Toby Deshane <hac@shoelace.digivill.net>
#    ines:  file(1) magic for Marat's iNES Nintendo Entertainment System
#           ROM dump format
0 string NES\032 iNES ROM dump,
>4 byte  x     %dx16k PRG
>5 byte  x     \b, %dx8k CHR
>6 byte&0x01  =0x1  \b, [Vert.]
>6 byte&0x01  =0x0  \b, [Horiz.]
>6 byte&0x02  =0x2  \b, [SRAM]
>6 byte&0x04  =0x4  \b, [Trainer]
>6 byte&0x04  =0x8  \b, [4-Scr]
#------------------------------------------------------------------------------
# gameboy:  file(1) magic for the Nintendo (Color) Gameboy raw ROM format
#
0x104 belong 0xCEED6666 Gameboy ROM:
>0x134 string >\0 "%.16s"
>0x146 byte 0x03  \b,[SGB]
>0x147 byte 0x00  \b, [ROM ONLY]
>0x147 byte 0x01  \b, [ROM+MBC1]
>0x147 byte 0x02  \b, [ROM+MBC1+RAM]
>0x147 byte 0x03  \b, [ROM+MBC1+RAM+BATT]
>0x147 byte 0x05  \b, [ROM+MBC2]
>0x147 byte 0x06  \b, [ROM+MBC2+BATTERY]
>0x147 byte 0x08  \b, [ROM+RAM]
>0x147 byte 0x09  \b, [ROM+RAM+BATTERY]
>0x147 byte 0x0B  \b, [ROM+MMM01]
>0x147 byte 0x0C  \b, [ROM+MMM01+SRAM]
>0x147 byte 0x0D  \b, [ROM+MMM01+SRAM+BATT]
>0x147 byte 0x0F  \b, [ROM+MBC3+TIMER+BATT]
>0x147 byte 0x10  \b, [ROM+MBC3+TIMER+RAM+BATT]
>0x147 byte 0x11  \b, [ROM+MBC3]
>0x147 byte 0x12  \b, [ROM+MBC3+RAM]
>0x147 byte 0x13  \b, [ROM+MBC3+RAM+BATT]
>0x147 byte 0x19  \b, [ROM+MBC5]
>0x147 byte 0x1A  \b, [ROM+MBC5+RAM]
>0x147 byte 0x1B  \b, [ROM+MBC5+RAM+BATT]
>0x147 byte 0x1C  \b, [ROM+MBC5+RUMBLE]
>0x147 byte 0x1D  \b, [ROM+MBC5+RUMBLE+SRAM]
>0x147 byte 0x1E  \b, [ROM+MBC5+RUMBLE+SRAM+BATT]
>0x147 byte 0x1F  \b, [Pocket Camera]
>0x147 byte 0xFD  \b, [Bandai TAMA5]
>0x147 byte 0xFE  \b, [Hudson HuC-3]
>0x147 byte 0xFF  \b, [Hudson HuC-1]
>0x148 byte 0     \b, ROM: 256Kbit
>0x148 byte 1     \b, ROM: 512Kbit
>0x148 byte 2     \b, ROM: 1Mbit
>0x148 byte 3     \b, ROM: 2Mbit
>0x148 byte 4     \b, ROM: 4Mbit
>0x148 byte 5     \b, ROM: 8Mbit
>0x148 byte 6     \b, ROM: 16Mbit
>0x148 byte 0x52  \b, ROM: 9Mbit
>0x148 byte 0x53  \b, ROM: 10Mbit
>0x148 byte 0x54  \b, ROM: 12Mbit
>0x149 byte 1     \b, RAM: 16Kbit
>0x149 byte 2     \b, RAM: 64Kbit
>0x149 byte 3     \b, RAM: 128Kbit
>0x149 byte 4     \b, RAM: 1Mbit
#>0x14e long  x     \b, CRC: %x
#------------------------------------------------------------------------------
# genesis:  file(1) magic for the Sega MegaDrive/Genesis raw ROM format
#
0x100 string SEGA  Sega MegaDrive/Genesis raw ROM dump
>0x120 string >\0 Name: "%.16s"
>0x110 string >\0 %.16s
>0x1B0 string RA with SRAM
#------------------------------------------------------------------------------
# genesis:  file(1) magic for the Super MegaDrive ROM dump format
#
0x280 string EAGN  Super MagicDrive ROM dump
>0 byte x %dx16k blocks
>2 byte 0 \b, last in series or standalone
>2 byte >0 \b, split ROM
>8 byte 0xAA
>9 byte 0xBB
#------------------------------------------------------------------------------
# genesis:  file(1) alternate magic for the Super MegaDrive ROM dump format
#
0x280 string EAMG  Super MagicDrive ROM dump
>0 byte x %dx16k blocks
>2 byte x \b, last in series or standalone
>8 byte 0xAA
>9 byte 0xBB
#------------------------------------------------------------------------------
# smsgg:  file(1) magic for Sega Master System and Game Gear ROM dumps
#
# Does not detect all images.  Very preliminary guesswork.  Need more data
# on format.
#
# FIXME: need a little more info...;P
#
#0 byte 0xF3
#>1 byte 0xED  Sega Master System/Game Gear ROM dump
#>1 byte 0x31  Sega Master System/Game Gear ROM dump
#>1 byte 0xDB  Sega Master System/Game Gear ROM dump
#>1 byte 0xAF  Sega Master System/Game Gear ROM dump
#>1 byte 0xC3  Sega Master System/Game Gear ROM dump
#------------------------------------------------------------------------------
# dreamcast:  file(1) uncertain magic for the Sega Dreamcast VMU image format
#
0 belong 0x21068028   Sega Dreamcast VMU game image
0 string LCDi         Dream Animator file
#------------------------------------------------------------------------------
# v64: file(1) uncertain magic for the V64 format N64 ROM dumps
#
0 belong 0x37804012    V64 Nintendo 64 ROM dump
# From: "Nelson A. de Oliveira" <naoliv@gmail.com>
# Nintendo .nds
192    string    \044\377\256Qi\232    Nintendo DS Game ROM Image
# Nintendo .gba
0    string    \056\000\000\352$\377\256Qi    Nintendo Game Boy Advance ROM Image
#------------------------------------------------------------------------------
# msx: file(1) magic for MSX game cartridge dumps
# Too simple - MPi
#0 beshort 0x4142 MSX game cartridge dump
#------------------------------------------------------------------------------
# Sony Playstation executables (Adam Sjoegren <asjo@diku.dk>) :
0    string    PS-X\ EXE    Sony Playstation executable
#  Area:
>113    string    x        (%s)
#------------------------------------------------------------------------------
# Microsoft Xbox executables .xbe (Esa Hyytiä <ehyytia@cc.hut.fi>)
0       string          XBEH            XBE, Microsoft Xbox executable
# probabilistic checks whether signed or not
>0x0004 ulelong =0x0
>>&2    ulelong =0x0
>>>&2   ulelong =0x0  \b, not signed
>0x0004 ulelong >0
>>&2    ulelong >0
>>>&2   ulelong >0    \b, signed
# expect base address of 0x10000
>0x0104               ulelong =0x10000
>>(0x0118-0x0FF60)    ulelong&0x80000007  0x80000007 \b, all regions
>>(0x0118-0x0FF60)    ulelong&0x80000007  !0x80000007
>>>(0x0118-0x0FF60)   ulelong >0           (regions:
>>>>(0x0118-0x0FF60)  ulelong &0x00000001  NA
>>>>(0x0118-0x0FF60)  ulelong &0x00000002  Japan
>>>>(0x0118-0x0FF60)  ulelong &0x00000004  Rest_of_World
>>>>(0x0118-0x0FF60)  ulelong &0x80000000  Manufacturer
>>>(0x0118-0x0FF60)   ulelong >0           \b)
# --------------------------------
# Microsoft Xbox data file formats
0       string          XIP0            XIP, Microsoft Xbox data
0       string          XTF0            XTF, Microsoft Xbox data
# 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
# Opera file system that is used on the 3DO console
# From: Serge van den Boom <svdb@stack.nl>
0    string        \x01ZZZZZ\x01    3DO "Opera" file system
# From Gürkan Sengün <gurkan@linuks.mine.nu>, www.linuks.mine.nu
0    string        GBS        Nintendo Gameboy Music/Audio Data
12    string        GameBoy\ Music\ Module    Nintendo Gameboy Music Module
# Playstations Patch Files from: From: Thomas Klausner <tk@giga.or.at>
0    string    PPF30            Playstation Patch File version 3.0
>5    byte    0            \b, PPF 1.0 patch
>5    byte    1            \b, PPF 2.0 patch
>5    byte    2            \b, PPF 3.0 patch
>>56    byte    0            \b, Imagetype BIN (any)
>>56    byte    1            \b, Imagetype GI (PrimoDVD)
>>57    byte    0            \b, Blockcheck disabled
>>57    byte    1            \b, Blockcheck enabled
>>58    byte    0            \b, Undo data not available
>>58    byte    1            \b, Undo data available
>6    string    x            \b, description: %s
0    string    PPF20            Playstation Patch File version 2.0
>5    byte    0            \b, PPF 1.0 patch
>5    byte    1            \b, PPF 2.0 patch
>>56    lelong    >0            \b, size of file to patch %d
>6    string    x            \b, description: %s
0    string    PPF10            Playstation Patch File version 1.0
>5    byte    0            \b, Simple Encoding
>6    string    x            \b, description: %s
# From: Daniel Dawson <ddawson@icehouse.net>
# SNES9x .smv "movie" file format.
0        string        SMV\x1A    SNES9x input recording
>0x4        lelong        x    \b, version %d
# version 4 is latest so far
>0x4        lelong        <5
>>0x8        ledate        x    \b, recorded at %s
>>0xc        lelong        >0    \b, rerecorded %d times
>>0x10        lelong        x    \b, %d frames long
>>0x14        byte        >0    \b, data for controller(s):
>>>0x14        byte        &0x1    #1
>>>0x14        byte        &0x2    #2
>>>0x14        byte        &0x4    #3
>>>0x14        byte        &0x8    #4
>>>0x14        byte        &0x10    #5
>>0x15        byte        ^0x1    \b, begins from snapshot
>>0x15        byte        &0x1    \b, begins from reset
>>0x15        byte        ^0x2    \b, NTSC standard
>>0x15        byte        &0x2    \b, PAL standard
>>0x17        byte        &0x1    \b, settings:
# WIP1Timing not used as of version 4
>>>0x4        lelong        <4
>>>>0x17    byte        &0x2    WIP1Timing
>>>0x17        byte        &0x4    Left+Right
>>>0x17        byte        &0x8    VolumeEnvX
>>>0x17        byte        &0x10    FakeMute
>>>0x17        byte        &0x20    SyncSound
# New flag as of version 4
>>>0x4        lelong        >3
>>>>0x17    byte        &0x80    NoCPUShutdown
>>0x4        lelong        <4
>>>0x18        lelong        >0x23
>>>>0x20    leshort        !0
>>>>>0x20    lestring16    x    \b, metadata: "%s"
>>0x4        lelong        >3
>>>0x24        byte        >0    \b, port 1:
>>>>0x24    byte        1    joypad
>>>>0x24    byte        2    mouse
>>>>0x24    byte        3    SuperScope
>>>>0x24    byte        4    Justifier
>>>>0x24    byte        5    multitap
>>>0x24        byte        >0    \b, port 2:
>>>>0x25    byte        1    joypad
>>>>0x25    byte        2    mouse
>>>>0x25    byte        3    SuperScope
>>>>0x25    byte        4    Justifier
>>>>0x25    byte        5    multitap
>>>0x18        lelong        >0x43
>>>>0x40    leshort        !0
>>>>>0x40    lestring16    x    \b, metadata: "%s"
>>0x17        byte        &0x40   \b, ROM:
>>>(0x18.l-26)    lelong        x    CRC32 0x%08x
>>>(0x18.l-23)    string        x    "%s"
ok335xD/3rdparty/file/file-5.04/magic/Magdir/convex
New file
@@ -0,0 +1,71 @@
#------------------------------------------------------------------------------
# $File: convex,v 1.7 2009/09/19 16:28:08 christos Exp $
# convex:  file(1) magic for Convex boxes
#
# Convexes are big-endian.
#
# /*\
#  * Below are the magic numbers and tests added for Convex.
#  * Added at beginning, because they are expected to be used most.
# \*/
0    belong    0507    Convex old-style object
>16    belong    >0    not stripped
0    belong    0513    Convex old-style demand paged executable
>16    belong    >0    not stripped
0    belong    0515    Convex old-style pre-paged executable
>16    belong    >0    not stripped
0    belong    0517    Convex old-style pre-paged, non-swapped executable
>16    belong    >0    not stripped
0    belong    0x011257    Core file
#
# The following are a series of dump format magic numbers.  Each one
# corresponds to a drastically different dump format.  The first on is
# the original dump format on a 4.1 BSD or earlier file system.  The
# second marks the change between the 4.1 file system and the 4.2 file
# system.  The Third marks the changing of the block size from 1K
# to 2K to be compatible with an IDC file system.  The fourth indicates
# a dump that is dependent on Convex Storage Manager, because data in
# secondary storage is not physically contained within the dump.
# The restore program uses these number to determine how the data is
# to be extracted.
#
24    belong    =60011    dump format, 4.1 BSD or earlier
24    belong    =60012    dump format, 4.2 or 4.3 BSD without IDC
24    belong    =60013    dump format, 4.2 or 4.3 BSD (IDC compatible)
24    belong    =60014    dump format, Convex Storage Manager by-reference dump
#
# what follows is a bunch of bit-mask checks on the flags field of the opthdr.
# If there is no `=' sign, assume just checking for whether the bit is set?
#
0    belong    0601        Convex SOFF
>88    belong&0x000f0000    =0x00000000    c1
>88    belong            &0x00010000    c2
>88    belong            &0x00020000    c2mp
>88    belong            &0x00040000    parallel
>88    belong            &0x00080000    intrinsic
>88    belong            &0x00000001    demand paged
>88    belong            &0x00000002    pre-paged
>88    belong            &0x00000004    non-swapped
>88    belong            &0x00000008    POSIX
#
>84    belong            &0x80000000    executable
>84    belong            &0x40000000    object
>84    belong&0x20000000    =0        not stripped
>84    belong&0x18000000    =0x00000000    native fpmode
>84    belong&0x18000000    =0x10000000    ieee fpmode
>84    belong&0x18000000    =0x18000000    undefined fpmode
#
0    belong            0605        Convex SOFF core
#
0    belong            0607        Convex SOFF checkpoint
>88    belong&0x000f0000    =0x00000000    c1
>88    belong            &0x00010000    c2
>88    belong            &0x00020000    c2mp
>88    belong            &0x00040000    parallel
>88    belong            &0x00080000    intrinsic
>88    belong            &0x00000008    POSIX
#
>84    belong&0x18000000    =0x00000000    native fpmode
>84    belong&0x18000000    =0x10000000    ieee fpmode
>84    belong&0x18000000    =0x18000000    undefined fpmode
ok335xD/3rdparty/file/file-5.04/magic/Magdir/cracklib
New file
@@ -0,0 +1,14 @@
#------------------------------------------------------------------------------
# $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
>4    long    >0        (%i words)
>4    long    0        ("64-bit")
>>8    long    >-1        (%i words)
0    belong    0x70775631    Cracklib password index, big endian
>4    belong    >-1        (%i words)
# really bellong 0x0000000070775631
0    search/1    \0\0\0\0pwV1    Cracklib password index, big endian ("64-bit")
>12    belong    >0        (%i words)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/ctags
New file
@@ -0,0 +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
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dact
New file
@@ -0,0 +1,11 @@
#------------------------------------------------------------------------------
# $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
>4    byte        >-1        (version %i.
>5    byte        >-1        $BS%i.
>6    byte        >-1        $BS%i)
>7    long        >0        $BS, original size: %i bytes
>15    long        >30        $BS, block size: %i bytes
ok335xD/3rdparty/file/file-5.04/magic/Magdir/database
New file
@@ -0,0 +1,270 @@
#------------------------------------------------------------------------------
# $File: database,v 1.24 2009/09/19 16:28:08 christos Exp $
# 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.
#  <downsj@teeny.org>
0    belong    0x13579ace    GNU dbm 1.x or ndbm database, big endian
!:mime    application/x-gdbm
0    lelong    0x13579ace    GNU dbm 1.x or ndbm database, little endian
!:mime    application/x-gdbm
0    string    GDBM        GNU dbm 2.x database
!:mime    application/x-gdbm
#
# 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
!:mime    application/x-dbm
>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)
# 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)
#
#
# Round Robin Database Tool by Tobias Oetiker <oetiker@ee.ethz.ch>
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)
# XXX: Weak magic.
# Alex Ott <ott@jet.msk.su>
## 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
#!:mime    application/x-dbf
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x03
#!:mime    application/x-dbf
#>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
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    dBASE IV no memo file
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x05
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    dBASE V no memo file
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x30
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    Visual FoxPro
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x43
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    FlagShip with memo var size
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x7b
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    dBASEIV with memo
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x83
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    FoxBase+, dBaseIII+ with memo
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x8b
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    dBaseIV with memo
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0x8e
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    dBaseIV with SQL Table
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0xb3
#!:mime    application/x-dbf
#>8     leshort      >0
#>>12   leshort    0    FlagShip with .dbt memo
#>>>0x04    lelong        0        (no records)
#>>>0x04    lelong        >0        (%ld records)
#
#0      byte       0xf5
#!:mime    application/x-dbf
#>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
!:mime    application/x-msaccess
# TDB database from Samba et al - Martin Pool <mbp@samba.org>
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)
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
14    string        MIT-MAGIC-COOKIE-1    X11 Xauthority data
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
# From: Maxime Henrion <mux@FreeBSD.org>
# PostgreSQL's custom dump format, Maxime Henrion <mux@FreeBSD.org>
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 <nicolas.chauvat@logilab.fr>
0    string    @(#)ADF\ Database    CGNS Advanced Data Format
# Tokyo Cabinet magic data
# http://tokyocabinet.sourceforge.net/index.html
0    string        ToKyO\ CaBiNeT\n    Tokyo Cabinet
>14    string        x            \b (%s)
>32    byte        0            \b, Hash
!:mime    application/x-tokyocabinet-hash
>32    byte        1            \b, B+ tree
!:mime    application/x-tokyocabinet-btree
>32    byte        2            \b, Fixed-length
!:mime    application/x-tokyocabinet-fixed
>32    byte        3            \b, Table
!:mime    application/x-tokyocabinet-table
>33    byte        &1            \b, [open]
>33    byte        &2            \b, [fatal]
>34    byte        x            \b, apow=%d
>35    byte        x            \b, fpow=%d
>36    byte        &0x01            \b, [large]
>36    byte        &0x02            \b, [deflate]
>36    byte        &0x04            \b, [bzip]
>36    byte        &0x08            \b, [tcbs]
>36    byte        &0x10            \b, [excodec]
>40    lequad        x            \b, bnum=%lld
>48    lequad        x            \b, rnum=%lld
>56    lequad        x            \b, fsiz=%lld
ok335xD/3rdparty/file/file-5.04/magic/Magdir/diamond
New file
@@ -0,0 +1,12 @@
#------------------------------------------------------------------------------
# $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....
#
# XXX - I think it was either renamed Slate, or replaced by Slate....
#
#    The full deal is too long...
#0    string    <list>\n<protocol\ bbn-multimedia-format>    Diamond Multimedia Document
0    string    =<list>\n<protocol\ bbn-m    Diamond Multimedia Document
ok335xD/3rdparty/file/file-5.04/magic/Magdir/diff
New file
@@ -0,0 +1,19 @@
#------------------------------------------------------------------------------
# $File: diff,v 1.10 2009/09/19 16:28:08 christos Exp $
# diff:  file(1) magic for diff(1) output
#
0    search/1    diff\         diff output text
!:mime    text/x-diff
0    search/1    ***\         diff output text
!:mime    text/x-diff
0    search/1    Only\ in\     diff output text
!:mime    text/x-diff
0    search/1    Common\ subdirectories:\     diff output text
!:mime    text/x-diff
0    search/1    Index:        RCS/CVS diff output text
!:mime    text/x-diff
# bsdiff:  file(1) magic for bsdiff(1) output
0    string        BSDIFF40    bsdiff(1) patch file
ok335xD/3rdparty/file/file-5.04/magic/Magdir/digital
New file
@@ -0,0 +1,44 @@
#------------------------------------------------------------------------------
# $File: digital,v 1.8 2009/09/19 16:28:08 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
#
# The next is incomplete, we could tell more about this format,
# but its not worth it.
0    leshort        0x188    Alpha compressed COFF
0    leshort        0x18f    Alpha u-code object
#
#
# Some other interesting Digital formats,
0    string    \377\377\177        ddis/ddif
0    string    \377\377\174        ddis/dots archive
0    string    \377\377\176        ddis/dtif table data
0    string    \033c\033        LN03 output
0    long    04553207        X image
#
0    string    =!<PDF>!\n        profiling data file
#
# Locale data tables (MIPS and Alpha).
#
0    short        0x0501        locale data table
>6    short        0x24        for MIPS
>6    short        0x40        for Alpha
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dolby
New file
@@ -0,0 +1,60 @@
#------------------------------------------------------------------------------
# $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!
#
# syncword
0       beshort         0x0b77  ATSC A/52 aka AC-3 aka Dolby Digital stream,
# fscod
>4      byte&0xc0       0x00    48 kHz,
>4      byte&0xc0       0x40    44.1 kHz,
>4      byte&0xc0       0x80    32 kHz,
# is this one used for 96 kHz?
>4      byte&0xc0       0xc0    reserved frequency,
#
>5    byte&7 = 0        \b, complete main (CM)
>5    byte&7 = 1        \b, music and effects (ME)
>5    byte&7 = 2        \b, visually impaired (VI)
>5    byte&7 = 3        \b, hearing impaired (HI)
>5    byte&7 = 4        \b, dialogue (D)
>5    byte&7 = 5        \b, commentary (C)
>5    byte&7 = 6        \b, emergency (E)
# acmod
>6      byte&0xe0       0x00    1+1 front,
>6      byte&0xe0       0x20    1 front/0 rear,
>6      byte&0xe0       0x40    2 front/0 rear,
>6      byte&0xe0       0x60    3 front/0 rear,
>6      byte&0xe0       0x80    2 front/1 rear,
>6      byte&0xe0       0xa0    3 front/1 rear,
>6      byte&0xe0       0xc0    2 front/2 rear,
>6      byte&0xe0       0xe0    3 front/2 rear,
# lfeon (these may be incorrect)
>7      byte&0x40       0x00    LFE off,
>7      byte&0x40       0x40    LFE on,
#
>4    byte&0x3e = 0x00    \b, 32 kbit/s
>4    byte&0x3e = 0x02        \b, 40 kbit/s
>4    byte&0x3e = 0x04        \b, 48 kbit/s
>4    byte&0x3e = 0x06        \b, 56 kbit/s
>4    byte&0x3e = 0x08        \b, 64 kbit/s
>4    byte&0x3e = 0x0a        \b, 80 kbit/s
>4    byte&0x3e = 0x0c        \b, 96 kbit/s
>4    byte&0x3e = 0x0e        \b, 112 kbit/s
>4    byte&0x3e = 0x10        \b, 128 kbit/s
>4    byte&0x3e = 0x12        \b, 160 kbit/s
>4    byte&0x3e = 0x14        \b, 192 kbit/s
>4    byte&0x3e = 0x16        \b, 224 kbit/s
>4    byte&0x3e = 0x18        \b, 256 kbit/s
>4    byte&0x3e = 0x1a        \b, 320 kbit/s
>4    byte&0x3e = 0x1c        \b, 384 kbit/s
>4    byte&0x3e = 0x1e        \b, 448 kbit/s
>4    byte&0x3e = 0x20        \b, 512 kbit/s
>4    byte&0x3e = 0x22        \b, 576 kbit/s
>4    byte&0x3e = 0x24        \b, 640 kbit/s
# dsurmod (these may be incorrect)
>6      beshort&0x0180  0x0000  Dolby Surround not indicated
>6      beshort&0x0180  0x0080  not Dolby Surround encoded
>6      beshort&0x0180  0x0100  Dolby Surround encoded
>6      beshort&0x0180  0x0180  reserved Dolby Surround mode
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dump
New file
@@ -0,0 +1,132 @@
#------------------------------------------------------------------------------
# $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.
#
24    belong    60012        new-fs dump file (big endian),
>4    bedate    x        Previous dump %s,
>8    bedate    x        This dump %s,
>12    belong    >0        Volume %ld,
>692    belong    0        Level zero, type:
>692    belong    >0        Level %d, type:
>0    belong    1        tape header,
>0    belong    2        beginning of file record,
>0    belong    3        map of inodes on tape,
>0    belong    4        continuation of file record,
>0    belong    5        end of volume,
>0    belong    6        map of inodes deleted,
>0    belong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    belong    >0        Flags %x
24    belong    60011        old-fs dump file (big endian),
#>4    bedate    x        Previous dump %s,
#>8    bedate    x        This dump %s,
>12    belong    >0        Volume %ld,
>692    belong    0        Level zero, type:
>692    belong    >0        Level %d, type:
>0    belong    1        tape header,
>0    belong    2        beginning of file record,
>0    belong    3        map of inodes on tape,
>0    belong    4        continuation of file record,
>0    belong    5        end of volume,
>0    belong    6        map of inodes deleted,
>0    belong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    belong    >0        Flags %x
24    lelong    60012        new-fs dump file (little endian),
>4    ledate    x        This dump %s,
>8    ledate    x        Previous dump %s,
>12    lelong    >0        Volume %ld,
>692    lelong    0        Level zero, type:
>692    lelong    >0        Level %d, type:
>0    lelong    1        tape header,
>0    lelong    2        beginning of file record,
>0    lelong    3        map of inodes on tape,
>0    lelong    4        continuation of file record,
>0    lelong    5        end of volume,
>0    lelong    6        map of inodes deleted,
>0    lelong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    lelong    >0        Flags %x
24    lelong    60011        old-fs dump file (little endian),
#>4    ledate    x        Previous dump %s,
#>8    ledate    x        This dump %s,
>12    lelong    >0        Volume %ld,
>692    lelong    0        Level zero, type:
>692    lelong    >0        Level %d, type:
>0    lelong    1        tape header,
>0    lelong    2        beginning of file record,
>0    lelong    3        map of inodes on tape,
>0    lelong    4        continuation of file record,
>0    lelong    5        end of volume,
>0    lelong    6        map of inodes deleted,
>0    lelong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    lelong    >0        Flags %x
18    leshort    60011        old-fs dump file (16-bit, assuming PDP-11 endianness),
>2    medate    x        Previous dump %s,
>6    medate    x        This dump %s,
>10    leshort    >0        Volume %ld,
>0    leshort    1        tape header.
>0    leshort    2        beginning of file record.
>0    leshort    3        map of inodes on tape.
>0    leshort    4        continuation of file record.
>0    leshort    5        end of volume.
>0    leshort    6        map of inodes deleted.
>0    leshort    7        end of medium (for floppy).
24    belong    0x19540119    new-fs dump file (ufs2, big endian),
>896    beqdate    x        Previous dump %s,
>904    beqdate    x        This dump %s,
>12    belong    >0        Volume %ld,
>692    belong    0        Level zero, type:
>692    belong    >0        Level %d, type:
>0    belong    1        tape header,
>0    belong    2        beginning of file record,
>0    belong    3        map of inodes on tape,
>0    belong    4        continuation of file record,
>0    belong    5        end of volume,
>0    belong    6        map of inodes deleted,
>0    belong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    belong    >0        Flags %x
24    lelong    0x19540119    new-fs dump file (ufs2, little endian),
>896    leqdate    x        This dump %s,
>904    leqdate    x        Previous dump %s,
>12    lelong    >0        Volume %ld,
>692    lelong    0        Level zero, type:
>692    lelong    >0        Level %d, type:
>0    lelong    1        tape header,
>0    lelong    2        beginning of file record,
>0    lelong    3        map of inodes on tape,
>0    lelong    4        continuation of file record,
>0    lelong    5        end of volume,
>0    lelong    6        map of inodes deleted,
>0    lelong    7        end of medium (for floppy),
>676    string    >\0        Label %s,
>696    string    >\0        Filesystem %s,
>760    string    >\0        Device %s,
>824    string    >\0        Host %s,
>888    lelong    >0        Flags %x
ok335xD/3rdparty/file/file-5.04/magic/Magdir/dyadic
New file
@@ -0,0 +1,13 @@
#------------------------------------------------------------------------------
# $File: dyadic,v 1.4 2009/09/19 16:28:09 christos Exp $
# Dyadic: file(1) magic for Dyalog APL.
#
0     byte    0xaa
>1    byte    <4        Dyalog APL
>>1    byte    0x00        incomplete workspace
>>1    byte    0x01        component file
>>1    byte    0x02        external variable
>>1    byte    0x03        workspace
>>2    byte    x        version %d
>>3    byte    x        .%d
ok335xD/3rdparty/file/file-5.04/magic/Magdir/editors
New file
@@ -0,0 +1,18 @@
#------------------------------------------------------------------------------
# $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,
>4    string    0    Kamenicky
>4    string    1    CP 852
>4    string    2    KOI8-CS
>4    string    >2    unknown encoding
# Vi IMproved Encrypted file
# by David Necas <yeti@physics.muni.cz>
0    string    VimCrypt~    Vim encrypted file data
# Vi IMproved Swap file
# by Sven Wegener <swegener@gentoo.org>
0    string    b0VIM\         Vim swap file
>&0    string    >\0        \b, version %s
ok335xD/3rdparty/file/file-5.04/magic/Magdir/efi
New file
@@ -0,0 +1,15 @@
#------------------------------------------------------------------------------
# $File: efi,v 1.4 2009/09/19 16:28:09 christos Exp $
# efi:  file(1) magic for Universal EFI binaries
0    lelong    0x0ef1fab9
>4    lelong    1        Universal EFI binary with 1 architecture
>>&0    lelong    7        \b, i386
>>&0    lelong    0x01000007    \b, x86_64
>4    lelong    2        Universal EFI binary with 2 architectures
>>&0    lelong    7        \b, i386
>>&0    lelong    0x01000007    \b, x86_64
>>&20    lelong    7        \b, i386
>>&20    lelong    0x01000007    \b, x86_64
>4    lelong    >2        Universal EFI binary with %ld architectures
ok335xD/3rdparty/file/file-5.04/magic/Magdir/elf
New file
@@ -0,0 +1,289 @@
#------------------------------------------------------------------------------
# $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
# other stuff in the header is in.
#
# What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
#
# Created by: unknown
# Modified by (1): Daniel Quinlan <quinlan@yggdrasil.com>
# Modified by (2): Peter Tobias <tobias@server.et-inf.fho-emden.de> (core support)
# Modified by (3): Christian 'Dr. Disk' Hechelmann <drdisk@ds9.au.s.shuttle.de> (fix of core support)
# Modified by (4): <gerardo.cacciari@gmail.com> (VMS Itanium)
# Modified by (5): Matthias Urlichs <smurf@debian.org> (Listing of many architectures)
0    string        \177ELF        ELF
>4    byte        0        invalid class
>4    byte        1        32-bit
>4    byte        2        64-bit
>5    byte        0        invalid byte order
>5    byte        1        LSB
>>16    leshort        0        no file type,
!:strength *2
!:mime    application/octet-stream
>>16    leshort        1        relocatable,
!:mime    application/x-object
>>16    leshort        2        executable,
!:mime    application/x-executable
>>16    leshort        3        shared object,
!:mime    application/x-sharedlib
>>16    leshort        4        core file
!:mime    application/x-coredump
# Core file detection is not reliable.
#>>>(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
>>>36    lelong        &0x01000000    68000 - invalid byte order,
>>>36    lelong        &0x00810000    CPU32 - invalid byte order,
>>>36    lelong        0        68020 - invalid byte order,
>>18    leshort        5        Motorola 88000 - invalid byte order,
>>18    leshort        6        Intel 80486,
>>18    leshort        7        Intel 80860,
# The official e_machine number for MIPS is now #8, regardless of endianness.
# The second number (#10) will be deprecated later. For now, we still
# say something if #10 is encountered, but only gory details for #8.
>>18    leshort        8        MIPS,
>>>36    lelong        &0x20        N32
>>18    leshort        10        MIPS,
>>>36    lelong        &0x20        N32
>>18    leshort        8
# only for 32-bit
>>>4    byte        1
>>>>36  lelong&0xf0000000    0x00000000    MIPS-I
>>>>36  lelong&0xf0000000    0x10000000    MIPS-II
>>>>36  lelong&0xf0000000    0x20000000    MIPS-III
>>>>36  lelong&0xf0000000    0x30000000    MIPS-IV
>>>>36  lelong&0xf0000000    0x40000000    MIPS-V
>>>>36  lelong&0xf0000000    0x50000000    MIPS32
>>>>36  lelong&0xf0000000    0x60000000    MIPS64
>>>>36  lelong&0xf0000000    0x70000000    MIPS32 rel2
>>>>36  lelong&0xf0000000    0x80000000    MIPS64 rel2
# only for 64-bit
>>>4    byte        2
>>>>48  lelong&0xf0000000    0x00000000    MIPS-I
>>>>48  lelong&0xf0000000    0x10000000    MIPS-II
>>>>48  lelong&0xf0000000    0x20000000    MIPS-III
>>>>48  lelong&0xf0000000    0x30000000    MIPS-IV
>>>>48  lelong&0xf0000000    0x40000000    MIPS-V
>>>>48  lelong&0xf0000000    0x50000000    MIPS32
>>>>48  lelong&0xf0000000    0x60000000    MIPS64
>>>>48  lelong&0xf0000000    0x70000000    MIPS32 rel2
>>>>48  lelong&0xf0000000    0x80000000    MIPS64 rel2
>>18    leshort        9        Amdahl - invalid byte order,
>>18    leshort        10        MIPS (deprecated),
>>18    leshort        11        RS6000 - invalid byte order,
>>18    leshort        15        PA-RISC - invalid byte order,
>>>50    leshort        0x0214        2.0
>>>48    leshort        &0x0008        (LP64),
>>18    leshort        16        nCUBE,
>>18    leshort        17        Fujitsu VPP500,
>>18    leshort        18        SPARC32PLUS - invalid byte order,
>>18    leshort        20        PowerPC,
>>18    leshort        22        IBM S/390,
>>18    leshort        36        NEC V800,
>>18    leshort        37        Fujitsu FR20,
>>18    leshort        38        TRW RH-32,
>>18    leshort        39        Motorola RCE,
>>18    leshort        40        ARM,
>>18    leshort        41        Alpha,
>>18    leshort        0xa390        IBM S/390 (obsolete),
>>18    leshort        42        Renesas SH,
>>18    leshort        43        SPARC V9 - invalid byte order,
>>18    leshort        44        Siemens Tricore Embedded Processor,
>>18    leshort        45        Argonaut RISC Core, Argonaut Technologies Inc.,
>>18    leshort        46        Renesas H8/300,
>>18    leshort        47        Renesas H8/300H,
>>18    leshort        48        Renesas H8S,
>>18    leshort        49        Renesas H8/500,
>>18    leshort        50        IA-64,
>>18    leshort        51        Stanford MIPS-X,
>>18    leshort        52        Motorola Coldfire,
>>18    leshort        53        Motorola M68HC12,
>>18    leshort        54        Fujitsu MMA,
>>18    leshort        55        Siemens PCP,
>>18    leshort        56        Sony nCPU,
>>18    leshort        57        Denso NDR1,
>>18    leshort        58        Start*Core,
>>18    leshort        59        Toyota ME16,
>>18    leshort        60        ST100,
>>18    leshort        61        Tinyj emb.,
>>18    leshort        62        x86-64,
>>18    leshort        63        Sony DSP,
>>18    leshort        66        FX66,
>>18    leshort        67        ST9+ 8/16 bit,
>>18    leshort        68        ST7 8 bit,
>>18    leshort        69        MC68HC16,
>>18    leshort        70        MC68HC11,
>>18    leshort        71        MC68HC08,
>>18    leshort        72        MC68HC05,
>>18    leshort        73        SGI SVx,
>>18    leshort        74        ST19 8 bit,
>>18    leshort        75        Digital VAX,
>>18    leshort        76        Axis cris,
>>18    leshort        77        Infineon 32-bit embedded,
>>18    leshort        78        Element 14 64-bit DSP,
>>18    leshort        79        LSI Logic 16-bit DSP,
>>18    leshort        80        MMIX,
>>18    leshort        81        Harvard machine-independent,
>>18    leshort        82        SiTera Prism,
>>18    leshort        83        Atmel AVR 8-bit,
>>18    leshort        84        Fujitsu FR30,
>>18    leshort        85        Mitsubishi D10V,
>>18    leshort        86        Mitsubishi D30V,
>>18    leshort        87        NEC v850,
>>18    leshort        88        Renesas M32R,
>>18    leshort        89        Matsushita MN10300,
>>18    leshort        90        Matsushita MN10200,
>>18    leshort        91        picoJava,
>>18    leshort        92        OpenRISC,
>>18    leshort        93        ARC Cores Tangent-A5,
>>18    leshort        94        Tensilica Xtensa,
>>18    leshort        97        NatSemi 32k,
>>18    leshort        106        Analog Devices Blackfin,
>>18    leshort        113        Altera Nios II,
>>18    leshort        0xae        META,
>>18    leshort        0x3426        OpenRISC (obsolete),
>>18    leshort        0x8472        OpenRISC (obsolete),
>>18    leshort        0x9026        Alpha (unofficial),
>>20    lelong        0        invalid version
>>20    lelong        1        version 1
>>36    lelong        1        MathCoPro/FPU/MAU Required
>5    byte        2        MSB
>>16    beshort        0        no file type,
!:mime    application/octet-stream
>>16    beshort        1        relocatable,
!:mime    application/x-object
>>16    beshort        2        executable,
!:mime    application/x-executable
>>16    beshort        3        shared object,
!:mime    application/x-sharedlib
>>16    beshort        4        core file,
!:mime    application/x-coredump
#>>>(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
>>>36    belong        &0x01000000    68000,
>>>36    belong        &0x00810000    CPU32,
>>>36    belong        0        68020,
>>18    beshort        5        Motorola 88000,
>>18    beshort        6        Intel 80486 - invalid byte order,
>>18    beshort        7        Intel 80860,
# only for MIPS - see comment in little-endian section above.
>>18    beshort        8        MIPS,
>>>36    belong        &0x20        N32
>>18    beshort        10        MIPS,
>>>36    belong        &0x20        N32
>>18    beshort        8
# only for 32-bit
>>>4    byte        1
>>>>36  belong&0xf0000000    0x00000000    MIPS-I
>>>>36  belong&0xf0000000    0x10000000    MIPS-II
>>>>36  belong&0xf0000000    0x20000000    MIPS-III
>>>>36  belong&0xf0000000    0x30000000    MIPS-IV
>>>>36  belong&0xf0000000    0x40000000    MIPS-V
>>>>36  belong&0xf0000000    0x50000000    MIPS32
>>>>36  belong&0xf0000000    0x60000000    MIPS64
>>>>36  belong&0xf0000000    0x70000000    MIPS32 rel2
>>>>36  belong&0xf0000000    0x80000000    MIPS64 rel2
# only for 64-bit
>>>4    byte        2
>>>>48    belong&0xf0000000    0x00000000    MIPS-I
>>>>48    belong&0xf0000000    0x10000000    MIPS-II
>>>>48    belong&0xf0000000    0x20000000    MIPS-III
>>>>48    belong&0xf0000000    0x30000000    MIPS-IV
>>>>48    belong&0xf0000000    0x40000000    MIPS-V
>>>>48    belong&0xf0000000    0x50000000    MIPS32
>>>>48    belong&0xf0000000    0x60000000    MIPS64
>>>>48    belong&0xf0000000    0x70000000    MIPS32 rel2
>>>>48    belong&0xf0000000    0x80000000    MIPS64 rel2
>>18    beshort        9        Amdahl,
>>18    beshort        10        MIPS (deprecated),
>>18    beshort        11        RS6000,
>>18    beshort        15        PA-RISC
>>>50    beshort        0x0214        2.0
>>>48    beshort        &0x0008        (LP64)
>>18    beshort        16        nCUBE,
>>18    beshort        17        Fujitsu VPP500,
>>18    beshort        18        SPARC32PLUS,
>>>36    belong&0xffff00    0x000100    V8+ Required,
>>>36    belong&0xffff00    0x000200    Sun UltraSPARC1 Extensions Required,
>>>36    belong&0xffff00    0x000400    HaL R1 Extensions Required,
>>>36    belong&0xffff00    0x000800    Sun UltraSPARC3 Extensions Required,
>>18    beshort        20        PowerPC or cisco 4500,
>>18    beshort        21        64-bit PowerPC or cisco 7500,
>>18    beshort        22        IBM S/390,
>>18    beshort        23        Cell SPU,
>>18    beshort        24        cisco SVIP,
>>18    beshort        25        cisco 7200,
>>18    beshort        36        NEC V800 or cisco 12000,
>>18    beshort        37        Fujitsu FR20,
>>18    beshort        38        TRW RH-32,
>>18    beshort        39        Motorola RCE,
>>18    beshort        40        ARM,
>>18    beshort        41        Alpha,
>>18    beshort        42        Renesas SH,
>>18    beshort        43        SPARC V9,
>>>48    belong&0xffff00    0x000200    Sun UltraSPARC1 Extensions Required,
>>>48    belong&0xffff00    0x000400    HaL R1 Extensions Required,
>>>48    belong&0xffff00    0x000800    Sun UltraSPARC3 Extensions Required,
>>>48    belong&0x3    0        total store ordering,
>>>48    belong&0x3    1        partial store ordering,
>>>48    belong&0x3    2        relaxed memory ordering,
>>18    beshort        44        Siemens Tricore Embedded Processor,
>>18    beshort        45        Argonaut RISC Core, Argonaut Technologies Inc.,
>>18    beshort        46        Renesas H8/300,
>>18    beshort        47        Renesas H8/300H,
>>18    beshort        48        Renesas H8S,
>>18    beshort        49        Renesas H8/500,
>>18    beshort        50        IA-64,
>>18    beshort        51        Stanford MIPS-X,
>>18    beshort        52        Motorola Coldfire,
>>18    beshort        53        Motorola M68HC12,
>>18    beshort        73        Cray NV1,
>>18    beshort        75        Digital VAX,
>>18    beshort        88        Renesas M32R,
>>18    leshort        92        OpenRISC,
>>18    leshort        0x3426        OpenRISC (obsolete),
>>18    leshort        0x8472        OpenRISC (obsolete),
>>18    beshort        94        Tensilica Xtensa,
>>18    beshort        97        NatSemi 32k,
>>18    beshort        0x18ad        AVR32 (unofficial),
>>18    beshort        0x9026        Alpha (unofficial),
>>18    beshort        0xa390        IBM S/390 (obsolete),
>>20    belong        0        invalid version
>>20    belong        1        version 1
>>36    belong        1        MathCoPro/FPU/MAU Required
# Up to now only 0, 1 and 2 are defined; I've seen a file with 0x83, it seemed
# like proper ELF, but extracting the string had bad results.
>4      byte            <0x80
>>8    string        >\0        (%s)
>8    string        \0
>>7    byte        0        (SYSV)
>>7    byte        1        (HP-UX)
>>7    byte        2        (NetBSD)
>>7    byte        3        (GNU/Linux)
>>7    byte        4        (GNU/Hurd)
>>7    byte        5        (86Open)
>>7    byte        6        (Solaris)
>>7    byte        7        (Monterey)
>>7    byte        8        (IRIX)
>>7    byte        9        (FreeBSD)
>>7    byte        10        (Tru64)
>>7    byte        11        (Novell Modesto)
>>7    byte        12        (OpenBSD)
>8      string          \2
>>7     byte            13              (OpenVMS)
>>7    byte        97        (ARM)
>>7    byte        255        (embedded)
ok335xD/3rdparty/file/file-5.04/magic/Magdir/encore
New file
@@ -0,0 +1,22 @@
#------------------------------------------------------------------------------
# $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,
# dunno whether they run the 88K in little-endian mode or not).
#
0    short        0x154        Encore
>20    short        0x107        executable
>20    short        0x108        pure executable
>20    short        0x10b        demand-paged executable
>20    short        0x10f        unsupported executable
>12    long        >0        not stripped
>22    short        >0        - version %ld
>22    short        0        -
#>4    date        x        stamp %s
0    short        0x155        Encore unsupported executable
>12    long        >0        not stripped
>22    short        >0        - version %ld
>22    short        0        -
#>4    date        x        stamp %s
ok335xD/3rdparty/file/file-5.04/magic/Magdir/epoc
New file
@@ -0,0 +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> 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    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        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
ok335xD/3rdparty/file/file-5.04/magic/Magdir/erlang
New file
@@ -0,0 +1,19 @@
#------------------------------------------------------------------------------
# $File: erlang,v 1.5 2009/09/19 16:28:09 christos Exp $
# erlang:  file(1) magic for Erlang JAM and BEAM files
# URL:  http://www.erlang.org/faq/x779.html#AEN812
# OTP R3-R4
0    string    \0177BEAM!    Old Erlang BEAM file
>6    short    >0        - version %d
# OTP R5 and onwards
0    string    FOR1
>8    string    BEAM        Erlang BEAM file
# 4.2 version may have a copyright notice!
4    string    Tue\ Jan\ 22\ 14:32:44\ MET\ 1991    Erlang JAM file - version 4.2
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
ok335xD/3rdparty/file/file-5.04/magic/Magdir/esri
New file
@@ -0,0 +1,28 @@
#------------------------------------------------------------------------------
# $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>
0    belong    9994    ESRI Shapefile
>4    belong    =0
>8    belong    =0
>12    belong    =0
>16    belong    =0
>20    belong    =0
>28    lelong    x    version %d
>24    belong    x    length %d
>32    lelong    =0    type Null Shape
>32    lelong    =1    type Point
>32    lelong    =3    type PolyLine
>32    lelong    =5    type Polygon
>32    lelong    =8    type MultiPoint
>32    lelong    =11    type PointZ
>32    lelong    =13    type PolyLineZ
>32    lelong    =15    type PolygonZ
>32    lelong    =18    type MultiPointZ
>32    lelong    =21    type PointM
>32    lelong    =23    type PolyLineM
>32    lelong    =25    type PolygonM
>32    lelong    =28    type MultiPointM
>32    lelong    =31    type MultiPatch
ok335xD/3rdparty/file/file-5.04/magic/Magdir/fcs
New file
@@ -0,0 +1,9 @@
#------------------------------------------------------------------------------
# $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
0       string          FCS2.0          Flow Cytometry Standard (FCS) data, version 2.0
0       string          FCS3.0          Flow Cytometry Standard (FCS) data, version 3.0
ok335xD/3rdparty/file/file-5.04/magic/Magdir/filesystems
New file
@@ -0,0 +1,1492 @@
#------------------------------------------------------------------------------
# $File: filesystems,v 1.55 2010/01/16 17:45:12 chl Exp $
# filesystems:  file(1) magic for different filesystems
#
0    string    \366\366\366\366    PC formatted floppy with no filesystem
# Sun disk labels
# From /usr/include/sun/dklabel.h:
0774    beshort        0xdabe
# modified by Joerg Jenderek, because original test
# succeeds for Cabinet archive dao360.dl_ with negative blocks
>0770    long        >0        Sun disk label
>>0    string        x        '%s
>>>31    string        >\0        \b%s
>>>>63    string        >\0        \b%s
>>>>>95    string        >\0        \b%s
>>0    string        x        \b'
>>0734    short        >0        %d rpm,
>>0736    short        >0        %d phys cys,
>>0740    short        >0        %d alts/cyl,
>>0746    short        >0        %d interleave,
>>0750    short        >0        %d data cyls,
>>0752    short        >0        %d alt cyls,
>>0754    short        >0        %d heads/partition,
>>0756    short        >0        %d sectors/track,
>>0764    long        >0        start cyl %ld,
>>0770    long        x        %ld blocks
# Is there a boot block written 1 sector in?
>512    belong&077777777    0600407    \b, boot block present
# Joerg Jenderek: Smart Boot Manager backup file is 41 byte header + first sectors of disc
# (http://btmgr.sourceforge.net/docs/user-guide-3.html)
0        string    SBMBAKUP_    Smart Boot Manager backup file
>9        string    x        \b, version %-5.5s
>>14        string    =_
>>>15        string    x        %-.1s
>>>>16        string    =_        \b.
>>>>>17        string    x        \b%-.1s
>>>>>>18    string    =_        \b.
>>>>>>>19    string    x        \b%-.1s
>>>22        ubyte    0
>>>>21        ubyte    x        \b, from drive 0x%x
>>>22        ubyte    >0
>>>>21        string    x        \b, from drive %s
# Joerg Jenderek
# DOS Emulator image is 128 byte, null right padded header + harddisc image
0    string    DOSEMU\0
>0x27E    leshort    0xAA55
#offset is 128
>>19    ubyte    128
>>>(19.b-1)    ubyte    0x0    DOS Emulator image
>>>>7    ulelong    >0        \b, %u heads
>>>>11    ulelong    >0        \b, %d sectors/track
>>>>15    ulelong    >0        \b, %d cylinders
# updated by Joerg Jenderek at Sep 2007
# only for sector sizes with 512 or more Bytes
0x1FE    leshort    0xAA55            x86 boot sector
# to do also for sectors < than 512 Bytes and some other files, GRR
#30    search/481    \x55\xAA    x86 boot sector
# not for BeOS floppy 1440k, MBRs
#(11.s-2) uleshort    0xAA55        x86 boot sector
>2    string    OSBS            \b, OS/BS MBR
# J\xf6rg Jenderek <joerg dot jenderek at web dot de>
>0x8C    string    Invalid\ partition\ table    \b, MS-DOS MBR
# dr-dos with some upper-, lowercase variants
>0x9D    string    Invalid\ partition\ table$
>>181    string    No\ Operating\ System$
>>>201    string    Operating\ System\ load\ error$    \b, DR-DOS MBR, Version 7.01 to 7.03
>0x9D    string    Invalid\ partition\ table$
>>181    string    No\ operating\ system$
>>>201    string    Operating\ system\ load\ error$    \b, DR-DOS MBR, Version 7.01 to 7.03
>342    string    Invalid\ partition\ table$
>>366    string    No\ operating\ system$
>>>386    string    Operating\ system\ load\ error$    \b, DR-DOS MBR, version 7.01 to 7.03
>295    string    NEWLDR\0
>>302    string    Bad\ PT\ $
>>>310    string    No\ OS\ $
>>>>317    string    OS\ load\ err$
>>>>>329    string    Moved\ or\ missing\ IBMBIO.LDR\n\r
>>>>>>358    string    Press\ any\ key\ to\ continue.\n\r$
>>>>>>>387    string    Copyright\ (c)\ 1984,1998
>>>>>>>>411    string    Caldera\ Inc.\0        \b, DR-DOS MBR (IBMBIO.LDR)
>0x10F    string    Ung\201ltige\ Partitionstabelle    \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
>>0x1B8    ubelong    >0                \b, Serial 0x%-.4x
>0x8B    string    Ung\201ltige\ Partitionstabelle    \b, MS-DOS MBR, german version 5.00 to 4.00.950
>271    string    Invalid\ partition\ table\0
>>295    string    Error\ loading\ operating\ system\0
>>>326    string    Missing\ operating\ system\0        \b, mbr
#
>139    string    Invalid\ partition\ table\0
>>163    string    Error\ loading\ operating\ system\0
>>>194    string    Missing\ operating\ system\0        \b, Microsoft Windows XP mbr
# http://www.heise.de/ct/05/09/006/ page 184
#HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices\?:=Serial4Bytes+8Bytes
>>>>0x1B8    ulelong    >0                \b,Serial 0x%-.4x
>300    string    Invalid\ partition\ table\0
>>324    string    Error\ loading\ operating\ system\0
>>>355    string    Missing\ operating\ system\0        \b, Microsoft Windows XP MBR
#??>>>389    string    Invalid\ system\ disk
>>>>0x1B8    ulelong    >0                \b, Serial 0x%-.4x
>300    string    Ung\201ltige\ Partitionstabelle
#split string to avoid error: String too long
>>328    string    Fehler\ beim\ Laden\
>>>346    string    des\ Betriebssystems
>>>>366    string    Betriebssystem\ nicht\ vorhanden    \b, Microsoft Windows XP MBR (german)
>>>>>0x1B8    ulelong    >0                \b, Serial 0x%-.4x
#>0x145    string    Default:\ F                \b, FREE-DOS MBR
#>0x14B    string    Default:\ F                \b, FREE-DOS 1.0 MBR
>0x145    search/7    Default:\ F            \b, FREE-DOS MBR
#>>313        string    F0\ .\ .\ .
#>>>322        string    disk\ 1
#>>>>382    string    FAT3
>64    string    no\ active\ partition\ found
>>96    string    read\ error\ while\ reading\ drive    \b, FREE-DOS Beta 0.9 MBR
# Ranish Partition Manager http://www.ranish.com/part/
>387    search/4    \0\ Error!\r
>>378    search/7    Virus!
>>>397    search/4    Booting\
>>>>408    search/4    HD1/\0                 \b, Ranish MBR (
>>>>>416    string    Writing\ changes...        \b2.37
>>>>>>438    ubyte        x            \b,0x%x dots
>>>>>>440    ubyte        >0            \b,virus check
>>>>>>441    ubyte        >0            \b,partition %c
#2.38,2.42,2.44
>>>>>416    string    !Writing\ changes...        \b
>>>>>>418    ubyte    1                \bvirus check,
>>>>>>419    ubyte    x                \b0x%x seconds
>>>>>>420    ubyte&0x0F    >0            \b,partition
>>>>>>>420    ubyte&0x0F    <5            \b %x
>>>>>>>420    ubyte&0x0F    0Xf            \b ask
>>>>>420    ubyte        x            \b)
#
>271    string    Operating\ system\ loading
>>296    string    error\r                    \b, SYSLINUX MBR (2.10)
# http://www.acronis.de/
>362    string    MBR\ Error\ \0\r
>>376    string    ress\ any\ key\ to\
>>>392    string    boot\ from\ floppy...\0            \b, Acronis MBR
# added by Joerg Jenderek
# http://www.visopsys.org/
# http://partitionlogic.org.uk/
>309    string    No\ bootable\ partition\ found\r
>>339    string    I/O\ Error\ reading\ boot\ sector\r    \b, Visopsys MBR
>349    string    No\ bootable\ partition\ found\r
>>379    string    I/O\ Error\ reading\ boot\ sector\r    \b, simple Visopsys MBR
# bootloader, bootmanager
>0x40    string    SBML
# label with 11 characters of FAT 12 bit filesystem
>>43    string    SMART\ BTMGR
>>>430    string    SBMK\ Bad!\r            \b, Smart Boot Manager
# OEM-ID not always "SBM"
#>>>>3    strings    SBM
>>>>6    string    >\0                             \b, version %s
>382    string    XOSLLOADXCF            \b, eXtended Operating System Loader
>6    string    LILO                \b, LInux i386 boot LOader
>>120    string    LILO                \b, version 22.3.4 SuSe
>>172    string    LILO                \b, version 22.5.8 Debian
# updated by Joerg Jenderek at Oct 2008
# variables according to grub-0.97/stage1/stage1.S or
# http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
# usual values are marked with comments to get only informations of strange GRUB loaders
>342        search/60    \0Geom\0
#>0        ulelong        x        %x=0x009048EB ,    0x2a9048EB  0
>>0x41        ubyte        <2
>>>0x3E        ubyte        >2        \b; GRand Unified Bootloader
# 0x3 for 0.5.95,0.93,0.94,0.96 0x4 for 1.90
>>>>0x3E    ubyte        x        \b, stage1 version 0x%x
#If it is 0xFF, use a drive passed by BIOS
>>>>0x40    ubyte        <0xFF        \b, boot drive 0x%x
# in most case 0,1,0x2e for GRUB 0.5.95
>>>>0x41    ubyte        >0        \b, LBA flag 0x%x
>>>>0x42    uleshort    <0x8000        \b, stage2 address 0x%x
#>>>>0x42    uleshort    =0x8000        \b, stage2 address 0x%x (usual)
>>>>0x42    uleshort    >0x8000        \b, stage2 address 0x%x
#>>>>0x44    ulelong        =1        \b, 1st sector stage2 0x%x (default)
>>>>0x44    ulelong        >1        \b, 1st sector stage2 0x%x
>>>>0x48    uleshort    <0x800        \b, stage2 segment 0x%x
#>>>>0x48    uleshort    =0x800        \b, stage2 segment 0x%x (usual)
>>>>0x48    uleshort    >0x800        \b, stage2 segment 0x%x
>>>>402        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>>394    string    stage1            \b, GRUB version 0.5.95
>>>>382        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>>376    string    GRUB\ \0        \b, GRUB version 0.93 or 1.94
>>>>383        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>>377    string    GRUB\ \0        \b, GRUB version 0.94
>>>>385        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>>379    string    GRUB\ \0        \b, GRUB version 0.95 or 0.96
>>>>391        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>>385    string    GRUB\ \0        \b, GRUB version 0.97
#unkown version
>>>343        string    Geom\0Read\0\ Error\0
>>>>321        string    Loading\ stage1.5    \b, GRUB version x.y
>>>380        string    Geom\0Hard\ Disk\0Read\0\ Error\0
>>>>374        string    GRUB\ \0        \b, GRUB version n.m
# http://syslinux.zytor.com/
>478    string    Boot\ failed\r
>>495    string    LDLINUX\ SYS            \b, SYSLINUX bootloader (1.62)
>480    string    Boot\ failed\r
>>495    string    LDLINUX\ SYS            \b, SYSLINUX bootloader (2.06 or 2.11)
>484    string    Boot\ error\r            \b, SYSLINUX bootloader (3.11)
>395    string    chksum\0\ ERROR!\0        \b, Gujin bootloader
# http://www.bcdwb.de/bcdw/index_e.htm
>3    string    BCDL
>>498    string    BCDL\ \ \ \ BIN            \b, Bootable CD Loader (1.50Z)
# mbr partition table entries
# OEM-ID does not contain MicroSoft,NEWLDR,DOS,SYSLINUX,or MTOOLs
>3            string        !MS
>>3            string        !SYSLINUX
>>>3            string        !MTOOL
>>>>3            string        !NEWLDR
>>>>>5            string        !DOS
# not FAT (32 bit)
>>>>>>82        string        !FAT32
#not Linux kernel
>>>>>>>514        string        !HdrS
#not BeOS
>>>>>>>>422        string        !Be\ Boot\ Loader
# active flag 0 or 0x80 and type > 0
>>>>>>>>>446        ubyte        <0x81
>>>>>>>>>>446        ubyte&0x7F    0
>>>>>>>>>>>450        ubyte        >0    \b; partition 1: ID=0x%x
>>>>>>>>>>>>446        ubyte        0x80    \b, active
>>>>>>>>>>>>447        ubyte        x    \b, starthead %u
#>>>>>>>>>>>>448        ubyte        x    \b, start C_S: 0x%x
#>>>>>>>>>>>>448        ubeshort&1023    x    \b, startcylinder? %d
>>>>>>>>>>>>454        ulelong        x    \b, startsector %u
>>>>>>>>>>>>458        ulelong        x    \b, %u sectors
#
>>>>>>>>>462        ubyte        <0x81
>>>>>>>>>>462        ubyte&0x7F    0
>>>>>>>>>>>466        ubyte        >0    \b; partition 2: ID=0x%x
>>>>>>>>>>>>462        ubyte        0x80    \b, active
>>>>>>>>>>>>463        ubyte        x    \b, starthead %u
#>>>>>>>>>>>>464        ubyte        x    \b, start C_S: 0x%x
#>>>>>>>>>>>>464        ubeshort&1023    x    \b, startcylinder? %d
>>>>>>>>>>>>470        ulelong        x    \b, startsector %u
>>>>>>>>>>>>474        ulelong        x    \b, %u sectors
#
>>>>>>>>>478        ubyte        <0x81
>>>>>>>>>>478        ubyte&0x7F    0
>>>>>>>>>>>482        ubyte        >0    \b; partition 3: ID=0x%x
>>>>>>>>>>>>478        ubyte        0x80    \b, active
>>>>>>>>>>>>479        ubyte        x    \b, starthead %u
#>>>>>>>>>>>>480        ubyte        x    \b, start C_S: 0x%x
#>>>>>>>>>>>>481        ubyte        x    \b, start C2S: 0x%x
#>>>>>>>>>>>>480        ubeshort&1023    x    \b, startcylinder? %d
>>>>>>>>>>>>486        ulelong        x    \b, startsector %u
>>>>>>>>>>>>490        ulelong        x    \b, %u sectors
#
>>>>>>>>>494        ubyte        <0x81
>>>>>>>>>>494        ubyte&0x7F    0
>>>>>>>>>>>498        ubyte        >0    \b; partition 4: ID=0x%x
>>>>>>>>>>>>494        ubyte        0x80    \b, active
>>>>>>>>>>>>495        ubyte        x    \b, starthead %u
#>>>>>>>>>>>>496        ubyte        x    \b, start C_S: 0x%x
#>>>>>>>>>>>>496        ubeshort&1023    x    \b, startcylinder? %d
>>>>>>>>>>>>502        ulelong        x    \b, startsector %u
>>>>>>>>>>>>506        ulelong        x    \b, %u sectors
# mbr partition table entries end
# http://www.acronis.de/
#FAT label=ACRONIS\ SZ
#OEM-ID=BOOTWIZ0
>442    string    Non-system\ disk,\
>>459    string    press\ any\ key...\x7\0        \b, Acronis Startup Recovery Loader
# DOS names like F11.SYS are 8 right space padded bytes+3 bytes
>>>477        ubyte&0xDF    >0
>>>>477        string        x         \b %-.3s
>>>>>480    ubyte&0xDF    >0
>>>>>>480    string        x         \b%-.5s
>>>>485        ubyte&0xDF    >0
>>>>>485    string        x         \b.%-.3s
#
>185    string    FDBOOT\ Version\
>>204    string    \rNo\ Systemdisk.\
>>>220    string    Booting\ from\ harddisk.\n\r
>>>245    string    Cannot\ load\ from\ harddisk.\n\r
>>>>273 string    Insert\ Systemdisk\
>>>>>291 string and\ press\ any\ key.\n\r        \b, FDBOOT harddisk Bootloader
>>>>>>200 string    >\0                             \b, version %-3s
>242    string    Bootsector\ from\ C.H.\ Hochst\204
>>278    string    No\ Systemdisk.\
>>>293    string    Booting\ from\ harddisk.\n\r
>>>441    string    Cannot\ load\ from\ harddisk.\n\r
>>>>469 string    Insert\ Systemdisk\
>>>>>487 string and\ press\ any\ key.\n\r        \b, WinImage harddisk Bootloader
>>>>>>209 string    >\0                             \b, version %-4.4s
>(1.b+2)    ubyte        0xe
>>(1.b+3)    ubyte        0x1f
>>>(1.b+4)    ubyte        0xbe
>>>>(1.b+5)    ubyte        0x77
>>>>(1.b+6)    ubyte        0x7c
>>>>>(1.b+7)    ubyte        0xac
>>>>>>(1.b+8)    ubyte        0x22
>>>>>>>(1.b+9)    ubyte        0xc0
>>>>>>>>(1.b+10)    ubyte    0x74
>>>>>>>>>(1.b+11)    ubyte    0xb
>>>>>>>>>>(1.b+12)    ubyte    0x56
>>>>>>>>>>(1.b+13)    ubyte    0xb4            \b, mkdosfs boot message display
>214    string    Please\ try\ to\ install\ FreeDOS\     \b, DOS Emulator boot message display
#>>244    string    from\ dosemu-freedos-*-bin.tgz\r
#>>>170    string    Sorry,\ could\ not\ load\ an\
#>>>>195    string    operating\ system.\r\n
#
>103    string    This\ is\ not\ a\ bootable\ disk.\
>>132    string    Please\ insert\ a\ bootable\
>>>157    string    floppy\ and\r\n
>>>>169    string    press\ any\ key\ to\ try\ again...\r    \b, FREE-DOS message display
#
>66    string    Solaris\ Boot\ Sector
>>99    string    Incomplete\ MDBoot\ load.
>>>89    string    Version                 \b, Sun Solaris Bootloader
>>>>97    byte    x                    version %c
#
>408    string    OS/2\ !!\ SYS01475\r\0
>>429    string    OS/2\ !!\ SYS02025\r\0
>>>450    string    OS/2\ !!\ SYS02027\r\0
>>>469    string    OS2BOOT\ \ \ \                 \b, IBM OS/2 Warp bootloader
#
>409    string    OS/2\ !!\ SYS01475\r\0
>>430    string    OS/2\ !!\ SYS02025\r\0
>>>451    string    OS/2\ !!\ SYS02027\r\0
>>>470    string    OS2BOOT\ \ \ \                 \b, IBM OS/2 Warp Bootloader
>112        string    This\ disk\ is\ not\ bootable\r
>>142        string    If\ you\ wish\ to\ make\ it\ bootable
>>>176        string    run\ the\ DOS\ program\ SYS\
>>>200        string    after\ the\r
>>>>216        string    system\ has\ been\ loaded\r\n
>>>>>242    string    Please\ insert\ a\ DOS\ diskette\
>>>>>271    string    into\r\n\ the\ drive\ and\
>>>>>>292    string    strike\ any\ key...\0        \b, IBM OS/2 Warp message display
# XP
>430    string    NTLDR\ is\ missing\xFF\r\n
>>449    string    Disk\ error\xFF\r\n
>>>462    string    Press\ any\ key\ to\ restart\r        \b, Microsoft Windows XP Bootloader
# DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
>>>>417        ubyte&0xDF    >0
>>>>>417    string        x            %-.5s
>>>>>>422    ubyte&0xDF    >0
>>>>>>>422    string        x             \b%-.3s
>>>>>425    ubyte&0xDF    >0
>>>>>>425    string        >\             \b.%-.3s
#
>>>>371        ubyte        >0x20
>>>>>368    ubyte&0xDF    >0
>>>>>>368    string        x             %-.5s
>>>>>>>373    ubyte&0xDF    >0
>>>>>>>>373    string        x             \b%-.3s
>>>>>>376    ubyte&0xDF    >0
>>>>>>>376    string        x             \b.%-.3s
#
>430    string    NTLDR\ nicht\ gefunden\xFF\r\n
>>453    string    Datentr\204gerfehler\xFF\r\n
>>>473    string    Neustart\ mit\ beliebiger\ Taste\r    \b, Microsoft Windows XP Bootloader (german)
>>>>417        ubyte&0xDF    >0
>>>>>417    string        x            %-.5s
>>>>>>422    ubyte&0xDF    >0
>>>>>>>422    string        x             \b%-.3s
>>>>>425    ubyte&0xDF    >0
>>>>>>425    string        >\             \b.%-.3s
# offset variant
>>>>379    string    \0
>>>>>368    ubyte&0xDF    >0
>>>>>>368    string        x             %-.5s
>>>>>>>373    ubyte&0xDF    >0
>>>>>>>>373    string        x             \b%-.3s
#
>430    string    NTLDR\ fehlt\xFF\r\n
>>444    string    Datentr\204gerfehler\xFF\r\n
>>>464    string    Neustart\ mit\ beliebiger\ Taste\r    \b, Microsoft Windows XP Bootloader (2.german)
>>>>417        ubyte&0xDF    >0
>>>>>417    string        x            %-.5s
>>>>>>422    ubyte&0xDF    >0
>>>>>>>422    string        x             \b%-.3s
>>>>>425    ubyte&0xDF    >0
>>>>>>425    string        >\             \b.%-.3s
# variant
>>>>371        ubyte        >0x20
>>>>>368    ubyte&0xDF    >0
>>>>>>368    string        x             %-.5s
>>>>>>>373    ubyte&0xDF    >0
>>>>>>>>373    string        x             \b%-.3s
>>>>>>376    ubyte&0xDF    >0
>>>>>>>376    string        x             \b.%-.3s
#
>430    string    NTLDR\ fehlt\xFF\r\n
>>444    string    Medienfehler\xFF\r\n
>>>459    string    Neustart:\ Taste\ dr\201cken\r        \b, Microsoft Windows XP Bootloader (3.german)
>>>>371        ubyte        >0x20
>>>>>368    ubyte&0xDF    >0
>>>>>>368    string        x             %-.5s
>>>>>>>373    ubyte&0xDF    >0
>>>>>>>>373    string        x             \b%-.3s
>>>>>>376    ubyte&0xDF    >0
>>>>>>>376    string        x             \b.%-.3s
# variant
>>>>417        ubyte&0xDF    >0
>>>>>417    string        x            %-.5s
>>>>>>422    ubyte&0xDF    >0
>>>>>>>422    string        x             \b%-.3s
>>>>>425    ubyte&0xDF    >0
>>>>>>425    string        >\             \b.%-.3s
#
>430    string    Datentr\204ger\ entfernen\xFF\r\n
>>454    string    Medienfehler\xFF\r\n
>>>469    string    Neustart:\ Taste\ dr\201cken\r        \b, Microsoft Windows XP Bootloader (4.german)
>>>>379        string        \0
>>>>>368    ubyte&0xDF    >0
>>>>>>368    string        x             %-.5s
>>>>>>>373    ubyte&0xDF    >0
>>>>>>>>373    string        x             \b%-.3s
>>>>>>376    ubyte&0xDF    >0
>>>>>>>376    string        x             \b.%-.3s
# variant
>>>>417        ubyte&0xDF    >0
>>>>>417    string        x            %-.5s
>>>>>>422    ubyte&0xDF    >0
>>>>>>>422    string        x             \b%-.3s
>>>>>425    ubyte&0xDF    >0
>>>>>>425    string        >\             \b.%-.3s
#
#>3    string    NTFS\ \ \ \
>389    string    Fehler\ beim\ Lesen\
>>407    string    des\ Datentr\204gers
>>>426    string    NTLDR\ fehlt
>>>>440    string    NTLDR\ ist\ komprimiert
>>>>>464 string    Neustart\ mit\ Strg+Alt+Entf\r        \b, Microsoft Windows XP Bootloader NTFS (german)
#>3    string    NTFS\ \ \ \
>313    string    A\ disk\ read\ error\ occurred.\r
>>345    string    A\ kernel\ file\ is\ missing\
>>>370    string    from\ the\ disk.\r
>>>>484    string    NTLDR\ is\ compressed
>>>>>429 string    Insert\ a\ system\ diskette\
>>>>>>454 string and\ restart\r\nthe\ system.\r        \b, Microsoft Windows XP Bootloader NTFS
# DOS loader variants different languages,offsets
>472    ubyte&0xDF    >0
>>389    string    Invalid\ system\ disk\xFF\r\n
>>>411    string    Disk\ I/O\ error
>>>>428    string    Replace\ the\ disk,\ and\
>>>>>455 string    press\ any\ key                \b, Microsoft Windows 98 Bootloader
#IO.SYS
>>>>>>472    ubyte&0xDF    >0
>>>>>>>472    string        x             \b %-.2s
>>>>>>>>474    ubyte&0xDF    >0
>>>>>>>>>474    string        x             \b%-.5s
>>>>>>>>>>479    ubyte&0xDF    >0
>>>>>>>>>>>479 string        x             \b%-.1s
>>>>>>>480    ubyte&0xDF    >0
>>>>>>>>480    string        x             \b.%-.3s
#MSDOS.SYS
>>>>>>>483    ubyte&0xDF    >0            \b+
>>>>>>>>483    string        x             \b%-.5s
>>>>>>>>>488    ubyte&0xDF    >0
>>>>>>>>>>488    string        x             \b%-.3s
>>>>>>>>491    ubyte&0xDF    >0
>>>>>>>>>491    string        x             \b.%-.3s
#
>>390    string    Invalid\ system\ disk\xFF\r\n
>>>412    string    Disk\ I/O\ error\xFF\r\n
>>>>429    string    Replace\ the\ disk,\ and\
>>>>>451 string    then\ press\ any\ key\r            \b, Microsoft Windows 98 Bootloader
>>388    string    Ungueltiges\ System\ \xFF\r\n
>>>410    string    E/A-Fehler\ \ \ \ \xFF\r\n
>>>>427    string    Datentraeger\ wechseln\ und\
>>>>>453 string    Taste\ druecken\r            \b, Microsoft Windows 95/98/ME Bootloader (german)
#WINBOOT.SYS only not spaces (0xDF)
>>>>>>497    ubyte&0xDF    >0
>>>>>>>497    string        x             %-.5s
>>>>>>>>502    ubyte&0xDF    >0
>>>>>>>>>502    string        x             \b%-.1s
>>>>>>>>>>503    ubyte&0xDF    >0
>>>>>>>>>>>503    string        x             \b%-.1s
>>>>>>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>>>>>>504 string        x             \b%-.1s
>>>>>>505    ubyte&0xDF    >0
>>>>>>>505    string        x             \b.%-.3s
#IO.SYS
>>>>>>472    ubyte&0xDF    >0            or
>>>>>>>472    string        x             \b %-.2s
>>>>>>>>474    ubyte&0xDF    >0
>>>>>>>>>474    string        x             \b%-.5s
>>>>>>>>>>479    ubyte&0xDF    >0
>>>>>>>>>>>479 string        x             \b%-.1s
>>>>>>>480    ubyte&0xDF    >0
>>>>>>>>480    string        x             \b.%-.3s
#MSDOS.SYS
>>>>>>>483    ubyte&0xDF    >0            \b+
>>>>>>>>483    string        x             \b%-.5s
>>>>>>>>>488    ubyte&0xDF    >0
>>>>>>>>>>488    string        x             \b%-.3s
>>>>>>>>491    ubyte&0xDF    >0
>>>>>>>>>491    string        x             \b.%-.3s
#
>>390    string    Ungueltiges\ System\ \xFF\r\n
>>>412    string    E/A-Fehler\ \ \ \ \xFF\r\n
>>>>429    string    Datentraeger\ wechseln\ und\
>>>>>455 string    Taste\ druecken\r            \b, Microsoft Windows 95/98/ME Bootloader (German)
#WINBOOT.SYS only not spaces (0xDF)
>>>>>>497    ubyte&0xDF    >0
>>>>>>>497    string        x             %-.7s
>>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>>504    string        x             \b%-.1s
>>>>>>505    ubyte&0xDF    >0
>>>>>>>505    string        x             \b.%-.3s
#IO.SYS
>>>>>>472    ubyte&0xDF    >0            or
>>>>>>>472    string        x             \b %-.2s
>>>>>>>>474    ubyte&0xDF    >0
>>>>>>>>>474    string        x             \b%-.6s
>>>>>>>480    ubyte&0xDF    >0
>>>>>>>>480    string        x             \b.%-.3s
#MSDOS.SYS
>>>>>>>483    ubyte&0xDF    >0            \b+
>>>>>>>>483    string        x             \b%-.5s
>>>>>>>>>488    ubyte&0xDF    >0
>>>>>>>>>>488    string        x             \b%-.3s
>>>>>>>>491    ubyte&0xDF    >0
>>>>>>>>>491    string        x             \b.%-.3s
#
>>389    string    Ungueltiges\ System\ \xFF\r\n
>>>411    string    E/A-Fehler\ \ \ \ \xFF\r\n
>>>>428    string    Datentraeger\ wechseln\ und\
>>>>>454 string    Taste\ druecken\r            \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
# DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
>>>>>>472    string        x             %-.2s
>>>>>>>474    ubyte&0xDF    >0
>>>>>>>>474    string        x             \b%-.5s
>>>>>>>>479    ubyte&0xDF    >0
>>>>>>>>>479    string        x             \b%-.1s
>>>>>>480    ubyte&0xDF    >0
>>>>>>>480    string        x             \b.%-.3s
>>>>>>483    ubyte&0xDF    >0            \b+
>>>>>>>483    string        x             \b%-.5s
>>>>>>>488    ubyte&0xDF    >0
>>>>>>>>488    string        x             \b%-.2s
>>>>>>>>490    ubyte&0xDF    >0
>>>>>>>>>490    string        x             \b%-.1s
>>>>>>>491    ubyte&0xDF    >0
>>>>>>>>491    string        x             \b.%-.3s
>479    ubyte&0xDF    >0
>>416    string    Kein\ System\ oder\
>>>433    string    Laufwerksfehler
>>>>450    string    Wechseln\ und\ Taste\ dr\201cken    \b, Microsoft DOS Bootloader (german)
#IO.SYS
>>>>>479    string        x             \b %-.2s
>>>>>>481    ubyte&0xDF    >0
>>>>>>>481    string        x             \b%-.6s
>>>>>487    ubyte&0xDF    >0
>>>>>>487    string        x             \b.%-.3s
#MSDOS.SYS
>>>>>>490    ubyte&0xDF    >0            \b+
>>>>>>>490    string        x             \b%-.5s
>>>>>>>>495    ubyte&0xDF    >0
>>>>>>>>>495    string        x             \b%-.3s
>>>>>>>498    ubyte&0xDF    >0
>>>>>>>>498    string        x             \b.%-.3s
#
>376    search/41    Non-System\ disk\ or\
>>395    search/41    disk\ error\r
>>>407    search/41    Replace\ and\
>>>>419    search/41    press\                 \b,
>>>>419    search/41    strike\             \b, old
>>>>426    search/41    any\ key\ when\ ready\r        MS or PC-DOS bootloader
#449            Disk\ Boot\ failure\r        MS 3.21
#466            Boot\ Failure\r            MS 3.30
>>>>>468 search/18    \0
#IO.SYS,IBMBIO.COM
>>>>>>&0    string        x             \b %-.2s
>>>>>>>&-20    ubyte&0xDF    >0
>>>>>>>>&-1    string        x             \b%-.4s
>>>>>>>>>&-16    ubyte&0xDF    >0
>>>>>>>>>>&-1    string        x             \b%-.2s
>>>>>>&8    ubyte&0xDF    >0            \b.
>>>>>>>&-1    string        x             \b%-.3s
#MSDOS.SYS,IBMDOS.COM
>>>>>>&11    ubyte&0xDF    >0            \b+
>>>>>>>&-1    string        x             \b%-.5s
>>>>>>>>&-6    ubyte&0xDF    >0
>>>>>>>>>&-1    string        x             \b%-.1s
>>>>>>>>>>&-5    ubyte&0xDF    >0
>>>>>>>>>>>&-1    string        x             \b%-.2s
>>>>>>>&7    ubyte&0xDF    >0            \b.
>>>>>>>>&-1    string        x             \b%-.3s
>441    string    Cannot\ load\ from\ harddisk.\n\r
>>469    string    Insert\ Systemdisk\
>>>487    string    and\ press\ any\ key.\n\r        \b, MS (2.11) DOS bootloader
#>43    string    \224R-LOADER\ \ SYS            =label
>54    string    SYS
>>324    string    VASKK
>>>495    string    NEWLDR\0                \b, DR-DOS Bootloader (LOADER.SYS)
#
>98    string    Press\ a\ key\ to\ retry\0\r
>>120    string    Cannot\ find\ file\ \0\r
>>>139    string    Disk\ read\ error\0\r
>>>>156    string    Loading\ ...\0                \b, DR-DOS (3.41) Bootloader
#DRBIOS.SYS
>>>>>44        ubyte&0xDF    >0
>>>>>>44    string        x            \b %-.6s
>>>>>>>50    ubyte&0xDF    >0
>>>>>>>>50    string        x             \b%-.2s
>>>>>>52    ubyte&0xDF    >0
>>>>>>>52    string        x             \b.%-.3s
#
>70    string    IBMBIO\ \ COM
>>472    string    Cannot\ load\ DOS!\
>>>489    string    Any\ key\ to\ retry            \b, DR-DOS Bootloader
>>471    string    Cannot\ load\ DOS\
>>487    string    press\ key\ to\ retry            \b, Open-DOS Bootloader
#??
>444    string    KERNEL\ \ SYS
>>314    string    BOOT\ error!                \b, FREE-DOS Bootloader
>499    string    KERNEL\ \ SYS
>>305    string    BOOT\ err!\0                \b, Free-DOS Bootloader
>449    string    KERNEL\ \ SYS
>>319    string    BOOT\ error!                \b, FREE-DOS 0.5 Bootloader
#
>449    string    Loading\ FreeDOS
>>0x1AF        ulelong        >0            \b, FREE-DOS 0.95,1.0 Bootloader
>>>497        ubyte&0xDF    >0
>>>>497        string        x             \b %-.6s
>>>>>503    ubyte&0xDF    >0
>>>>>>503    string        x             \b%-.1s
>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>504    string        x             \b%-.1s
>>>>505        ubyte&0xDF    >0
>>>>>505    string        x             \b.%-.3s
#
>331    string    Error!.0                \b, FREE-DOS 1.0 bootloader
#
>125    string    Loading\ FreeDOS...\r
>>311    string    BOOT\ error!\r                \b, FREE-DOS bootloader
>>>441        ubyte&0xDF    >0
>>>>441        string        x             \b %-.6s
>>>>>447    ubyte&0xDF    >0
>>>>>>447    string        x             \b%-.1s
>>>>>>>448    ubyte&0xDF    >0
>>>>>>>>448    string        x             \b%-.1s
>>>>449        ubyte&0xDF    >0
>>>>>449    string        x             \b.%-.3s
>124    string    FreeDOS\0
>>331    string    \ err\0                    \b, FREE-DOS BETa 0.9 Bootloader
# DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
>>>497        ubyte&0xDF    >0
>>>>497        string        x             \b %-.6s
>>>>>503    ubyte&0xDF    >0
>>>>>>503    string        x             \b%-.1s
>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>504    string        x             \b%-.1s
>>>>505        ubyte&0xDF    >0
>>>>>505    string        x             \b.%-.3s
>>333    string    \ err\0                    \b, FREE-DOS BEta 0.9 Bootloader
>>>497        ubyte&0xDF    >0
>>>>497        string        x             \b %-.6s
>>>>>503    ubyte&0xDF    >0
>>>>>>503    string        x             \b%-.1s
>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>504    string        x             \b%-.1s
>>>>505        ubyte&0xDF    >0
>>>>>505    string        x             \b.%-.3s
>>334    string    \ err\0                    \b, FREE-DOS Beta 0.9 Bootloader
>>>497        ubyte&0xDF    >0
>>>>497        string        x             \b %-.6s
>>>>>503    ubyte&0xDF    >0
>>>>>>503    string        x             \b%-.1s
>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>504    string        x             \b%-.1s
>>>>505        ubyte&0xDF    >0
>>>>>505    string        x             \b.%-.3s
>336    string    Error!\
>>343    string    Hit\ a\ key\ to\ reboot.        \b, FREE-DOS Beta 0.9sr1 Bootloader
>>>497        ubyte&0xDF    >0
>>>>497        string        x             \b %-.6s
>>>>>503    ubyte&0xDF    >0
>>>>>>503    string        x             \b%-.1s
>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>504    string        x             \b%-.1s
>>>>505        ubyte&0xDF    >0
>>>>>505    string        x             \b.%-.3s
# added by Joerg Jenderek
# http://www.visopsys.org/
# http://partitionlogic.org.uk/
# OEM-ID=Visopsys
>478        ulelong    0
>>(1.b+326)    string    I/O\ Error\ reading\
>>>(1.b+344)    string    Visopsys\ loader\r
>>>>(1.b+361)    string    Press\ any\ key\ to\ continue.\r    \b, Visopsys loader
# http://alexfru.chat.ru/epm.html#bootprog
>494    ubyte    >0x4D
>>495    string    >E
>>>495    string    <S
#OEM-ID is not reliable
>>>>3    string    BootProg
# It just looks for a program file name at the root directory
# and loads corresponding file with following execution.
# DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
>>>>499            ubyte&0xDF    >0        \b, COM/EXE Bootloader
>>>>>499        string        x         \b %-.1s
>>>>>>500        ubyte&0xDF    >0
>>>>>>>500        string        x         \b%-.1s
>>>>>>>>501        ubyte&0xDF    >0
>>>>>>>>>501        string        x         \b%-.1s
>>>>>>>>>>502        ubyte&0xDF    >0
>>>>>>>>>>>502        string        x         \b%-.1s
>>>>>>>>>>>>503        ubyte&0xDF    >0
>>>>>>>>>>>>>503    string        x         \b%-.1s
>>>>>>>>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>>>>>>>>504    string        x         \b%-.1s
>>>>>>>>>>>>>>>>505    ubyte&0xDF    >0
>>>>>>>>>>>>>>>>>505    string        x         \b%-.1s
>>>>>>>>>>>>>>>>>>506    ubyte&0xDF    >0
>>>>>>>>>>>>>>>>>>>506    string        x         \b%-.1s
#name extension
>>>>>507        ubyte&0xDF    >0        \b.
>>>>>>507        string        x         \b%-.1s
>>>>>>>508        ubyte&0xDF    >0
>>>>>>>>508        string        x         \b%-.1s
>>>>>>>>>509        ubyte&0xDF    >0
>>>>>>>>>>509        string        x         \b%-.1s
#If the boot sector fails to read any other sector,
#it prints a very short message ("RE") to the screen and hangs the computer.
#If the boot sector fails to find needed program in the root directory,
#it also hangs with another message ("NF").
>>>>>492        string        RENF        \b, FAT (12 bit)
>>>>>495        string        RENF        \b, FAT (16 bit)
# http://alexfru.chat.ru/epm.html#bootprog
>494    ubyte    >0x4D
>>495    string    >E
>>>495    string    <S
#OEM-ID is not reliable
>>>>3    string    BootProg
# It just looks for a program file name at the root directory
# and loads corresponding file with following execution.
# DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
>>>>499            ubyte&0xDF    >0        \b, COM/EXE Bootloader
>>>>>499        string        x         \b %-.1s
>>>>>>500        ubyte&0xDF    >0
>>>>>>>500        string        x         \b%-.1s
>>>>>>>>501        ubyte&0xDF    >0
>>>>>>>>>501        string        x         \b%-.1s
>>>>>>>>>>502        ubyte&0xDF    >0
>>>>>>>>>>>502        string        x         \b%-.1s
>>>>>>>>>>>>503        ubyte&0xDF    >0
>>>>>>>>>>>>>503    string        x         \b%-.1s
>>>>>>>>>>>>>>504    ubyte&0xDF    >0
>>>>>>>>>>>>>>>504    string        x         \b%-.1s
>>>>>>>>>>>>>>>>505    ubyte&0xDF    >0
>>>>>>>>>>>>>>>>>505    string        x         \b%-.1s
>>>>>>>>>>>>>>>>>>506    ubyte&0xDF    >0
>>>>>>>>>>>>>>>>>>>506    string        x         \b%-.1s
#name extension
>>>>>507        ubyte&0xDF    >0        \b.
>>>>>>507        string        x         \b%-.1s
>>>>>>>508        ubyte&0xDF    >0
>>>>>>>>508        string        x         \b%-.1s
>>>>>>>>>509        ubyte&0xDF    >0
>>>>>>>>>>509        string        x         \b%-.1s
#If the boot sector fails to read any other sector,
#it prints a very short message ("RE") to the screen and hangs the computer.
#If the boot sector fails to find needed program in the root directory,
#it also hangs with another message ("NF").
>>>>>492        string        RENF        \b, FAT (12 bit)
>>>>>495        string        RENF        \b, FAT (16 bit)
# x86 bootloader end
# updated by Joerg Jenderek at Sep 2007
>3    ubyte    0
#no active flag
>>446    ubyte    0
# partition 1 not empty
>>>450    ubyte    >0
# partitions 3,4 empty
>>>>482        ubyte    0
>>>>>498    ubyte    0
# partition 2 ID=0,5,15
>>>>>>466    ubyte    <0x10
>>>>>>>466    ubyte    0x05            \b, extended partition table
>>>>>>>466    ubyte    0x0F            \b, extended partition table (LBA)
>>>>>>>466    ubyte    0x0            \b, extended partition table (last)
# JuMP short     bootcodeoffset NOP assembler instructions will usually be EB xx 90
# http://mirror.href.com/thestarman/asm/2bytejumps.htmm#FWD
# older drives may use Near JuMP instruction E9 xx xx
>0        lelong&0x009000EB    0x009000EB
>0        lelong&0x000000E9    0x000000E9
# minimal short forward jump found 03cx??
# maximal short forward jump is 07fx
>1        ubyte            <0xff    \b, code offset 0x%x
# mtools-3.9.8/msdos.h
# usual values are marked with comments to get only informations of strange FAT systems
# valid sectorsize must be a power of 2 from 32 to 32768
>>11        uleshort&0x000f    x
>>>11        uleshort    <32769
>>>>11        uleshort    >31
>>>>>21        ubyte&0xf0    0xF0
>>>>>>3        string        >\0        \b, OEM-ID "%8.8s"
#http://mirror.href.com/thestarman/asm/debug/debug2.htm#IHC
>>>>>>>8    string        IHC        \b cached by Windows 9M
>>>>>>11    uleshort    >512        \b, Bytes/sector %u
#>>>>>>11    uleshort    =512        \b, Bytes/sector %u=512 (usual)
>>>>>>11    uleshort    <512        \b, Bytes/sector %u
>>>>>>13    ubyte        >1        \b, sectors/cluster %u
#>>>>>>13    ubyte        =1        \b, sectors/cluster %u (usual on Floppies)
>>>>>>14    uleshort    >32        \b, reserved sectors %u
#>>>>>>14    uleshort    =32        \b, reserved sectors %u (usual Fat32)
#>>>>>>14    uleshort    >1        \b, reserved sectors %u
#>>>>>>14    uleshort    =1        \b, reserved sectors %u (usual FAT12,FAT16)
>>>>>>14    uleshort    <1        \b, reserved sectors %u
>>>>>>16    ubyte        >2        \b, FATs %u
#>>>>>>16    ubyte        =2        \b, FATs %u (usual)
>>>>>>16    ubyte        =1        \b, FAT  %u
>>>>>>16    ubyte        >0
>>>>>>17    uleshort    >0        \b, root entries %u
#>>>>>>17    uleshort    =0        \b, root entries %u=0 (usual Fat32)
>>>>>>19    uleshort    >0        \b, sectors %u (volumes <=32 MB)
#>>>>>>19    uleshort    =0        \b, sectors %u=0 (usual Fat32)
>>>>>>21    ubyte        >0xF0        \b, Media descriptor 0x%x
#>>>>>>21    ubyte        =0xF0        \b, Media descriptor 0x%x (usual floppy)
>>>>>>21    ubyte        <0xF0        \b, Media descriptor 0x%x
>>>>>>22    uleshort    >0        \b, sectors/FAT %u
#>>>>>>22    uleshort    =0        \b, sectors/FAT %u=0 (usual Fat32)
>>>>>>26    ubyte        >2        \b, heads %u
#>>>>>>26    ubyte        =2        \b, heads %u (usual floppy)
>>>>>>26    ubyte        =1        \b, heads %u
#skip for Digital Research DOS (version 3.41) 1440 kB Bootdisk
>>>>>>38    ubyte        !0x70
>>>>>>>28    ulelong        >0        \b, hidden sectors %u
#>>>>>>>28    ulelong        =0        \b, hidden sectors %u (usual floppy)
>>>>>>>32    ulelong        >0        \b, sectors %u (volumes > 32 MB)
#>>>>>>>32    ulelong        =0        \b, sectors %u (volumes > 32 MB)
# FAT<32 specific
>>>>>>82    string        !FAT32
#>>>>>>>36    ubyte        0x80        \b, physical drive 0x%x=0x80 (usual harddisk)
#>>>>>>>36    ubyte        0        \b, physical drive 0x%x=0 (usual floppy)
>>>>>>>36    ubyte        !0x80
>>>>>>>>36    ubyte        !0        \b, physical drive 0x%x
>>>>>>>37    ubyte        >0        \b, reserved 0x%x
#>>>>>>>37    ubyte        =0        \b, reserved 0x%x
>>>>>>>38    ubyte        >0x29        \b, dos < 4.0 BootSector (0x%x)
>>>>>>>38    ubyte        <0x29        \b, dos < 4.0 BootSector (0x%x)
>>>>>>>38    ubyte        =0x29
>>>>>>>>39    ulelong        x        \b, serial number 0x%x
>>>>>>>>43    string        <NO\ NAME    \b, label: "%11.11s"
>>>>>>>>43    string        >NO\ NAME    \b, label: "%11.11s"
>>>>>>>>43    string        =NO\ NAME    \b, unlabeled
>>>>>>>54    string        FAT        \b, FAT
>>>>>>>>54    string        FAT12        \b (12 bit)
>>>>>>>>54    string        FAT16        \b (16 bit)
# FAT32 specific
>>>>>>82    string        FAT32        \b, FAT (32 bit)
>>>>>>>36    ulelong        x        \b, sectors/FAT %u
>>>>>>>40    uleshort    >0        \b, extension flags %u
#>>>>>>>40    uleshort    =0        \b, extension flags %u
>>>>>>>42    uleshort    >0        \b, fsVersion %u
#>>>>>>>42    uleshort    =0        \b, fsVersion %u (usual)
>>>>>>>44    ulelong        >2        \b, rootdir cluster %u
#>>>>>>>44    ulelong        =2        \b, rootdir cluster %u
#>>>>>>>44    ulelong        =1        \b, rootdir cluster %u
>>>>>>>48    uleshort    >1        \b, infoSector %u
#>>>>>>>48    uleshort    =1        \b, infoSector %u (usual)
>>>>>>>48    uleshort    <1        \b, infoSector %u
>>>>>>>50    uleshort    >6        \b, Backup boot sector %u
#>>>>>>>50    uleshort    =6        \b, Backup boot sector %u (usual)
>>>>>>>50    uleshort    <6        \b, Backup boot sector %u
>>>>>>>54    ulelong        >0        \b, reserved1 0x%x
>>>>>>>58    ulelong        >0        \b, reserved2 0x%x
>>>>>>>62    ulelong        >0        \b, reserved3 0x%x
# same structure as FAT1X
>>>>>>>64    ubyte        >0x80        \b, physical drive 0x%x
#>>>>>>>64    ubyte        =0x80        \b, physical drive 0x%x=80 (usual harddisk)
>>>>>>>64    ubyte&0x7F    >0        \b, physical drive 0x%x
#>>>>>>>64    ubyte        =0        \b, physical drive 0x%x=0 (usual floppy)
>>>>>>>65    ubyte        >0        \b, reserved 0x%x
>>>>>>>66    ubyte        >0x29        \b, dos < 4.0 BootSector (0x%x)
>>>>>>>66    ubyte        <0x29        \b, dos < 4.0 BootSector (0x%x)
>>>>>>>66    ubyte        =0x29
>>>>>>>>67    ulelong        x        \b, serial number 0x%x
>>>>>>>>71    string        <NO\ NAME    \b, label: "%11.11s"
>>>>>>>71    string        >NO\ NAME    \b, label: "%11.11s"
>>>>>>>71    string        =NO\ NAME    \b, unlabeled
### FATs end
>0x200    lelong    0x82564557        \b, BSD disklabel
# FATX
0        string        FATX        FATX filesystem data
# Minix filesystems - Juan Cespedes <cespedes@debian.org>
0x410    leshort        0x137f
>0x402    beshort        < 100        Minix filesystem, V1, %d zones
>0x1e    string        minix        \b, bootable
0x410    beshort        0x137f
>0x402    beshort        < 100        Minix filesystem, V1 (big endian), %d zones
>0x1e    string        minix        \b, bootable
0x410    leshort        0x138f
>0x402    beshort        < 100        Minix filesystem, V1, 30 char names, %d zones
>0x1e    string        minix        \b, bootable
0x410    beshort        0x138f
>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
# romfs filesystems - Juan Cespedes <cespedes@debian.org>
0    string        -rom1fs-    romfs filesystem, version 1
>8    belong    x            %d bytes,
>16    string    x            named %s.
# netboot image - Juan Cespedes <cespedes@debian.org>
0    lelong        0x1b031336L    Netboot image,
>4    lelong&0xFFFFFF00    0
>>4    lelong&0x100    0x000        mode 2
>>4    lelong&0x100    0x100        mode 3
>4    lelong&0xFFFFFF00    !0    unknown mode
0x18b    string    OS/2    OS/2 Boot Manager
# updated by Joerg Jenderek at Oct 2008!!
# http://syslinux.zytor.com/iso.php
0    ulelong    0x7c40eafa        isolinux Loader
# http://syslinux.zytor.com/pxe.php
0    ulelong    0x007c05ea        pxelinux Loader
0    ulelong    0x60669c66        pxelinux Loader
# added by Joerg Jenderek
# In the second sector (+0x200) are variables according to grub-0.97/stage2/asm.S or
# grub-1.94/kern/i386/pc/startup.S
# http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
# usual values are marked with comments to get only informations of strange GRUB loaders
0x200    uleshort        0x70EA
# found only version 3.{1,2}
>0x206        ubeshort    >0x0300
# GRUB version (0.5.)95,0.93,0.94,0.96,0.97 > "00"
>>0x212     ubyte        >0x29
>>>0x213     ubyte        >0x29
# not iso9660_stage1_5
#>>>0    ulelong&0x00BE5652    0x00BE5652
>>>>0x213     ubyte        >0x29        GRand Unified Bootloader
# config_file for stage1_5 is 0xffffffff + default "/boot/grub/stage2"
>>>>0x217     ubyte        0xFF        stage1_5
>>>>0x217     ubyte        <0xFF        stage2
>>>>0x206    ubyte        x        \b version %u
>>>>0x207    ubyte        x        \b.%u
# module_size for 1.94
>>>>0x208    ulelong        <0xffffff    \b, installed partition %u
#>>>>0x208    ulelong        =0xffffff    \b, %u (default)
>>>>0x208    ulelong        >0xffffff    \b, installed partition %u
# GRUB 0.5.95 unofficial
>>>>0x20C    ulelong&0x2E300000 0x2E300000
# 0=stage2    1=ffs    2=e2fs    3=fat    4=minix    5=reiserfs
>>>>>0x20C    ubyte        x        \b, identifier 0x%x
#>>>>>0x20D    ubyte        =0        \b, LBA flag 0x%x (default)
>>>>>0x20D    ubyte        >0        \b, LBA flag 0x%x
# GRUB version as string
>>>>>0x20E     string        >\0        \b, GRUB version %-s
# for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
>>>>>>0x215     ulong        0xffffffff
>>>>>>>0x219     string        >\0        \b, configuration file %-s
>>>>>>0x215     ulong        !0xffffffff
>>>>>>>0x215     string        >\0        \b, configuration file %-s
# newer GRUB versions
>>>>0x20C    ulelong&0x2E300000 !0x2E300000
##>>>>>0x20C    ulelong        =0        \b, saved entry %d (usual)
>>>>>0x20C    ulelong        >0        \b, saved entry %d
# for 1.94 contains kernel image size
# for 0.93,0.94,0.96,0.97
# 0=stage2    1=ffs    2=e2fs    3=fat    4=minix    5=reiserfs    6=vstafs    7=jfs    8=xfs    9=iso9660    a=ufs2
>>>>>0x210    ubyte        x        \b, identifier 0x%x
# The flag for LBA forcing is in most cases 0
#>>>>>0x211    ubyte        =0        \b, LBA flag 0x%x (default)
>>>>>0x211    ubyte        >0        \b, LBA flag 0x%x
# GRUB version as string
>>>>>0x212     string        >\0        \b, GRUB version %-s
# for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
>>>>>0x217     ulong        0xffffffff
>>>>>>0x21b     string        >\0        \b, configuration file %-s
>>>>>0x217     ulong        !0xffffffff
>>>>>>0x217     string        >\0        \b, configuration file %-s
9564    lelong        0x00011954    Unix Fast File system [v1] (little-endian),
>8404    string        x        last mounted on %s,
#>9504    ledate        x        last checked at %s,
>8224    ledate        x        last written at %s,
>8401    byte        x        clean flag %d,
>8228    lelong        x        number of blocks %d,
>8232    lelong        x        number of data blocks %d,
>8236    lelong        x        number of cylinder groups %d,
>8240    lelong        x        block size %d,
>8244    lelong        x        fragment size %d,
>8252    lelong        x        minimum percentage of free blocks %d,
>8256    lelong        x        rotational delay %dms,
>8260    lelong        x        disk rotational speed %drps,
>8320    lelong        0        TIME optimization
>8320    lelong        1        SPACE optimization
42332    lelong        0x19540119    Unix Fast File system [v2] (little-endian)
>&-1164    string        x        last mounted on %s,
>&-696    string        >\0        volume name %s,
>&-304    leqldate    x        last written at %s,
>&-1167    byte        x        clean flag %d,
>&-1168    byte        x        readonly flag %d,
>&-296    lequad        x        number of blocks %lld,
>&-288    lequad        x        number of data blocks %lld,
>&-1332    lelong        x        number of cylinder groups %d,
>&-1328    lelong        x        block size %d,
>&-1324    lelong        x        fragment size %d,
>&-180    lelong        x        average file size %d,
>&-176    lelong        x        average number of files in dir %d,
>&-272    lequad        x        pending blocks to free %lld,
>&-264    lelong        x        pending inodes to free %ld,
>&-664    lequad        x        system-wide uuid %0llx,
>&-1316    lelong        x        minimum percentage of free blocks %d,
>&-1248    lelong        0        TIME optimization
>&-1248    lelong        1        SPACE optimization
66908    lelong        0x19540119    Unix Fast File system [v2] (little-endian)
>&-1164    string        x        last mounted on %s,
>&-696    string        >\0        volume name %s,
>&-304    leqldate    x        last written at %s,
>&-1167    byte        x        clean flag %d,
>&-1168    byte        x        readonly flag %d,
>&-296    lequad        x        number of blocks %lld,
>&-288    lequad        x        number of data blocks %lld,
>&-1332    lelong        x        number of cylinder groups %d,
>&-1328    lelong        x        block size %d,
>&-1324    lelong        x        fragment size %d,
>&-180    lelong        x        average file size %d,
>&-176    lelong        x        average number of files in dir %d,
>&-272    lequad        x        pending blocks to free %lld,
>&-264    lelong        x        pending inodes to free %ld,
>&-664    lequad        x        system-wide uuid %0llx,
>&-1316    lelong        x        minimum percentage of free blocks %d,
>&-1248    lelong        0        TIME optimization
>&-1248    lelong        1        SPACE optimization
9564    belong        0x00011954    Unix Fast File system [v1] (big-endian),
>7168   belong        0x4c41424c    Apple UFS Volume
>>7186  string        x        named %s,
>>7176  belong        x        volume label version %d,
>>7180  bedate        x        created on %s,
>8404    string        x        last mounted on %s,
#>9504    bedate        x        last checked at %s,
>8224    bedate        x        last written at %s,
>8401    byte        x        clean flag %d,
>8228    belong        x        number of blocks %d,
>8232    belong        x        number of data blocks %d,
>8236    belong        x        number of cylinder groups %d,
>8240    belong        x        block size %d,
>8244    belong        x        fragment size %d,
>8252    belong        x        minimum percentage of free blocks %d,
>8256    belong        x        rotational delay %dms,
>8260    belong        x        disk rotational speed %drps,
>8320    belong        0        TIME optimization
>8320    belong        1        SPACE optimization
42332    belong        0x19540119    Unix Fast File system [v2] (big-endian)
>&-1164    string        x        last mounted on %s,
>&-696    string        >\0        volume name %s,
>&-304    beqldate    x        last written at %s,
>&-1167    byte        x        clean flag %d,
>&-1168    byte        x        readonly flag %d,
>&-296    bequad        x        number of blocks %lld,
>&-288    bequad        x        number of data blocks %lld,
>&-1332    belong        x        number of cylinder groups %d,
>&-1328    belong        x        block size %d,
>&-1324    belong        x        fragment size %d,
>&-180    belong        x        average file size %d,
>&-176    belong        x        average number of files in dir %d,
>&-272    bequad        x        pending blocks to free %lld,
>&-264    belong        x        pending inodes to free %ld,
>&-664    bequad        x        system-wide uuid %0llx,
>&-1316    belong        x        minimum percentage of free blocks %d,
>&-1248    belong        0        TIME optimization
>&-1248    belong        1        SPACE optimization
66908    belong        0x19540119    Unix Fast File system [v2] (big-endian)
>&-1164    string        x        last mounted on %s,
>&-696    string        >\0        volume name %s,
>&-304    beqldate    x        last written at %s,
>&-1167    byte        x        clean flag %d,
>&-1168    byte        x        readonly flag %d,
>&-296    bequad        x        number of blocks %lld,
>&-288    bequad        x        number of data blocks %lld,
>&-1332    belong        x        number of cylinder groups %d,
>&-1328    belong        x        block size %d,
>&-1324    belong        x        fragment size %d,
>&-180    belong        x        average file size %d,
>&-176    belong        x        average number of files in dir %d,
>&-272    bequad        x        pending blocks to free %lld,
>&-264    belong        x        pending inodes to free %ld,
>&-664    bequad        x        system-wide uuid %0llx,
>&-1316    belong        x        minimum percentage of free blocks %d,
>&-1248    belong        0        TIME optimization
>&-1248    belong        1        SPACE optimization
# ext2/ext3 filesystems - Andreas Dilger <adilger@dilger.ca>
# ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
0x438   leshort         0xEF53          Linux
>0x44c  lelong          x               rev %d
>0x43e  leshort         x               \b.%d
# No journal?  ext2
>0x45c  lelong          ^0x0000004      ext2 filesystem data
>>0x43a leshort         ^0x0000001      (mounted or unclean)
# Has a journal?  ext3 or ext4
>0x45c  lelong          &0x0000004
#  and small INCOMPAT?
>>0x460 lelong          <0x0000040
#   and small RO_COMPAT?
>>>0x464 lelong         <0x0000008      ext3 filesystem data
#   else large RO_COMPAT?
>>>0x464 lelong         >0x0000007      ext4 filesystem data
#  else large INCOMPAT?
>>0x460 lelong          >0x000003f      ext4 filesystem data
# General flags for any ext* fs
>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)
# 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)
# SGI disk labels - Nathan Scott <nathans@debian.org>
0    belong        0x0BE5A941    SGI disk label (volume header)
# SGI XFS filesystem - Nathan Scott <nathans@debian.org>
0    belong        0x58465342    SGI XFS filesystem data
>0x4    belong        x        (blksz %d,
>0x68    beshort        x        inosz %d,
>0x64    beshort        ^0x2004        v1 dirs)
>0x64    beshort        &0x2004        v2 dirs)
############################################################################
# Minix-ST kernel floppy
0x800    belong        0x46fc2700    Atari-ST Minix kernel image
>19    string        \240\5\371\5\0\011\0\2\0    \b, 720k floppy
>19    string        \320\2\370\5\0\011\0\1\0    \b, 360k floppy
############################################################################
# Hmmm, is this a better way of detecting _standard_ floppy images ?
19    string        \320\2\360\3\0\011\0\1\0    DOS floppy 360k
>0x1FE    leshort        0xAA55        \b, x86 hard disk boot sector
19    string        \240\5\371\3\0\011\0\2\0    DOS floppy 720k
>0x1FE    leshort        0xAA55        \b, x86 hard disk boot sector
19    string        \100\013\360\011\0\022\0\2\0    DOS floppy 1440k
>0x1FE    leshort        0xAA55        \b, x86 hard disk boot sector
19    string        \240\5\371\5\0\011\0\2\0    DOS floppy 720k, IBM
>0x1FE    leshort        0xAA55        \b, x86 hard disk boot sector
19    string        \100\013\371\5\0\011\0\2\0    DOS floppy 1440k, mkdosfs
>0x1FE    leshort        0xAA55        \b, x86 hard disk boot sector
19    string        \320\2\370\5\0\011\0\1\0    Atari-ST floppy 360k
19    string        \240\5\371\5\0\011\0\2\0    Atari-ST floppy 720k
#  Valid media descriptor bytes for MS-DOS:
#
#     Byte   Capacity   Media Size and Type
#     -------------------------------------------------
#
#     F0     2.88 MB    3.5-inch, 2-sided, 36-sector
#     F0     1.44 MB    3.5-inch, 2-sided, 18-sector
#     F9     720K       3.5-inch, 2-sided, 9-sector
#     F9     1.2 MB     5.25-inch, 2-sided, 15-sector
#     FD     360K       5.25-inch, 2-sided, 9-sector
#     FF     320K       5.25-inch, 2-sided, 8-sector
#     FC     180K       5.25-inch, 1-sided, 9-sector
#     FE     160K       5.25-inch, 1-sided, 8-sector
#     FE     250K       8-inch, 1-sided, single-density
#     FD     500K       8-inch, 2-sided, single-density
#     FE     1.2 MB     8-inch, 2-sided, double-density
#     F8     -----      Fixed disk
#
#     FC     xxxK       Apricot 70x1x9 boot disk.
#
# Originally a bitmap:
#  xxxxxxx0    Not two sided
#  xxxxxxx1    Double sided
#  xxxxxx0x    Not 8 SPT
#  xxxxxx1x    8 SPT
#  xxxxx0xx    Not Removable drive
#  xxxxx1xx    Removable drive
#  11111xxx    Must be one.
#
# But now it's rather random:
#  111111xx    Low density disk
#        00    SS, Not 8 SPT
#        01    DS, Not 8 SPT
#        10    SS, 8 SPT
#        11    DS, 8 SPT
#
#  11111001    Double density 3½ floppy disk, high density 5¼
#  11110000    High density 3½ floppy disk
#  11111000    Hard disk any format
#
# CDROM Filesystems
# Modified for UDF by gerardo.cacciari@gmail.com
32769    string    CD001
!:mime    application/x-iso9660-image
>38913    string   !NSR0      ISO 9660 CD-ROM filesystem data
>38913    string    NSR0      UDF filesystem data
>>38917    string    1         (version 1.0)
>>38917    string    2         (version 1.5)
>>38917    string    3         (version 2.0)
>>38917    byte     >0x33      (unknown version, ID 0x%X)
>>38917    byte     <0x31      (unknown version, ID 0x%X)
# "application id" which appears to be used as a volume label
>32808    string    >\0       '%s'
>34816    string    \000CD001\001EL\ TORITO\ SPECIFICATION    (bootable)
37633    string    CD001     ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
!: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
>8      lelong  &1 version #2
>8      lelong  &2 sorted_dirs
>8      lelong  &4 hole_support
>32     lelong  x CRC 0x%x,
>36     lelong  x edition %lu,
>40     lelong  x %lu blocks,
>44     lelong  x %lu files
0       belong    0x28cd3d45      Linux Compressed ROM File System data, big endian
>4      belong  x size %lu
>8      belong  &1 version #2
>8      belong  &2 sorted_dirs
>8      belong  &4 hole_support
>32     belong  x CRC 0x%x,
>36     belong  x edition %lu,
>40     belong  x %lu blocks,
>44     belong  x %lu files
# reiserfs - russell@coker.com.au
0x10034        string    ReIsErFs    ReiserFS V3.5
0x10034        string    ReIsEr2Fs    ReiserFS V3.6
>0x1002c     leshort    x        block size %d
>0x10032    leshort    &2        (mounted or unclean)
>0x10000    lelong    x        num blocks %d
>0x10040    lelong    1        tea hash
>0x10040    lelong    2        yura hash
>0x10040    lelong    3        r5 hash
# JFFS - russell@coker.com.au
0    lelong    0x34383931    Linux Journalled Flash File system, little endian
0    belong    0x34383931    Linux Journalled Flash File system, big endian
# EST flat binary format (which isn't, but anyway)
# From: Mark Brown <broonie@sirena.org.uk>
0    string    ESTFBINR    EST flat binary
# Aculab VoIP firmware
# From: Mark Brown <broonie@sirena.org.uk>
0    string    VoIP\ Startup\ and    Aculab VoIP firmware
>35    string    x    format %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
0    leshort    0x1985        Linux jffs2 filesystem data little endian
# Squashfs
0    string    sqsh    Squashfs filesystem, big endian,
>28    beshort    x    version %d.
>30    beshort x    \b%d,
>28    beshort <3
>>8    belong    x    %d bytes,
>28    beshort >2
>>63    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
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,
#>>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
0    string        td\000        floppy image data (TeleDisk)
# AFS Dump Magic
# From: Ty Sarna <tsarna@sarna.org>
0       string                  \x01\xb3\xa1\x13\x22    AFS Dump
>&0     belong                  x                       (v%d)
>>&0    byte                    0x76
>>>&0   belong                  x                       Vol %d,
>>>>&0  byte                    0x6e
>>>>>&0 string                  x                       %s
>>>>>>&1        byte            0x74
>>>>>>>&0       beshort         2
>>>>>>>>&4      bedate          x                       on: %s
>>>>>>>>&0      bedate          =0                      full dump
>>>>>>>>&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
>(0.s+16)    string  \x01\x01
>>&(&0.b+8)  byte    0x42       OpenVMS backup saveset data
>>>40        lelong  x          (block size %d,
>>>49        string  >\0        original name '%s',
>>>2         short   1024       VAX generated)
>>>2         short   2048       AXP generated)
>>>2         short   4096       I64 generated)
# Summary: Oracle Clustered Filesystem
# Created by: Aaron Botsis <redhat@digitalmafia.org>
8    string        OracleCFS    Oracle Clustered Filesystem,
>4    long        x        rev %d
>0    long        x        \b.%d,
>560    string        x        label: %.64s,
>136    string        x        mountpoint: %.128s
# Summary: Oracle ASM tagged volume
# Created by: Aaron Botsis <redhat@digitalmafia.org>
32    string        ORCLDISK    Oracle ASM Volume,
>40    string        x        Disk Name: %0.12s
32    string        ORCLCLRD    Oracle ASM Volume (cleared),
>40    string        x        Disk Name: %0.12s
# Oracle Clustered Filesystem - Aaron Botsis <redhat@digitalmafia.org>
8    string        OracleCFS    Oracle Clustered Filesystem,
>4    long        x        rev %d
>0    long        x        \b.%d,
>560    string        x        label: %.64s,
>136    string        x        mountpoint: %.128s
# Oracle ASM tagged volume - Aaron Botsis <redhat@digitalmafia.org>
32    string        ORCLDISK    Oracle ASM Volume,
>40    string        x        Disk Name: %0.12s
32    string        ORCLCLRD    Oracle ASM Volume (cleared),
>40    string        x        Disk Name: %0.12s
# Compaq/HP RILOE floppy image
# From: Dirk Jagdmann <doj@cubic.org>
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
#
1008    string          DECFILE11B      Files-11 On-Disk Structure
>525    byte            x               Level %d
>525    byte            x               (ODS-%d OpenVMS file system),
>984    string          x               volume label is '%-12.12s'
# From: Thomas Klausner <wiz@NetBSD.org>
# http://filext.com/file-extension/DAA
# describes the daa file format. The magic would be:
0    string        DAA\x0\x0\x0\x0\x0    PowerISO Direct-Access-Archive
# From Albert Cahalan <acahalan@gmail.com>
# really le32 operation,destination,payloadsize (but quite predictable)
# 01 00 00 00 00 00 00 c0 00 02 00 00
0    string        \1\0\0\0\0\0\0\300\0\2\0\0    Marvell Libertas firmware
# From Eric Sandeen
# GFS2
0x10000         belong          0x01161970      GFS2 Filesystem
>0x10024        belong          x               (blocksize %d,
>0x10060        string          >\0             lockproto %s)
# BTRFS
0x10040         string          _BHRfS_M        BTRFS Filesystem
>0x1012b        string          >\0             (label "%s",
>0x10090        lelong          x               sectorsize %d,
>0x10094        lelong          x               nodesize %d,
>0x10098        lelong          x               leafsize %d)
# 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
Diff truncated after the above file
ok335xD/3rdparty/file/file-5.04/magic/Magdir/flash ok335xD/3rdparty/file/file-5.04/magic/Magdir/fonts ok335xD/3rdparty/file/file-5.04/magic/Magdir/fortran ok335xD/3rdparty/file/file-5.04/magic/Magdir/frame ok335xD/3rdparty/file/file-5.04/magic/Magdir/freebsd ok335xD/3rdparty/file/file-5.04/magic/Magdir/fsav ok335xD/3rdparty/file/file-5.04/magic/Magdir/games ok335xD/3rdparty/file/file-5.04/magic/Magdir/gcc ok335xD/3rdparty/file/file-5.04/magic/Magdir/geos ok335xD/3rdparty/file/file-5.04/magic/Magdir/gimp ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnome-keyring ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnu ok335xD/3rdparty/file/file-5.04/magic/Magdir/gnumeric ok335xD/3rdparty/file/file-5.04/magic/Magdir/grace ok335xD/3rdparty/file/file-5.04/magic/Magdir/graphviz ok335xD/3rdparty/file/file-5.04/magic/Magdir/gringotts ok335xD/3rdparty/file/file-5.04/magic/Magdir/hitachi-sh ok335xD/3rdparty/file/file-5.04/magic/Magdir/hp ok335xD/3rdparty/file/file-5.04/magic/Magdir/human68k ok335xD/3rdparty/file/file-5.04/magic/Magdir/ibm370 ok335xD/3rdparty/file/file-5.04/magic/Magdir/ibm6000 ok335xD/3rdparty/file/file-5.04/magic/Magdir/iff ok335xD/3rdparty/file/file-5.04/magic/Magdir/images ok335xD/3rdparty/file/file-5.04/magic/Magdir/inform ok335xD/3rdparty/file/file-5.04/magic/Magdir/intel ok335xD/3rdparty/file/file-5.04/magic/Magdir/interleaf ok335xD/3rdparty/file/file-5.04/magic/Magdir/island ok335xD/3rdparty/file/file-5.04/magic/Magdir/ispell ok335xD/3rdparty/file/file-5.04/magic/Magdir/java ok335xD/3rdparty/file/file-5.04/magic/Magdir/jpeg ok335xD/3rdparty/file/file-5.04/magic/Magdir/karma ok335xD/3rdparty/file/file-5.04/magic/Magdir/kde ok335xD/3rdparty/file/file-5.04/magic/Magdir/kml ok335xD/3rdparty/file/file-5.04/magic/Magdir/lecter ok335xD/3rdparty/file/file-5.04/magic/Magdir/lex ok335xD/3rdparty/file/file-5.04/magic/Magdir/lif ok335xD/3rdparty/file/file-5.04/magic/Magdir/linux ok335xD/3rdparty/file/file-5.04/magic/Magdir/lisp ok335xD/3rdparty/file/file-5.04/magic/Magdir/llvm ok335xD/3rdparty/file/file-5.04/magic/Magdir/lua ok335xD/3rdparty/file/file-5.04/magic/Magdir/luks ok335xD/3rdparty/file/file-5.04/magic/Magdir/mach ok335xD/3rdparty/file/file-5.04/magic/Magdir/macintosh ok335xD/3rdparty/file/file-5.04/magic/Magdir/magic ok335xD/3rdparty/file/file-5.04/magic/Magdir/mail.news ok335xD/3rdparty/file/file-5.04/magic/Magdir/maple ok335xD/3rdparty/file/file-5.04/magic/Magdir/mathcad ok335xD/3rdparty/file/file-5.04/magic/Magdir/mathematica ok335xD/3rdparty/file/file-5.04/magic/Magdir/matroska ok335xD/3rdparty/file/file-5.04/magic/Magdir/mcrypt ok335xD/3rdparty/file/file-5.04/magic/Magdir/mercurial ok335xD/3rdparty/file/file-5.04/magic/Magdir/mime ok335xD/3rdparty/file/file-5.04/magic/Magdir/mips ok335xD/3rdparty/file/file-5.04/magic/Magdir/mirage ok335xD/3rdparty/file/file-5.04/magic/Magdir/misctools ok335xD/3rdparty/file/file-5.04/magic/Magdir/mkid ok335xD/3rdparty/file/file-5.04/magic/Magdir/mlssa ok335xD/3rdparty/file/file-5.04/magic/Magdir/mmdf ok335xD/3rdparty/file/file-5.04/magic/Magdir/modem ok335xD/3rdparty/file/file-5.04/magic/Magdir/motorola ok335xD/3rdparty/file/file-5.04/magic/Magdir/mozilla ok335xD/3rdparty/file/file-5.04/magic/Magdir/msdos ok335xD/3rdparty/file/file-5.04/magic/Magdir/msvc ok335xD/3rdparty/file/file-5.04/magic/Magdir/mup ok335xD/3rdparty/file/file-5.04/magic/Magdir/natinst ok335xD/3rdparty/file/file-5.04/magic/Magdir/ncr ok335xD/3rdparty/file/file-5.04/magic/Magdir/netbsd ok335xD/3rdparty/file/file-5.04/magic/Magdir/netscape ok335xD/3rdparty/file/file-5.04/magic/Magdir/netware ok335xD/3rdparty/file/file-5.04/magic/Magdir/news ok335xD/3rdparty/file/file-5.04/magic/Magdir/nitpicker ok335xD/3rdparty/file/file-5.04/magic/Magdir/ocaml ok335xD/3rdparty/file/file-5.04/magic/Magdir/octave ok335xD/3rdparty/file/file-5.04/magic/Magdir/ole2compounddocs ok335xD/3rdparty/file/file-5.04/magic/Magdir/olf ok335xD/3rdparty/file/file-5.04/magic/Magdir/os2 ok335xD/3rdparty/file/file-5.04/magic/Magdir/os400 ok335xD/3rdparty/file/file-5.04/magic/Magdir/os9 ok335xD/3rdparty/file/file-5.04/magic/Magdir/osf1 ok335xD/3rdparty/file/file-5.04/magic/Magdir/palm ok335xD/3rdparty/file/file-5.04/magic/Magdir/parix ok335xD/3rdparty/file/file-5.04/magic/Magdir/pbm ok335xD/3rdparty/file/file-5.04/magic/Magdir/pdf ok335xD/3rdparty/file/file-5.04/magic/Magdir/pdp ok335xD/3rdparty/file/file-5.04/magic/Magdir/perl ok335xD/3rdparty/file/file-5.04/magic/Magdir/pgp ok335xD/3rdparty/file/file-5.04/magic/Magdir/pkgadd ok335xD/3rdparty/file/file-5.04/magic/Magdir/plan9 ok335xD/3rdparty/file/file-5.04/magic/Magdir/plus5 ok335xD/3rdparty/file/file-5.04/magic/Magdir/printer ok335xD/3rdparty/file/file-5.04/magic/Magdir/project ok335xD/3rdparty/file/file-5.04/magic/Magdir/psdbms ok335xD/3rdparty/file/file-5.04/magic/Magdir/pulsar ok335xD/3rdparty/file/file-5.04/magic/Magdir/pyramid ok335xD/3rdparty/file/file-5.04/magic/Magdir/python ok335xD/3rdparty/file/file-5.04/magic/Magdir/revision ok335xD/3rdparty/file/file-5.04/magic/Magdir/riff ok335xD/3rdparty/file/file-5.04/magic/Magdir/rpm ok335xD/3rdparty/file/file-5.04/magic/Magdir/rtf ok335xD/3rdparty/file/file-5.04/magic/Magdir/ruby ok335xD/3rdparty/file/file-5.04/magic/Magdir/sc ok335xD/3rdparty/file/file-5.04/magic/Magdir/sccs ok335xD/3rdparty/file/file-5.04/magic/Magdir/scientific ok335xD/3rdparty/file/file-5.04/magic/Magdir/securitycerts ok335xD/3rdparty/file/file-5.04/magic/Magdir/sendmail ok335xD/3rdparty/file/file-5.04/magic/Magdir/sequent ok335xD/3rdparty/file/file-5.04/magic/Magdir/sgi ok335xD/3rdparty/file/file-5.04/magic/Magdir/sgml ok335xD/3rdparty/file/file-5.04/magic/Magdir/sharc ok335xD/3rdparty/file/file-5.04/magic/Magdir/sinclair ok335xD/3rdparty/file/file-5.04/magic/Magdir/sketch ok335xD/3rdparty/file/file-5.04/magic/Magdir/smalltalk ok335xD/3rdparty/file/file-5.04/magic/Magdir/sniffer ok335xD/3rdparty/file/file-5.04/magic/Magdir/softquad ok335xD/3rdparty/file/file-5.04/magic/Magdir/spec ok335xD/3rdparty/file/file-5.04/magic/Magdir/spectrum ok335xD/3rdparty/file/file-5.04/magic/Magdir/sql ok335xD/3rdparty/file/file-5.04/magic/Magdir/sun ok335xD/3rdparty/file/file-5.04/magic/Magdir/sysex ok335xD/3rdparty/file/file-5.04/magic/Magdir/teapot ok335xD/3rdparty/file/file-5.04/magic/Magdir/terminfo ok335xD/3rdparty/file/file-5.04/magic/Magdir/tex ok335xD/3rdparty/file/file-5.04/magic/Magdir/tgif ok335xD/3rdparty/file/file-5.04/magic/Magdir/ti-8x ok335xD/3rdparty/file/file-5.04/magic/Magdir/timezone ok335xD/3rdparty/file/file-5.04/magic/Magdir/troff ok335xD/3rdparty/file/file-5.04/magic/Magdir/tuxedo ok335xD/3rdparty/file/file-5.04/magic/Magdir/typeset ok335xD/3rdparty/file/file-5.04/magic/Magdir/unicode ok335xD/3rdparty/file/file-5.04/magic/Magdir/unknown ok335xD/3rdparty/file/file-5.04/magic/Magdir/uuencode ok335xD/3rdparty/file/file-5.04/magic/Magdir/varied.out ok335xD/3rdparty/file/file-5.04/magic/Magdir/varied.script ok335xD/3rdparty/file/file-5.04/magic/Magdir/vax ok335xD/3rdparty/file/file-5.04/magic/Magdir/vicar ok335xD/3rdparty/file/file-5.04/magic/Magdir/virtual ok335xD/3rdparty/file/file-5.04/magic/Magdir/virtutech ok335xD/3rdparty/file/file-5.04/magic/Magdir/visx ok335xD/3rdparty/file/file-5.04/magic/Magdir/vms ok335xD/3rdparty/file/file-5.04/magic/Magdir/vmware ok335xD/3rdparty/file/file-5.04/magic/Magdir/vorbis ok335xD/3rdparty/file/file-5.04/magic/Magdir/vxl ok335xD/3rdparty/file/file-5.04/magic/Magdir/warc ok335xD/3rdparty/file/file-5.04/magic/Magdir/weak ok335xD/3rdparty/file/file-5.04/magic/Magdir/windows ok335xD/3rdparty/file/file-5.04/magic/Magdir/wireless ok335xD/3rdparty/file/file-5.04/magic/Magdir/wordprocessors ok335xD/3rdparty/file/file-5.04/magic/Magdir/xdelta ok335xD/3rdparty/file/file-5.04/magic/Magdir/xenix ok335xD/3rdparty/file/file-5.04/magic/Magdir/xilinx ok335xD/3rdparty/file/file-5.04/magic/Magdir/xo65 ok335xD/3rdparty/file/file-5.04/magic/Magdir/xwindows ok335xD/3rdparty/file/file-5.04/magic/Magdir/zilog ok335xD/3rdparty/file/file-5.04/magic/Magdir/zyxel ok335xD/3rdparty/file/file-5.04/magic/Makefile ok335xD/3rdparty/file/file-5.04/magic/Makefile.am ok335xD/3rdparty/file/file-5.04/magic/Makefile.in ok335xD/3rdparty/file/file-5.04/missing ok335xD/3rdparty/file/file-5.04/python/Makefile ok335xD/3rdparty/file/file-5.04/python/Makefile.am ok335xD/3rdparty/file/file-5.04/python/Makefile.in ok335xD/3rdparty/file/file-5.04/python/README ok335xD/3rdparty/file/file-5.04/python/example.py ok335xD/3rdparty/file/file-5.04/python/py_magic.c ok335xD/3rdparty/file/file-5.04/python/py_magic.h ok335xD/3rdparty/file/file-5.04/python/setup.py ok335xD/3rdparty/file/file-5.04/src/.deps/apprentice.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/apptype.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/ascmagic.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/asprintf.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/cdf.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/cdf_time.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/compress.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/encoding.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/file.Po ok335xD/3rdparty/file/file-5.04/src/.deps/fsmagic.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/funcs.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/getopt_long.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/is_tar.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/magic.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/print.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/readcdf.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/readelf.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/softmagic.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/strlcat.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/strlcpy.Plo ok335xD/3rdparty/file/file-5.04/src/.deps/vasprintf.Plo ok335xD/3rdparty/file/file-5.04/src/Makefile ok335xD/3rdparty/file/file-5.04/src/Makefile.am ok335xD/3rdparty/file/file-5.04/src/Makefile.in ok335xD/3rdparty/file/file-5.04/src/apprentice.c ok335xD/3rdparty/file/file-5.04/src/apprentice.lo ok335xD/3rdparty/file/file-5.04/src/apprentice.o ok335xD/3rdparty/file/file-5.04/src/apptype.c ok335xD/3rdparty/file/file-5.04/src/apptype.lo ok335xD/3rdparty/file/file-5.04/src/apptype.o ok335xD/3rdparty/file/file-5.04/src/ascmagic.c ok335xD/3rdparty/file/file-5.04/src/ascmagic.lo ok335xD/3rdparty/file/file-5.04/src/ascmagic.o ok335xD/3rdparty/file/file-5.04/src/asprintf.c ok335xD/3rdparty/file/file-5.04/src/cdf.c ok335xD/3rdparty/file/file-5.04/src/cdf.h ok335xD/3rdparty/file/file-5.04/src/cdf.lo ok335xD/3rdparty/file/file-5.04/src/cdf.o ok335xD/3rdparty/file/file-5.04/src/cdf_time.c ok335xD/3rdparty/file/file-5.04/src/cdf_time.lo ok335xD/3rdparty/file/file-5.04/src/cdf_time.o ok335xD/3rdparty/file/file-5.04/src/compress.c ok335xD/3rdparty/file/file-5.04/src/compress.lo ok335xD/3rdparty/file/file-5.04/src/compress.o ok335xD/3rdparty/file/file-5.04/src/elfclass.h ok335xD/3rdparty/file/file-5.04/src/encoding.c ok335xD/3rdparty/file/file-5.04/src/encoding.lo ok335xD/3rdparty/file/file-5.04/src/encoding.o ok335xD/3rdparty/file/file-5.04/src/file.c ok335xD/3rdparty/file/file-5.04/src/file.h ok335xD/3rdparty/file/file-5.04/src/file_opts.h ok335xD/3rdparty/file/file-5.04/src/fsmagic.c ok335xD/3rdparty/file/file-5.04/src/fsmagic.lo ok335xD/3rdparty/file/file-5.04/src/fsmagic.o ok335xD/3rdparty/file/file-5.04/src/funcs.c ok335xD/3rdparty/file/file-5.04/src/funcs.lo ok335xD/3rdparty/file/file-5.04/src/funcs.o ok335xD/3rdparty/file/file-5.04/src/getopt_long.c ok335xD/3rdparty/file/file-5.04/src/is_tar.c ok335xD/3rdparty/file/file-5.04/src/is_tar.lo ok335xD/3rdparty/file/file-5.04/src/is_tar.o ok335xD/3rdparty/file/file-5.04/src/magic.c ok335xD/3rdparty/file/file-5.04/src/magic.h ok335xD/3rdparty/file/file-5.04/src/magic.lo ok335xD/3rdparty/file/file-5.04/src/magic.o ok335xD/3rdparty/file/file-5.04/src/mygetopt.h ok335xD/3rdparty/file/file-5.04/src/names.h ok335xD/3rdparty/file/file-5.04/src/patchlevel.h ok335xD/3rdparty/file/file-5.04/src/print.c ok335xD/3rdparty/file/file-5.04/src/print.lo ok335xD/3rdparty/file/file-5.04/src/print.o ok335xD/3rdparty/file/file-5.04/src/readcdf.c ok335xD/3rdparty/file/file-5.04/src/readcdf.lo ok335xD/3rdparty/file/file-5.04/src/readcdf.o ok335xD/3rdparty/file/file-5.04/src/readelf.c ok335xD/3rdparty/file/file-5.04/src/readelf.h ok335xD/3rdparty/file/file-5.04/src/readelf.lo ok335xD/3rdparty/file/file-5.04/src/readelf.o ok335xD/3rdparty/file/file-5.04/src/softmagic.c ok335xD/3rdparty/file/file-5.04/src/softmagic.lo ok335xD/3rdparty/file/file-5.04/src/softmagic.o ok335xD/3rdparty/file/file-5.04/src/strlcat.c ok335xD/3rdparty/file/file-5.04/src/strlcpy.c ok335xD/3rdparty/file/file-5.04/src/tar.h ok335xD/3rdparty/file/file-5.04/src/vasprintf.c ok335xD/3rdparty/file/file-5.04/stamp-h1 ok335xD/3rdparty/file/file-5.04/tests/.deps/test-test.Po ok335xD/3rdparty/file/file-5.04/tests/Makefile ok335xD/3rdparty/file/file-5.04/tests/Makefile.am ok335xD/3rdparty/file/file-5.04/tests/Makefile.in ok335xD/3rdparty/file/file-5.04/tests/README ok335xD/3rdparty/file/file-5.04/tests/gedcom.magic ok335xD/3rdparty/file/file-5.04/tests/gedcom.result ok335xD/3rdparty/file/file-5.04/tests/gedcom.testfile ok335xD/3rdparty/file/file-5.04/tests/test.c ok335xD/3rdparty/tree/build.sh