patchlevel.h 11 KB

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