Commit Graph

17 Commits

Author SHA1 Message Date
Ed Schouten
257edbd36a Add missing static keywords to tcopy(1) 2011-11-06 08:17:29 +00:00
Joel Dahl
da52b4caaf Remove the advertising clause from UCB copyrighted files in usr.bin. This
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
2010-12-11 08:32:16 +00:00
Gavin Atkinson
ddcdd26ef6 Make WARNS=6 safe, mainly by casting to intmax_t and printing with %ju
where needed.  Also, fix bad indentation on lines already affected by the
above changes.

Tested with:	make universe
2010-06-28 12:00:20 +00:00
David Malone
77986b3db1 1) Mark usage as dead2.
2) Deregister.
3) New style function definitions.

Some WARNS still remain here - some printf format warning on some
arches and the compiler can't see that a variable should always be
initialised.
2010-01-05 21:09:59 +00:00
Mike Barcroft
0ec63e60db Include <stdint.h> for definition of intmax_t and/or uintmax_t. 2002-03-25 05:23:45 +00:00
Warner Losh
3f330d7d1a remove __P 2002-03-22 01:42:45 +00:00
Mark Murray
5584ad32ad Fix the time of an intmax_t calculation; it is unsigned. Also print
it with the correct formatting (%ju, not %lld). GCC's -Wformat does
not understand this, so turn on NO_WERROR.
2001-12-12 22:46:56 +00:00
Mark Murray
ed155aba4a WARNS=2 fixes. use __FBSDID(). 2001-12-11 23:44:53 +00:00
Peter Wemm
668f24deae Initialize msg in main() 2001-08-13 21:58:16 +00:00
David E. O'Brien
8454c72c24 Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,
and remove leading `r'(aw) from it.
2001-03-08 09:04:40 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Bill Fumerola
9ef5c48bef Clean up some ambiguous nested if/elses. 1999-07-04 17:26:16 +00:00
Poul-Henning Kamp
4b9c5aabdd Tcopy uses 32 bit unsigned to accumulate a count of bytes read/written.
That doesn't work well for tapes over 4G.

I use tcopy a lot to write images of a tape to tape as tape to tape
copying is terribly slow. Slower than it should be. Quickly found out
tcopy can not rewind a file when doing copy/verify.

PR:		11386
Submitted by:	David Kelly dkelly@hiwaay.net
Reviewed by:	phk
1999-04-30 13:13:32 +00:00
Philippe Charnier
54d183e244 Use err(3). Correct usage string. Change default tape to /dev/rst0. 1997-08-14 06:41:00 +00:00
Warner Losh
1c8af87873 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Poul-Henning Kamp
1fccc1f2ff Make the counters unsigned longs so that tapes don't contain negative
number of bytes.
1995-12-31 09:00:24 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00