freebsd-dev/bin/cp
Bruce Evans 40fc4ee2de Don't use mmap() for non-regular files, since st_size is only meaningful
for regular files.  This fixes recent breakage of cp'ing from /dev/zero.
/dev/zero doesn't support mmap(), but the device driver mmap routines are
not called for mapping 0 bytes, so the error was not detected.  mmap()
can't even be used for cp'ing special files that support mmap(), since
there is general way to determine the file size.
1998-11-18 11:47:45 +00:00
..
cp.1 Correct a grammatical nit and remove ambiguity about the effect of 1998-10-13 08:52:29 +00:00
cp.c Print correct error message if we copy an unreadable directory. 1998-06-09 13:42:51 +00:00
extern.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Makefile Use mmap for file coping. 5-10% faster than the read system call. 1998-11-14 23:43:11 +00:00
utils.c Don't use mmap() for non-regular files, since st_size is only meaningful 1998-11-18 11:47:45 +00:00