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