freebsd-src/bin
Jilles Tjoelker 3b4ce65586 MFC r282482: 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)
2015-05-14 10:46:20 +00:00
..
cat
chflags Expand the use of stat(2) flags to allow storing some Windows/DOS 2013-08-21 23:04:48 +00:00
chio
chmod
cp MFC r282482: cp: Remove fts sorting. 2015-05-14 10:46:20 +00:00
csh MFC r275805: 2015-04-30 16:08:47 +00:00
date MFC r269903: 2014-08-29 02:21:02 +00:00
dd MFC rev. 265593: 2014-05-21 07:21:36 +00:00
df MFC r260782: 2014-01-20 23:23:29 +00:00
domainname
echo
ed MFC r270256: 2014-08-28 18:11:05 +00:00
expr MFC r280357: 2015-04-06 14:45:40 +00:00
freebsd-version MFH (r256332): remove extraneous \n 2013-10-11 20:14:21 +00:00
getfacl
hostname Mark usage() __dead2 2013-04-28 22:52:43 +00:00
kenv Constify parameters, no functional or binary change. 2013-05-15 18:38:28 +00:00
kill Remove cast that was only required for K&R C. 2013-04-28 22:05:01 +00:00
ln MFC r278848: symlink(7): Mention chflagsat() (can take AT_SYMLINK_NOFOLLOW). 2015-03-10 22:23:56 +00:00
ls Expand the use of stat(2) flags to allow storing some Windows/DOS 2013-08-21 23:04:48 +00:00
mkdir
mv MFC refactoring of the *.test.mk files. 2014-04-14 23:51:57 +00:00
pax MFC r280206: 2015-04-17 18:33:59 +00:00
pkill MFC r272305 2014-10-05 02:52:54 +00:00
ps MFC r275745: 2014-12-27 00:55:14 +00:00
pwait
pwd
rcp
realpath
rm MFC r268376 (imp): 2014-10-01 16:18:40 +00:00
rmail
rmdir
setfacl
sh MFC r274254: sh(1): Mention portability issue with shifting zero positional 2015-01-04 19:02:50 +00:00
sleep MFC r272777,r272779,r272780,r272781,r272782,r272783,r272784,r272787,r272788: 2015-01-01 02:04:44 +00:00
stty
sync
test MFC refactoring of the *.test.mk files. 2014-04-14 23:51:57 +00:00
tests Sync sh(1) in stable/10 to head. 2014-03-09 17:04:31 +00:00
uuidgen
Makefile MFC r263778: 2014-04-09 18:16:58 +00:00
Makefile.inc