1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/bin
Jilles Tjoelker c633f8dc04 cp: Remove fts sorting.
In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR:		53475
Reviewed by:	bde (in 2004)
MFC after:	1 week
2015-05-05 13:23:03 +00:00
..
cat
chflags Standardise chmod, chflags, chown and chgrp recursive symlink processing 2015-04-29 00:49:00 +00:00
chio
chmod Standardise chmod, chflags, chown and chgrp recursive symlink processing 2015-04-29 00:49:00 +00:00
cp cp: Remove fts sorting. 2015-05-05 13:23:03 +00:00
csh Fix build after r281550 when WITHOUT_ICONV is defined. 2015-04-16 07:17:00 +00:00
date
dd
df
domainname
echo
ed mdoc: escape Re 2015-04-26 10:03:05 +00:00
expr Pet manlint 2015-04-26 10:38:26 +00:00
freebsd-version
getfacl
hostname
kenv
kill sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
ln symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW). 2015-02-16 12:56:55 +00:00
ls
mkdir
mv cp,mv: Use futimens() instead of utimensat() if possible. 2015-03-23 17:35:05 +00:00
pax Implement pax -O option to permit limiting a PAX archive to a single volume. 2015-03-18 05:48:05 +00:00
pkill Disguising stderr from jls generally considered harmful 2015-02-21 23:39:43 +00:00
ps Use 24h timestamps in the ps(1) STARTED column 2015-03-17 12:40:33 +00:00
pwait
pwd
rcp r* commands are not precious anymore 2015-03-04 22:01:44 +00:00
realpath
rm
rmail
rmdir
setfacl
sh sh: Pass along SIGINT from a child if job control is enabled, even when not 2015-04-25 13:34:25 +00:00
sleep
stty
sync
test
tests
uuidgen
Makefile
Makefile.inc