freebsd-skq/bin
jilles c595c29b97 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 - Add the __dead2 attribute since it is a function that never returns 2013-04-23 13:03:11 +00:00
chflags Expand the use of stat(2) flags to allow storing some Windows/DOS 2013-08-21 23:04:48 +00:00
chio Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
chmod Update sticky(7) cross references. 2011-05-13 16:29:57 +00:00
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 Point users towards nisdomainname and rc.conf. 2013-04-22 17:55:12 +00:00
echo echo(1): Clarify portability and mention literal "--" handling. 2010-11-12 22:43:40 +00:00
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 Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
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 Add missing static qualifiers 2013-04-27 21:59:43 +00:00
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 Use a different way to silence clang analyzer as done in r245494 by 2013-01-16 18:15:25 +00:00
pwd
rcp Fix warnings found by -Wmising-variable-declarations. 2012-10-19 05:43:38 +00:00
realpath Make `realpath'' behave like `realpath .''. 2011-06-21 19:34:57 +00:00
rm MFC r268376 (imp): 2014-10-01 16:18:40 +00:00
rmail Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
rmdir Add a few examples. 2013-03-15 20:12:54 +00:00
setfacl Mention that read_attributes, write_attributes, read_acl and write_acl 2013-04-01 13:17:28 +00:00
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 stty: Mark usage() __dead2. 2012-07-15 21:12:22 +00:00
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 Mention the upper hard limit for -n option. Patch slightly modified 2012-05-23 16:19:19 +00:00
Makefile MFC r263778: 2014-04-09 18:16:58 +00:00
Makefile.inc