patchlevel.h 12 KB

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