and add rcsid's to all files.
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: apprentice.c,v 1.143 2008/10/30 10:54:07 rrt Exp $")
+#endif /* lint */
+
#include "magic.h"
#include "patchlevel.h"
#include <stdlib.h>
#include <sys/types.h>
#include <dirent.h>
-#ifndef lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.142 2008/10/18 20:47:48 christos Exp $")
-#endif /* lint */
-
#define EATAB {while (isascii((unsigned char) *l) && \
isspace((unsigned char) *l)) ++l;}
#define LOWCASE(l) (isupper((unsigned char) (l)) ? \
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: apptype.c,v 1.7 2007/01/12 17:38:27 christos Exp $")
+FILE_RCSID("@(#)$File: apptype.c,v 1.8 2008/08/31 07:58:00 christos Exp $")
#endif /* lint */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#ifdef __EMX__
#include <io.h>
#define INCL_DOSSESMGR
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: ascmagic.c,v 1.68 2008/10/30 10:50:24 rrt Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <stdio.h>
#include <string.h>
#endif
#include "names.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: ascmagic.c,v 1.67 2008/10/18 20:47:48 christos Exp $")
-#endif /* lint */
-
#define MAXLINELEN 300 /* longest sane line length */
#define ISSPC(x) ((x) == ' ' || (x) == '\t' || (x) == '\r' || (x) == '\n' \
|| (x) == 0x85 || (x) == '\f')
* SUCH DAMAGE.
*/
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: cdf.c,v 1.11 2008/11/03 05:34:27 christos Exp $")
+#endif
+
#include <stdarg.h>
int vasprintf(char **ptr, const char *format_string, va_list vargs);
* Info from: http://sc.openoffice.org/compdocfileformat.pdf
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: cdf.c,v 1.11 2008/11/03 05:34:27 christos Exp $")
#endif
#include <assert.h>
#include "cdf.h"
-#include "file.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.80 2008/10/18 20:47:48 christos Exp $")
-#endif
-
#ifndef __arraycount
#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
#endif
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: cdf.c,v 1.11 2008/11/03 05:34:27 christos Exp $")
#endif
#include <sys/types.h>
* using method, return sizeof new
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: compress.c,v 1.57 2008/07/16 18:00:57 christos Exp $")
+#endif
+
#include "magic.h"
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#endif
-
-#ifndef lint
-FILE_RCSID("@(#)$File: compress.c,v 1.56 2008/02/07 00:58:52 christos Exp $")
-#endif
-
private const struct {
const char magic[8];
size_t maglen;
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: file.c,v 1.126 2008/10/18 20:47:48 christos Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <stdio.h>
#include "patchlevel.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: file.c,v 1.125 2008/10/12 15:38:51 christos Exp $")
-#endif /* lint */
-
-
#ifdef S_IFLNK
#define SYMLINKFLAG "Lh"
#else
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: fsmagic.c,v 1.54 2008/10/18 20:47:48 christos Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <string.h>
#ifdef HAVE_UNISTD_H
#endif
#undef HAVE_MAJOR
-#ifndef lint
-FILE_RCSID("@(#)$File: fsmagic.c,v 1.53 2008/10/16 16:31:16 christos Exp $")
-#endif /* lint */
-
private int
bad_link(struct magic_set *ms, int err, char *buf)
{
* SUCH DAMAGE.
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: funcs.c,v 1.46 2008/10/16 16:30:34 christos Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>
#endif
-#ifndef lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.45 2008/10/12 15:38:52 christos Exp $")
-#endif /* lint */
-
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)~0)
#endif
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: funcs.c,v 1.46 2008/10/16 16:30:34 christos Exp $")
+#endif /* lint */
+
#include <assert.h>
#ifdef HAVE_ERR_H
#include <err.h>
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: is_tar.c,v 1.33 2008/11/03 06:18:34 rrt Exp $")
+#endif
+
#include "magic.h"
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include "tar.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: is_tar.c,v 1.32 2008/10/18 20:47:48 christos Exp $")
-#endif
-
#define isodigit(c) ( ((c) >= '0') && ((c) <= '7') )
private int is_tar(const unsigned char *, size_t);
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: magic.c,v 1.54 2008/07/25 23:30:32 rrt Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <stdio.h>
#include "patchlevel.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: magic.c,v 1.53 2008/07/16 18:00:57 christos Exp $")
-#endif /* lint */
-
#ifndef PIPE_BUF
/* Get the PIPE_BUF from pathconf */
#ifdef _PC_PIPE_BUF
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: print.c,v 1.64 2008/10/20 15:14:17 christos Exp $")
+#endif /* lint */
+
#include <stdio.h>
#include <errno.h>
#include <string.h>
#endif
#include <time.h>
-#ifndef lint
-FILE_RCSID("@(#)$File: print.c,v 1.63 2008/02/17 19:28:54 rrt Exp $")
-#endif /* lint */
-
#define SZOF(a) (sizeof(a) / sizeof(a[0]))
#ifndef COMPILE_ONLY
*/
#include "file.h"
+#ifndef lint
+FILE_RCSID("@(#)$File: readelf.c,v 1.80 2008/10/18 20:47:48 christos Exp $")
+#endif
+
#ifdef BUILTIN_ELF
#include <string.h>
#include <ctype.h>
#include "readelf.h"
#include "magic.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.79 2008/10/12 19:06:36 christos Exp $")
-#endif
-
#ifdef ELFCORE
private int dophn_core(struct magic_set *, int, int, int, off_t, int, size_t,
off_t, int *);
*/
#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: softmagic.c,v 1.125 2008/10/30 10:43:49 rrt Exp $")
+#endif /* lint */
+
#include "magic.h"
#include <string.h>
#include <ctype.h>
#include <time.h>
-#ifndef lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.124 2008/10/18 20:47:48 christos Exp $")
-#endif /* lint */
-
private int match(struct magic_set *, struct magic *, uint32_t,
const unsigned char *, size_t, int);
private int mget(struct magic_set *, const unsigned char *,
you use strange formats.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: softmagic.c,v 1.125 2008/10/30 10:43:49 rrt Exp $")
+#endif /* lint */
#include <assert.h>
#include <stdio.h>