Remove whitespace at end of line

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
       -type f \! -name \*\~ \! -name .\#\* \
       \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
       xargs -0 sed -i -e 's/[\t ]*$//'

Signed-off-by: Chris Dearman <chris@mips.com>
diff --git a/doc/man3/Makefile b/doc/man3/Makefile
index 46d6729..1a7a5a3 100644
--- a/doc/man3/Makefile
+++ b/doc/man3/Makefile
@@ -1,22 +1,22 @@
 #
 #    man3 Makefile.
-# 
+#
 #    Copyright (C) 2009, Cisco Systems Inc.
-# 
+#
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 2 of the License, or
 #    (at your option) any later version.
-# 
+#
 #    This program is distributed in the hope that it will be useful,
 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 #    GNU General Public License for more details.
-# 
+#
 #    You should have received a copy of the GNU General Public License along
 #    with this program; if not, write to the Free Software Foundation, Inc.,
 #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# 
+#
 # Garrett Cooper, July 2009
 #
 
diff --git a/doc/man3/bytes_by_prefix.3 b/doc/man3/bytes_by_prefix.3
index ae20b60..98a401a 100644
--- a/doc/man3/bytes_by_prefix.3
+++ b/doc/man3/bytes_by_prefix.3
@@ -2,33 +2,33 @@
 .\" $Id: bytes_by_prefix.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH BYTES_BY_PREFIX 3 07/25/2000 "Linux Test Project"
@@ -76,8 +76,8 @@
 .RE
 .br
 \fBbytes_by_prefix("5b")\fR
-.br 
-.RS 8 
+.br
+.RS 8
 Returns 5 * BSIZE.
 .RE
 \fBbytes_by_prefix("1.5m")\fR
diff --git a/doc/man3/forker.3 b/doc/man3/forker.3
index b06c1e5..fb460fb 100644
--- a/doc/man3/forker.3
+++ b/doc/man3/forker.3
@@ -2,33 +2,33 @@
 .\" $Id: forker.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH FORKER 3 07/25/2000 "Linux Test Project"
@@ -38,7 +38,7 @@
 background \- fork a process and return control to caller
 
 .SH SYNOPSIS
-int 
+int
 .br
 \fBbackground\fR(\fIprefix\fR)
 .br
diff --git a/doc/man3/get_attrib.3 b/doc/man3/get_attrib.3
index 52c673a..263bae3 100644
--- a/doc/man3/get_attrib.3
+++ b/doc/man3/get_attrib.3
@@ -2,33 +2,33 @@
 .\" $Id: get_attrib.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH GET_ATTRIB 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/parse_open_flags.3 b/doc/man3/parse_open_flags.3
index ec55795..628fa66 100644
--- a/doc/man3/parse_open_flags.3
+++ b/doc/man3/parse_open_flags.3
@@ -2,33 +2,33 @@
 .\" $Id: parse_open_flags.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH PARSE_OPEN_FLAGS 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/parse_opts.3 b/doc/man3/parse_opts.3
index b55900d..20fc01a 100644
--- a/doc/man3/parse_opts.3
+++ b/doc/man3/parse_opts.3
@@ -2,33 +2,33 @@
 .\" $Id: parse_opts.3,v 1.3 2000/08/31 18:40:28 nstraz Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH PARSE_OPTS 3 "21 Jan 2011" "LTP" "Linux Test Project"
@@ -49,7 +49,7 @@
 \fIargc\fP and \fIargv\fP are the argument count and array as passed to the
 main() function on program invocation. User options may be specified in the
 \fIoption_array\fR argument. A help function may be specified in the
-\fIuser_help_func\fP argument.  
+\fIuser_help_func\fP argument.
 .sp
 \fIoption_array\fP is a pointer to the first element of an array of
 \fBoption_t\fP.  If no additional options are needed, pass NULL.
@@ -90,14 +90,14 @@
 .SH "STANDARD OPTIONS"
 Below is a list of the standard options defined in \fBparse_opts()\fR:
 .TP
-.BI \-c " n" 
+.BI \-c " n"
 Run \fIn\fR copies of the test in parallel.  This is done by forking \fIn\fR
 times and running the test as usual.  If \-i or \-I are specified, each process
 will run for that amount of time.
 .TP
 .B \-e
 Turn on logging all errno's received.  This option is to facilitate security
