]> granicus.if.org Git - file/commitdiff
make sure that we always include "file.h" first which includes config.h
authorChristos Zoulas <christos@zoulas.com>
Tue, 4 Nov 2008 16:38:28 +0000 (16:38 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 4 Nov 2008 16:38:28 +0000 (16:38 +0000)
and add rcsid's to all files.

17 files changed:
src/apprentice.c
src/apptype.c
src/ascmagic.c
src/asprintf.c
src/cdf.c
src/cdf_time.c
src/compress.c
src/file.c
src/fsmagic.c
src/funcs.c
src/getopt_long.c
src/is_tar.c
src/magic.c
src/print.c
src/readelf.c
src/softmagic.c
src/vasprintf.c

index 5dc3e69706575c6ae86498d0e217a1c1980d627e..0930a6cad770284bb600d77444f910cde9a4e67b 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: apprentice.c,v 1.144 2008/11/04 16:38:28 christos 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.143 2008/10/30 10:54:07 rrt Exp $")
-#endif /* lint */
-
 #define        EATAB {while (isascii((unsigned char) *l) && \
                      isspace((unsigned char) *l))  ++l;}
 #define LOWCASE(l) (isupper((unsigned char) (l)) ? \
index da03f803f3329e39135a83bbeb54e74db2ea741c..83e7f21e3c61b238fecf7f3dad4d0a6d4ad71ceb 100644 (file)
  * 
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apptype.c,v 1.8 2008/08/31 07:58:00 christos Exp $")
+FILE_RCSID("@(#)$File: apptype.c,v 1.9 2008/11/04 16:38:28 christos Exp $")
 #endif /* lint */
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
 #ifdef __EMX__
 #include <io.h>
 #define INCL_DOSSESMGR
index 652b5b68b9808dd783d9b9fd6a710e95a70d3996..f07cb3fdaae4f754eca0ce44f656fa21698096c1 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: ascmagic.c,v 1.69 2008/11/04 16:38:28 christos 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.68 2008/10/30 10:50:24 rrt Exp $")
-#endif /* lint */
-
 #define MAXLINELEN 300 /* longest sane line length */
 #define ISSPC(x) ((x) == ' ' || (x) == '\t' || (x) == '\r' || (x) == '\n' \
                  || (x) == 0x85 || (x) == '\f')
index c103cf18e553b92d02c46d8ece312d6c44e0b82e..aadddbb61de63cabc91e728f77b43c005f39b801 100644 (file)
  * SUCH DAMAGE.
  */
 
+#include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: asprintf.c,v 1.2 2008/11/04 16:38:28 christos Exp $")
+#endif
+
 #include <stdarg.h>
 
 int vasprintf(char **ptr, const char *format_string, va_list vargs);
index a51c54f37a43fdf8776814ef8e3d95d3ae7a24cd..d264f16b51cb6b8e932b46322a1140ef3a387d6a 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
  * 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.12 2008/11/04 16:38:28 christos Exp $")
 #endif
 
 #include <assert.h>
 
 #include "cdf.h"
 
-#include "file.h"
-#ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.11 2008/11/03 05:34:27 christos Exp $")
-#endif
-
 #ifndef __arraycount
 #define __arraycount(a) (sizeof(a) / sizeof(a[0]))
 #endif
index b74cd305f7cb2f3a840a39a3c2ddebe476401d35..2ce199a0db6f17b75a4f882e6c8ed489ad868802 100644 (file)
  * 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_time.c,v 1.4 2008/11/04 16:38:28 christos Exp $")
 #endif
 
 #include <sys/types.h>
index 5867ac94a8f5a2c609ac71619049be85585f2cd0..ed58df170fec2a091269c6859bb208ba258bf7a0 100644 (file)
  *                                         using method, return sizeof new
  */
 #include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: compress.c,v 1.58 2008/11/04 16:38:28 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.57 2008/07/16 18:00:57 christos Exp $")
