Commit Graph

28 Commits

Author SHA1 Message Date
apb 325671c8e2 Support both "-" and "/dev/stdout" as references to standard
output.  Add comments about what POSIX says regarding stdout.
Also add comments about what POSIX says regarding file mode.
---
2013-01-28 19:50:30 +00:00
apb 9a73b122cd * Add "-o outfile" option. This is required by POSIX.1-2008.
* Recognise "/dev/stdout" as a magic filename, both when embedded in the
  data stream and when specified via "-o".  This is also required by
  POSIX.1-2008.
* Reimplement "-p" as an alias for "-o /dev/stdout".

Thanks to Steffen Daode Nurpmeso for drawing my attention to the problems.
2013-01-28 16:06:42 +00:00
joerg 4d7311244b static + __dead 2011-09-06 18:44:26 +00:00
lukem 14b71bc9c5 Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
dholland 2ef1dd5f7a Sync usage message with man page. PR 40063. 2008-11-29 22:36:57 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
dbj f3b496ec9b implement HOST_CPPFLAGS+= -DNO_BASE64
this fixes cross compiling
2006-09-24 21:43:14 +00:00
elad 3b4778f8b2 PR/33319: Seebs: base64 is annoying
Thanks to Matt Fleming for implementing a -m switch (base64 mode) for
both uuencode(1) and uudecode(1)! Man-pages updated as well.
2006-09-24 15:32:48 +00:00
wiz 05da4551bd de-__P(), ansify, use {g,s}etprogname. 2005-06-29 20:34:48 +00:00
dsl df38245cee Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 8e32c24c2e correct misuse of warnx, which leads to non-informative error
message when we specify nonexisting file as argument, like:

% uudecode hoge
uudecode: hoge
2002-06-29 17:58:50 +00:00
itojun f51456c273 err/errx/warn/warnx do not need \n at the end 2002-06-11 06:06:18 +00:00
tv c187f70e67 Make this compilable as a host tool. 2002-01-31 19:31:31 +00:00
cgd 676318637d revert usage string to be like it was, but with '[-p] ' added. the new
spacing was bogus, and didn't match other commands' usage strings.
The change really should have been looked at more carefully...
1999-03-23 05:59:09 +00:00
cgd aa82d7442e fix bug introduced in rev 1.11: freopen 'fn' (as before), not 'buf' (as
changed in rev 1.11).  The former is the file name on the 'begin' line,
thel atter is the whole 'begin' line.  This could never have worked;
it should have been better tested.
Bug pointed out by Andrew Gillham <gillhaa@ghost.whirlpool.com>.
1999-03-23 05:55:40 +00:00
kleink 5c39723cec Add a -p option to uudecode(1), which causes it to write decoded data to
stdout; based on PR bin/7183 from SUNAGAWA Keiki.
1999-03-18 23:57:11 +00:00
hubertf 8139c5026d Allow filename at "begin" line to contain spaces. Patch submitted by
John F. Woods <jfw@jfwhome.funhouse.com> in PR 6854.
1999-01-20 15:59:00 +00:00
christos 86fc76a0a6 remove local decl of errno. 1998-12-19 23:36:07 +00:00
lukem 201e4f3805 WARNSify, deprecate register, getopt returns -1, use ANSI string.h funcs 1997-10-20 02:46:37 +00:00
pk b55c3729fe NULL => 0 (Arne Juul; PR#3629) 1997-05-17 20:09:26 +00:00
jtc 373b32ea19 fix typo 1994-11-17 07:40:43 +00:00
jtc 88d0435bc7 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-11-17 07:39:34 +00:00
jtc 0605e44a71 Well behaved POSIX.2 utilities always call setlocale() and getopt(). 1993-11-09 01:46:38 +00:00
jtc f7c6bf575a Minor tweaks: including header files to bring prototypes into scope,
explicitly declaring function return values, etc. to make gcc -Wall
shut up.
1993-08-27 22:30:10 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00