-audit testing for MLS.  
+audit testing for MLS.
 .TP
 .B \-f
 Suppresses functional testing messages.
@@ -105,11 +105,11 @@
 .B \-h
 Print help message.  The standard options will be printed first, then a call to
 .I user_help_func()
-will be made.  
+will be made.
 .TP
 .BI \-i " n"
 Run for \fIn\fR iterations. A value of 0 makes the test loop infinitely.
-(default 1) 
+(default 1)
 .TP
 .BI \-I " x"
 The test will loop until \fIx\fR seconds have passed. (default 0.0)
@@ -131,7 +131,7 @@
 .SH "RETURN VALUE"
 .B parse_opts()
 returns a NULL pointer upon successful completion.  If an error occurs a
-pointer to an error message is returned.  
+pointer to an error message is returned.
 .SH "EXAMPLE"
 The following example defines two options, one with an argument, one without.
 .sp
@@ -161,7 +161,7 @@
 	return 0;
 }
 .fi
-.sp 
+.sp
 The following example shows how to use \fBparse_opts()\fR without defining new options.
 .sp
 .nf
@@ -171,7 +171,7 @@
 
 	if ((msg = parse_opts(argc, argv, NULL, NULL)) != NULL)
 		error_exit(msg);
-	
+
 	return 0;
 }
 .fi
diff --git a/doc/man3/parse_ranges.3 b/doc/man3/parse_ranges.3
index d7830a3..7afbc0c 100644
--- a/doc/man3/parse_ranges.3
+++ b/doc/man3/parse_ranges.3
@@ -2,33 +2,33 @@
 .\" $Id: parse_ranges.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH PARSE_RANGES 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/pattern.3 b/doc/man3/pattern.3
index 76b3988..2e870e5 100644
--- a/doc/man3/pattern.3
+++ b/doc/man3/pattern.3
@@ -1,34 +1,34 @@
-.\" 
+.\"
 .\" $Id: pattern.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH PATTERN 3 07/25/2000 "Linux Test Project"
@@ -72,12 +72,12 @@
 
 .RE
 .br
-\fBpattern_fill(buf, sizeof(buf), "abcde", 5, 3)\fR 
-.br 
-.RS 8 
- 
+\fBpattern_fill(buf, sizeof(buf), "abcde", 5, 3)\fR
+.br
+.RS 8
+
 fill buf with repeated occurrences of "deabc"
- 
+
 .RE
 
 .SH DIAGNOSTICS
diff --git a/doc/man3/random_range.3 b/doc/man3/random_range.3
index 025b21c..b157b1e 100644
--- a/doc/man3/random_range.3
+++ b/doc/man3/random_range.3
@@ -2,33 +2,33 @@
 .\" $Id: random_range.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH random_range 3 07/25/2000 "Linux Test Project"
@@ -50,7 +50,7 @@
 random_range() chooses a random number in the range min-max (inclusive) which
 is a multiple of mult.  min and max may be any integer, but mult must be
 a positive integer greater than 0.  errp is a char ** which is used to detect
-error conditions.  If errp is not NULL, *errp will be set to point to an 
+error conditions.  If errp is not NULL, *errp will be set to point to an
 error message.  If errp is NULL, error conditions cannot be detected by the
 caller.  If mult is 1 (the most common case), there are no possible error
 conditions, and the return value is guaranteed to be valid.
@@ -63,7 +63,7 @@
 If mask is zero, zero is returned.
 
 random_range() functions uses lrand48() internally.  If the range is bigger
-than will fit in a 32 bit long (2G), lrand48() with a 
+than will fit in a 32 bit long (2G), lrand48() with a
 a internal recursive algorithm to produce a random number.
 
 .SH EXAMPLES
@@ -107,7 +107,7 @@
 On CRAY systems, random_range(), random_rangel(), random_rangell()
 all have the 64 bit limit since int, long and long long are always 64 bits.
 
-On IRIX systems, random_range() can only produce a 32 number. 
+On IRIX systems, random_range() can only produce a 32 number.
 random_rangel() when compiled as a 32 bit object is still limited to 32 bit
 number.  random_rangell() can be used to return a value bigger than 32 bits
 even when compiled as a 32 bit object.
