summaryrefslogtreecommitdiffstats
path: root/bin/pax
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2003-01-01 18:49:04 +0000
committerschweikh <schweikh@FreeBSD.org>2003-01-01 18:49:04 +0000
commitd3367c5f5d3ddcc6824d8f41c4cf179f9a5588f8 (patch)
treef412dafc7d29429919e8770cdefeb37441fc1299 /bin/pax
parent718a7892bc6da2237db71c255051dd54a4e93a92 (diff)
downloadFreeBSD-src-d3367c5f5d3ddcc6824d8f41c4cf179f9a5588f8.zip
FreeBSD-src-d3367c5f5d3ddcc6824d8f41c4cf179f9a5588f8.tar.gz
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
Diffstat (limited to 'bin/pax')
-rw-r--r--bin/pax/ar_io.c4
-rw-r--r--bin/pax/buf_subs.c2
-rw-r--r--bin/pax/cache.c4
-rw-r--r--bin/pax/cpio.c4
-rw-r--r--bin/pax/ftree.c4
-rw-r--r--bin/pax/options.c4
-rw-r--r--bin/pax/pat_rep.c6
-rw-r--r--bin/pax/pax.h2
-rw-r--r--bin/pax/sel_subs.c4
-rw-r--r--bin/pax/tables.c8
10 files changed, 21 insertions, 21 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c
index 68762b5..5f56837 100644
--- a/bin/pax/ar_io.c
+++ b/bin/pax/ar_io.c
@@ -724,8 +724,8 @@ ar_rdsync(void)
/*
* Fail resync attempts at user request (done) or this is going to be
- * an update/append to a existing archive. if last i/o hit media end,
- * we need to go to the next volume not try a resync
+ * an update/append to an existing archive. If last i/o hit media end,
+ * we need to go to the next volume not try a resync.
*/
if ((done > 0) || (lstrval == 0))
return(-1);
diff --git a/bin/pax/buf_subs.c b/bin/pax/buf_subs.c
index f821a8a..154ec03 100644
--- a/bin/pax/buf_subs.c
+++ b/bin/pax/buf_subs.c
@@ -386,7 +386,7 @@ pback(char *pt, int cnt)
/*
* rd_skip()
- * skip foward in the archive during a archive read. Used to get quickly
+ * skip foward in the archive during an archive read. Used to get quickly
* past file data and padding for files the user did NOT select.
* Return:
* 0 if ok, -1 failure, and 1 when EOF on the archive volume was detected.
diff --git a/bin/pax/cache.c b/bin/pax/cache.c
index 28bb895..840d850 100644
--- a/bin/pax/cache.c
+++ b/bin/pax/cache.c
@@ -170,7 +170,7 @@ grptb_start(void)
* caches the name (if any) for the uid. If frc set, we always return the
* the stored name (if valid or invalid match). We use a simple hash table.
* Return
- * Pointer to stored name (or a empty string)
+ * Pointer to stored name (or an empty string).
*/
char *
@@ -241,7 +241,7 @@ name_uid(uid_t uid, int frc)
* caches the name (if any) for the gid. If frc set, we always return the
* the stored name (if valid or invalid match). We use a simple hash table.
* Return
- * Pointer to stored name (or a empty string)
+ * Pointer to stored name (or an empty string).
*/
char *
diff --git a/bin/pax/cpio.c b/bin/pax/cpio.c
index 779e5f9..2cf93f2 100644
--- a/bin/pax/cpio.c
+++ b/bin/pax/cpio.c
@@ -851,7 +851,7 @@ vcpio_wr(ARCHD *arcn)
/*
* bcpio_id()
- * determine if a block given to us is a old binary cpio header
+ * determine if a block given to us is an old binary cpio header
* (with/without header byte swapping)
* Return:
* 0 if a valid header, -1 otherwise
@@ -878,7 +878,7 @@ bcpio_id(char *blk, int size)
/*
* bcpio_rd()
- * determine if a buffer is a old binary archive entry. (it may have byte
+ * determine if a buffer is an old binary archive entry. (It may have byte
* swapped header) convert and store the values in the ARCHD parameter.
* This is a very old header format and should not really be used.
* Return:
diff --git a/bin/pax/ftree.c b/bin/pax/ftree.c
index 332bd02..6d5ec68 100644
--- a/bin/pax/ftree.c
+++ b/bin/pax/ftree.c
@@ -313,8 +313,8 @@ ftree_arg(void)
}
/*
- * watch it, fts wants the file arg stored in a array of char
- * ptrs, with the last one a null. we use a two element array
+ * Watch it, fts wants the file arg stored in an array of char
+ * ptrs, with the last one a null. We use a two element array
* and set farray[0] to point at the buffer with the file name
* in it. We cannot pass all the file args to fts at one shot
* as we need to keep a handle on which file arg generates what
diff --git a/bin/pax/options.c b/bin/pax/options.c
index 2f1dbc9..3dc01de 100644
--- a/bin/pax/options.c
+++ b/bin/pax/options.c
@@ -1344,11 +1344,11 @@ bad_opt(void)
/*
* opt_add()
- * breaks the value supplied to -o into a option name and value. options
+ * breaks the value supplied to -o into an option name and value. Options
* are given to -o in the form -o name-value,name=value
* multiple -o may be specified.
* Return:
- * 0 if format in name=value format, -1 if -o is passed junk
+ * 0 if format in name=value format, -1 if -o is passed junk.
*/
int
diff --git a/bin/pax/pat_rep.c b/bin/pax/pat_rep.c
index 8b7db8e..7c98f3f 100644
--- a/bin/pax/pat_rep.c
+++ b/bin/pax/pat_rep.c
@@ -296,7 +296,7 @@ pat_chk(void)
* NOTE: When the -c option is used, we are called when there was no match
* by pat_match() (that means we did match before the inverted sense of
* the logic). Now this seems really strange at first, but with -c we
- * need to keep track of those patterns that cause a archive member to NOT
+ * need to keep track of those patterns that cause an archive member to NOT
* be selected (it found an archive member with a specified pattern)
* Return:
* 0 if the pattern pointed at by arcn->pat was tagged as creating a
@@ -471,9 +471,9 @@ pat_match(ARCHD *arcn)
return(cflag ? 0 : 1);
/*
- * we had a match, now when we invert the sense (-c) we reject this
+ * We had a match, now when we invert the sense (-c) we reject this
* member. However we have to tag the pattern a being successful, (in a
- * match, not in selecting a archive member) so we call pat_sel() here.
+ * match, not in selecting an archive member) so we call pat_sel() here.
*/
arcn->pat = pt;
if (!cflag)
diff --git a/bin/pax/pax.h b/bin/pax/pax.h
index 2cf9e8a..a0d8de8 100644
--- a/bin/pax/pax.h
+++ b/bin/pax/pax.h
@@ -142,7 +142,7 @@ typedef struct {
/* a flawed archive header. */
int (*end_wr)(); /* end write. write the trailer and do any */
/* other format specific functions needed */
- /* at the end of a archive write */
+ /* at the end of an archive write */
int (*trail)(); /* returns 0 if a valid trailer, -1 if not */
/* For formats which encode the trailer */
/* outside of a valid header, a return value */
diff --git a/bin/pax/sel_subs.c b/bin/pax/sel_subs.c
index 130b8e9..181c083 100644
--- a/bin/pax/sel_subs.c
+++ b/bin/pax/sel_subs.c
@@ -306,11 +306,11 @@ grp_match(ARCHD *arcn)
* -T flag). The user may specify any number of different file time ranges.
* Time ranges are checked one at a time until a match is found (if at all).
* If the file has a mtime (and/or ctime) which lies within one of the time
- * ranges, the file is selected. Time ranges may have a lower and/or a upper
+ * ranges, the file is selected. Time ranges may have a lower and/or an upper
* value. These ranges are inclusive. When no time ranges are supplied to pax
* with the -T option, all members in the archive will be selected by the time
* range routines. When only a lower range is supplied, only files with a
- * mtime (and/or ctime) equal to or younger are selected. When only a upper
+ * mtime (and/or ctime) equal to or younger are selected. When only an upper
* range is supplied, only files with a mtime (and/or ctime) equal to or older
* are selected. When the lower time range is equal to the upper time range,
* only files with a mtime (or ctime) of exactly that time are selected.
diff --git a/bin/pax/tables.c b/bin/pax/tables.c
index 9696181..f60723b 100644
--- a/bin/pax/tables.c
+++ b/bin/pax/tables.c
@@ -264,10 +264,10 @@ purg_lnk(ARCHD *arcn)
/*
* lnk_end()
- * pull apart a existing link table so we can reuse it. We do this between
+ * Pull apart an existing link table so we can reuse it. We do this between
* read and write phases of append with update. (The format may have
* used the link table, and we need to start with a fresh table for the
- * write phase
+ * write phase).
*/
void
@@ -314,7 +314,7 @@ lnk_end(void)
* hash table is indexed by hashing the file path. The nodes in the table store
* the length of the filename and the lseek offset within the scratch file
* where the actual name is stored. Since there are never any deletions to this
- * table, fragmentation of the scratch file is never a issue. Lookups seem to
+ * table, fragmentation of the scratch file is never an issue. Lookups seem to
* not exhibit any locality at all (files in the database are rarely
* looked up more than once...). So caching is just a waste of memory. The
* only limitation is the amount of scatch file space available to store the
@@ -617,7 +617,7 @@ sub_name(char *oname, int *onamelen, size_t onamesize)
* device/inode mapping table routines
* (used with formats that store device and inodes fields)
*
- * device/inode mapping tables remap the device field in a archive header. The
+ * device/inode mapping tables remap the device field in an archive header. The
* device/inode fields are used to determine when files are hard links to each
* other. However these values have very little meaning outside of that. This
* database is used to solve one of two different problems.
OpenPOWER on IntegriCloud