From 77da0f412bc6a5fda7e45a44784e453dc0477fb5 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 3 May 2006 19:20:25 +0000 Subject: [PATCH] spelling cleanups. --- doc/file.man | 11 ++++++----- doc/magic.man | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/doc/file.man b/doc/file.man index 7a8cc0af..ce8caccf 100644 --- a/doc/file.man +++ b/doc/file.man @@ -1,5 +1,5 @@ .TH FILE __CSECTION__ "Copyright but distributable" -.\" $Id: file.man,v 1.57 2005/08/18 15:18:22 christos Exp $ +.\" $Id: file.man,v 1.58 2006/05/03 19:20:25 christos Exp $ .SH NAME file \- determine file type @@ -200,7 +200,7 @@ traditional human readable ones. Thus it may say rather than ``ASCII text''. In order for this option to work, file changes the way -it handles files recognised by the command itself (such as many of the +it handles files recognized by the command itself (such as many of the text file types, directories etc), and makes use of an alternative ``magic'' file. (See ``FILES'' section, below). @@ -322,9 +322,10 @@ options. This program is believed to exceed the System V Interface Definition of FILE(CMD), as near as one can determine from the vague language contained therein. -Its behaviour is mostly compatible with the System V program of the same name. +Its behavior is mostly compatible with the System V program of the same name. This version knows more magic, however, so it will produce different (albeit more accurate) output in many cases. +.\" URL: http://www.opengroup.org/onlinepubs/009695399/utilities/file.html .PP The one significant difference between this version and System V @@ -456,7 +457,7 @@ were written by John Gilmore from his public-domain program, and are not covered by the above license. .SH BUGS There must be a better way to automate the construction of the Magic -file from all the glop in magdir. +file from all the glop in Magdir. What is it? Better yet, the magic file should be compiled into binary (say, .BR ndbm (3) @@ -501,7 +502,7 @@ The list of keywords in probably belongs in the Magic file. This could be done by using some keyword like `*' for the offset value. .PP -Another optimisation would be to sort +Another optimization would be to sort the magic file so that we can just run down all the tests for the first byte, first word, first long, etc, once we have fetched it. diff --git a/doc/magic.man b/doc/magic.man index 73b6a3dd..79dcb30b 100644 --- a/doc/magic.man +++ b/doc/magic.man @@ -297,7 +297,7 @@ the value read from the file before it is used as an offset: .PP Sometimes you do not know the exact offset as this depends on the length or position (when indirection was used before) of preceding fields. You can -specify an offset relative to the end of the last uplevel field using +specify an offset relative to the end of the last up-level field using .BI & as a prefix to the offset: .sp @@ -329,7 +329,7 @@ Or the other way around: >0x18 leshort >0x3f >>(0x3c.l) string LE\e0\e0 LE executable (MS-Windows) # at offset 0x80 (-4, since relative offsets start at the end - # of the uplevel match) inside the LE header, we find the absolute + # of the up-level match) inside the LE header, we find the absolute # offset to the code area, where we look for a specific signature >>>(&0x7c.l+0x26) string UPX \eb, UPX compressed .fi @@ -346,7 +346,7 @@ Or even both! .fi .PP Finally, if you have to deal with offset/length pairs in your file, even the -second value in a parenthesed expression can be taken from the file itself, +second value in a parenthesized expression can be taken from the file itself, using another set of parentheses. Note that this additional indirect offset is always relative to the start of the main indirect offset. .sp @@ -397,4 +397,4 @@ a system on which the lengths are invariant. .\" the changes I posted to the S5R2 version. .\" .\" Modified for Ian Darwin's version of the file command. -.\" @(#)$Id: magic.man,v 1.30 2006/02/19 18:16:03 christos Exp $ +.\" @(#)$Id: magic.man,v 1.31 2006/05/03 19:20:25 christos Exp $ -- 2.40.0