Module: MagikkuFFI::Flags
- Defined in:
- lib/magikku_ffi.rb
Overview
Defines various flags that can be passed when creating a magic scan object using Magikku.new or afterwards using Magikku.flags=
Constant Summary collapse
- NONE =
No flags
0x000000- DEBUG =
Turn on debugging
0x000001- SYMLINK =
Follow symlinks
0x000002- COMPRESS =
Check inside compressed files
0x000004- DEVICES =
Look at the contents of devices
0x000008- MIME_TYPE =
Return the MIME type
0x000010- CONTINUE =
Return all matches
0x000020- CHECK =
Print warnings to stderr
0x000040- PRESERVE_ATIME =
Restore access time on exit
0x000080- RAW =
Don’t translate unprintable chars
0x000100- ERROR =
Handle ENOENT etc as real errors
0x000200- MIME_ENCODING =
Return the MIME encoding
0x000400- MIME =
alias for (MAGIC_MIME_TYPE|MAGIC_MIME_ENCODING)
(MIME_TYPE|MIME_ENCODING)
- APPLE =
Return the Apple creator and type
0x000800- NO_CHECK_COMPRESS =
Don’t check for compressed files
0x001000- NO_CHECK_TAR =
Don’t check for tar files
0x002000- NO_CHECK_SOFT =
Don’t check magic entries
0x004000- NO_CHECK_APPTYPE =
Don’t check application type
0x008000- NO_CHECK_ELF =
Don’t check for elf details
0x010000- NO_CHECK_TEXT =
Don’t check for text files
0x020000- NO_CHECK_CDF =
Don’t check for cdf files
0x040000- NO_CHECK_TOKENS =
Don’t check tokens
0x100000- NO_CHECK_ENCODING =
Don’t check text encodings
0x200000- NO_CHECK_ASCII =
alias for NO_CHECK_TEXT
NO_CHECK_TEXT