Reducing external/bsd/file differences
Change-Id: I0d025059ba0b200ac1162ea5a764fd756600ecd0
This commit is contained in:
23
external/bsd/file/dist/doc/file.1
vendored
23
external/bsd/file/dist/doc/file.1
vendored
@@ -1,7 +1,7 @@
|
||||
.\" $NetBSD: file.1,v 1.8 2011/09/16 21:06:25 christos Exp $
|
||||
.\" $NetBSD: file.1,v 1.9 2012/02/22 17:53:50 christos Exp $
|
||||
.\"
|
||||
.\" $File: file.man,v 1.96 2011/07/12 11:23:38 rrt Exp $
|
||||
.Dd April 20, 2011
|
||||
.\" $File: file.man,v 1.98 2011/12/08 12:12:46 rrt Exp $
|
||||
.Dd October 17, 2011
|
||||
.Dt FILE 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -26,7 +26,7 @@
|
||||
.Nm
|
||||
.Op Fl Fl help
|
||||
.Sh DESCRIPTION
|
||||
This manual page documents version 5.09 of the
|
||||
This manual page documents version 5.11 of the
|
||||
.Nm
|
||||
command.
|
||||
.Pp
|
||||
@@ -194,7 +194,7 @@ option).
|
||||
.It encoding
|
||||
Different text encodings for soft magic tests.
|
||||
.It tokens
|
||||
Looks for known tokens inside text files.
|
||||
Ignored for backwards compatibility.
|
||||
.It cdf
|
||||
Prints details of Compound Document Files.
|
||||
.It compress
|
||||
@@ -222,6 +222,19 @@ or at least one filename argument must be present;
|
||||
to test the standard input, use
|
||||
.Sq -
|
||||
as a filename argument.
|
||||
Please note that
|
||||
.Ar namefile
|
||||
is unwrapped and the enclosed filenames are processed when this option is
|
||||
encountered and before any further options processing is done.
|
||||
This allows one to process multiple lists of files with different command line
|
||||
arguments on the same
|
||||
.Nm
|
||||
invocation.
|
||||
Thus if you want to set the delimiter, you need to do it before you specify
|
||||
the list of files, like:
|
||||
.Dq Fl F Ar @ Fl f Ar namefile ,
|
||||
instead of:
|
||||
.Dq Fl f Ar namefile Fl F Ar @ .
|
||||
.It Fl h , Fl Fl no-dereference
|
||||
option causes symlinks not to be followed
|
||||
(on systems that support symbolic links).
|
||||
|
||||
25
external/bsd/file/dist/doc/libmagic.3
vendored
25
external/bsd/file/dist/doc/libmagic.3
vendored
@@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: libmagic.3,v 1.9 2011/11/10 13:41:00 christos Exp $
|
||||
.\" $NetBSD: libmagic.3,v 1.10 2012/02/22 17:53:50 christos Exp $
|
||||
.\"
|
||||
.\" $File: libmagic.man,v 1.24 2011/05/13 22:11:44 christos Exp $
|
||||
.\" $File: libmagic.man,v 1.26 2011/12/19 17:49:31 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) Christos Zoulas 2003.
|
||||
.\" All Rights Reserved.
|
||||
@@ -27,7 +27,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd January 14, 2011
|
||||
.Dd December 19, 2011
|
||||
.Dt LIBMAGIC 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -66,6 +66,8 @@
|
||||
.Ft int
|
||||
.Fn magic_compile "magic_t cookie" "const char *filename"
|
||||
.Ft int
|
||||
.Fn magic_list "magic_t cookie" "const char *filename"
|
||||
.Ft int
|
||||
.Fn magic_load "magic_t cookie" "const char *filename"
|
||||
.Sh DESCRIPTION
|
||||
These functions
|
||||
@@ -221,6 +223,17 @@ of each file argument with
|
||||
appended to it.
|
||||
.Pp
|
||||
The
|
||||
.Fn magic_list
|
||||
function dumps all magic entries in a human readable format,
|
||||
dumping first the entries that are matched against binary files and then the
|
||||
ones that match text files.
|
||||
It takes and optional
|
||||
.Fa filename
|
||||
argument which is a colon separated list of database files, or
|
||||
.Dv NULL
|
||||
for the default database.
|
||||
.Pp
|
||||
The
|
||||
.Fn magic_load
|
||||
function must be used to load the the colon
|
||||
separated list of database files passed in as
|
||||
@@ -246,15 +259,17 @@ It will set errno to
|
||||
.Er EINVAL
|
||||
if an unsupported value for flags was given.
|
||||
The
|
||||
.Fn magic_list ,
|
||||
.Fn magic_load ,
|
||||
.Fn magic_compile ,
|
||||
and
|
||||
.Fn magic_check
|
||||
functions return 0 on success and \-1 on failure.
|
||||
The
|
||||
.Fn magic_file ,
|
||||
.Fn magic_buffer ,
|
||||
.Fn magic_getpath ,
|
||||
and
|
||||
.Fn magic_buffer
|
||||
.Fn magic_file ,
|
||||
functions return a string on success and
|
||||
.Dv NULL
|
||||
on failure.
|
||||
|
||||
16
external/bsd/file/dist/doc/magic.5
vendored
16
external/bsd/file/dist/doc/magic.5
vendored
@@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: magic.5,v 1.6 2011/09/16 21:06:25 christos Exp $
|
||||
.\" $NetBSD: magic.5,v 1.7 2012/02/22 17:53:50 christos Exp $
|
||||
.\"
|
||||
.\" $File: magic.man,v 1.69 2011/05/13 22:11:44 christos Exp $
|
||||
.\" $File: magic.man,v 1.71 2011/12/07 11:58:24 rrt Exp $
|
||||
.Dd April 20, 2011
|
||||
.Dt MAGIC 5
|
||||
.Os
|
||||
@@ -12,7 +12,7 @@
|
||||
This manual page documents the format of the magic file as
|
||||
used by the
|
||||
.Xr file 1
|
||||
command, version 5.09.
|
||||
command, version 5.11.
|
||||
The
|
||||
.Xr file 1
|
||||
command identifies the type of a file using,
|
||||
@@ -65,16 +65,16 @@ consecutive blanks, the target needs at least
|
||||
consecutive blanks to match.
|
||||
The
|
||||
.Dq w
|
||||
flag treats every blank in the target as an optional blank.
|
||||
flag treats every blank in the magic as an optional blank.
|
||||
The
|
||||
.Dq c
|
||||
flag, specifies case insensitive matching: lower case
|
||||
flag specifies case insensitive matching: lower case
|
||||
characters in the magic match both lower and upper case characters in the
|
||||
target, whereas upper case characters in the magic only match upper case
|
||||
characters in the target.
|
||||
The
|
||||
.Dq C
|
||||
flag, specifies case insensitive matching: upper case
|
||||
flag specifies case insensitive matching: upper case
|
||||
characters in the magic match both lower and upper case characters in the
|
||||
target, whereas lower case characters in the magic only match upper case
|
||||
characters in the target.
|
||||
@@ -84,9 +84,9 @@ and
|
||||
.Dq C .
|
||||
The
|
||||
.Dq t
|
||||
flag, forces the test to be done for text files, while the
|
||||
flag forces the test to be done for text files, while the
|
||||
.Dq b
|
||||
flag, forces the test to be done for binary files.
|
||||
flag forces the test to be done for binary files.
|
||||
.It Dv pstring
|
||||
A Pascal-style string where the first byte/short/int is interpreted as the an
|
||||
unsigned length.
|
||||
|
||||
Reference in New Issue
Block a user