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
..
1998-07-27 21:31:19 +00:00
1998-10-03 16:29:59 +00:00
1998-05-13 07:39:11 +00:00
1998-05-13 07:39:11 +00:00
1998-05-13 07:43:56 +00:00
1998-05-13 07:47:35 +00:00
1998-05-15 06:19:05 +00:00
1998-05-15 06:30:58 +00:00
1998-05-18 06:37:35 +00:00
1998-05-18 06:40:56 +00:00
1998-05-18 06:51:59 +00:00
1998-06-28 18:08:54 +00:00
1998-09-07 16:59:05 +00:00
1998-08-30 20:22:15 +00:00
1997-02-22 14:13:04 +00:00