[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

typos in comments in a few src/usr.bin programs



Index: awk/FIXES
===================================================================
RCS file: /cvs/src/usr.bin/awk/FIXES,v
retrieving revision 1.11
diff -u -r1.11 FIXES
--- awk/FIXES	2002/12/19 21:24:28	1.11
+++ awk/FIXES	2003/11/09 05:31:25
@@ -144,7 +144,7 @@
 	jon bentley for the test case that found it.
 
 	added test in envinit to catch environment "variables" with
-	names begining with '='; thanks to Berend Hasselman.
+	names beginning with '='; thanks to Berend Hasselman.
 
 Jul 28, 1999:
 	added test in defn() to catch function foo(foo), which
@@ -381,7 +381,7 @@
 	some awful behaviors.)
 
 Apr 29, 1996:
-	replaced uchar by uschar everwhere; apparently some compilers
+	replaced uchar by uschar everywhere; apparently some compilers
 	usurp this name and this causes conflicts.
 
 	fixed call to time in run.c (bltin); arg is time_t *.
Index: diff/diff.h
===================================================================
RCS file: /cvs/src/usr.bin/diff/diff.h,v
retrieving revision 1.24
diff -u -r1.24 diff.h
--- diff/diff.h	2003/10/07 23:37:27	1.24
+++ diff/diff.h	2003/11/09 05:31:26
@@ -61,7 +61,7 @@
 #define	D_ONLY		4	/* Only exists in one directory */
 #define	D_MISMATCH1	5	/* path1 was a dir, path2 a file */
 #define	D_MISMATCH2	6	/* path1 was a file, path2 a dir */
-#define	D_ERROR		7	/* An error ocurred */
+#define	D_ERROR		7	/* An error occurred */
 
 struct excludes {
 	char *pattern;
Index: diff/diffdir.c
===================================================================
RCS file: /cvs/src/usr.bin/diff/diffdir.c,v
retrieving revision 1.25
diff -u -r1.25 diffdir.c
--- diff/diffdir.c	2003/10/07 23:37:27	1.25
+++ diff/diffdir.c	2003/11/09 05:31:26
@@ -48,7 +48,7 @@
 #define d_status	d_type		/* we need to store status for -l */
 
 /*
- * Diff directory traveral. Will be called recursively if -r was specified.
+ * Diff directory traversal. Will be called recursively if -r was specified.
  */
 void
 diffdir(char *p1, char *p2)
Index: diff3/diff3prog.c
===================================================================
RCS file: /cvs/src/usr.bin/diff3/diff3prog.c,v
retrieving revision 1.3
diff -u -r1.3 diff3prog.c
--- diff3/diff3prog.c	2003/10/24 20:32:06	1.3
+++ diff3/diff3prog.c	2003/11/09 05:31:26
@@ -200,7 +200,7 @@
 }
 
 /*
- * Pick up the line numbers of allcahnges from one change file.
+ * Pick up the line numbers of all changes from one change file.
  * (This puts the numbers in a vector, which is not strictly necessary,
  * since the vector is processed in one sequential pass.
  * The vector could be optimized out of existence)
@@ -346,7 +346,7 @@
 			dup = duplicate(&d1->old,&d2->old);
 			/*
 			 * dup = 0 means all files differ
-			 * dup = 1 meands files 1 and 2 identical
+			 * dup = 1 means files 1 and 2 identical
 			 */
 			if (eflag==0) {
 				separate(dup ? "3" : "");
@@ -441,7 +441,7 @@
 }
 
 /*
- * skip to just befor line number from in file "i".  If "pr" is non-NULL,
+ * skip to just before line number from in file "i".  If "pr" is non-NULL,
  * print all skipped stuff with string pr as a prefix.
  */
 int
Index: fgen/fgen.l
===================================================================
RCS file: /cvs/src/usr.bin/fgen/fgen.l,v
retrieving revision 1.6
diff -u -r1.6 fgen.l
--- fgen/fgen.l	2002/09/23 04:10:14	1.6
+++ fgen/fgen.l	2003/11/09 05:31:28
@@ -1034,7 +1034,7 @@
 
 /*
  * Tokenize one file.  This is a separate function so it can
- * be called recursively to parse mutiple levels of include files.
+ * be called recursively to parse multiple levels of include files.
  */
 
 void
@@ -1562,7 +1562,7 @@
 			 */
 			pos = pop();	/* get position of prev link. */
 			push(outpos);	/* save position of this link. */
-			spit(pos);	/* save potision of prev link. */
+			spit(pos);	/* save position of prev link. */
 			if (offsetsize == 16) {
 				spit(0);
 			}
