32#define MAGIC_NONE 0x0000000
33#define MAGIC_DEBUG 0x0000001
34#define MAGIC_SYMLINK 0x0000002
35#define MAGIC_COMPRESS 0x0000004
36#define MAGIC_DEVICES 0x0000008
37#define MAGIC_MIME_TYPE 0x0000010
38#define MAGIC_CONTINUE 0x0000020
39#define MAGIC_CHECK 0x0000040
40#define MAGIC_PRESERVE_ATIME 0x0000080
41#define MAGIC_RAW 0x0000100
42#define MAGIC_ERROR 0x0000200
43#define MAGIC_MIME_ENCODING 0x0000400
44#define MAGIC_MIME (MAGIC_MIME_TYPE|MAGIC_MIME_ENCODING)
45#define MAGIC_APPLE 0x0000800
46#define MAGIC_EXTENSION 0x1000000
48#define MAGIC_COMPRESS_TRANSP 0x2000000
50#define MAGIC_NO_COMPRESS_FORK 0x4000000
52#define MAGIC_NODESC (MAGIC_EXTENSION|MAGIC_MIME|MAGIC_APPLE)
54#define MAGIC_NO_CHECK_COMPRESS 0x0001000
55#define MAGIC_NO_CHECK_TAR 0x0002000
56#define MAGIC_NO_CHECK_SOFT 0x0004000
57#define MAGIC_NO_CHECK_APPTYPE 0x0008000
58#define MAGIC_NO_CHECK_ELF 0x0010000
59#define MAGIC_NO_CHECK_TEXT 0x0020000
60#define MAGIC_NO_CHECK_CDF 0x0040000
61#define MAGIC_NO_CHECK_CSV 0x0080000
62#define MAGIC_NO_CHECK_TOKENS 0x0100000
63#define MAGIC_NO_CHECK_ENCODING 0x0200000
64#define MAGIC_NO_CHECK_JSON 0x0400000
65#define MAGIC_NO_CHECK_SIMH 0x0800000
68#define MAGIC_NO_CHECK_BUILTIN ( \
69 MAGIC_NO_CHECK_COMPRESS | \
70 MAGIC_NO_CHECK_TAR | \
72 MAGIC_NO_CHECK_APPTYPE | \
73 MAGIC_NO_CHECK_ELF | \
74 MAGIC_NO_CHECK_TEXT | \
75 MAGIC_NO_CHECK_CSV | \
76 MAGIC_NO_CHECK_CDF | \
77 MAGIC_NO_CHECK_TOKENS | \
78 MAGIC_NO_CHECK_ENCODING | \
79 MAGIC_NO_CHECK_JSON | \
80 MAGIC_NO_CHECK_SIMH | \
84#define MAGIC_SNPRINTB "\177\020\
97b\14no_check_compress\0\
100b\17no_check_sapptype\0\
105b\24no_check_tokens\0\
106b\25no_check_encoding\0\
110b\31transp_compression\0\
114#define MAGIC_NO_CHECK_ASCII MAGIC_NO_CHECK_TEXT
117#define MAGIC_NO_CHECK_FORTRAN 0x000000
118#define MAGIC_NO_CHECK_TROFF 0x000000
120#define MAGIC_VERSION 545
127typedef struct magic_set *
magic_t;
149#define MAGIC_PARAM_INDIR_MAX 0
150#define MAGIC_PARAM_NAME_MAX 1
151#define MAGIC_PARAM_ELF_PHNUM_MAX 2
152#define MAGIC_PARAM_ELF_SHNUM_MAX 3
153#define MAGIC_PARAM_ELF_NOTES_MAX 4
154#define MAGIC_PARAM_REGEX_MAX 5
155#define MAGIC_PARAM_BYTES_MAX 6
156#define MAGIC_PARAM_ENCODING_MAX 7
157#define MAGIC_PARAM_ELF_SHSIZE_MAX 8
const char * magic_file(magic_t, const char *)
int magic_load_buffers(magic_t, void **, size_t *, size_t)
int magic_setflags(magic_t, int)
const char * magic_buffer(magic_t, const void *, size_t)
int magic_list(magic_t, const char *)
int magic_getparam(magic_t, int, void *)
int magic_setparam(magic_t, int, const void *)
struct magic_set * magic_t
Definition magic.h:124
int magic_getflags(magic_t)
int magic_load(magic_t, const char *)
const char * magic_error(magic_t)
const char * magic_getpath(const char *, int)
int magic_check(magic_t, const char *)
const char * magic_descriptor(magic_t, int)
void magic_close(magic_t)
int magic_compile(magic_t, const char *)