1 #define FILE_VERSION_MAJOR 5 2 #define patchlevel 11 3 4 /* 5 * Patchlevel file for Ian Darwin's MAGIC command. 6 * $File: patchlevel.h,v 1.68 2008/03/22 21:39:43 christos Exp $ 7 * 8 * $Log$ 9 * Revision 1.6 2012/03/26 21:01:37 ab 10 * Update libmagic to 5.11 11 * 12 * Revision 1.5 2012/03/25 13:54:37 ab 13 * Update libmagic to 5.04 14 * 15 * Revision 1.4 2009/05/04 20:52:43 scottmac 16 * Update libmagic to 5.02 17 * 18 * Revision 1.3 2009/03/15 23:02:35 scottmac 19 * Update fileinfo to libmagic 5.00 and remove dependency on dirent.h on Windows 20 * 21 * Revision 1.2 2008/11/02 16:09:27 scottmac 22 * Update libmagic to 4.26 and add support for v6 of the magic file format. 23 * 24 * Revision 1.1 2008/07/11 14:13:50 derick 25 * - Move lib to libmagic 26 * 27 * Revision 1.1 2008/07/11 14:10:50 derick 28 * - Step one for bundling the libmagic library. Some config.m4 issues left. 29 * 30 * Revision 1.69 2008/07/02 15:27:05 christos 31 * welcome to 4.25 32 * 33 * Revision 1.68 2008/03/22 21:39:43 christos 34 * file 4.24 35 * 36 * Revision 1.67 2007/12/28 20:08:40 christos 37 * welcome to 4.23. 38 * 39 * Revision 1.66 2007/12/27 16:38:24 christos 40 * welcome to 4.22 41 * 42 * Revision 1.65 2007/05/24 17:22:27 christos 43 * Welcome to 4.21 44 * 45 * Revision 1.64 2007/03/01 22:14:55 christos 46 * welcome to 4.20 47 * 48 * Revision 1.63 2007/01/12 17:38:28 christos 49 * Use File id. 50 * 51 * Revision 1.62 2006/12/11 21:49:58 christos 52 * time for 4.19 53 * 54 * Revision 1.61 2006/10/31 21:18:09 christos 55 * bump 56 * 57 * Revision 1.60 2006/03/02 22:15:12 christos 58 * welcome to 4.17 59 * 60 * Revision 1.59 2005/10/17 17:15:21 christos 61 * welcome to 4.16 62 * 63 * Revision 1.58 2005/08/18 15:52:56 christos 64 * welcome to 4.15 65 * 66 * Revision 1.57 2005/06/25 15:52:14 christos 67 * Welcome to 4.14 68 * 69 * Revision 1.56 2005/02/09 19:25:13 christos 70 * Welcome to 4.13 71 * 72 * Revision 1.55 2004/11/24 18:57:47 christos 73 * Re-do the autoconf stuff once more; passes make dist now. 74 * 75 * Revision 1.54 2004/11/21 05:52:05 christos 76 * ready for 4.11 77 * 78 * Revision 1.53 2004/07/24 20:40:46 christos 79 * welcome to 4.10 80 * 81 * Revision 1.52 2004/04/07 00:32:25 christos 82 * welcome to 4.09 83 * 84 * Revision 1.51 2004/03/22 21:17:11 christos 85 * welcome to 4.08. 86 * 87 * Revision 1.50 2003/12/23 17:34:04 christos 88 * 4.07 89 * 90 * Revision 1.49 2003/10/15 02:08:27 christos 91 * welcome to 4.06 92 * 93 * Revision 1.48 2003/09/12 19:41:14 christos 94 * this is 4.04 95 * 96 * Revision 1.47 2003/05/23 21:38:21 christos 97 * welcome to 4.03 98 * 99 * Revision 1.46 2003/04/02 18:57:43 christos 100 * prepare for 4.02 101 * 102 * Revision 1.45 2003/03/26 15:37:25 christos 103 * - Pass lint 104 * - make NULL in magic_file mean stdin 105 * - Fix "-" argument to file to pass NULL to magic_file 106 * - avoid pointer casts by using memcpy 107 * - rename magic_buf -> magic_buffer 108 * - keep only the first error 109 * - manual page: new sentence, new line 110 * - fix typo in api function (magic_buf -> magic_buffer) 111 * 112 * Revision 1.44 2003/03/23 22:23:31 christos 113 * finish librarification. 114 * 115 * Revision 1.43 2003/03/23 21:16:26 christos 116 * update copyrights. 117 * 118 * Revision 1.42 2003/03/23 04:06:05 christos 119 * Library re-organization 120 * 121 * Revision 1.41 2003/02/27 20:53:45 christos 122 * - fix memory allocation problem (Jeff Johnson) 123 * - fix stack overflow corruption (David Endler) 124 * - fixes from NetBSD source (Antti Kantee) 125 * - magic fixes 126 * 127 * Revision 1.40 2003/02/08 18:33:53 christos 128 * - detect inttypes.h too (Dave Love <d.love@dl.ac.uk>) 129 * - eliminate unsigned char warnings (Petter Reinholdtsen <pere@hungry.com>) 130 * - better elf PT_NOTE handling (Nalin Dahyabhai <nalin@redhat.com>) 131 * - add options to format the output differently 132 * - much more magic. 133 * 134 * Revision 1.39 2002/07/03 18:57:52 christos 135 * - ansify/c99ize 136 * - more magic 137 * - better COMPILE_ONLY support. 138 * - new magic files. 139 * - fix solaris compilation problems. 140 * 141 * Revision 1.38 2002/05/16 18:45:56 christos 142 * - pt_note elf additions from NetBSD 143 * - EMX os specific changes (Alexander Mai) 144 * - stdint.h detection, acconfig.h fixes (Maciej W. Rozycki, Franz Korntner) 145 * - regex file additions (Kim Cromie) 146 * - getopt_long support and misc cleanups (Michael Piefel) 147 * - many magic fixes and additions 148 * 149 * Revision 1.37 2001/09/03 14:44:22 christos 150 * daylight/tm_isdst detection 151 * magic fixes 152 * don't eat the whole file if it has only nulls 153 * 154 * Revision 1.36 2001/07/22 21:04:15 christos 155 * - magic fixes 156 * - add new operators, pascal strings, UTC date printing, $HOME/.magic 157 * [from "Tom N Harris" <telliamed@mac.com>] 158 * 159 * Revision 1.35 2001/04/24 14:40:25 christos 160 * - rename magic file sgi to mips and fix it 161 * - add support for building magic.mgc 162 * - portability fixes for mmap() 163 * - try gzip before uncompress, because uncompress sometimes hangs 164 * - be more conservative about pipe reads and writes 165 * - many magic fixes 166 * 167 * Revision 1.34 2001/03/12 05:05:57 christos 168 * - new compiled magic format 169 * - lots of magic additions 170 * 171 * Revision 1.33 2000/11/13 00:30:50 christos 172 * - wordperfect magic fix: freebsd pr 9388 173 * - more msdos fixes from freebsd pr's 20131 and 20812 174 * - sas and spss magic [Bruce Foster] 175 * - mkinstalldirs [John Fremlin] 176 * - sgi opengl fixes [Michael Pruett] 177 * - netbsd magic fixes [Ignatios Souvatzis] 178 * - audio additions [Michael Pruett] 179 * - fix problem with non ansi RCSID [Andreas Ley] 180 * - oggs magic [Felix von Leitner] 181 * - gmon magic [Eugen Dedu] 182 * - TNEF magic [Joomy] 183 * - netpbm magic and misc other image stuff [Bryan Henderson] 184 * 185 * Revision 1.32 2000/08/05 18:24:18 christos 186 * Correct indianness detection in elf (Charles Hannum) 187 * FreeBSD elf core support (Guy Harris) 188 * Use gzip in systems that don't have uncompress (Anthon van der Neut) 189 * Internationalization/EBCDIC support (Eric Fisher) 190 * Many many magic changes 191 * 192 * Revision 1.31 2000/05/14 17:58:36 christos 193 * - new magic for claris files 194 * - new magic for mathematica and maple files 195 * - new magic for msvc files 196 * - new -k flag to keep going matching all possible entries 197 * - add the word executable on #! magic files, and fix the usage of 198 * the word script 199 * - lots of other magic fixes 200 * - fix typo test -> text 201 * 202 * Revision 1.30 2000/04/11 02:41:17 christos 203 * - add support for mime output (-i) 204 * - make sure we free memory in case realloc fails 205 * - magic fixes 206 * 207 * Revision 1.29 1999/11/28 20:02:29 christos 208 * new string/[Bcb] magic from anthon, and adjustments to the magic files to 209 * use it. 210 * 211 * Revision 1.28 1999/10/31 22:11:48 christos 212 * - add "char" type for compatibility with HP/UX 213 * - recognize HP/UX syntax &=n etc. 214 * - include errno.h for CYGWIN 215 * - conditionalize the S_IS* macros 216 * - revert the SHT_DYNSYM test that broke the linux stripped binaries test 217 * - lots of Magdir changes 218 * 219 * Revision 1.27 1999/02/14 17:21:41 christos 220 * Automake support and misc cleanups from Rainer Orth 221 * Enable reading character and block special files from Dale R. Worley 222 * 223 * Revision 1.26 1998/09/12 13:19:39 christos 224 * - add support for bi-endian indirect offsets (Richard Verhoeven) 225 * - add recognition for bcpl (Joseph Myers) 226 * - remove non magic files from Magdir to avoid difficulties building 227 * on os2 where files are case independent 228 * - magic fixes. 229 * 230 * Revision 1.25 1998/06/27 14:04:04 christos 231 * OLF patch Guy Harris 232 * Recognize java/html (debian linux) 233 * Const poisoning (debian linux) 234 * More magic! 235 * 236 * Revision 1.24 1998/02/15 23:20:38 christos 237 * Autoconf patch: Felix von Leitner <leitner@math.fu-berlin.de> 238 * More magic fixes 239 * Elf64 fixes 240 * 241 * Revision 1.23 1997/11/05 16:03:37 christos 242 * - correct elf prps offset for SunOS-2.5.1 [guy@netapp.com] 243 * - handle 64 bit time_t's correctly [ewt@redhat.com] 244 * - new mime style magic [clarosse@netvista.net] 245 * - new TI calculator magic [rmcguire@freenet.columbus.oh.us] 246 * - new figlet fonts [obrien@freebsd.org] 247 * - new cisco magic, and elf fixes [jhawk@bbnplanet.com] 248 * - -b flag addition, and x86 filesystem magic [vax@linkhead.paranoia.com] 249 * - s/Mpeg/MPEG, header and elf typo fixes [guy@netapp.com] 250 * - Windows/NT registry files, audio code [guy@netapp.com] 251 * - libGrx graphics lib fonts [guy@netapp.com] 252 * - PNG fixes [guy@netapp.com] 253 * - more m$ document magic [guy@netapp.com] 254 * - PPD files [guy@netapp.com] 255 * - archive magic cleanup [guy@netapp.com] 256 * - linux kernel magic cleanup [guy@netapp.com] 257 * - lecter magic [guy@netapp.com] 258 * - vgetty magic [guy@netapp.com] 259 * - sniffer additions [guy@netapp.com] 260 * 261 * Revision 1.22 1997/01/15 17:23:24 christos 262 * - add support for elf core files: find the program name under SVR4 [Ken Pizzini] 263 * - print strings only up to the first carriage return [various] 264 * - freebsd international ascii support [J Wunsch] 265 * - magic fixes and additions [Guy Harris] 266 * - 64 bit fixes [Larry Schwimmer] 267 * - support for both utime and utimes, but don't restore file access times 268 * by default [various] 269 * - \xXX only takes 2 hex digits, not 3. 270 * - re-implement support for core files [Guy Harris] 271 * 272 * Revision 1.21 1996/10/05 18:15:29 christos 273 * Segregate elf stuff and conditionally enable it with -DBUILTIN_ELF 274 * More magic fixes 275 * 276 * Revision 1.20 1996/06/22 22:15:52 christos 277 * - support relative offsets of the form >& 278 * - fix bug with truncating magic strings that contain \n 279 * - file -f - did not read from stdin as documented 280 * - support elf file parsing using our own elf support. 281 * - as always magdir fixes and additions. 282 * 283 * Revision 1.19 1995/10/27 23:14:46 christos 284 * Ability to parse colon separated list of magic files 285 * New LEGAL.NOTICE 286 * Various magic file changes 287 * 288 * Revision 1.18 1995/05/20 22:09:21 christos 289 * Passed incorrect argument to eatsize(). 290 * Use %ld and %lx where appropriate. 291 * Remove unused variables 292 * ELF support for both big and little endian 293 * Fixes for small files again. 294 * 295 * Revision 1.17 1995/04/28 17:29:13 christos 296 * - Incorrect nroff detection fix from der Mouse 297 * - Lost and incorrect magic entries. 298 * - Added ELF stripped binary detection [in C; ugh] 299 * - Look for $MAGIC to find the magic file. 300 * - Eat trailing size specifications from numbers i.e. ignore 10L 301 * - More fixes for very short files 302 * 303 * Revision 1.16 1995/03/25 22:06:45 christos 304 * - use strtoul() where it exists. 305 * - fix sign-extend bug 306 * - try to detect tar archives before nroff files, otherwise 307 * tar files where the first file starts with a . will not work 308 * 309 * Revision 1.15 1995/01/21 21:03:35 christos 310 * Added CSECTION for the file man page 311 * Added version flag -v 312 * Fixed bug with -f input flag (from iorio@violet.berkeley.edu) 313 * Lots of magic fixes and reorganization... 314 * 315 * Revision 1.14 1994/05/03 17:58:23 christos 316 * changes from mycroft@gnu.ai.mit.edu (Charles Hannum) for unsigned 317 * 318 * Revision 1.13 1994/01/21 01:27:01 christos 319 * Fixed null termination bug from Don Seeley at BSDI in ascmagic.c 320 * 321 * Revision 1.12 1993/10/27 20:59:05 christos 322 * Changed -z flag to understand gzip format too. 323 * Moved builtin compression detection to a table, and move 324 * the compress magic entry out of the source. 325 * Made printing of numbers unsigned, and added the mask to it. 326 * Changed the buffer size to 8k, because gzip will refuse to 327 * unzip just a few bytes. 328 * 329 * Revision 1.11 1993/09/24 18:49:06 christos 330 * Fixed small bug in softmagic.c introduced by 331 * copying the data to be examined out of the input 332 * buffer. Changed the Makefile to use sed to create 333 * the correct man pages. 334 * 335 * Revision 1.10 1993/09/23 21:56:23 christos 336 * Passed purify. Fixed indirections. Fixed byte order printing. 337 * Fixed segmentation faults caused by referencing past the end 338 * of the magic buffer. Fixed bus errors caused by referencing 339 * unaligned shorts or longs. 340 * 341 * Revision 1.9 1993/03/24 14:23:40 ian 342 * Batch of minor changes from several contributors. 343 * 344 * Revision 1.8 93/02/19 15:01:26 ian 345 * Numerous changes from Guy Harris too numerous to mention but including 346 * byte-order independance, fixing "old-style masking", etc. etc. A bugfix 347 * for broken symlinks from martin@@d255s004.zfe.siemens.de. 348 * 349 * Revision 1.7 93/01/05 14:57:27 ian 350 * Couple of nits picked by Christos (again, thanks). 351 * 352 * Revision 1.6 93/01/05 13:51:09 ian 353 * Lotsa work on the Magic directory. 354 * 355 * Revision 1.5 92/09/14 14:54:51 ian 356 * Fix a tiny null-pointer bug in previous fix for tar archive + uncompress. 357 * 358 */ 359