Audit uuencode(1)
Style cleanup, Manpage refactoring.
This commit is contained in:
parent
1b71559431
commit
a20a9350db
2
README
2
README
@ -85,7 +85,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
|
|||||||
=*| uniq yes none
|
=*| uniq yes none
|
||||||
=*| unlink yes none
|
=*| unlink yes none
|
||||||
=*| uudecode yes none
|
=*| uudecode yes none
|
||||||
=* uuencode yes none
|
=*| uuencode yes none
|
||||||
#* wc yes none
|
#* wc yes none
|
||||||
= xargs no -I, -L, -p, -s, -t, -x
|
= xargs no -I, -L, -p, -s, -t, -x
|
||||||
=*| yes non-posix none
|
=*| yes non-posix none
|
||||||
|
11
uuencode.1
11
uuencode.1
@ -1,4 +1,4 @@
|
|||||||
.Dd February 13, 2015
|
.Dd March 18, 2015
|
||||||
.Dt UUENCODE 1
|
.Dt UUENCODE 1
|
||||||
.Os sbase
|
.Os sbase
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -13,11 +13,16 @@
|
|||||||
.Nm
|
.Nm
|
||||||
reads
|
reads
|
||||||
.Ar file
|
.Ar file
|
||||||
(or by default, the standard input) and writes an encoded version
|
and writes an encoded version to stdout.
|
||||||
to the standard output. The encoding uses only printing ASCII characters and
|
The encoding uses only printing ASCII characters and
|
||||||
includes the mode of the file and the operand
|
includes the mode of the file and the operand
|
||||||
.Ar name
|
.Ar name
|
||||||
for use by uudecode.
|
for use by uudecode.
|
||||||
|
If no
|
||||||
|
.Ar name
|
||||||
|
is given,
|
||||||
|
.Nm
|
||||||
|
reads from stdin.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Fl m
|
.It Fl m
|
||||||
|
@ -18,6 +18,7 @@ b64e(unsigned char b[2])
|
|||||||
o = (o << 8) | b64et[p & 0x3f]; p >>= 6;
|
o = (o << 8) | b64et[p & 0x3f]; p >>= 6;
|
||||||
o = (o << 8) | b64et[p & 0x3f]; p >>= 6;
|
o = (o << 8) | b64et[p & 0x3f]; p >>= 6;
|
||||||
o = (o << 8) | b64et[p & 0x3f];
|
o = (o << 8) | b64et[p & 0x3f];
|
||||||
|
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +111,7 @@ main(int argc, char *argv[])
|
|||||||
usage();
|
usage();
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
if (argc == 0 || argc > 2)
|
if (!argc || argc > 2)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
@ -127,5 +128,6 @@ main(int argc, char *argv[])
|
|||||||
uuencode(fp, argv[1], argv[0]);
|
uuencode(fp, argv[1], argv[0]);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user