aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.src.h5
-rw-r--r--include/usage.src.h139
2 files changed, 0 insertions, 144 deletions
diff --git a/include/applets.src.h b/include/applets.src.h
index 2998a0ea9..9162b66c7 100644
--- a/include/applets.src.h
+++ b/include/applets.src.h
@@ -136,7 +136,6 @@ IF_DUMPLEASES(APPLET(dumpleases, _BB_DIR_USR_BIN, _BB_SUID_DROP))
136//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP, e2label)) 136//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, _BB_DIR_SBIN, _BB_SUID_DROP, e2label))
137IF_ECHO(APPLET_NOFORK(echo, echo, _BB_DIR_BIN, _BB_SUID_DROP, echo)) 137IF_ECHO(APPLET_NOFORK(echo, echo, _BB_DIR_BIN, _BB_SUID_DROP, echo))
138IF_ED(APPLET(ed, _BB_DIR_BIN, _BB_SUID_DROP)) 138IF_ED(APPLET(ed, _BB_DIR_BIN, _BB_SUID_DROP))
139IF_FEATURE_GREP_EGREP_ALIAS(APPLET_ODDNAME(egrep, grep, _BB_DIR_BIN, _BB_SUID_DROP, egrep))
140IF_EJECT(APPLET(eject, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 139IF_EJECT(APPLET(eject, _BB_DIR_USR_BIN, _BB_SUID_DROP))
141IF_ENV(APPLET_NOEXEC(env, env, _BB_DIR_USR_BIN, _BB_SUID_DROP, env)) 140IF_ENV(APPLET_NOEXEC(env, env, _BB_DIR_USR_BIN, _BB_SUID_DROP, env))
142IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, envdir)) 141IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, envdir))
@@ -152,8 +151,6 @@ IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, _BB_DIR_BIN, _BB_SUID_DROP, fdfl
152IF_FDFORMAT(APPLET(fdformat, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 151IF_FDFORMAT(APPLET(fdformat, _BB_DIR_USR_BIN, _BB_SUID_DROP))
153IF_FDISK(APPLET(fdisk, _BB_DIR_SBIN, _BB_SUID_DROP)) 152IF_FDISK(APPLET(fdisk, _BB_DIR_SBIN, _BB_SUID_DROP))
154IF_FGCONSOLE(APPLET(fgconsole, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 153IF_FGCONSOLE(APPLET(fgconsole, _BB_DIR_USR_BIN, _BB_SUID_DROP))
155IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, _BB_DIR_BIN, _BB_SUID_DROP, fgrep))
156IF_FIND(APPLET_NOEXEC(find, find, _BB_DIR_USR_BIN, _BB_SUID_DROP, find))
157IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE)) 154IF_FINDFS(APPLET(findfs, _BB_DIR_SBIN, _BB_SUID_MAYBE))
158IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 155IF_FLASH_ERASEALL(APPLET(flash_eraseall, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
159IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_lock)) 156IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, _BB_DIR_USR_SBIN, _BB_SUID_DROP, flash_lock))
@@ -176,7 +173,6 @@ IF_GETENFORCE(APPLET(getenforce, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
176IF_GETOPT(APPLET(getopt, _BB_DIR_BIN, _BB_SUID_DROP)) 173IF_GETOPT(APPLET(getopt, _BB_DIR_BIN, _BB_SUID_DROP))
177IF_GETSEBOOL(APPLET(getsebool, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 174IF_GETSEBOOL(APPLET(getsebool, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
178IF_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_DROP)) 175IF_GETTY(APPLET(getty, _BB_DIR_SBIN, _BB_SUID_DROP))
179IF_GREP(APPLET(grep, _BB_DIR_BIN, _BB_SUID_DROP))
180IF_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_DROP)) 176IF_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_DROP))
181IF_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_DROP)) 177IF_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_DROP))
182IF_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_DROP)) 178IF_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_DROP))
@@ -433,7 +429,6 @@ IF_WGET(APPLET(wget, _BB_DIR_USR_BIN, _BB_SUID_DROP))
433IF_WHICH(APPLET(which, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 429IF_WHICH(APPLET(which, _BB_DIR_USR_BIN, _BB_SUID_DROP))
434IF_WHO(APPLET(who, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 430IF_WHO(APPLET(who, _BB_DIR_USR_BIN, _BB_SUID_DROP))
435IF_WHOAMI(APPLET_NOFORK(whoami, whoami, _BB_DIR_USR_BIN, _BB_SUID_DROP, whoami)) 431IF_WHOAMI(APPLET_NOFORK(whoami, whoami, _BB_DIR_USR_BIN, _BB_SUID_DROP, whoami))
436IF_XARGS(APPLET_NOEXEC(xargs, xargs, _BB_DIR_USR_BIN, _BB_SUID_DROP, xargs))
437IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xzcat)) 432IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xzcat))
438IF_XZ(APPLET_ODDNAME(xz, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xz)) 433IF_XZ(APPLET_ODDNAME(xz, unxz, _BB_DIR_USR_BIN, _BB_SUID_DROP, xz))
439IF_YES(APPLET_NOFORK(yes, yes, _BB_DIR_USR_BIN, _BB_SUID_DROP, yes)) 434IF_YES(APPLET_NOFORK(yes, yes, _BB_DIR_USR_BIN, _BB_SUID_DROP, yes))
diff --git a/include/usage.src.h b/include/usage.src.h
index bd2e56385..f30edbc54 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -1280,72 +1280,6 @@ INSERT
1280#define findfs_example_usage \ 1280#define findfs_example_usage \
1281 "$ findfs LABEL=MyDevice" 1281 "$ findfs LABEL=MyDevice"
1282 1282
1283#define find_trivial_usage \
1284 "[PATH]... [EXPRESSION]"
1285#define find_full_usage "\n\n" \
1286 "Search for files. The default PATH is the current directory,\n" \
1287 "default EXPRESSION is '-print'\n" \
1288 "\nEXPRESSION may consist of:" \
1289 "\n -follow Follow symlinks" \
1290 IF_FEATURE_FIND_XDEV( \
1291 "\n -xdev Don't descend directories on other filesystems") \
1292 IF_FEATURE_FIND_MAXDEPTH( \
1293 "\n -maxdepth N Descend at most N levels. -maxdepth 0 applies" \
1294 "\n tests/actions to command line arguments only") \
1295 "\n -mindepth N Don't act on first N levels" \
1296 "\n -name PATTERN File name (w/o directory name) matches PATTERN" \
1297 "\n -iname PATTERN Case insensitive -name" \
1298 IF_FEATURE_FIND_PATH( \
1299 "\n -path PATTERN Path matches PATTERN") \
1300 IF_FEATURE_FIND_REGEX( \
1301 "\n -regex PATTERN Path matches regex PATTERN") \
1302 IF_FEATURE_FIND_TYPE( \
1303 "\n -type X File type is X (X is one of: f,d,l,b,c,...)") \
1304 IF_FEATURE_FIND_PERM( \
1305 "\n -perm NNN Permissions match any of (+NNN), all of (-NNN)," \
1306 "\n or exactly NNN") \
1307 IF_FEATURE_FIND_MTIME( \
1308 "\n -mtime DAYS Modified time is greater than (+N), less than (-N)," \
1309 "\n or exactly N days") \
1310 IF_FEATURE_FIND_MMIN( \
1311 "\n -mmin MINS Modified time is greater than (+N), less than (-N)," \
1312 "\n or exactly N minutes") \
1313 IF_FEATURE_FIND_NEWER( \
1314 "\n -newer FILE Modified time is more recent than FILE's") \
1315 IF_FEATURE_FIND_INUM( \
1316 "\n -inum N File has inode number N") \
1317 IF_FEATURE_FIND_USER( \
1318 "\n -user NAME File is owned by user NAME (numeric user ID allowed)") \
1319 IF_FEATURE_FIND_GROUP( \
1320 "\n -group NAME File belongs to group NAME (numeric group ID allowed)") \
1321 IF_FEATURE_FIND_DEPTH( \
1322 "\n -depth Process directory name after traversing it") \
1323 IF_FEATURE_FIND_SIZE( \
1324 "\n -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))" \
1325 "\n +/-N: file size is bigger/smaller than N") \
1326 IF_FEATURE_FIND_LINKS( \
1327 "\n -links N Number of links is greater than (+N), less than (-N)," \
1328 "\n or exactly N") \
1329 "\n -print Print (default and assumed)" \
1330 IF_FEATURE_FIND_PRINT0( \
1331 "\n -print0 Delimit output with null characters rather than" \
1332 "\n newlines") \
1333 IF_FEATURE_FIND_CONTEXT ( \
1334 "\n -context File has specified security context") \
1335 IF_FEATURE_FIND_EXEC( \
1336 "\n -exec CMD ARG ; Run CMD with all instances of {} replaced by the" \
1337 "\n matching files") \
1338 IF_FEATURE_FIND_PRUNE( \
1339 "\n -prune Stop traversing current subtree") \
1340 IF_FEATURE_FIND_DELETE( \
1341 "\n -delete Delete files, turns on -depth option") \
1342 IF_FEATURE_FIND_PAREN( \
1343 "\n (EXPR) Group an expression") \
1344
1345#define find_example_usage \
1346 "$ find / -name passwd\n" \
1347 "/etc/passwd\n"
1348
1349#define flash_lock_trivial_usage \ 1283#define flash_lock_trivial_usage \
1350 "MTD_DEVICE OFFSET SECTORS" 1284 "MTD_DEVICE OFFSET SECTORS"
1351#define flash_lock_full_usage "\n\n" \ 1285#define flash_lock_full_usage "\n\n" \
@@ -1575,58 +1509,6 @@ INSERT
1575 "\n -I INITSTR Send INITSTR before anything else" \ 1509 "\n -I INITSTR Send INITSTR before anything else" \
1576 "\n -H HOST Log HOST into the utmp file as the hostname" \ 1510 "\n -H HOST Log HOST into the utmp file as the hostname" \
1577 1511
1578#define grep_trivial_usage \
1579 "[-HhnlLoqvsriw" \
1580 "F" \
1581 IF_FEATURE_GREP_EGREP_ALIAS("E") \
1582 IF_EXTRA_COMPAT("z") \
1583 "] [-m N] " \
1584 IF_FEATURE_GREP_CONTEXT("[-A/B/C N] ") \
1585 "PATTERN/-e PATTERN.../-f FILE [FILE]..."
1586#define grep_full_usage "\n\n" \
1587 "Search for PATTERN in FILEs (or stdin)\n" \
1588 "\nOptions:" \
1589 "\n -H Add 'filename:' prefix" \
1590 "\n -h Do not add 'filename:' prefix" \
1591 "\n -n Add 'line_no:' prefix" \
1592 "\n -l Show only names of files that match" \
1593 "\n -L Show only names of files that don't match" \
1594 "\n -c Show only count of matching lines" \
1595 "\n -o Show only the matching part of line" \
1596 "\n -q Quiet. Return 0 if PATTERN is found, 1 otherwise" \
1597 "\n -v Select non-matching lines" \
1598 "\n -s Suppress open and read errors" \
1599 "\n -r Recurse" \
1600 "\n -i Ignore case" \
1601 "\n -w Match whole words only" \
1602 "\n -F PATTERN is a literal (not regexp)" \
1603 IF_FEATURE_GREP_EGREP_ALIAS( \
1604 "\n -E PATTERN is an extended regexp" \
1605 ) \
1606 IF_EXTRA_COMPAT( \
1607 "\n -z Input is NUL terminated" \
1608 ) \
1609 "\n -m N Match up to N times per file" \
1610 IF_FEATURE_GREP_CONTEXT( \
1611 "\n -A N Print N lines of trailing context" \
1612 "\n -B N Print N lines of leading context" \
1613 "\n -C N Same as '-A N -B N'" \
1614 ) \
1615 "\n -e PTRN Pattern to match" \
1616 "\n -f FILE Read pattern from file" \
1617
1618#define grep_example_usage \
1619 "$ grep root /etc/passwd\n" \
1620 "root:x:0:0:root:/root:/bin/bash\n" \
1621 "$ grep ^[rR]oo. /etc/passwd\n" \
1622 "root:x:0:0:root:/root:/bin/bash\n"
1623
1624#define egrep_trivial_usage NOUSAGE_STR
1625#define egrep_full_usage ""
1626
1627#define fgrep_trivial_usage NOUSAGE_STR
1628#define fgrep_full_usage ""
1629
1630#define gunzip_trivial_usage \ 1512#define gunzip_trivial_usage \
1631 "[OPTIONS] [FILE]..." 1513 "[OPTIONS] [FILE]..."
1632#define gunzip_full_usage "\n\n" \ 1514#define gunzip_full_usage "\n\n" \
@@ -5104,27 +4986,6 @@ INSERT
5104#define whoami_full_usage "\n\n" \ 4986#define whoami_full_usage "\n\n" \
5105 "Print the user name associated with the current effective user id" 4987 "Print the user name associated with the current effective user id"
5106 4988
5107#define xargs_trivial_usage \
5108 "[OPTIONS] [PROG ARGS]"
5109#define xargs_full_usage "\n\n" \
5110 "Run PROG on every item given by stdin\n" \
5111 "\nOptions:" \
5112 IF_FEATURE_XARGS_SUPPORT_CONFIRMATION( \
5113 "\n -p Ask user whether to run each command") \
5114 "\n -r Don't run command if input is empty" \
5115 IF_FEATURE_XARGS_SUPPORT_ZERO_TERM( \
5116 "\n -0 Input is separated by NUL characters") \
5117 "\n -t Print the command on stderr before execution" \
5118 "\n -e[STR] STR stops input processing" \
5119 "\n -n N Pass no more than N args to PROG" \
5120 "\n -s N Pass command line of no more than N bytes" \
5121 IF_FEATURE_XARGS_SUPPORT_TERMOPT( \
5122 "\n -x Exit if size is exceeded") \
5123
5124#define xargs_example_usage \
5125 "$ ls | xargs gzip\n" \
5126 "$ find . -name '*.c' -print | xargs rm\n"
5127
5128#define zcat_trivial_usage \ 4989#define zcat_trivial_usage \
5129 "FILE" 4990 "FILE"
5130#define zcat_full_usage "\n\n" \ 4991#define zcat_full_usage "\n\n" \