summaryrefslogtreecommitdiff
path: root/usr.bin/uuencode/uuencode.c
AgeCommit message (Collapse)Author
2022-04-18bintrans: move files to a new directoryPiotr Pawel Stefaniak
And reflect the change in various places.
2022-04-18Modularize uuencode and uudecode by wrapping them in bintrans.cPiotr Pawel Stefaniak
The program will be installed as bintrans, uuencode, uudecode, b64encode, and b64decode and will be responsible for running the coders according to their historical behavior. Additionally, bintrans will be able to take a parameter designating the coder and accept all its options in this form: bintrans <coder> [options] and the behavior should be the same as if <coder> [options] was invoked. This has the advantage that adding coders won't require installing them as binaries. Move uudecode files to uuencode since the latter is the one that provides the manual page. Reviewed by: delphij (previous version) Differential Revision: https://reviews.freebsd.org/D32943
2022-03-28uu{encode,decode}: improve stylePiotr Pawel Stefaniak
2018-11-12Make outfile constant.Xin LI
MFC after: 2 weeks Notes: svn path=/head/; revision=340359
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
2017-03-10Use nitems() from sys/param.h.Marcelo Araujo
Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9936 Notes: svn path=/head/; revision=314993
2017-02-28Renumber copyright clause 4Warner Losh
Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
2016-04-07Enhance uuencode with a -r option to produce raw output.Pietro Cerutti
This matches with uudecode's -r option to decode raw data without initial and final framing lines. $ echo Test | uuencode -mr - | uudecode -mr Test Approved by: cognet MFC after: 1 week Notes: svn path=/head/; revision=297678
2011-11-06Add missing static keywords to uuencode(1)Ed Schouten
Notes: svn path=/head/; revision=227197
2010-12-11Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl
is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
2004-01-22Userland signed char fixes for PPC build. Problems were using a charPeter Grehan
return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
2003-05-03Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien
Notes: svn path=/head/; revision=114594
2002-10-20Improve the way base64 mode is enabled based on the program name,Tony Finch
so that it works when the path to b64encode is used to run it. Notes: svn path=/head/; revision=105519
2002-05-19Synch usage() and manpage for b64encode/b64decode.Juli Mallett
Make uudecode's usage more like that of other programs. Notes: svn path=/head/; revision=96943
2002-05-19Add b64decode & b64encode as synonyms for uudecode and uuencode -m,Juli Mallett
respectively, for convenience when encoding or decoding base64 files. As requested by various users. Notes: svn path=/head/; revision=96942
2002-05-17Group the output chunks differently, to try to match BSD/OS output. SwitchJuli Mallett
to using arithmatic to determine buffer sizes to encode into. Diane Bruce pointed out to me that BSD/OS did MIME too, so I want to match their output, too, since my decision of 8 output groups was wholly arbitrary. Notes: svn path=/head/; revision=96810
2002-05-12Finish converting the rest of the function declaration and prototypesMike Barcroft
to ANSI C. Use new source ID scheme. Notes: svn path=/head/; revision=96438
2002-05-11unbreak build:Alfred Perlstein
K&R style main() makes gcc emit a warning about missing prototypes so switch to ANSI. Notes: svn path=/head/; revision=96386
2002-03-22remove __PWarner Losh
Notes: svn path=/head/; revision=92922
2002-03-05Initialize `output' in a more proper location.Mike Barcroft
Submitted by: roam Notes: svn path=/head/; revision=91676
2002-03-05Add base64 support to uuencode(1) and uudecode(1), as specified by SUSv3.Juli Mallett
Add `-o' option to uuencode(1) to pipe the uuencoded output to an arbitrary file, instead of just stdout. Reviewed by: -standards, mike Approved by: mike Notes: svn path=/head/; revision=91661
2001-10-09Pad input with null characters if it is not a multiple of 3.Ruslan Ermilov
PR: bin/31156 MFC after: 1 week Notes: svn path=/head/; revision=84715
2001-06-24Include missing header files which define functions for which gcc hasDima Dorfman
builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78718
2001-06-17Satisfy gcc's parenthetical needs and clamp down with WANRS=2.Dima Dorfman
Reviewed by: md5(1) Notes: svn path=/head/; revision=78387
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50477
1997-08-22Use err(3).Philippe Charnier
Notes: svn path=/head/; revision=28564
1997-03-29compare return value from getopt against -1 rather than EOF, per the finalWarner Losh
posix standard on the topic. Notes: svn path=/head/; revision=24360
1994-05-27BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590