History log of /freebsd-10.0-release/usr.bin/tcopy/tcopy.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 227186 06-Nov-2011 ed

Add missing static keywords to tcopy(1)


# 216370 11-Dec-2010 joel

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


# 209570 28-Jun-2010 gavin

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


# 201612 05-Jan-2010 dwmalone

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.


# 93123 25-Mar-2002 mike

Include <stdint.h> for definition of intmax_t and/or uintmax_t.


# 92922 21-Mar-2002 imp

remove __P


# 87763 12-Dec-2001 markm

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.


# 87709 11-Dec-2001 markm

WARNS=2 fixes. use __FBSDID().


# 81607 13-Aug-2001 peter

Initialize msg in main()


# 73986 08-Mar-2001 obrien

Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,
and remove leading `r'(aw) from it.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


# 46203 30-Apr-1999 phk

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


# 28198 14-Aug-1997 charnier

Use err(3). Correct usage string. Change default tape to /dev/rst0.


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 13127 31-Dec-1995 phk

Make the counters unsigned longs so that tapes don't contain negative
number of bytes.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources