1 #define FILE_VERSION_MAJOR 3
5 * Patchlevel file for Ian Darwin's MAGIC command.
6 * $Id: patchlevel.h,v 1.41 2003/02/27 20:53:45 christos Exp $
8 * $Log: patchlevel.h,v $
9 * Revision 1.41 2003/02/27 20:53:45 christos
10 * - fix memory allocation problem (Jeff Johnson)
11 * - fix stack overflow corruption (David Endler)
12 * - fixes from NetBSD source (Antti Kantee)
15 * Revision 1.40 2003/02/08 18:33:53 christos
16 * - detect inttypes.h too (Dave Love <d.love@dl.ac.uk>)
17 * - eliminate unsigned char warnings (Petter Reinholdtsen <pere@hungry.com>)
18 * - better elf PT_NOTE handling (Nalin Dahyabhai <nalin@redhat.com>)
19 * - add options to format the output differently
22 * Revision 1.39 2002/07/03 18:57:52 christos
25 * - better COMPILE_ONLY support.
27 * - fix solaris compilation problems.
29 * Revision 1.38 2002/05/16 18:45:56 christos
30 * - pt_note elf additions from NetBSD
31 * - EMX os specific changes (Alexander Mai)
32 * - stdint.h detection, acconfig.h fixes (Maciej W. Rozycki, Franz Korntner)
33 * - regex file additions (Kim Cromie)
34 * - getopt_long support and misc cleanups (Michael Piefel)
35 * - many magic fixes and additions
37 * Revision 1.37 2001/09/03 14:44:22 christos
38 * daylight/tm_isdst detection
40 * don't eat the whole file if it has only nulls
42 * Revision 1.36 2001/07/22 21:04:15 christos
44 * - add new operators, pascal strings, UTC date printing, $HOME/.magic
45 * [from "Tom N Harris" <telliamed@mac.com>]
47 * Revision 1.35 2001/04/24 14:40:25 christos
48 * - rename magic file sgi to mips and fix it
49 * - add support for building magic.mgc
50 * - portability fixes for mmap()
51 * - try gzip before uncompress, because uncompress sometimes hangs
52 * - be more conservative about pipe reads and writes
55 * Revision 1.34 2001/03/12 05:05:57 christos
56 * - new compiled magic format
57 * - lots of magic additions
59 * Revision 1.33 2000/11/13 00:30:50 christos
60 * - wordperfect magic fix: freebsd pr 9388
61 * - more msdos fixes from freebsd pr's 20131 and 20812
62 * - sas and spss magic [Bruce Foster]
63 * - mkinstalldirs [John Fremlin]
64 * - sgi opengl fixes [Michael Pruett]
65 * - netbsd magic fixes [Ignatios Souvatzis]
66 * - audio additions [Michael Pruett]
67 * - fix problem with non ansi RCSID [Andreas Ley]
68 * - oggs magic [Felix von Leitner]
69 * - gmon magic [Eugen Dedu]
70 * - TNEF magic [Joomy]
71 * - netpbm magic and misc other image stuff [Bryan Henderson]
73 * Revision 1.32 2000/08/05 18:24:18 christos
74 * Correct indianness detection in elf (Charles Hannum)
75 * FreeBSD elf core support (Guy Harris)
76 * Use gzip in systems that don't have uncompress (Anthon van der Neut)
77 * Internationalization/EBCDIC support (Eric Fisher)
78 * Many many magic changes
80 * Revision 1.31 2000/05/14 17:58:36 christos
81 * - new magic for claris files
82 * - new magic for mathematica and maple files
83 * - new magic for msvc files
84 * - new -k flag to keep going matching all possible entries
85 * - add the word executable on #! magic files, and fix the usage of
87 * - lots of other magic fixes
88 * - fix typo test -> text
90 * Revision 1.30 2000/04/11 02:41:17 christos
91 * - add support for mime output (-i)
92 * - make sure we free memory in case realloc fails
95 * Revision 1.29 1999/11/28 20:02:29 christos
96 * new string/[Bcb] magic from anthon, and adjustments to the magic files to
99 * Revision 1.28 1999/10/31 22:11:48 christos
100 * - add "char" type for compatibility with HP/UX
101 * - recognize HP/UX syntax &=n etc.
102 * - include errno.h for CYGWIN
103 * - conditionalize the S_IS* macros
104 * - revert the SHT_DYNSYM test that broke the linux stripped binaries test
105 * - lots of Magdir changes
107 * Revision 1.27 1999/02/14 17:21:41 christos
108 * Automake support and misc cleanups from Rainer Orth
109 * Enable reading character and block special files from Dale R. Worley
111 * Revision 1.26 1998/09/12 13:19:39 christos
112 * - add support for bi-endian indirect offsets (Richard Verhoeven)
113 * - add recognition for bcpl (Joseph Myers)
114 * - remove non magic files from Magdir to avoid difficulties building
115 * on os2 where files are case independent
118 * Revision 1.25 1998/06/27 14:04:04 christos
119 * OLF patch Guy Harris
120 * Recognize java/html (debian linux)
121 * Const poisoning (debian linux)
124 * Revision 1.24 1998/02/15 23:20:38 christos
125 * Autoconf patch: Felix von Leitner <leitner@math.fu-berlin.de>
129 * Revision 1.23 1997/11/05 16:03:37 christos
130 * - correct elf prps offset for SunOS-2.5.1 [guy@netapp.com]
131 * - handle 64 bit time_t's correctly [ewt@redhat.com]
132 * - new mime style magic [clarosse@netvista.net]
133 * - new TI calculator magic [rmcguire@freenet.columbus.oh.us]
134 * - new figlet fonts [obrien@freebsd.org]
135 * - new cisco magic, and elf fixes [jhawk@bbnplanet.com]
136 * - -b flag addition, and x86 filesystem magic [vax@linkhead.paranoia.com]
137 * - s/Mpeg/MPEG, header and elf typo fixes [guy@netapp.com]
138 * - Windows/NT registry files, audio code [guy@netapp.com]
139 * - libGrx graphics lib fonts [guy@netapp.com]
140 * - PNG fixes [guy@netapp.com]
141 * - more m$ document magic [guy@netapp.com]
142 * - PPD files [guy@netapp.com]
143 * - archive magic cleanup [guy@netapp.com]
144 * - linux kernel magic cleanup [guy@netapp.com]
145 * - lecter magic [guy@netapp.com]
146 * - vgetty magic [guy@netapp.com]
147 * - sniffer additions [guy@netapp.com]
149 * Revision 1.22 1997/01/15 17:23:24 christos
150 * - add support for elf core files: find the program name under SVR4 [Ken Pizzini]
151 * - print strings only up to the first carriage return [various]
152 * - freebsd international ascii support [J Wunsch]
153 * - magic fixes and additions [Guy Harris]
154 * - 64 bit fixes [Larry Schwimmer]
155 * - support for both utime and utimes, but don't restore file access times
156 * by default [various]
157 * - \xXX only takes 2 hex digits, not 3.
158 * - re-implement support for core files [Guy Harris]
160 * Revision 1.21 1996/10/05 18:15:29 christos
161 * Segregate elf stuff and conditionally enable it with -DBUILTIN_ELF
164 * Revision 1.20 1996/06/22 22:15:52 christos
165 * - support relative offsets of the form >&
166 * - fix bug with truncating magic strings that contain \n
167 * - file -f - did not read from stdin as documented
168 * - support elf file parsing using our own elf support.
169 * - as always magdir fixes and additions.
171 * Revision 1.19 1995/10/27 23:14:46 christos
172 * Ability to parse colon separated list of magic files
174 * Various magic file changes
176 * Revision 1.18 1995/05/20 22:09:21 christos
177 * Passed incorrect argument to eatsize().
178 * Use %ld and %lx where appropriate.
179 * Remove unused variables
180 * ELF support for both big and little endian
181 * Fixes for small files again.
183 * Revision 1.17 1995/04/28 17:29:13 christos
184 * - Incorrect nroff detection fix from der Mouse
185 * - Lost and incorrect magic entries.
186 * - Added ELF stripped binary detection [in C; ugh]
187 * - Look for $MAGIC to find the magic file.
188 * - Eat trailing size specifications from numbers i.e. ignore 10L
189 * - More fixes for very short files
191 * Revision 1.16 1995/03/25 22:06:45 christos
192 * - use strtoul() where it exists.
193 * - fix sign-extend bug
194 * - try to detect tar archives before nroff files, otherwise
195 * tar files where the first file starts with a . will not work
197 * Revision 1.15 1995/01/21 21:03:35 christos
198 * Added CSECTION for the file man page
199 * Added version flag -v
200 * Fixed bug with -f input flag (from iorio@violet.berkeley.edu)
201 * Lots of magic fixes and reorganization...
203 * Revision 1.14 1994/05/03 17:58:23 christos
204 * changes from mycroft@gnu.ai.mit.edu (Charles Hannum) for unsigned
206 * Revision 1.13 1994/01/21 01:27:01 christos
207 * Fixed null termination bug from Don Seeley at BSDI in ascmagic.c
209 * Revision 1.12 1993/10/27 20:59:05 christos
210 * Changed -z flag to understand gzip format too.
211 * Moved builtin compression detection to a table, and move
212 * the compress magic entry out of the source.
213 * Made printing of numbers unsigned, and added the mask to it.
214 * Changed the buffer size to 8k, because gzip will refuse to
215 * unzip just a few bytes.
217 * Revision 1.11 1993/09/24 18:49:06 christos
218 * Fixed small bug in softmagic.c introduced by
219 * copying the data to be examined out of the input
220 * buffer. Changed the Makefile to use sed to create
221 * the correct man pages.
223 * Revision 1.10 1993/09/23 21:56:23 christos
224 * Passed purify. Fixed indirections. Fixed byte order printing.
225 * Fixed segmentation faults caused by referencing past the end
226 * of the magic buffer. Fixed bus errors caused by referencing
227 * unaligned shorts or longs.
229 * Revision 1.9 1993/03/24 14:23:40 ian
230 * Batch of minor changes from several contributors.
232 * Revision 1.8 93/02/19 15:01:26 ian
233 * Numerous changes from Guy Harris too numerous to mention but including
234 * byte-order independance, fixing "old-style masking", etc. etc. A bugfix
235 * for broken symlinks from martin@@d255s004.zfe.siemens.de.
237 * Revision 1.7 93/01/05 14:57:27 ian
238 * Couple of nits picked by Christos (again, thanks).
240 * Revision 1.6 93/01/05 13:51:09 ian
241 * Lotsa work on the Magic directory.
243 * Revision 1.5 92/09/14 14:54:51 ian
244 * Fix a tiny null-pointer bug in previous fix for tar archive + uncompress.