Index: file/file.h
===================================================================
RCS file: /cvs/src/usr.bin/file/file.h,v
retrieving revision 1.14
diff -u -r1.14 file.h
--- file/file.h	2003/07/02 21:04:10	1.14
+++ file/file.h	2003/11/09 05:31:29
@@ -86,7 +86,7 @@
 		unsigned char hl[4];	/* 2 bytes of a fixed-endian "long" */
 	} value;		/* either number or string */
 	uint32_t mask;	/* mask before comparison with value */
-	char nospflag;		/* supress space character */
+	char nospflag;		/* suppress space character */
 	char desc[MAXDESC];	/* description */
 };
 
Index: file/readelf.c
===================================================================
RCS file: /cvs/src/usr.bin/file/readelf.c,v
retrieving revision 1.6
diff -u -r1.6 readelf.c
--- file/readelf.c	2003/06/13 18:31:14	1.6
+++ file/readelf.c	2003/11/09 05:31:29
@@ -513,7 +513,7 @@
 				 * is in SunOS 5.x and Linux).
 				 *
 				 * Unfortunately, it's at a different offset
-				 * in varous OSes, so try multiple offsets.
+				 * in various OSes, so try multiple offsets.
 				 * If the characters aren't all printable,
 				 * reject it.
 				 */
Index: file/magdir/images
===================================================================
RCS file: /cvs/src/usr.bin/file/magdir/images,v
retrieving revision 1.5
diff -u -r1.5 images
--- file/magdir/images	2003/03/04 03:19:26	1.5
+++ file/magdir/images	2003/11/09 05:31:30
@@ -207,10 +207,9 @@
 #>28	belong		>0		colormap is %d bytes long
 
 # SGI image file format, from Daniel Quinlan (quinlan_(_at_)_yggdrasil_(_dot_)_com)
-#
-# See
+# See:
 #	http://reality.sgi.com/grafica/sgiimage.html
-#
+#	ftp://ftp.sgi.com/graphics/SGIIMAGESPEC
 0	beshort		474		SGI image data
 #>2	byte		0		\b, verbatim
 >2	byte		1		\b, RLE
Index: last/last.c
===================================================================
RCS file: /cvs/src/usr.bin/last/last.c,v
retrieving revision 1.28
diff -u -r1.28 last.c
--- last/last.c	2003/08/14 21:02:09	1.28
+++ last/last.c	2003/11/09 05:31:30
@@ -586,7 +586,7 @@
 		t->tm_year = ATOI2(arg);
 		t->tm_year *= 100;
 		yearset = 1;
-		/* FALLTHOUGH */
+		/* FALLTHROUGH */
 	case 10:			/* YYMMDDhhmm */
 		if (yearset) {
 			yearset = ATOI2(arg);
Index: learn/src/learn.c
===================================================================
RCS file: /cvs/src/usr.bin/learn/src/learn.c,v
retrieving revision 1.9
diff -u -r1.9 learn.c
--- learn/src/learn.c	2003/04/06 21:07:08	1.9
+++ learn/src/learn.c	2003/11/09 05:31:32
@@ -1041,6 +1041,6 @@
 	printf("Bye.\n"); /* not only does this reassure user but 
 			it stalls for time while deleting directory */
 	fflush(stdout);
-	/* printf("Wantd %ld got %ld val %d\n", (long)pid, (long)pidw, retval); */
+	/* printf("Wanted %ld got %ld val %d\n", (long)pid, (long)pidw, retval); */
 	exit(n);
 }
Index: locate/code/locate.code.c
===================================================================
RCS file: /cvs/src/usr.bin/locate/code/locate.code.c,v
retrieving revision 1.12
diff -u -r1.12 locate.code.c
--- locate/code/locate.code.c	2003/09/29 16:03:16	1.12
+++ locate/code/locate.code.c	2003/11/09 05:31:36
@@ -81,7 +81,7 @@
  * The locate database store any character except newline ('\n')
  * and NUL ('\0'). The 8-bit character support don't wast extra
  * space until you have characters in file names less than 32
- * or greather than 127.
+ * or greater than 127.
  *
  *
  * SEE ALSO:	updatedb.sh, ../bigram/locate.bigram.c
Index: login/login.c
===================================================================
RCS file: /cvs/src/usr.bin/login/login.c,v
retrieving revision 1.51
diff -u -r1.51 login.c
--- login/login.c	2003/08/12 13:14:58	1.51
+++ login/login.c	2003/11/09 05:31:37
@@ -848,7 +848,7 @@
 void
 sigint(int signo)
 {
-	return;			/* just interupt syscall */
+	return;			/* just interrupt syscall */
 }
 
 /* ARGSUSED */
