[hackers] [sbase] Tar compiles on BSD, thanks Roberto E. Vargas Caballero. Also remove tons of trailing whitespace. || David Galos
commit 9f8deb4b23e9ec4957692295b06060cc7cf85bf9
Author: David Galos <galosd83_AT_students.rowan.edu>
Date: Sat Jul 20 01:27:42 2013 -0400
Tar compiles on BSD, thanks Roberto E. Vargas Caballero. Also remove tons of trailing whitespace.
diff --git a/LICENSE b/LICENSE
index 8f1caaf..73c7630 100644
--- a/LICENSE
+++ b/LICENSE
_AT_@ -9,8 +9,8 @@ MIT/X Consortium License
© 2011 Random832 <random832_AT_fastmail.us>
© 2012 William Haddon <william_AT_haddonthethird.net>
© 2012 Kurt H. Maier <khm_AT_intma.in>
-© 2012 Christoph Lohmann <20h_AT_r-36.net>
-© 2012 David Galos <galosd83_AT_students.rowan.edu>
+© 2012 Christoph Lohmann <20h_AT_r-36.net>
+© 2012 David Galos <galosd83_AT_students.rowan.edu>
© 2012 Robert Ransom <rransom.8774_AT_gmail.com>
© 2013 Jakob Kramer <jakob.kramer_AT_gmx.de>
diff --git a/chgrp.1 b/chgrp.1
index 07a33a6..77bc69d 100644
--- a/chgrp.1
+++ b/chgrp.1
_AT_@ -8,13 +8,13 @@ chgrp \- change the file group ownership
.I file...
.SH DESCRIPTION
.B chgrp
-sets the group id of the files specified by
+sets the group id of the files specified by
.IR file
to the gid of the group named
.IR group.
-If the
+If the
.IR R
-flag is specified, this process is recursively applied to
+flag is specified, this process is recursively applied to
everything in
.IR file.
diff --git a/chroot.1 b/chroot.1
index 48cbe19..a556b95 100644
--- a/chroot.1
+++ b/chroot.1
_AT_@ -9,15 +9,15 @@ chroot \- invoke a command with a different root directory
.SH DESCRIPTION
.B chroot
-runs
+runs
.IR command
-after changing the root directory to
+after changing the root directory to
.IR dir
with the
.B chroot
system call, and changing the working directory to the new root.
-If
+If
.IR command
is not specified, an interactive shell is started in the new root.
diff --git a/chroot.c b/chroot.c
index 3abab0f..39a91e4 100644
--- a/chroot.c
+++ b/chroot.c
_AT_@ -8,16 +8,16 @@ int
main(int argc, char **argv)
{
char *shell[] = {"/bin/sh", "-i", NULL};
-
+
if(getenv("SHELL"))
shell[0] = getenv("SHELL");
if(argc < 2)
usage();
-
+
if(chroot(argv[1]) == -1)
eprintf("chroot: '%s':", argv[1]);
-
+
if(chdir("/") == -1)
eprintf("chroot:");
_AT_@ -26,7 +26,7 @@ main(int argc, char **argv)
} else {
execvp(argv[2], argv+2);
}
-
+
eprintf("chroot: '%s':", argv[2]);
return 1;
}
diff --git a/chvt.1 b/chvt.1
index 13a9be3..c52082c 100644
--- a/chvt.1
+++ b/chvt.1
_AT_@ -6,6 +6,6 @@ chvt \- change foreground virtual terminal
.I N
.SH DESCRIPTION
.B chvt
-brings /dev/ttyN to the foreground. This has the
+brings /dev/ttyN to the foreground. This has the
same effect as Ctrl-Alt-FN.
diff --git a/cp.c b/cp.c
index 7bafc7a..7e18220 100644
--- a/cp.c
+++ b/cp.c
_AT_@ -9,7 +9,7 @@ int
main(int argc, char *argv[])
{
struct stat st;
-
+
ARGBEGIN {
case 'r':
cp_rflag = true;
_AT_@ -17,7 +17,7 @@ main(int argc, char *argv[])
default:
exit(EXIT_FAILURE);
} ARGEND;
-
+
if(argc > 2 && !(stat(argv[argc-1], &st) == 0 && S_ISDIR(st.st_mode)))
eprintf("%s: not a directory
", argv[argc-1]);
enmasse(argc, argv, cp);
diff --git a/env.1 b/env.1
index b77fb2f..ff40600 100644
--- a/env.1
+++ b/env.1
_AT_@ -4,23 +4,23 @@ env \- modify the environment, then print it or run a command.
.SH SYNOPSIS
.B env
.RB [ \-i ]
-.RB [ \-u
+.RB [ \-u
.IR name ]...
.RI [ name=value ]...
-.RI [ cmd
+.RI [ cmd
.RI [ arg ...]]
.SH DESCRIPTION
.B env
-removes part of the environment according to the flags, then adds or
+removes part of the environment according to the flags, then adds or
sets each variable specified by
-.IR name
+.IR name
to equal
.IR value .
-If
+If
.IR cmd
-is given, it is executed in this new environment; otherwise, the
+is given, it is executed in this new environment; otherwise, the
modified environment is printed to standard out.
.SH OPTIONS
diff --git a/env.c b/env.c
index ca497e9..fed0985 100644
--- a/env.c
+++ b/env.c
_AT_@ -33,7 +33,7 @@ main(int argc, char **argv)
}
while(environ && *environ)
- printf("%s
", *environ++);
+ printf("%s
", *environ++);
return 0;
}
diff --git a/mknod.1 b/mknod.1
index db71f2d..3c89b5b 100644
--- a/mknod.1
+++ b/mknod.1
_AT_@ -21,7 +21,7 @@ and minor number
.IR minor .
.IR type
-specifies what kind of special file will be created,
+specifies what kind of special file will be created,
and must be one of:
.TP
.BR u \ or\ c
_AT_@ -33,7 +33,7 @@ A block device.
.SH OPTIONS
.TP
.B \-m "mode"
-Set the mode of the new file based on the octal value of
+Set the mode of the new file based on the octal value of
.IR mode .
.SH SEE ALSO
diff --git a/nice.1 b/nice.1
index 0803461..c3ce1f0 100644
--- a/nice.1
+++ b/nice.1
_AT_@ -10,9 +10,9 @@ nice \- invoke a utility with an altered nice value
.B nice
invokes
.IR command
-with a nice value equal to the current nice value plus
-.IR inc,
+with a nice value equal to the current nice value plus
+.IR inc,
which defaults to 10 if unspecified.
.SH SEE ALSO
-.IR renice (1) nice (2)
+.IR renice (1) nice (2)
diff --git a/paste.1 b/paste.1
index 983b41f..fdfd973 100644
--- a/paste.1
+++ b/paste.1
_AT_@ -22,7 +22,7 @@ of
concatenates the corresponding lines of the input files.
The newline of every line except the line from the last input file is
replaced with a tab.
-If an end-of-file condition is detected on one or more input files,
+If an end-of-file condition is detected on one or more input files,
but not all input files,
.B paste
behaves as though empty lines were read from the files on which
_AT_@ -35,17 +35,17 @@ option is specified.
unless a backslash character appears in
.I list
each character is an element specifying a delimiter.
-If a backslash character appears, that and one or more characters
+If a backslash character appears, that and one or more characters
following it are an element specifying a delimiter.
-These elements specify one or more characters to use,
-instead of the default tab, to replace the newline of the input
+These elements specify one or more characters to use,
+instead of the default tab, to replace the newline of the input
lines. The elements in
.I list
-are used circularly; that is, when the
+are used circularly; that is, when the
.I list
is exhausted the first element from the list is reused.
When the
-.B \-s
+.B \-s
option is specified, the last newline in a file is not be modified.
The delimiter is reset to the first element of list after each file
operand is processed.
_AT_@ -69,9 +69,9 @@ If Any other characters follow the backslash, results are unspecified.
.RE
.TP
.B \-s
-concatenate all of the lines of each separate input file in command line
+concatenate all of the lines of each separate input file in command line
order. The newline of every line except the last line in each input file
-are replaced with the tab, unless otherwise specified by the
+are replaced with the tab, unless otherwise specified by the
.B \-d
option.
.PP
diff --git a/printenv.1 b/printenv.1
index 4b42e40..5f768f0 100644
--- a/printenv.1
+++ b/printenv.1
_AT_@ -7,12 +7,12 @@ printenv \- print out the environment or the values of specific variables.
.SH DESCRIPTION
.B printenv
prints the entire environment as key=values pairs when
-no
+no
.IR var
-is specified. Otherwise, in the order specified,
+is specified. Otherwise, in the order specified,
.B printenv
prints the value only of each
-.IR var,
+.IR var,
one per line.
.SH SEE ALSO
diff --git a/renice.1 b/renice.1
index 1a46e4c..bce23f5 100644
--- a/renice.1
+++ b/renice.1
_AT_@ -20,7 +20,7 @@ The
utility requests that the nice values of one or more
running processes be changed. By default, the applicable processes
are specified by their process IDs. When a process group is specified
-(see
+(see
.B -g
), the request applies to all processes in the process group. If the
requested increment would raise or lower the nice value of the
diff --git a/rmdir.1 b/rmdir.1
index db8411e..4688461 100644
--- a/rmdir.1
+++ b/rmdir.1
_AT_@ -18,8 +18,8 @@ will be successful, but
.nf
rmdir foo foo/bar
.fi
-will only succeed in removing
+will only succeed in removing
.BR foo/bar.
.SH SEE ALSO
-.IR rm (1) rmdir (2) unlink (1) unlink (2)
+.IR rm (1) rmdir (2) unlink (1) unlink (2)
diff --git a/seq.1 b/seq.1
index b66371d..fb53cda 100644
--- a/seq.1
+++ b/seq.1
_AT_@ -2,7 +2,7 @@
.SH NAME
seq \- print a sequence of numbers
.SH SYNOPSIS
-.B seq
+.B seq
.RB [ \-w ]
.RB [ \-f
.IR fmt ]
_AT_@ -12,8 +12,8 @@ seq \- print a sequence of numbers
.RI [ step ]]
.IR end
.SH DESCRIPTION
-.B seq
-will print a sequence of numbers from
+.B seq
+will print a sequence of numbers from
.I start
(default 1) to
.IR end ,
diff --git a/split.1 b/split.1
index e615168..f1a0f74 100644
--- a/split.1
+++ b/split.1
_AT_@ -4,18 +4,18 @@ split \- split up a file
.SH SYNOPSIS
.B split
.RB [ \-d ]
-.RB [ \-a
+.RB [ \-a
.IR len ]
-.RB [ \-b
+.RB [ \-b
.RI [ bytes [k|m|g]]]
-.RB [ \-l
+.RB [ \-l
.RI [ lines ]]
-.RI [ input
+.RI [ input
.RI [ prefix ]]
.SH DESCRIPTION
.B split
-Reads a file, splitting it into smaller files, every
+Reads a file, splitting it into smaller files, every
.IR bytes
bytes
or
_AT_@ -23,9 +23,9 @@ or
lines. If
.B split
runs out of filenames before all the data can be written, it stops at the
-last valid filename, leaving all the written data on the disk.
+last valid filename, leaving all the written data on the disk.
-The
+The
.IR b
and
.IR l
_AT_@ -38,19 +38,19 @@ Use decimal suffixes rather than alphabetical.
.TP
.B \-a "len"
-Set the suffix length to
+Set the suffix length to
.IR len
characters long.
.TP
.B \-b [bytes[k|m|g]]
-Start a new file every
+Start a new file every
.IR bytes
bytes. The units k, m, and g are case insensitive, and powers of 2, not 10.
.TP
.B \-l [lines]
-Start a new file every
+Start a new file every
.IR lines
lines.
diff --git a/split.c b/split.c
index 87e1099..cf22125 100644
--- a/split.c
+++ b/split.c
_AT_@ -12,7 +12,7 @@ static void usage(void);
static int base = 26, start = 'a';
-int
+int
main(int argc, char **argv)
{
int plen, slen = 2;
_AT_@ -36,7 +36,7 @@ main(int argc, char **argv)
tmp = ARGF();
if(tmp == NULL)
break;
-
+
size = strtoull(tmp, &end, 10);
if(*end == '
Received on Sat Jul 20 2013 - 07:27:36 CEST
This archive was generated by hypermail 2.3.0
: Sat Jul 20 2013 - 07:36:20 CEST