diff --git a/doc/man3/random_range_seed.3 b/doc/man3/random_range_seed.3
index 6b4d131..8c76c2a 100644
--- a/doc/man3/random_range_seed.3
+++ b/doc/man3/random_range_seed.3
@@ -2,33 +2,33 @@
 .\" $Id: random_range_seed.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH random_range 3 07/25/2000 "Linux Test Project"
@@ -50,7 +50,7 @@
 random_range() chooses a random number in the range min-max (inclusive) which
 is a multiple of mult.  min and max may be any integer, but mult must be
 a positive integer greater than 0.  errp is a char ** which is used to detect
-error conditions.  If errp is not NULL, *errp will be set to point to an 
+error conditions.  If errp is not NULL, *errp will be set to point to an
 error message.  If errp is NULL, error conditions cannot be detected by the
 caller.  If mult is 1 (the most common case), there are no possible error
 conditions, and the return value is guaranteed to be valid.
@@ -63,7 +63,7 @@
 If mask is zero, zero is returned.
 
 random_range() functions uses lrand48() internally.  If the range is bigger
-than will fit in a 32 bit long (2G), lrand48() with a 
+than will fit in a 32 bit long (2G), lrand48() with a
 a internal recursive algorithm to produce a random number.
 
 .SH EXAMPLES
@@ -107,7 +107,7 @@
 On CRAY systems, random_range(), random_rangel(), random_rangell()
 all have the 64 bit limit since int, long and long long are always 64 bits.
 
-On IRIX systems, random_range() can only produce a 32 number. 
+On IRIX systems, random_range() can only produce a 32 number.
 random_rangel() when compiled as a 32 bit object is still limited to 32 bit
 number.  random_rangell() can be used to return a value bigger than 32 bits
 even when compiled as a 32 bit object.
diff --git a/doc/man3/rmobj.3 b/doc/man3/rmobj.3
index da8be36..84e304e 100644
--- a/doc/man3/rmobj.3
+++ b/doc/man3/rmobj.3
@@ -2,33 +2,33 @@
 .\" $Id: rmobj.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH RMOBJ 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/string_to_tokens.3 b/doc/man3/string_to_tokens.3
index 9d864ff..6eb0677 100644
--- a/doc/man3/string_to_tokens.3
+++ b/doc/man3/string_to_tokens.3
@@ -2,33 +2,33 @@
 .\" $Id: string_to_tokens.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH STRING_TO_TOKEN 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/tst_res.3 b/doc/man3/tst_res.3
index 98e92e7..719a6b0 100644
--- a/doc/man3/tst_res.3
+++ b/doc/man3/tst_res.3
@@ -2,33 +2,33 @@
 .\" $Id: tst_res.3,v 1.2 2008/06/10 05:52:02 subrata_modak Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH TST_RES 3 01/21/2011 "Linux Test Project"
@@ -116,7 +116,7 @@
 \fBNOTE:\fR These routines use static space internally to hold the
 expanded message.  The maximum size allowed for an expanded message is
 2048 bytes.
-.TP 10   
+.TP 10
 .I func
 pointer to a function which performs either the cleanup necessary prior to
 exiting the test or some function executed at the end of each iteration of a
diff --git a/doc/man3/tst_set_error.3 b/doc/man3/tst_set_error.3
index afe7f0c..d5aa132 100644
--- a/doc/man3/tst_set_error.3
+++ b/doc/man3/tst_set_error.3
@@ -2,33 +2,33 @@
 .\" $Id: tst_set_error.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH TST_SET_ERROR 3 07/25/2000 "Linux Test Project"
@@ -55,7 +55,7 @@
 
 .SH DESCRIPTION
 These two functions provide a simple interface to allow
-a programmer set and clear the global variables in 
+a programmer set and clear the global variables in
 \fBTst_error\fR defined in \fItest_error.c\fR.
 
 The purpose of these global variables to provide space
@@ -68,11 +68,11 @@
 like:
 
 .nf
-    int  te_line;               
+    int  te_line;
 				/* line where last error was reported. */
 				/* Use "__LINE__" and let compiler do */
 				/* the rest */
-    int  te_level;              
+    int  te_level;
 				/* If set, will prevent current stored */
 				/* error to not be overwritten */
     char te_func[TST_ERR_FUNC_SIZE+1];
