summaryrefslogtreecommitdiff
path: root/bin/cp/utils.c
AgeCommit message (Expand)Author
2025-07-09cp: Add GNU-compatible long options.Dag-Erling Smørgrav
2025-06-23cp: Fix improper use of O_PATH.Dag-Erling Smørgrav
2025-05-15cp: Avoid prepending ./ in file-to-file case.Dag-Erling Smørgrav
2025-05-06cp: Partly restore symlink folllowing.Dag-Erling Smørgrav
2024-05-23cp: avoid a resource leakPierre Pronchery
2024-04-17cp: Additional sanity check.Dag-Erling Smørgrav
2024-03-21cp: Remove useless ssize_t castCollin Funk
2023-12-14cp: Further simplify the core logic.Dag-Erling Smørgrav
2023-12-14cp: Refactor the core logic.Dag-Erling Smørgrav
2023-12-07cp: Don't warn for chflags() failing with EOPNOTSUPP if flags == 0Warner Losh
2023-12-07cp: Add -N flag, inspired by NetBSD's similar flagWarner Losh
2023-11-26bin: Automated cleanup of cdefs and other formattingWarner Losh
2023-11-26bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-04-24cp: Revert "If copy_file_range(2) fails with EXDEV, use fall-back."Mateusz Guzik
2023-04-04If copy_file_range(2) fails with EXDEV, use fall-back.Poul-Henning Kamp
2023-02-03cp: Minor code cleanup.Dag-Erling Smørgrav
2023-02-02cp: Simplify the common case.Dag-Erling Smørgrav
2022-08-30cp: Fix build without VM_AND_BUFFER_CACHE_SYNCHRONIZED.Alexander Motin
2021-01-27cp: fix indentationBaptiste Daroussin
2021-01-02cp(1): fix performance issue for large non-sparse file copiesRick Macklem
2020-09-11cp: fall back to read/write if copy_file_range failsAlan Somers
2020-09-10cp: use copy_file_range(2)Alan Somers
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-02-28Renumber copyright clause 4Warner Losh
2015-06-08Cleanup some style(9) issues.Bryan Drewery
2015-06-07Implement '-s' to copy as symlink, similar to the current -l link(2) handling.Bryan Drewery
2015-06-07Cleanup some indentation issues.Bryan Drewery
2015-03-23cp,mv: Use futimens() instead of utimensat() if possible.Jilles Tjoelker
2015-01-24cp,mv,touch: Set timestamps with nanosecond precision.Jilles Tjoelker
2013-01-27Return with an error from copy_link(), copy_fifo() and copy_special() ifMark Johnston
2013-01-23Return "failure" as we do for 'cp -i' and a "n" answer.David E. O'Brien
2010-03-28Change all our own code to use st_*tim instead of st_*timespec.Ed Schouten
2010-01-17Implement an "-x" option to cp(1), for compatibility with Linux andGavin Atkinson
2009-09-02Add NFSv4 ACL support to cp(1) and fix a few memory leaks.Edward Tomasz Napierala
2009-05-30Preserve file flags on symlinks in cp -Rp.Jilles Tjoelker
2008-10-30Teach cat(1) and cp(1) to use a larger buffer if enough memory is presentIvan Voras
2008-10-27Add fallback when mmap fails on regular files. Some filesystems,Diomidis Spinellis
2008-09-09Remove redundant close(2).Edward Tomasz Napierala
2008-08-07Fix ACL preservation, apparently broken in 1.47.Edward Tomasz Napierala
2008-03-10Add an '-a' option which is identical to specifying '-RpP' forJohn Baldwin
2006-10-07o Style(9).Maxim Konovalov
2006-10-07o Avoid division by zero.Maxim Konovalov
2006-10-06o Hold copied bytes counter in off_t. This prevents statisticsMaxim Konovalov
2006-08-25- Fix options order.Ruslan Ermilov
2006-08-25Remove a stray -a option that probably sneaked in from julian'sRuslan Ermilov
2006-08-24Add an option to allow copying of a hierarchy while linking he regular files.Julian Elischer
2005-09-05Attempt to complete the userspace integration of POSIX.1e extended ACLs.Christian S.J. Peron
2005-02-09Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov
2004-06-05Plug file descriptor leak in implementation of -n option.Tim J. Robbins