Index: pr/egetopt.c
===================================================================
RCS file: /cvs/src/usr.bin/pr/egetopt.c,v
retrieving revision 1.6
diff -u -r1.6 egetopt.c
--- pr/egetopt.c	2003/06/12 20:58:10	1.6
+++ pr/egetopt.c	2003/11/09 05:31:38
@@ -70,7 +70,7 @@
 {
 	static char *place = EMSG;	/* option letter processing */
 	char *oli;			/* option letter list index */
-	static int delim;		/* which option delimeter */
+	static int delim;		/* which option delimiter */
 	char *p;
 	static char savec = '\0';
 
Index: pr/pr.c
===================================================================
RCS file: /cvs/src/usr.bin/pr/pr.c,v
retrieving revision 1.19
diff -u -r1.19 pr.c
--- pr/pr.c	2003/08/04 17:06:45	1.19
+++ pr/pr.c	2003/11/09 05:31:39
@@ -76,20 +76,20 @@
  * the original version didn't support form-feeds, while many of the ad-hoc
  * pr implementations out there do.  Addding this and making it work reasonably
  * in all four output modes required quite a bit of hacking and a few minor
- * bugs were noted and fixed in the processs.  Some implementations have this
+ * bugs were noted and fixed in the process.  Some implementations have this
  * as the as -f, some as -F so we accept either.
  *
  * The implementation of form feeds on top of the existing I/O structure is
- * a bit ideosyncratic.  Basically they are treated as temporary end-of-file
+ * a bit idiosyncratic.  Basically they are treated as temporary end-of-file
  * conditions and an additional level of "loop on form feed" is added to each
  * of the output modes to continue after such a transient end-of-file's. This
  * has the general benefit of making the existing header/trailer logic work
  * and provides a usable framework for rational behavior in multi-column modes.
  *
- * The orginal "efficient" implementation of the "skip to page N" option was
+ * The original "efficient" implementation of the "skip to page N" option was
  * bogus and I substituted the basic inhibit printing until page N approach.
  * This is still fairly bogus vis-a-vis numbering pages on multiple files
- * restarting at one, but at least lets you consistantly reprint some large
+ * restarting at one, but at least lets you consistently reprint some large
  * document starting in the middle, in any of the output modes.
  *
  * Additional support for overprinting via <back-space> or <return> would
@@ -921,7 +921,7 @@
      * do not know how many columns yet. The number of operands provide an
      * upper bound on the number of columns. We use the number of files
      * we can open successfully to set the number of columns. The operation
-     * of the merge operation (-m) in relation to unsuccesful file opens
+     * of the merge operation (-m) in relation to unsuccessful file opens
      * is unspecified by posix.
      *
      * XXX - this seems moderately bogus, you'd think that specifying
@@ -946,7 +946,7 @@
 	return(1);
 
     /*
-     * calculate page boundries based on open file count
+     * calculate page boundaries based on open file count
      */
     if (nmwd) {
 	colwd = (pgwd - clcnt - nmwd)/clcnt;
@@ -1099,7 +1099,7 @@
  *    buf:    buffer
  *    lim:    buffer length
  *    cnt:    line length or -1 if no line (EOF for example)
- *    cps:    column positon 1st char in buffer (large line support)
+ *    cps:    column position 1st char in buffer (large line support)
  *    trnc:    throw away data more than lim up to \n 
  *    mor:    set if more data in line (not truncated)
  */
@@ -1564,7 +1564,7 @@
  * prhead() should be used carefully, we don't want to print out headers
  * for null input files or orphan headers at the end of files, and also
  * trailer processing is typically conditional on whether you've called
- * prhead() at least once for a file and incremented pagecnt..  Exactly
+ * prhead() at least once for a file and incremented pagecnt.  Exactly
  * how to determine whether to print a header is a little different in
  * the context each output mode, but we let the caller figure that out.
  */
@@ -1612,7 +1612,7 @@
  *    incomp    was a '\n' missing from last line output
  *
  * prtail() can now be invoked unconditionally, with the notion that if
- * we haven't printed a hearder, these no need for a trailer
+ * we haven't printed a header, there is no need for a trailer
  */
 int
 prtail(int cnt, int incomp)
Index: su/su.c
===================================================================
RCS file: /cvs/src/usr.bin/su/su.c,v
retrieving revision 1.55
diff -u -r1.55 su.c
--- su/su.c	2003/09/26 21:43:32	1.55
+++ su/su.c	2003/11/09 05:31:41
@@ -395,7 +395,7 @@
 
 /*
  * Allow for a '.' and 16 characters for any instance as well as
- * space for a ':' and 16 charcters defining the authentication type.
+ * space for a ':' and 16 characters defining the authentication type.
  */
 #define NBUFSIZ		(UT_NAMESIZE + 1 + 16 + 1 + 16)



Visit your host, monkey.org