aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/uuencode/uuencode.c
Commit message (Collapse)AuthorAgeFilesLines
* bintrans: move files to a new directoryPiotr Pawel Stefaniak2022-04-181-235/+0
| | | | And reflect the change in various places.
* Modularize uuencode and uudecode by wrapping them in bintrans.cPiotr Pawel Stefaniak2022-04-181-1/+3
| | | | | | | | | | | | | | | | | | | | | 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
* uu{encode,decode}: improve stylePiotr Pawel Stefaniak2022-03-281-8/+9
|
* Make outfile constant.Xin LI2018-11-121-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=340359
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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
* Use nitems() from sys/param.h.Marcelo Araujo2017-03-101-1/+1
| | | | | | | | | Reviewed by: ngie MFC after: 3 weeks. Differential Revision: https://reviews.freebsd.org/D9936 Notes: svn path=/head/; revision=314993
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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
* Enhance uuencode with a -r option to produce raw output.Pietro Cerutti2016-04-071-5/+13
| | | | | | | | | | | | | | 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
* Add missing static keywords to uuencode(1)Ed Schouten2011-11-061-7/+7
| | | | Notes: svn path=/head/; revision=227197
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-111-4/+0
| | | | | | | | | | | | 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
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-1/+1
| | | | | | | | | | | | 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
* Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].David E. O'Brien2003-05-031-2/+1
| | | | Notes: svn path=/head/; revision=114594
* Improve the way base64 mode is enabled based on the program name,Tony Finch2002-10-201-1/+2
| | | | | | | so that it works when the path to b64encode is used to run it. Notes: svn path=/head/; revision=105519
* Synch usage() and manpage for b64encode/b64decode.Juli Mallett2002-05-191-1/+3
| | | | | | | Make uudecode's usage more like that of other programs. Notes: svn path=/head/; revision=96943
* Add b64decode & b64encode as synonyms for uudecode and uuencode -m,Juli Mallett2002-05-191-0/+3
| | | | | | | | | respectively, for convenience when encoding or decoding base64 files. As requested by various users. Notes: svn path=/head/; revision=96942
* Group the output chunks differently, to try to match BSD/OS output. SwitchJuli Mallett2002-05-171-3/+6
| | | | | | | | | | 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
* Finish converting the rest of the function declaration and prototypesMike Barcroft2002-05-121-7/+8
| | | | | | | to ANSI C. Use new source ID scheme. Notes: svn path=/head/; revision=96438
* unbreak build:Alfred Perlstein2002-05-111-3/+1
| | | | | | | | K&R style main() makes gcc emit a warning about missing prototypes so switch to ANSI. Notes: svn path=/head/; revision=96386
* remove __PWarner Losh2002-03-221-3/+3
| | | | Notes: svn path=/head/; revision=92922
* Initialize `output' in a more proper location.Mike Barcroft2002-03-051-2/+3
| | | | | | | Submitted by: roam Notes: svn path=/head/; revision=91676
* Add base64 support to uuencode(1) and uudecode(1), as specified by SUSv3.Juli Mallett2002-03-051-19/+79
| | | | | | | | | | | 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
* Pad input with null characters if it is not a multiple of 3.Ruslan Ermilov2001-10-091-0/+6
| | | | | | | | PR: bin/31156 MFC after: 1 week Notes: svn path=/head/; revision=84715
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78718
* Satisfy gcc's parenthetical needs and clamp down with WANRS=2.Dima Dorfman2001-06-171-2/+2
| | | | | | | Reviewed by: md5(1) Notes: svn path=/head/; revision=78387
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Use err(3).Philippe Charnier1997-08-221-18/+19
| | | | Notes: svn path=/head/; revision=28564
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+150
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590