@@ -145,6 +145,6 @@
 
 .SH BUGS
 There is no space overwrite preventions on the \fBTst_error.te_mesg\fR field.
-If \fIfmt\fR parameter of \fBtst_set_error\fR expands to a string 
+If \fIfmt\fR parameter of \fBtst_set_error\fR expands to a string
 larger than the space in \fBTst_error.te_mesg\fR, you will start overwriting
 memory.  This field contains 1024 bytes, which is fairly big error message.
diff --git a/doc/man3/tst_sig.3 b/doc/man3/tst_sig.3
index 81afe19..d96ee99 100644
--- a/doc/man3/tst_sig.3
+++ b/doc/man3/tst_sig.3
@@ -2,33 +2,33 @@
 .\" $Id: tst_sig.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH TST_SIG 3 07/25/2000 "Linux Test Project"
@@ -82,7 +82,7 @@
 as the \fIhandler\fR argument.  Upon receipt of an unexpected
 signal, the \fIdefault handler\fR will generate
 \fItst_res\fR(3) messages for all test results that had
-not been completed at the time of the signal, execute the 
+not been completed at the time of the signal, execute the
 \fIcleanup\fR routine, if provided, and call \fItst_exit\fR.
 Note: if the \fIdefault handler\fR is used, the variables
 \fBTCID\fR and \fBTst_count\fR must be defined and available to
@@ -127,7 +127,7 @@
 	 * set up for unexpected signals:
 	 *		\fIfork\fR() system calls will be executed during the test run
 	 *		use user-defined signal handler
-	 *		use cleanup 
+	 *		use cleanup
 	 */
 	tst_sig(FORK, handler, cleanup);
 
diff --git a/doc/man3/tst_tmpdir.3 b/doc/man3/tst_tmpdir.3
index 94656b1..ae903a3 100644
--- a/doc/man3/tst_tmpdir.3
+++ b/doc/man3/tst_tmpdir.3
@@ -2,33 +2,33 @@
 .\" $Id: tst_tmpdir.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH TST_TMPDIR 3 07/25/2000 "Linux Test Project"
diff --git a/doc/man3/usctest.3 b/doc/man3/usctest.3
index b90509e..4cae704 100644
--- a/doc/man3/usctest.3
+++ b/doc/man3/usctest.3
@@ -1,33 +1,33 @@
 .\" $Id: usctest.3,v 1.2 2000/08/31 18:40:28 nstraz Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH USCTEST 3 01/21/2011 "Linux Test Project"
@@ -43,9 +43,9 @@
 \fBMacros\fR
 .in +1
 .br
-\fBTEST_PAUSE\fR 
+\fBTEST_PAUSE\fR
 .br
-\fBTEST_PAUSEF(\fIhand\fB)\fR 
+\fBTEST_PAUSEF(\fIhand\fB)\fR
 .br
 \fBTEST(\fIsyscall\fB)\fR
 .br
@@ -79,21 +79,21 @@
 .sp
 The \fBTEST_PAUSEF(\fIhand\fB)\fR macro checks if the global variable STD_PAUSE is set.  If so, it
 pauses for a SIGUSR1 before continuing execution.  The \fIhand\fR argument is a function to be used
-to handle the SIGUSR1 signal when it is received.  
+to handle the SIGUSR1 signal when it is received.
 After the signal is processed, the previous action is replaced for SIGUSR1.
 .sp
-The \fBTEST(\fIsyscall\fB)\fR macro executes (\fIsyscall\fR) and times its execution. 
+The \fBTEST(\fIsyscall\fB)\fR macro executes (\fIsyscall\fR) and times its execution.
 It saves the max time, min time, accumulated time, and
 execution count, if STD_TIMING_ON is set.
 .sp
-.\"The\fBTEST_CALLER(\fIsyscall\fB, \fIpid\fB)\fR macro executes (\fIsyscall\fR) and times its execution. 
+.\"The\fBTEST_CALLER(\fIsyscall\fB, \fIpid\fB)\fR macro executes (\fIsyscall\fR) and times its execution.
 .\"It saves the max time, min time, accumulated time, and
 .\"execution count, if STD_TIMING_ON is set and if \fIpid\fR is equal to the current pid.
 .\".sp
 The \fBTEST_VOID(\fIsyscall\fB)\fR macro works exactly the same as the \fBTEST()\fR
 macro except that it does NOT set the global \fBTEST_RETURN\fR.  It is intended
 to be used with system calls that do not have a return value.
