#include <sys/types.h>
Include dependency graph for magic.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | MAGIC_NONE 0x000000 |
#define | MAGIC_DEBUG 0x000001 |
#define | MAGIC_SYMLINK 0x000002 |
#define | MAGIC_COMPRESS 0x000004 |
#define | MAGIC_DEVICES 0x000008 |
#define | MAGIC_MIME 0x000010 |
#define | MAGIC_CONTINUE 0x000020 |
#define | MAGIC_CHECK 0x000040 |
#define | MAGIC_PRESERVE_ATIME 0x000080 |
#define | MAGIC_RAW 0x000100 |
#define | MAGIC_ERROR 0x000200 |
#define | MAGIC_NO_CHECK_COMPRESS 0x001000 |
#define | MAGIC_NO_CHECK_TAR 0x002000 |
#define | MAGIC_NO_CHECK_SOFT 0x004000 |
#define | MAGIC_NO_CHECK_APPTYPE 0x008000 |
#define | MAGIC_NO_CHECK_ELF 0x010000 |
#define | MAGIC_NO_CHECK_ASCII 0x020000 |
#define | MAGIC_NO_CHECK_TROFF 0x040000 |
#define | MAGIC_NO_CHECK_FORTRAN 0x080000 |
#define | MAGIC_NO_CHECK_TOKENS 0x100000 |
Typedefs | |
typedef magic_set * | magic_t |
Functions | |
magic_t | magic_open (int) |
void | magic_close (magic_t ms) |
const char * | magic_file (magic_t ms, const char *inname) |
const char * | magic_buffer (magic_t ms, const void *, size_t) |
const char * | magic_error (magic_t ms) |
int | magic_setflags (magic_t ms, int) |
int | magic_load (magic_t ms, const char *) |
int | magic_compile (magic_t ms, const char *) |
int | magic_check (magic_t ms, const char *) |
int | magic_errno (magic_t ms) |
|
Definition at line 39 of file magic.h. Referenced by apprentice_1(), apprentice_file(), check_cond(), file_signextend(), getvalue(), main(), parse(), rpmfcClassify(), and string_modifier_check(). |
|
Definition at line 35 of file magic.h. Referenced by file_zmagic(), and main(). |
|
|
|
|
|
Definition at line 36 of file magic.h. Referenced by file_fsmagic(), and main(). |
|
Definition at line 42 of file magic.h. Referenced by file_fsmagic(). |
|
Definition at line 37 of file magic.h. Referenced by file_apprentice(), file_buffer(), file_fsmagic(), file_is_tar(), magic_file(), and main(). |
|
Definition at line 46 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 48 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 43 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 47 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 50 of file magic.h. Referenced by file_ascmagic(), and main(). |
|
Definition at line 45 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 44 of file magic.h. Referenced by file_buffer(), and main(). |
|
Definition at line 51 of file magic.h. Referenced by file_ascmagic(), and main(). |
|
Definition at line 49 of file magic.h. Referenced by file_ascmagic(), and main(). |
|
|
|
Definition at line 40 of file magic.h. Referenced by close_and_restore(), magic_setflags(), and main(). |
|
Definition at line 41 of file magic.h. Referenced by file_getbuffer(), and main(). |
|
Definition at line 34 of file magic.h. Referenced by file_fsmagic(), and main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 90 of file magic.c. References magic_set::out::buf, magic_set::c, errno, magic_set::error, magic_set::file, magic_set::haderr, magic_set::out::left, magic_set::cont::len, magic_set::cont::li, magic_set::line, magic_setflags(), magic_set::mlist, magic_set::o, magic_set::out::pbuf, magic_set::out::psize, magic_set::out::ptr, and magic_set::out::size. Referenced by load(), main(), and rpmfcClassify(). |
|
|