diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-15 23:43:11 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-15 23:43:11 +0000 |
| commit | b941129ccb7901b0715c6affa9d0347f6fa5e64d (patch) | |
| tree | f109a72dc2d958ae0ab35031da39b176e87009a5 /include | |
| parent | d786cc59662c52c268c1f074546e0705facf3475 (diff) | |
| download | busybox-w32-b941129ccb7901b0715c6affa9d0347f6fa5e64d.tar.gz busybox-w32-b941129ccb7901b0715c6affa9d0347f6fa5e64d.tar.bz2 busybox-w32-b941129ccb7901b0715c6affa9d0347f6fa5e64d.zip | |
find: add conditional support for -maxdepth and -regex
(needed for Linux 2.6.22-rc4 build)
-maxdepth:
# size busybox_old busybox_unstripped
text data bss dec hex filename
675622 2792 15728 694142 a977e busybox_old
675770 2792 15728 694290 a9812 busybox_unstripped
-regex:
# size busybox_old busybox_unstripped
text data bss dec hex filename
675770 2792 15728 694290 a9812 busybox_old
675894 2792 15728 694414 a988e busybox_unstripped
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.h | 68 |
1 files changed, 36 insertions, 32 deletions
diff --git a/include/usage.h b/include/usage.h index 0c02d2501..8c438e285 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -943,46 +943,50 @@ | |||
| 943 | "the current directory, default EXPRESSION is '-print'\n" \ | 943 | "the current directory, default EXPRESSION is '-print'\n" \ |
| 944 | "\nEXPRESSION may consist of:" \ | 944 | "\nEXPRESSION may consist of:" \ |
| 945 | "\n -follow Dereference symlinks" \ | 945 | "\n -follow Dereference symlinks" \ |
| 946 | USE_FEATURE_FIND_XDEV( \ | ||
| 947 | "\n -xdev Don't descend directories on other filesystems") \ | ||
| 948 | USE_FEATURE_FIND_MAXDEPTH( \ | ||
| 949 | "\n -maxdepth N Descend at most N levels. -maxdepth 0 applies" \ | ||
| 950 | "\n tests/actions to command line arguments only") \ | ||
| 946 | "\n -name PATTERN File name (leading directories removed) matches PATTERN" \ | 951 | "\n -name PATTERN File name (leading directories removed) matches PATTERN" \ |
| 947 | "\n -print Print (default and assumed)" \ | 952 | "\n -print Print (default and assumed)" \ |
| 948 | USE_FEATURE_FIND_PRINT0( \ | 953 | USE_FEATURE_FIND_PRINT0( \ |
| 949 | "\n -print0 Delimit output with null characters rather than" \ | 954 | "\n -print0 Delimit output with null characters rather than" \ |
| 950 | "\n newlines" \ | 955 | "\n newlines") \ |
| 951 | ) USE_FEATURE_FIND_TYPE( \ | 956 | USE_FEATURE_FIND_TYPE( \ |
| 952 | "\n -type X Filetype matches X (where X is one of: f,d,l,b,c,...)" \ | 957 | "\n -type X Filetype matches X (where X is one of: f,d,l,b,c,...)") \ |
| 953 | ) USE_FEATURE_FIND_PERM( \ | 958 | USE_FEATURE_FIND_PERM( \ |
| 954 | "\n -perm PERMS Permissions match any of (+NNN), all of (-NNN)," \ | 959 | "\n -perm PERMS Permissions match any of (+NNN), all of (-NNN)," \ |
| 955 | "\n or exactly (NNN)" \ | 960 | "\n or exactly (NNN)") \ |
| 956 | ) USE_FEATURE_FIND_MTIME( \ | 961 | USE_FEATURE_FIND_MTIME( \ |
| 957 | "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \ | 962 | "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \ |
| 958 | "\n or exactly (N) days" \ | 963 | "\n or exactly (N) days") \ |
| 959 | ) USE_FEATURE_FIND_MMIN( \ | 964 | USE_FEATURE_FIND_MMIN( \ |
| 960 | "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \ | 965 | "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \ |
| 961 | "\n or exactly (N) minutes" \ | 966 | "\n or exactly (N) minutes") \ |
| 962 | ) USE_FEATURE_FIND_NEWER( \ | 967 | USE_FEATURE_FIND_NEWER( \ |
| 963 | "\n -newer FILE Modified time is more recent than FILE's" \ | 968 | "\n -newer FILE Modified time is more recent than FILE's") \ |
| 964 | ) USE_FEATURE_FIND_INUM( \ | 969 | USE_FEATURE_FIND_INUM( \ |
| 965 | "\n -inum N File has inode number N" \ | 970 | "\n -inum N File has inode number N") \ |
| 966 | ) USE_FEATURE_FIND_EXEC( \ | 971 | USE_FEATURE_FIND_EXEC( \ |
| 967 | "\n -exec CMD Execute CMD with all instances of {} replaced by the" \ | 972 | "\n -exec CMD Execute CMD with all instances of {} replaced by the" \ |
| 968 | "\n files matching EXPRESSION" \ | 973 | "\n files matching EXPRESSION") \ |
| 969 | ) USE_FEATURE_FIND_USER( \ | 974 | USE_FEATURE_FIND_USER( \ |
| 970 | "\n -user NAME File is owned by user NAME (numeric user ID allowed)" \ | 975 | "\n -user NAME File is owned by user NAME (numeric user ID allowed)") \ |
| 971 | ) USE_FEATURE_FIND_GROUP( \ | 976 | USE_FEATURE_FIND_GROUP( \ |
| 972 | "\n -group NAME File belongs to group NAME (numeric group ID allowed)" \ | 977 | "\n -group NAME File belongs to group NAME (numeric group ID allowed)") \ |
| 973 | ) USE_FEATURE_FIND_DEPTH( \ | 978 | USE_FEATURE_FIND_DEPTH( \ |
| 974 | "\n -depth Process directory after traversing it" \ | 979 | "\n -depth Process directory after traversing it") \ |
| 975 | ) USE_FEATURE_FIND_SIZE( \ | 980 | USE_FEATURE_FIND_SIZE( \ |
| 976 | "\n -size N File size is N" \ | 981 | "\n -size N File size is N") \ |
| 977 | ) USE_FEATURE_FIND_PRUNE( \ | 982 | USE_FEATURE_FIND_PRUNE( \ |
| 978 | "\n -prune Stop traversing current subtree" \ | 983 | "\n -prune Stop traversing current subtree") \ |
| 979 | ) USE_FEATURE_FIND_DELETE( \ | 984 | USE_FEATURE_FIND_DELETE( \ |
| 980 | "\n -delete Delete files, turns on -depth option" \ | 985 | "\n -delete Delete files, turns on -depth option") \ |
| 981 | ) USE_FEATURE_FIND_PATH( \ | 986 | USE_FEATURE_FIND_PATH( \ |
| 982 | "\n -path Path matches PATTERN" \ | 987 | "\n -path Path matches PATTERN") \ |
| 983 | ) USE_FEATURE_FIND_PAREN( \ | 988 | USE_FEATURE_FIND_PAREN( \ |
| 984 | "\n (EXPR) Group an expression" \ | 989 | "\n (EXPR) Group an expression") \ |
| 985 | ) | ||
| 986 | 990 | ||
| 987 | #define find_example_usage \ | 991 | #define find_example_usage \ |
| 988 | "$ find / -name passwd\n" \ | 992 | "$ find / -name passwd\n" \ |