-.sp 
+.sp
 The \fBTEST_CLEANUP\fR macro prints timing statistics,
 accumulated through the TEST macro, if STD_TIMING_ON is set.  Also, prints the \fBerrno\fR return
 counts as logged by the \fBTEST_ERROR_LOG\fR macro, if STD_ERR_LOG is set.  \fBTEST_CLEANUP\fR uses
@@ -148,7 +148,7 @@
 
 	for (lc=0; TEST_LOOPING(lc); lc++) {
 		TEST(open("file", O_RDWR))
-	
+
 		if (TEST_RETURN == -1) {
 			TEST_ERROR_LOG(TEST_ERRNO)
 			/* BREAK test case, or whatever... */
diff --git a/doc/man3/write_log.3 b/doc/man3/write_log.3
index c5ceffb..7783226 100644
--- a/doc/man3/write_log.3
+++ b/doc/man3/write_log.3
@@ -2,33 +2,33 @@
 .\" $Id: write_log.3,v 1.1 2000/07/27 16:59:03 alaffin Exp $
 .\"
 .\" Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
-.\" 
+.\"
 .\" This program is free software; you can redistribute it and/or modify it
 .\" under the terms of version 2 of the GNU General Public License as
 .\" published by the Free Software Foundation.
-.\" 
+.\"
 .\" This program is distributed in the hope that it would be useful, but
 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-.\" 
+.\"
 .\" Further, this software is distributed without any warranty that it is
 .\" free of the rightful claim of any third person regarding infringement
 .\" or the like.  Any license provided herein, whether implied or
 .\" otherwise, applies only to this software file.  Patent licenses, if
 .\" any, provided herein do not apply to combinations of this program with
 .\" other software, or any other product whatsoever.
-.\" 
+.\"
 .\" You should have received a copy of the GNU General Public License along
 .\" with this program; if not, write the Free Software Foundation, Inc., 59
 .\" Temple Place - Suite 330, Boston MA 02111-1307, USA.
-.\" 
+.\"
 .\" Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
 .\" Mountain View, CA  94043, or:
-.\" 
-.\" http://www.sgi.com 
-.\" 
-.\" For further information regarding this notice, see: 
-.\" 
+.\"
+.\" http://www.sgi.com
+.\"
+.\" For further information regarding this notice, see:
+.\"
 .\" http://oss.sgi.com/projects/GenInfo/NoticeExplan/
 .\"
 .TH WRITE_LOG 3 07/25/2000 "Linux Test Project"
@@ -50,12 +50,12 @@
 The write_log package is a set of routines for creating a history file
 of write operations done to a set of files.
 
-It is assumed that the actual pattern written to the file will be 
+It is assumed that the actual pattern written to the file will be
 repeated occurrences of a string whose length is no greater than
 WLOG_MAX_PATTERN.  See the pattern(3) man
 page for routines to conveniently generate buffers of this kind.
 
-wlog_open() initializes the history file contained in wfile->w_file, and 
+wlog_open() initializes the history file contained in wfile->w_file, and
 fills in the wfile structure.  If trunc is non-zero, and existing history
 file by the same name will be truncated.  If no history file exists, it
 will be created with the specified mode.
@@ -71,7 +71,7 @@
 at the indicated offset.  This, along with the w_done field in the wlog_rec
 structure, provide a mechanism for 'pre-logging' a write, doing the write
 operation, and then overlaying the original record with the w_done flag
-set to 1.  This is useful for async writes which may not complete in a 
+set to 1.  This is useful for async writes which may not complete in a
 timely manner.  It is also useful for seeing which write operations were
 pending at the time of a system crash - the ones whose w_done flag is 0 have
 not yet been verified as complete.
@@ -100,7 +100,7 @@
 writes to the same area of a file.  Note that the entire file
 does not need to be locked, only the portion being written to.
 If the calling program can guarantee that there will never be more
-than 1 process writing to the same area of a file at the same time, 
+than 1 process writing to the same area of a file at the same time,
 locking is not necessary.  (Note:  UNICOS Shared File Systems do not support
 record locking.  The whole file is silently locked.)