diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2005-06-03 11:05:58 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2005-06-03 11:05:58 +0000 |
commit | 71b8b7488794f1ddca03db4fe2d7acf1a0ced1fa (patch) | |
tree | 9bcf1fb5bb7f5fa54b12f829708d0a6ab8840ca2 /bin/ls/extern.h | |
parent | 0fe9e21bd9055a19394c3f8f13d346073d8584d6 (diff) | |
download | src-71b8b7488794f1ddca03db4fe2d7acf1a0ced1fa.tar.gz src-71b8b7488794f1ddca03db4fe2d7acf1a0ced1fa.zip |
Add the -S option to sort files by size. NetBSD and OpenBSD already
have this option with identical semantics (sorting large files first).
-r can be used to reverse the sort if that is desired.
PR: 81625
Submitted by: Kostas Blekos <mplekos@physics.upatras.gr>, keramida
Notes
Notes:
svn path=/head/; revision=146924
Diffstat (limited to 'bin/ls/extern.h')
-rw-r--r-- | bin/ls/extern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ls/extern.h b/bin/ls/extern.h index 52b6a857c3ed..02a61f5852b2 100644 --- a/bin/ls/extern.h +++ b/bin/ls/extern.h @@ -38,6 +38,8 @@ int namecmp(const FTSENT *, const FTSENT *); int revnamecmp(const FTSENT *, const FTSENT *); int statcmp(const FTSENT *, const FTSENT *); int revstatcmp(const FTSENT *, const FTSENT *); +int sizecmp(const FTSENT *, const FTSENT *); +int revsizecmp(const FTSENT *, const FTSENT *); void printcol(const DISPLAY *); void printlong(const DISPLAY *); |