-.\" $File: libmagic.man,v 1.19 2008/10/06 20:16:04 christos Exp $
+.\" $File: libmagic.man,v 1.20 2009/05/08 23:02:44 christos Exp $
.\"
.\" Copyright (c) Christos Zoulas 2003.
.\" All Rights Reserved.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\"
+.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
The function
.Fn magic_open
creates a magic cookie pointer and returns it. It returns NULL if
-there was an error allocating the magic cookie. The
+there was an error allocating the magic cookie. The
.Ar flags
argument specifies how the other magic functions should behave:
.Bl -tag -width MAGIC_COMPRESS
.Pp
The
.Fn magic_setflags
-function sets the
+function sets the
.Ar flags
described above. Note that using both MIME flags together can also
return extra information on the charset.
The
.Fn magic_file ,
and
-.Fn magic_buffer
+.Fn magic_buffer
functions return a string on success and NULL on failure. The
.Fn magic_error
function returns a textual description of the errors of the above
.El
.Sh SEE ALSO
.Xr file __CSECTION__ ,
-.Xr magic __FSECTION__
+.Xr magic __FSECTION__
.Sh AUTHORS
Måns Rullgård Initial libmagic implementation,
and configuration.
-.\" $File: magic.man,v 1.59 2008/11/06 23:22:53 christos Exp $
+.\" $File: magic.man,v 1.60 2009/05/08 23:02:44 christos Exp $
.Dd August 30, 2008
.Dt MAGIC __FSECTION__
.Os
.El
.Pp
An APPLE 4+4 character APPLE creator and type can be specified as:
-.Bd -literal -offset indent
+.Bd -literal -offset indent
!:apple CREATYPE
.Ed
.Pp
A MIME type is given on a separate line, which must be the next
non-blank or comment line after the magic line that identifies the
file type, and has the following format:
-.Bd -literal -offset indent
+.Bd -literal -offset indent
!:mime MIMETYPE
.Ed
.Pp
.Pp
An optional strength can be supplied on a separate line which refers to
the current magic description using the following format:
-.Bd -literal -offset indent
+.Bd -literal -offset indent
!:strength OP VALUE
.Ed
.Pp
The operand
.Dv OP
-can be:
+can be:
.Dv + ,
.Dv - ,
.Dv * ,