Qore Magic Module  0.0.2
libmagic Constants

Variables

const Qore::Magic::MAGIC_APPLE = 0x000800
 Return the Apple creator and type.
 
const Qore::Magic::MAGIC_CHECK = 0x000040
 Print warnings to stderr.
 
const Qore::Magic::MAGIC_COMPRESS = 0x000004
 Check inside compressed files.
 
const Qore::Magic::MAGIC_CONTINUE = 0x000020
 Return all matches.
 
const Qore::Magic::MAGIC_DEBUG = 0x000001
 Turn on debugging.
 
const Qore::Magic::MAGIC_DEVICES = 0x000008
 Look at the contents of devices.
 
const Qore::Magic::MAGIC_ERROR = 0x000200
 Handle ENOENT etc as real errors.
 
const Qore::Magic::MAGIC_MIME = 0x000410
 Returns MIME type with encoding.
 
const Qore::Magic::MAGIC_MIME_ENCODING = 0x000400
 Return the MIME encoding.
 
const Qore::Magic::MAGIC_MIME_TYPE = 0x000010
 Return the MIME type.
 
const Qore::Magic::MAGIC_NONE = 0x000000
 No flags.
 
const Qore::Magic::MAGIC_NO_CHECK_APPTYPE = 0x008000
 Don't check application type.
 
const Qore::Magic::MAGIC_NO_CHECK_BUILTIN = 0x3fb000
 No built-in tests only consult the magic file.
 
const Qore::Magic::MAGIC_NO_CHECK_CDF = 0x040000
 Don't check for cdf files.
 
const Qore::Magic::MAGIC_NO_CHECK_COMPRESS = 0x001000
 Don't check for compressed files.
 
const Qore::Magic::MAGIC_NO_CHECK_ELF = 0x010000
 Don't check for elf details.
 
const Qore::Magic::MAGIC_NO_CHECK_ENCODING = 0x200000
 Don't check text encodings.
 
const Qore::Magic::MAGIC_NO_CHECK_SOFT = 0x004000
 Don't check magic entries.
 
const Qore::Magic::MAGIC_NO_CHECK_TAR = 0x002000
 Don't check for tar files.
 
const Qore::Magic::MAGIC_NO_CHECK_TEXT = 0x020000
 Don't check for text files.
 
const Qore::Magic::MAGIC_NO_CHECK_TOKENS = 0x100000
 Don't check tokens.
 
const Qore::Magic::MAGIC_PRESERVE_ATIME = 0x000080
 Restore access time on exit.
 
const Qore::Magic::MAGIC_RAW = 0x000100
 Don't translate unprintable chars.
 
const Qore::Magic::MAGIC_SYMLINK = 0x000002
 Follow symlinks.
 

Detailed Description