-#endif
-
 private const struct {
        const char magic[8];
        size_t maglen;
index ab3e6c593bdc0679f7f41c3f12570b12d6022cdb..e0cd74d446d84ccc1e209020cf449a460dee4729 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: file.c,v 1.127 2008/11/04 16:38:28 christos Exp $")
+#endif /* lint */
+
 #include "magic.h"
 
 #include <stdio.h>
@@ -73,11 +78,6 @@ int getopt_long(int argc, char * const *argv, const char *optstring, const struc
 
 #include "patchlevel.h"
 
-#ifndef        lint
-FILE_RCSID("@(#)$File: file.c,v 1.126 2008/10/18 20:47:48 christos Exp $")
-#endif /* lint */
-
-
 #ifdef S_IFLNK
 #define SYMLINKFLAG "Lh"
 #else
index d643f1f19897563a88912430f087690129ad011f..0ea615495edf1aeaf2a193f17c0765de04b0dd4b 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: fsmagic.c,v 1.55 2008/11/04 16:38:28 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.54 2008/10/18 20:47:48 christos Exp $")
-#endif /* lint */
-
 private int
 bad_link(struct magic_set *ms, int err, char *buf)
 {
index bbe152c1921c828052795d46ac769034494e0980..bb9bb4f1d7c71fb0f0dbb643394333293e0978d2 100644 (file)
  * SUCH DAMAGE.
  */
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: funcs.c,v 1.47 2008/11/04 16:38:28 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.46 2008/10/16 16:30:34 christos Exp $")
-#endif /* lint */
-
 #ifndef SIZE_MAX
 #define SIZE_MAX       ((size_t)~0)
 #endif
index 5b9c20b4992884704c46bf1608b1b664d40d142a..97de4c3bfd2ca87a9a648d40c949c28cf8ba2213 100644 (file)
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: getopt_long.c,v 1.4 2008/11/04 16:38:28 christos Exp $")
+#endif /* lint */
+
 #include <assert.h>
 #ifdef HAVE_ERR_H
 #include <err.h>
index 6ba15a5e56ce4355b3b2fa1c1113f56e72310e97..5d17b79aee9df9ca453871d50bb22617a2ccd123 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: is_tar.c,v 1.34 2008/11/04 16:38:28 christos 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.33 2008/11/03 06:18:34 rrt Exp $")
-#endif
-
 #define        isodigit(c)     ( ((c) >= '0') && ((c) <= '7') )
 
 private int is_tar(const unsigned char *, size_t);
index 55dfee1b35b24cbdad50ba20db185efe21122870..644ecb045f8379832e7a2d5be5efec1a063e7837 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: magic.c,v 1.55 2008/11/04 16:38:28 christos Exp $")
+#endif /* lint */
+
 #include "magic.h"
 
 #include <stdio.h>
 
 #include "patchlevel.h"
 
-#ifndef        lint
-FILE_RCSID("@(#)$File: magic.c,v 1.54 2008/07/25 23:30:32 rrt Exp $")
-#endif /* lint */
-
 #ifndef PIPE_BUF
 /* Get the PIPE_BUF from pathconf */
 #ifdef _PC_PIPE_BUF
index cb382b0c677ee033bc48ca77ef9b98799ef3587d..ced93164cce6d9880f9e7f5026f140ebbc335199 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef lint
+FILE_RCSID("@(#)$File: print.c,v 1.65 2008/11/04 16:38:28 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.64 2008/10/20 15:14:17 christos Exp $")
-#endif  /* lint */
-
 #define SZOF(a)        (sizeof(a) / sizeof(a[0]))
 
 #ifndef COMPILE_ONLY
index 31b363113760e05ac911354e6314ab6dcebc3fbe..6f0b328cac80505f062f52c8e85086fa7dcb4847 100644 (file)
  */
 #include "file.h"
 
+#ifndef lint
+FILE_RCSID("@(#)$File: readelf.c,v 1.81 2008/11/04 16:38:28 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.80 2008/10/18 20:47:48 christos Exp $")
-#endif
-
 #ifdef ELFCORE
 private int dophn_core(struct magic_set *, int, int, int, off_t, int, size_t,
     off_t, int *);
index 7b01ee6e15502f23fdc97bfb8e4ab7c94a0d8e86..a337dd17570ef40ba0fcc1e50bdc376010228414 100644 (file)
  */
 
 #include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: softmagic.c,v 1.126 2008/11/04 16:38:28 christos Exp $")
+#endif /* lint */
+
 #include "magic.h"
 #include <string.h>
 #include <ctype.h>
 #include <time.h>
 
 
-#ifndef        lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.125 2008/10/30 10:43:49 rrt 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 *,
index 0289c0d88b4f1342a73bf296e832f39bfba5226e..3ca63a3a1bf8abc39ba123f2fd94eca02026cc37 100644 (file)
@@ -105,9 +105,11 @@ A buffer overflow can only occur if your sprintf() do strange things or when
 you use strange formats.
 
 */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+#include "file.h"
+
+#ifndef        lint
+FILE_RCSID("@(#)$File: vasprintf.c,v 1.6 2008/11/04 16:38:28 christos Exp $")
+#endif /* lint */
 
 #include <assert.h>
 #include <stdio.h>