patchlevel.h 8.3 KB

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