summaryrefslogtreecommitdiffstats
path: root/contrib/file/libmagic.man
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/file/libmagic.man')
-rw-r--r--contrib/file/libmagic.man35
1 files changed, 29 insertions, 6 deletions
diff --git a/contrib/file/libmagic.man b/contrib/file/libmagic.man
index f9808f9..61e8f27 100644
--- a/contrib/file/libmagic.man
+++ b/contrib/file/libmagic.man
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 22, 2003
+.Dd November 15, 2006
.Dt MAGIC 3
.Os
.Sh NAME
@@ -87,8 +87,10 @@ If the file is compressed, unpack it and look at the contents.
.It Dv MAGIC_DEVICES
If the file is a block or character special device, then open the device
and try to look in its contents.
-.It Dv MAGIC_MIME
-Return a mime string, instead of a textual description.
+.It Dv MAGIC_MIME_TYPE
+Return a MIME type string, instead of a textual description.
+.It Dv MAGIC_MIME_ENCODING
+Return a MIME encoding, instead of a textual description.
.It Dv MAGIC_CONTINUE
Return all matches, not just the first.
.It Dv MAGIC_CHECK
@@ -104,6 +106,26 @@ Don't translate unprintable characters to a \eooo octal representation.
.It Dv MAGIC_ERROR
Treat operating system errors while trying to open files and follow symlinks
as real errors, instead of printing them in the magic buffer.
+.It Dv MAGIC_NO_CHECK_APPTYPE
+Check for
+.Dv EMX
+application type (only on EMX).
+.It Dv MAGIC_NO_CHECK_ASCII
+Check for various types of ascii files.
+.It Dv MAGIC_NO_CHECK_COMPRESS
+Don't look for, or inside compressed files.
+.It Dv MAGIC_NO_CHECK_ELF
+Don't print elf details.
+.It Dv MAGIC_NO_CHECK_FORTRAN
+Don't look for fortran sequences inside ascii files.
+.It Dv MAGIC_NO_CHECK_SOFT
+Don't consult magic files.
+.It Dv MAGIC_NO_CHECK_TAR
+Don't examine tar files.
+.It Dv MAGIC_NO_CHECK_TOKENS
+Don't look for known tokens inside ascii files.
+.It Dv MAGIC_NO_CHECK_TROFF
+Don't look for troff sequences inside ascii files.
.El
.Pp
The
@@ -119,8 +141,8 @@ no error.
.Pp
The
.Fn magic_errno
-function returns the last operating system error number (
-.Xr errno 3 )
+function returns the last operating system error number
+.Pq Xr errno 2
that was encountered by a system call.
.Pp
The
@@ -144,7 +166,8 @@ The
.Fn magic_setflags
function, sets the
.Ar flags
-described above.
+described above. Note that using both MIME flags together can also
+return extra information on the charset.
.Pp
The
.Fn magic_check
OpenPOWER on IntegriCloud