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