aboutsummaryrefslogtreecommitdiff
path: root/bin/ls/cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ls/cmp.c')
-rw-r--r--bin/ls/cmp.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/bin/ls/cmp.c b/bin/ls/cmp.c
index 13ba3ff47a99..4c60506f3456 100644
--- a/bin/ls/cmp.c
+++ b/bin/ls/cmp.c
@@ -32,15 +32,6 @@
* SUCH DAMAGE.
*/
-#if 0
-#ifndef lint
-static char sccsid[] = "@(#)cmp.c 8.1 (Berkeley) 5/31/93";
-#endif /* not lint */
-#endif
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-
#include <sys/types.h>
#include <sys/stat.h>
@@ -65,6 +56,20 @@ revnamecmp(const FTSENT *a, const FTSENT *b)
}
int
+verscmp(const FTSENT *a, const FTSENT *b)
+{
+
+ return (strverscmp(a->fts_name, b->fts_name));
+}
+
+int
+revverscmp(const FTSENT *a, const FTSENT *b)
+{
+
+ return (strverscmp(b->fts_name, a->fts_name));
+}
+
+int
modcmp(const FTSENT *a, const FTSENT *b)
{