⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage.h

📁 手机嵌入式Linux下可用的busybox源码
💻 H
📖 第 1 页 / 共 5 页
字号:
	"EXPRESSION"#define expr_full_usage \	"Prints the value of EXPRESSION to standard output.\n\n" \	"EXPRESSION may be:\n" \	"\tARG1 |  ARG2	ARG1 if it is neither null nor 0, otherwise ARG2\n" \	"\tARG1 &  ARG2	ARG1 if neither argument is null or 0, otherwise 0\n" \	"\tARG1 <  ARG2	ARG1 is less than ARG2\n" \	"\tARG1 <= ARG2	ARG1 is less than or equal to ARG2\n" \	"\tARG1 =  ARG2	ARG1 is equal to ARG2\n" \	"\tARG1 != ARG2	ARG1 is unequal to ARG2\n" \	"\tARG1 >= ARG2	ARG1 is greater than or equal to ARG2\n" \	"\tARG1 >  ARG2	ARG1 is greater than ARG2\n" \	"\tARG1 +  ARG2	arithmetic sum of ARG1 and ARG2\n" \	"\tARG1 -  ARG2	arithmetic difference of ARG1 and ARG2\n" \	"\tARG1 *  ARG2	arithmetic product of ARG1 and ARG2\n" \	"\tARG1 /  ARG2	arithmetic quotient of ARG1 divided by ARG2\n" \	"\tARG1 %  ARG2	arithmetic remainder of ARG1 divided by ARG2\n" \	"\tSTRING : REGEXP             anchored pattern match of REGEXP in STRING\n" \	"\tmatch STRING REGEXP         same as STRING : REGEXP\n" \	"\tsubstr STRING POS LENGTH    substring of STRING, POS counted from 1\n" \	"\tindex STRING CHARS          index in STRING where any CHARS is found,\n" \	"\t                            or 0\n" \	"\tlength STRING               length of STRING\n" \	"\tquote TOKEN                 interpret TOKEN as a string, even if\n" \	"\t                            it is a keyword like `match' or an\n" \	"\t                            operator like `/'\n" \	"\t( EXPRESSION )              value of EXPRESSION\n\n" \	"Beware that many operators need to be escaped or quoted for shells.\n" \	"Comparisons are arithmetic if both ARGs are numbers, else\n" \	"lexicographical.  Pattern matches return the string matched between \n" \	"\\( and \\) or null; if \\( and \\) are not used, they return the number \n" \	"of characters matched or 0."#define false_trivial_usage \	""#define false_full_usage \	"Return an exit code of FALSE (1)."#define false_example_usage \	"$ false\n" \	"$ echo $?\n" \	"1\n"#define fbset_trivial_usage \	"[options] [mode]"#define fbset_full_usage \	"Show and modify frame buffer settings"#define fbset_example_usage \	"$ fbset\n" \	"mode "1024x768-76"\n" \	"\t# D: 78.653 MHz, H: 59.949 kHz, V: 75.694 Hz\n" \	"\tgeometry 1024 768 1024 768 16\n" \	"\ttimings 12714 128 32 16 4 128 4\n" \	"\taccel false\n" \	"\trgba 5/11,6/5,5/0,0/0\n" \	"endmode\n"#define fdflush_trivial_usage \	"DEVICE"#define fdflush_full_usage \	"Forces floppy disk drive to detect disk change"#ifdef BB_FEATURE_FIND_TYPE  #define USAGE_FIND_TYPE(a) a#else  #define USAGE_FIND_TYPE(a)#endif#ifdef BB_FEATURE_FIND_PERM  #define USAGE_FIND_PERM(a) a#else  #define USAGE_FIND_PERM(a)#endif#ifdef BB_FEATURE_FIND_MTIME  #define USAGE_FIND_MTIME(a) a#else  #define USAGE_FIND_MTIME(a)#endif#ifdef BB_FEATURE_FIND_NEWER  #define USAGE_FIND_NEWER(a) a#else  #define USAGE_FIND_NEWER(a)#endif#define find_trivial_usage \	"[PATH...] [EXPRESSION]"#define find_full_usage \	"Search for files in a directory hierarchy.  The default PATH is\n" \	"the current directory; default EXPRESSION is '-print'\n" \	"\nEXPRESSION may consist of:\n" \	"\t-follow\t\tDereference symbolic links.\n" \	"\t-name PATTERN\tFile name (leading directories removed) matches PATTERN.\n" \	"\t-print\t\tPrint (default and assumed).\n" \	USAGE_FIND_TYPE( \	"\n\t-type X\t\tFiletype matches X (where X is one of: f,d,l,b,c,...)" \) USAGE_FIND_PERM( \	"\n\t-perm PERMS\tPermissions match any of (+NNN); all of (-NNN);\n\t\t\tor exactly (NNN)" \) USAGE_FIND_MTIME( \	"\n\t-mtime TIME\tModified time is greater than (+N); less than (-N);\n\t\t\tor exactly (N) days"\) USAGE_FIND_NEWER( \	"\n\t-newer FILE\tModified time is more recent than FILE's")#define find_example_usage \	"$ find / -name /etc/passwd\n" \	"/etc/passwd\n"#define free_trivial_usage \	""#define free_full_usage \	"Displays the amount of free and used system memory"#define free_example_usage \	"$ free\n" \	"              total         used         free       shared      buffers\n" \	"  Mem:       257628       248724         8904        59644        93124\n" \	" Swap:       128516         8404       120112\n" \	"Total:       386144       257128       129016\n" \#define freeramdisk_trivial_usage \	"DEVICE"#define freeramdisk_full_usage \	"Frees all memory used by the specified ramdisk."#define freeramdisk_example_usage \	"$ freeramdisk /dev/ram2\n"#define fsck_minix_trivial_usage \	"[-larvsmf] /dev/name"#define fsck_minix_full_usage \	"Performs a consistency check for MINIX filesystems.\n\n" \	"Options:\n" \	"\t-l\tLists all filenames\n" \	"\t-r\tPerform interactive repairs\n" \	"\t-a\tPerform automatic repairs\n" \	"\t-v\tverbose\n" \	"\t-s\tOutputs super-block information\n" \	"\t-m\tActivates MINIX-like \"mode not cleared\" warnings\n" \	"\t-f\tForce file system check."#define getopt_trivial_usage \	"[OPTIONS]..."#define getopt_full_usage \	"Parse command options\n" \	"\t-a, --alternative		Allow long options starting with single -\n" \	"\t-l, --longoptions=longopts	Long options to be recognized\n" \	"\t-n, --name=progname		The name under which errors are reported\n" \	"\t-o, --options=optstring	Short options to be recognized\n" \	"\t-q, --quiet			Disable error reporting by getopt(3)\n" \	"\t-Q, --quiet-output		No normal output\n" \	"\t-s, --shell=shell		Set shell quoting conventions\n" \	"\t-T, --test			Test for getopt(1) version\n" \	"\t-u, --unqote			Do not quote the output"#define getopt_example_usage \        "$ cat getopt.test\n" \        "#!/bin/sh\n" \        "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \        "       -n 'example.busybox' -- "$@"`\n" \        "if [ $? != 0 ] ; then  exit 1 ; fi\n" \        "eval set -- "$GETOPT"\n" \        "while true ; do\n" \        " case $1 in\n" \        "   -a|--a-long) echo \"Option a\" ; shift ;;\n" \        "   -b|--b-long) echo \"Option b, argument \`$2'\" ; shift 2 ;;\n" \        "   -c|--c-long)\n" \        "     case "$2" in\n" \        "       \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \        "       *)  echo \"Option c, argument \`$2'\" ; shift 2 ;;\n" \        "     esac ;;\n" \        "   --) shift ; break ;;\n" \        "   *) echo \"Internal error!\" ; exit 1 ;;\n" \        " esac\n" \        "done\n"#define grep_trivial_usage \	"[-ihHnqvs] PATTERN [FILEs...]"#define grep_full_usage \	"Search for PATTERN in each FILE or standard input.\n\n" \	"Options:\n" \	"\t-H\tprefix output lines with filename where match was found\n" \	"\t-h\tsuppress the prefixing filename on output\n" \	"\t-i\tignore case distinctions\n" \	"\t-l\tlist names of files that match\n" \	"\t-n\tprint line number with output lines\n" \	"\t-q\tbe quiet. Returns 0 if result was found, 1 otherwise\n" \	"\t-v\tselect non-matching lines\n" \	"\t-s\tsuppress file open/read error messages"#define grep_example_usage \	"$ grep root /etc/passwd\n" \	"root:x:0:0:root:/root:/bin/bash\n" \	"$ grep ^[rR]oo. /etc/passwd\n" \	"root:x:0:0:root:/root:/bin/bash\n"#define gunzip_trivial_usage \	"[OPTION]... FILE"#define gunzip_full_usage \	"Uncompress FILE (or standard input if FILE is '-').\n\n" \	"Options:\n" \	"\t-c\tWrite output to standard output\n" \	"\t-t\tTest compressed file integrity"#define gunzip_example_usage \	"$ ls -la /tmp/BusyBox*\n" \	"-rw-rw-r--    1 andersen andersen   557009 Apr 11 10:55 /tmp/BusyBox-0.43.tar.gz\n" \	"$ gunzip /tmp/BusyBox-0.43.tar.gz\n" \	"$ ls -la /tmp/BusyBox*\n" \	"-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar\n"#define gzip_trivial_usage \	"[OPTION]... FILE"#define gzip_full_usage \	"Compress FILE with maximum compression.\n" \	"When FILE is '-', reads standard input.  Implies -c.\n\n" \	"Options:\n" \	"\t-c\tWrite output to standard output instead of FILE.gz\n" \	"\t-d\tdecompress"#define gzip_example_usage \	"$ ls -la /tmp/busybox*\n" \	"-rw-rw-r--    1 andersen andersen  1761280 Apr 14 17:47 /tmp/busybox.tar\n" \	"$ gzip /tmp/busybox.tar\n" \	"$ ls -la /tmp/busybox*\n" \	"-rw-rw-r--    1 andersen andersen   554058 Apr 14 17:49 /tmp/busybox.tar.gz\n"#define halt_trivial_usage \	""#define halt_full_usage \	"Halt the system."#define head_trivial_usage \	"[OPTION] [FILE]..."#define head_full_usage \	"Print first 10 lines of each FILE to standard output.\n" \	"With more than one FILE, precede each with a header giving the\n" \	"file name. With no FILE, or when FILE is -, read standard input.\n\n" \	"Options:\n" \	"\t-n NUM\t\tPrint first NUM lines instead of first 10"#define head_example_usage \	"$ head -n 2 /etc/passwd\n" \	"root:x:0:0:root:/root:/bin/bash\n" \	"daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n"#define hostid_trivial_usage \	""#define hostid_full_usage \	"Print out a unique 32-bit identifier for the machine."#define hostname_trivial_usage \	"[OPTION] {hostname | -F FILE}"#define hostname_full_usage \	"Get or set the hostname or DNS domain name. If a hostname is given\n" \	"(or FILE with the -F parameter), the host name will be set.\n\n" \	"Options:\n" \	"\t-s\t\tShort\n" \	"\t-i\t\tAddresses for the hostname\n" \	"\t-d\t\tDNS domain name\n" \	"\t-F, --file FILE\tUse the contents of FILE to specify the hostname"#define hostname_example_usage \	"$ hostname\n" \	"sage \n"#define id_trivial_usage \	"[OPTIONS]... [USERNAME]"#define id_full_usage \	"Print information for USERNAME or the current user\n\n" \	"Options:\n" \	"\t-g\tprints only the group ID\n" \	"\t-u\tprints only the user ID\n" \	"\t-n\tprint a name instead of a number (with for -ug)\n" \	"\t-r\tprints the real user ID instead of the effective ID (with -ug)"#define id_example_usage \	"$ id\n" \	"uid=1000(andersen) gid=1000(andersen)\n"#ifdef BB_FEATURE_IFCONFIG_SLIP  #define USAGE_SIOCSKEEPALIVE(a) a#else  #define USAGE_SIOCSKEEPALIVE(a)#endif#ifdef BB_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ  #define USAGE_IFCONFIG_MII(a) a#else  #define USAGE_IFCONFIG_MII(a)#endif#ifdef BB_FEATURE_IFCONFIG_HW  #define USAGE_IFCONFIG_HW(a) a#else  #define USAGE_IFCONFIG_HW(a)#endif#ifdef BB_FEATURE_IFCONFIG_STATUS  #define USAGE_IFCONFIG_OPT_A(a) a#else  #define USAGE_IFCONFIG_OPT_A(a)#endif#define ifconfig_trivial_usage \	USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]"#define ifconfig_full_usage \	"configure a network interface\n\n" \	"Options:\n" \	"\t[[-]broadcast [<address>]]  [[-]pointopoint [<address>]]\n" \	"\t[netmask <address>]  [dstaddr <address>]\n" \	USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \	"\t" USAGE_IFCONFIG_HW("[hw ether <address>]  ") \    "[metric <NN>]  [mtu <NN>]\n" \	"\t[[-]trailers]  [[-]arp]  [[-]allmulti]\n" \	"\t[multicast]  [[-]promisc]  [txqueuelen <NN>]  [[-]dynamic]\n" \	USAGE_IFCONFIG_MII("\t[mem_start <NN>]  [io_addr <NN>]  [irq <NN>]\n") \	"\t[up|down] ..."#define init_trivial_usage \	""#define init_full_usage \	"Init is the parent of all processes."#define init_notes_usage \"This version of init is designed to be run only by the kernel.\n" \"\n" \"BusyBox init doesn't support multiple runlevels.  The runlevels field of\n" \"the /etc/inittab file is completely ignored by BusyBox init. If you want \n" \"runlevels, use sysvinit.\n" \"\n" \"BusyBox init works just fine without an inittab.  If no inittab is found, \n" \"it has the following default behavior:\n" \"\n" \"	::sysinit:/etc/init.d/rcS\n" \"	::askfirst:/bin/sh\n" \"	::ctrlaltdel:/sbin/reboot\n" \"	::shutdown:/sbin/swapoff -a\n" \"	::shutdown:/bin/umount -a -r\n" \"	::restart:/sbin/init\n" \"\n" \"if it detects that /dev/console is _not_ a serial console, it will also run:\n" \"\n" \"	tty2::askfirst:/bin/sh\n" \"	tty3::askfirst:/bin/sh\n" \"	tty4::askfirst:/bin/sh\n" \"\n" \"If you choose to use an /etc/inittab file, the inittab entry format is as follows:\n" \"\n" \"	<id>:<runlevels>:<action>:<process>\n" \"\n" \"	<id>: \n" \"\n" \"		WARNING: This field has a non-traditional meaning for BusyBox init!\n" \"		The id field is used by BusyBox init to specify the controlling tty for\n" \"		the specified process to run on.  The contents of this field are\n" \"		appended to "/dev/" and used as-is.  There is no need for this field to\n" \"		be unique, although if it isn't you may have strange results.  If this\n" \"		field is left blank, the controlling tty is set to the console.  Also\n" \"		note that if BusyBox detects that a serial console is in use, then only\n" \"		entries whose controlling tty is either the serial console or /dev/null\n" \"		will be run.  BusyBox init does nothing with utmp.  We don't need no\n" \"		stinkin' utmp.\n" \"\n" \"	<runlevels>: \n" \"\n" \"		The runlevels field is completely ignored.\n" \"\n" \"	<action>: \n" \"\n" \"		Valid actions include: sysinit, respawn, askfirst, wait, \n" \"		once, restart, ctrlaltdel, and shutdown.\n" \"\n" \"		The available actions can be classified into two groups: actions\n" \"		that are run only once, and actions that are re-run when the specified\n" \"		process exits.\n" \"\n" \"		Run only-once actions:\n" \"\n" \"			'sysinit' is the first item run on boot.  init waits until all\n" \"			sysinit actions are completed before continuing.  Following the\n" \"			completion of all sysinit actions, all 'wait' actions are run.\n" \"			'wait' actions, like  'sysinit' actions, cause init to wait until\n" \"			the specified task completes.  'once' actions are asynchronous,\n" \"			therefore, init does not wait for them to complete.  'restart' is\n" \"			the action taken to restart the init process.  By default this should\n" \"			simply run /sbin/init, but can be a script which runs pivot_root or it\n" \"			can do all sorts of other interesting things.  The 'ctrlaltdel' init\n" \"			actions are run when the system detects that someone on the system\n" \"                       console has pressed the CTRL-ALT-DEL key combination.  Typically one\n" \"                       wants to run 'reboot' at this point to cause the system to reboot.\n" \"			Finally the 'shutdown' action specifies the actions to taken when\n" \"                       init is told to reboot.  Unmounting filesystems and disabling swap\n" \"                       is a very good here\n" \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -