summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-09-03(same_file_ok): New function, extracted from copy_internal,Jim Meyering
and partially rewritten. (copy_internal): Unlink destination file when unlink_dest_before_opening option is set, and when the source is neither a regular file nor a directory.
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02*** empty log message ***Jim Meyering
2000-09-02add basic testJim Meyering
2000-08-30*** empty log message ***Jim Meyering
2000-08-30Merge in changes from GNU libc.Jim Meyering
2000-08-28declare __fpending only if necessaryJim Meyering
2000-08-28check for __fpending declarationJim Meyering
2000-08-28include stdio_ext.hJim Meyering
2000-08-27*** empty log message ***Jim Meyering
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