aboutsummaryrefslogtreecommitdiff
path: root/include/usage.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-23 05:27:42 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-23 05:27:42 +0000
commit97d86f2bb59751be52fb3ee5cdb8b06e7b3bb98f (patch)
tree68724d2a1026005a4ab84f2dcf161b7fa09f4d97 /include/usage.h
parentbe65c350ae535f80ea369be5366e09f730ab7ba8 (diff)
downloadbusybox-w32-97d86f2bb59751be52fb3ee5cdb8b06e7b3bb98f.tar.gz
busybox-w32-97d86f2bb59751be52fb3ee5cdb8b06e7b3bb98f.tar.bz2
busybox-w32-97d86f2bb59751be52fb3ee5cdb8b06e7b3bb98f.zip
Apply patch from Ghozlane Toumi to add -inum support to find.
Apply patch from Ghozlane Toumi to make find smaller by combining similar error messages Forward port find -newer support from busybox stable that was missing from unstable. -Erik. Fixup usage messages for find. -Erik
Diffstat (limited to 'include/usage.h')
-rw-r--r--include/usage.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index beb32fdc9..077306bdf 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -568,6 +568,16 @@
568#else 568#else
569 #define USAGE_FIND_MTIME(a) 569 #define USAGE_FIND_MTIME(a)
570#endif 570#endif
571#ifdef CONFIG_FEATURE_FIND_NEWER
572 #define USAGE_FIND_NEWER(a) a
573#else
574 #define USAGE_FIND_NEWER(a)
575#endif
576#ifdef CONFIG_FEATURE_FIND_INUM
577 #define USAGE_FIND_INUM(a) a
578#else
579 #define USAGE_FIND_INUM(a)
580#endif
571 581
572#define find_trivial_usage \ 582#define find_trivial_usage \
573 "[PATH...] [EXPRESSION]" 583 "[PATH...] [EXPRESSION]"
@@ -583,7 +593,11 @@
583) USAGE_FIND_PERM( \ 593) USAGE_FIND_PERM( \
584 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \ 594 "\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \
585) USAGE_FIND_MTIME( \ 595) USAGE_FIND_MTIME( \
586 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days") 596 "\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days" \
597) USAGE_FIND_NEWER( \
598 "\n\t-newer FILE\tModified time is more recent than FILE's" \
599) USAGE_FIND_INUM( \
600 "\n\t-inum N\t\tFile has inode number N")
587#define find_example_usage \ 601#define find_example_usage \
588 "$ find / -name /etc/passwd\n" \ 602 "$ find / -name /etc/passwd\n" \
589 "/etc/passwd\n" 603 "/etc/passwd\n"