file_cmds-60.tar.gz
[apple/file_cmds.git] / file / patchlevel.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.1 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24 /* $OpenBSD: patchlevel.h,v 1.4 1997/02/09 23:58:31 millert Exp $ */
25
26 #define FILE_VERSION_MAJOR 3
27 #define patchlevel 22
28
29 /*
30 * Patchlevel file for Ian Darwin's MAGIC command.
31 *
32 * Log: patchlevel.h,v
33 * Revision 1.22 1997/01/15 17:23:24 christos
34 * - add support for elf core files: find the program name under SVR4 [Ken Pizzini]
35 * - print strings only up to the first carriage return [various]
36 * - freebsd international ascii support [J Wunsch]
37 * - magic fixes and additions [Guy Harris]
38 * - 64 bit fixes [Larry Schwimmer]
39 * - support for both utime and utimes, but don't restore file access times
40 * by default [various]
41 * - \xXX only takes 2 hex digits, not 3.
42 * - re-implement support for core files [Guy Harris]
43 *
44 * Revision 1.21 1996/10/05 18:15:29 christos
45 * Segregate elf stuff and conditionally enable it with -DBUILTIN_ELF
46 * More magic fixes
47 *
48 * Revision 1.20 1996/06/22 22:15:52 christos
49 * - support relative offsets of the form >&
50 * - fix bug with truncating magic strings that contain \n
51 * - file -f - did not read from stdin as documented
52 * - support elf file parsing using our own elf support.
53 * - as always magdir fixes and additions.
54 *
55 * Revision 1.19 1995/10/27 23:14:46 christos
56 * Ability to parse colon separated list of magic files
57 * New LEGAL.NOTICE
58 * Various magic file changes
59 *
60 * Revision 1.18 1995/05/20 22:09:21 christos
61 * Passed incorrect argument to eatsize().
62 * Use %ld and %lx where appropriate.
63 * Remove unused variables
64 * ELF support for both big and little endian
65 * Fixes for small files again.
66 *
67 * Revision 1.17 1995/04/28 17:29:13 christos
68 * - Incorrect nroff detection fix from der Mouse
69 * - Lost and incorrect magic entries.
70 * - Added ELF stripped binary detection [in C; ugh]
71 * - Look for $MAGIC to find the magic file.
72 * - Eat trailing size specifications from numbers i.e. ignore 10L
73 * - More fixes for very short files
74 *
75 * Revision 1.16 1995/03/25 22:06:45 christos
76 * - use strtoul() where it exists.
77 * - fix sign-extend bug
78 * - try to detect tar archives before nroff files, otherwise
79 * tar files where the first file starts with a . will not work
80 *
81 * Revision 1.15 1995/01/21 21:03:35 christos
82 * Added CSECTION for the file man page
83 * Added version flag -v
84 * Fixed bug with -f input flag (from iorio@violet.berkeley.edu)
85 * Lots of magic fixes and reorganization...
86 *
87 * Revision 1.14 1994/05/03 17:58:23 christos
88 * changes from mycroft@gnu.ai.mit.edu (Charles Hannum) for unsigned
89 *
90 * Revision 1.13 1994/01/21 01:27:01 christos
91 * Fixed null termination bug from Don Seeley at BSDI in ascmagic.c
92 *
93 * Revision 1.12 1993/10/27 20:59:05 christos
94 * Changed -z flag to understand gzip format too.
95 * Moved builtin compression detection to a table, and move
96 * the compress magic entry out of the source.
97 * Made printing of numbers unsigned, and added the mask to it.
98 * Changed the buffer size to 8k, because gzip will refuse to
99 * unzip just a few bytes.
100 *
101 * Revision 1.11 1993/09/24 18:49:06 christos
102 * Fixed small bug in softmagic.c introduced by
103 * copying the data to be examined out of the input
104 * buffer. Changed the Makefile to use sed to create
105 * the correct man pages.
106 *
107 * Revision 1.10 1993/09/23 21:56:23 christos
108 * Passed purify. Fixed indirections. Fixed byte order printing.
109 * Fixed segmentation faults caused by referencing past the end
110 * of the magic buffer. Fixed bus errors caused by referencing
111 * unaligned shorts or longs.
112 *
113 * Revision 1.9 1993/03/24 14:23:40 ian
114 * Batch of minor changes from several contributors.
115 *
116 * Revision 1.8 93/02/19 15:01:26 ian
117 * Numerous changes from Guy Harris too numerous to mention but including
118 * byte-order independance, fixing "old-style masking", etc. etc. A bugfix
119 * for broken symlinks from martin@@d255s004.zfe.siemens.de.
120 *
121 * Revision 1.7 93/01/05 14:57:27 ian
122 * Couple of nits picked by Christos (again, thanks).
123 *
124 * Revision 1.6 93/01/05 13:51:09 ian
125 * Lotsa work on the Magic directory.
126 *
127 * Revision 1.5 92/09/14 14:54:51 ian
128 * Fix a tiny null-pointer bug in previous fix for tar archive + uncompress.
129 *
130 */
131