summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-08-27.Jim Meyering
2000-08-27(copy_reg): New parameters: X and NEW_DST.Jim Meyering
Remove the SPARSE_MODE parameter. Update caller. Perform POSIX-mandated (for cp) open-with-O_WRONLY|O_TRUNC when the regular destination file exists; upon failure, unlink that existing file, then open again, but with O_WRONLY|O_CREAT. (copy_internal): `force' in not related to interactive; remove the conjunct. Remove the entire `else if (x->force)' block; justifying removal of the non-directory part is easy: POSIX requires we try to open an existing regular file, so we can't unlink it beforehand. The part that changes the mode on a directory to allow overwriting isn't necessary.
2000-08-27(copy_internal): Set `new_dst' when the move_mode rename fails,Jim Meyering
since we then unlink the destination file.
2000-08-27(copy_reg): Rename two goto labels.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26(usage): --force is independent of --interactive.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26.Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26Include "__fpending.h".Jim Meyering
(close_stdout_status): Return right away if there's nothing to flush.
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26(noinst_HEADERS): Add __fpending.h.Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26Use jm_FUNC_FPENDING.Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-26*** empty log message ***Jim Meyering
2000-08-25*** empty log message ***Jim Meyering
2000-08-25*** empty log message ***Jim Meyering
2000-08-24*** empty log message ***Jim Meyering
2000-08-24Put back the kluge. It's necessary after all.Jim Meyering
(buggy_lseek_support): New function. (skip): Use it. Frank Adler reported that although _llseek returns 0, lseek erroneously returns an offset suggesting the operation succeeded even though it fails.
2000-08-24*** empty log message ***Jim Meyering
2000-08-24.Jim Meyering
2000-08-24.Jim Meyering
2000-08-24*** empty log message ***Jim Meyering
2000-08-24*** empty log message ***Jim Meyering
2000-08-24(skip): Assume lseek failed if it returned zero, since a zero return isJim Meyering
impossible and some buggy drivers return zero. Use SEEK_CUR rather than SEEK_SET; this fixes a bug when the file descriptor is not currently rewound.
2000-08-23*** empty log message ***Jim Meyering
2000-08-23Include <config.h> unconditionally, to be consistentJim Meyering
with all the other programs in this directory.
2000-08-23*** empty log message ***Jim Meyering
2000-08-23*** empty log message ***Jim Meyering
2000-08-23longer inputJim Meyering
2000-08-23redir dd's stderrJim Meyering
2000-08-23change PROG from ls to ddJim Meyering
2000-08-23(TESTS): Add not-rewound.Jim Meyering
2000-08-23*** empty log message ***Jim Meyering
2000-08-23use better trapJim Meyering
2000-08-23*** empty log message ***Jim Meyering
2000-08-23back out last changeJim Meyering
2000-08-22*** empty log message ***Jim Meyering
2000-08-22Don't even try to use lseek on character devices.Jim Meyering
(buggy_lseek_support): New function. (skip): Use it. Reported by Martin Gallant via Michael Stone.
2000-08-22*** empty log message ***Jim Meyering
2000-08-21Clean up traps. Create files in a subdir.Jim Meyering
2000-08-21remove `dir' in trap, tooJim Meyering
2000-08-21use better trapJim Meyering