blob: 5ecfe3cba40ac610127f6a23ed85598f32acf3bd [file] [log] [blame]
Mark Whitley130005c2000-10-25 00:28:27 +00001/*
2 * applets.h - a listing of all busybox applets.
3 *
4 * If you write a new applet, you need to add an entry to this list to make
5 * busybox aware of it.
6 *
7 * It is CRUCIAL that this listing be kept in ascii order, otherwise the binary
8 * search lookup contributed by Gaute B Strokkenes stops working. If you value
9 * your kneecaps, you'll be sure to *make sure* that any changes made to this
10 * file result in the listing remaining in ascii order. You have been warned.
11 */
12
Eric Andersen67991cf2001-02-14 21:23:06 +000013#undef APPLET
14#undef APPLET_ODDNAME
15#undef APPLET_NOUSAGE
16
Eric Andersen7e9276b2001-02-22 01:15:47 +000017
Eric Andersen868c0572000-12-02 00:44:48 +000018#if defined(PROTOTYPES)
Eric Andersen7e9276b2001-02-22 01:15:47 +000019 #define APPLET(a,b,c) extern int b(int argc, char **argv);
20 #define APPLET_NOUSAGE(a,b,c) extern int b(int argc, char **argv);
21 #define APPLET_ODDNAME(a,b,c,d) extern int b(int argc, char **argv);
22 extern const char usage_messages[];
23#elif defined(MAKE_USAGE)
Matt Kraaia2e68fc2001-03-27 21:57:29 +000024 #ifdef BB_FEATURE_VERBOSE_USAGE
Eric Andersen7e9276b2001-02-22 01:15:47 +000025 #define APPLET(a,b,c) a##_trivial_usage "\n\n" a##_full_usage "\0"
26 #define APPLET_NOUSAGE(a,b,c) "\0"
27 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\n\n" d##_full_usage "\0"
Matt Kraaia2e68fc2001-03-27 21:57:29 +000028 #else
29 #define APPLET(a,b,c) a##_trivial_usage "\0"
30 #define APPLET_NOUSAGE(a,b,c) "\0"
31 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\0"
Eric Andersen7e9276b2001-02-22 01:15:47 +000032 #endif
Eric Andersen3574b702001-02-23 02:16:29 +000033#elif defined(MAKE_LINKS)
34# define APPLET(a,b,c) LINK c a
35# define APPLET_NOUSAGE(a,b,c) LINK c a
36# define APPLET_ODDNAME(a,b,c,d) LINK c a
Eric Andersen868c0572000-12-02 00:44:48 +000037#else
Eric Andersen7e9276b2001-02-22 01:15:47 +000038 const struct BB_applet applets[] = {
39 #define APPLET(a,b,c) {#a,b,c},
40 #define APPLET_NOUSAGE(a,b,c) {a,b,c},
41 #define APPLET_ODDNAME(a,b,c,d) {a,b,c},
Eric Andersen8c725e62000-11-30 00:27:06 +000042#endif
Mark Whitley130005c2000-10-25 00:28:27 +000043
Eric Andersen7e9276b2001-02-22 01:15:47 +000044
45
Mark Whitley130005c2000-10-25 00:28:27 +000046#ifdef BB_TEST
Eric Andersen7e9276b2001-02-22 01:15:47 +000047 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000048#endif
Eric Andersenf349e972001-08-21 16:18:59 +000049#ifdef BB_ADDGROUP
50 APPLET(addgroup, addgroup_main, _BB_DIR_BIN)
51#endif
52#ifdef BB_ADDUSER
53 APPLET(adduser, adduser_main, _BB_DIR_BIN)
54#endif
Mark Whitley6f932772001-03-20 19:18:10 +000055#ifdef BB_ADJTIMEX
56 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
57#endif
Mark Whitley130005c2000-10-25 00:28:27 +000058#ifdef BB_AR
Eric Andersen67991cf2001-02-14 21:23:06 +000059 APPLET(ar, ar_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000060#endif
Matt Kraai2d91deb2001-08-01 17:21:35 +000061#ifdef BB_ASH
62 APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN)
63#endif
Mark Whitley130005c2000-10-25 00:28:27 +000064#ifdef BB_BASENAME
Eric Andersen67991cf2001-02-14 21:23:06 +000065 APPLET(basename, basename_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000066#endif
Glenn L McGrath24e28332001-10-05 03:48:57 +000067#ifdef BB_BUNZIP2
68 APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
69#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +000070 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000071#ifdef BB_CAT
Eric Andersen67991cf2001-02-14 21:23:06 +000072 APPLET(cat, cat_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000073#endif
Eric Andersen9f0fedb2001-04-24 18:07:19 +000074#ifdef BB_CHGRP
75 APPLET(chgrp, chgrp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000076#endif
Eric Andersen9f0fedb2001-04-24 18:07:19 +000077#ifdef BB_CHMOD
78 APPLET(chmod, chmod_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000079#endif
Eric Andersen9f0fedb2001-04-24 18:07:19 +000080#ifdef BB_CHOWN
81 APPLET(chown, chown_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000082#endif
83#ifdef BB_CHROOT
Eric Andersen67991cf2001-02-14 21:23:06 +000084 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +000085#endif
86#ifdef BB_CHVT
Eric Andersen67991cf2001-02-14 21:23:06 +000087 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000088#endif
89#ifdef BB_CLEAR
Eric Andersen67991cf2001-02-14 21:23:06 +000090 APPLET(clear, clear_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000091#endif
92#ifdef BB_CMP
Eric Andersen67991cf2001-02-14 21:23:06 +000093 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000094#endif
Matt Kraai91b28552001-04-23 18:53:07 +000095#ifdef BB_CP
96 APPLET(cp, cp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000097#endif
Glenn L McGrath8f5b63e2001-06-22 09:22:06 +000098#ifdef BB_CPIO
99 APPLET(cpio, cpio_main, _BB_DIR_BIN)
100#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000101#ifdef BB_CUT
Eric Andersen67991cf2001-02-14 21:23:06 +0000102 APPLET(cut, cut_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000103#endif
104#ifdef BB_DATE
Eric Andersen67991cf2001-02-14 21:23:06 +0000105 APPLET(date, date_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000106#endif
107#ifdef BB_DC
Eric Andersen67991cf2001-02-14 21:23:06 +0000108 APPLET(dc, dc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000109#endif
110#ifdef BB_DD
Eric Andersen67991cf2001-02-14 21:23:06 +0000111 APPLET(dd, dd_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000112#endif
113#ifdef BB_DEALLOCVT
Eric Andersen67991cf2001-02-14 21:23:06 +0000114 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000115#endif
Eric Andersenf349e972001-08-21 16:18:59 +0000116#ifdef BB_DELGROUP
117 APPLET(delgroup, delgroup_main, _BB_DIR_BIN)
118#endif
119#ifdef BB_DELUSER
120 APPLET(deluser, deluser_main, _BB_DIR_BIN)
121#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000122#ifdef BB_DF
Eric Andersen67991cf2001-02-14 21:23:06 +0000123 APPLET(df, df_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000124#endif
125#ifdef BB_DIRNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000126 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000127#endif
128#ifdef BB_DMESG
Eric Andersen67991cf2001-02-14 21:23:06 +0000129 APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000130#endif
131#ifdef BB_DOS2UNIX
Eric Andersen67991cf2001-02-14 21:23:06 +0000132 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000133#endif
Glenn L McGrathc30ab0f2001-02-10 02:04:40 +0000134#ifdef BB_DPKG
Eric Andersen67991cf2001-02-14 21:23:06 +0000135 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
Glenn L McGrathc30ab0f2001-02-10 02:04:40 +0000136#endif
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000137#ifdef BB_DPKG_DEB
Eric Andersen7e9276b2001-02-22 01:15:47 +0000138 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000139#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000140#ifdef BB_DU
Eric Andersen67991cf2001-02-14 21:23:06 +0000141 APPLET(du, du_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000142#endif
143#ifdef BB_DUMPKMAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000144 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000145#endif
146#ifdef BB_DUTMP
Eric Andersen67991cf2001-02-14 21:23:06 +0000147 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000148#endif
149#ifdef BB_ECHO
Eric Andersen67991cf2001-02-14 21:23:06 +0000150 APPLET(echo, echo_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000151#endif
Mark Whitley40e5e7c2001-03-14 17:45:45 +0000152#if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
Eric Andersene2a3cd12001-03-16 23:49:20 +0000153 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
Mark Whitley40e5e7c2001-03-14 17:45:45 +0000154#endif
Eric Andersen84e229c2001-03-29 22:48:33 +0000155#ifdef BB_ENV
156 APPLET(env, env_main, _BB_DIR_USR_BIN)
157#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000158#ifdef BB_EXPR
Eric Andersen67991cf2001-02-14 21:23:06 +0000159 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000160#endif
161#ifdef BB_TRUE_FALSE
Eric Andersen67991cf2001-02-14 21:23:06 +0000162 APPLET(false, false_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000163#endif
164#ifdef BB_FBSET
Eric Andersen0d3a02e2001-03-15 18:14:25 +0000165 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000166#endif
167#ifdef BB_FDFLUSH
Eric Andersen67991cf2001-02-14 21:23:06 +0000168 APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000169#endif
170#ifdef BB_FIND
Eric Andersen67991cf2001-02-14 21:23:06 +0000171 APPLET(find, find_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000172#endif
173#ifdef BB_FREE
Eric Andersen67991cf2001-02-14 21:23:06 +0000174 APPLET(free, free_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000175#endif
176#ifdef BB_FREERAMDISK
Eric Andersen67991cf2001-02-14 21:23:06 +0000177 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000178#endif
179#ifdef BB_FSCK_MINIX
Eric Andersen7e9276b2001-02-22 01:15:47 +0000180 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
Mark Whitley130005c2000-10-25 00:28:27 +0000181#endif
182#ifdef BB_GETOPT
Eric Andersen67991cf2001-02-14 21:23:06 +0000183 APPLET(getopt, getopt_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000184#endif
Eric Andersenf349e972001-08-21 16:18:59 +0000185#ifdef BB_GETTY
186 APPLET(getty, getty_main, _BB_DIR_SBIN)
187#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000188#ifdef BB_GREP
Eric Andersen67991cf2001-02-14 21:23:06 +0000189 APPLET(grep, grep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000190#endif
191#ifdef BB_GUNZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000192 APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000193#endif
194#ifdef BB_GZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000195 APPLET(gzip, gzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000196#endif
197#ifdef BB_HALT
Eric Andersen67991cf2001-02-14 21:23:06 +0000198 APPLET(halt, halt_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000199#endif
200#ifdef BB_HEAD
Eric Andersen67991cf2001-02-14 21:23:06 +0000201 APPLET(head, head_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000202#endif
203#ifdef BB_HOSTID
Eric Andersen67991cf2001-02-14 21:23:06 +0000204 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000205#endif
206#ifdef BB_HOSTNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000207 APPLET(hostname, hostname_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000208#endif
Matt Kraai2d91deb2001-08-01 17:21:35 +0000209#ifdef BB_HUSH
210 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN)
211#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000212#ifdef BB_ID
Eric Andersen67991cf2001-02-14 21:23:06 +0000213 APPLET(id, id_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000214#endif
Eric Andersenec455952001-02-14 08:11:27 +0000215#ifdef BB_IFCONFIG
Eric Andersen67991cf2001-02-14 21:23:06 +0000216 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
Eric Andersenec455952001-02-14 08:11:27 +0000217#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000218#ifdef BB_INIT
Eric Andersen67991cf2001-02-14 21:23:06 +0000219 APPLET(init, init_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000220#endif
221#ifdef BB_INSMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000222 APPLET(insmod, insmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000223#endif
224#ifdef BB_KILL
Eric Andersen67991cf2001-02-14 21:23:06 +0000225 APPLET(kill, kill_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000226#endif
227#ifdef BB_KILLALL
Eric Andersen67991cf2001-02-14 21:23:06 +0000228 APPLET(killall, kill_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000229#endif
Mark Whitley6317c4b2001-03-12 22:51:50 +0000230#ifdef BB_KLOGD
231 APPLET(klogd, klogd_main, _BB_DIR_SBIN)
232#endif
Matt Kraai2d91deb2001-08-01 17:21:35 +0000233#ifdef BB_LASH
234 APPLET(lash, lash_main, _BB_DIR_BIN)
235#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000236#ifdef BB_LENGTH
Eric Andersen67991cf2001-02-14 21:23:06 +0000237 APPLET(length, length_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000238#endif
Eric Andersen2825ee82001-03-15 18:58:06 +0000239#ifdef BB_FEATURE_LINUXRC
Eric Andersen7e9276b2001-02-22 01:15:47 +0000240 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
Mark Whitley130005c2000-10-25 00:28:27 +0000241#endif
242#ifdef BB_LN
Eric Andersen67991cf2001-02-14 21:23:06 +0000243 APPLET(ln, ln_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000244#endif
245#ifdef BB_LOADACM
Eric Andersen67991cf2001-02-14 21:23:06 +0000246 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000247#endif
248#ifdef BB_LOADFONT
Eric Andersen67991cf2001-02-14 21:23:06 +0000249 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000250#endif
251#ifdef BB_LOADKMAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000252 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000253#endif
254#ifdef BB_LOGGER
Eric Andersen67991cf2001-02-14 21:23:06 +0000255 APPLET(logger, logger_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000256#endif
257#ifdef BB_LOGNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000258 APPLET(logname, logname_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000259#endif
Mark Whitley6317c4b2001-03-12 22:51:50 +0000260#ifdef BB_LOGREAD
261 APPLET(logread, logread_main, _BB_DIR_SBIN)
262#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000263#ifdef BB_LS
Eric Andersen67991cf2001-02-14 21:23:06 +0000264 APPLET(ls, ls_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000265#endif
266#ifdef BB_LSMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000267 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000268#endif
269#ifdef BB_MAKEDEVS
Eric Andersen67991cf2001-02-14 21:23:06 +0000270 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000271#endif
272#ifdef BB_MD5SUM
Eric Andersen67991cf2001-02-14 21:23:06 +0000273 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000274#endif
275#ifdef BB_MKDIR
Eric Andersen67991cf2001-02-14 21:23:06 +0000276 APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000277#endif
278#ifdef BB_MKFIFO
Eric Andersen67991cf2001-02-14 21:23:06 +0000279 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000280#endif
281#ifdef BB_MKFS_MINIX
Eric Andersen7e9276b2001-02-22 01:15:47 +0000282 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
Mark Whitley130005c2000-10-25 00:28:27 +0000283#endif
284#ifdef BB_MKNOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000285 APPLET(mknod, mknod_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000286#endif
287#ifdef BB_MKSWAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000288 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000289#endif
290#ifdef BB_MKTEMP
Eric Andersen67991cf2001-02-14 21:23:06 +0000291 APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000292#endif
Eric Andersen8d79ce82001-07-22 23:00:15 +0000293#ifdef BB_MODPROBE
294 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
295#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000296#ifdef BB_MORE
Eric Andersen67991cf2001-02-14 21:23:06 +0000297 APPLET(more, more_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000298#endif
299#ifdef BB_MOUNT
Eric Andersen67991cf2001-02-14 21:23:06 +0000300 APPLET(mount, mount_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000301#endif
Matt Kraai2d91deb2001-08-01 17:21:35 +0000302#ifdef BB_MSH
303 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN)
304#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000305#ifdef BB_MT
Eric Andersen67991cf2001-02-14 21:23:06 +0000306 APPLET(mt, mt_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000307#endif
Matt Kraai91b28552001-04-23 18:53:07 +0000308#ifdef BB_MV
309 APPLET(mv, mv_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000310#endif
311#ifdef BB_NC
Eric Andersen67991cf2001-02-14 21:23:06 +0000312 APPLET(nc, nc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000313#endif
314#ifdef BB_NSLOOKUP
Eric Andersen67991cf2001-02-14 21:23:06 +0000315 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000316#endif
Eric Andersen221b2ea2001-07-31 19:06:07 +0000317#ifdef BB_PIDOF
318 APPLET(pidof, pidof_main, _BB_DIR_BIN)
319#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000320#ifdef BB_PING
Eric Andersen67991cf2001-02-14 21:23:06 +0000321 APPLET(ping, ping_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000322#endif
Eric Andersen6fd8c662001-02-13 20:04:30 +0000323#ifdef BB_PIVOT_ROOT
Eric Andersen67991cf2001-02-14 21:23:06 +0000324 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
Eric Andersen6fd8c662001-02-13 20:04:30 +0000325#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000326#ifdef BB_POWEROFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000327 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000328#endif
329#ifdef BB_PRINTF
Eric Andersen67991cf2001-02-14 21:23:06 +0000330 APPLET(printf, printf_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000331#endif
332#ifdef BB_PS
Eric Andersen67991cf2001-02-14 21:23:06 +0000333 APPLET(ps, ps_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000334#endif
335#ifdef BB_PWD
Eric Andersen67991cf2001-02-14 21:23:06 +0000336 APPLET(pwd, pwd_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000337#endif
338#ifdef BB_RDATE
Eric Andersen67991cf2001-02-14 21:23:06 +0000339 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000340#endif
341#ifdef BB_READLINK
Eric Andersen67991cf2001-02-14 21:23:06 +0000342 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000343#endif
344#ifdef BB_REBOOT
Eric Andersen67991cf2001-02-14 21:23:06 +0000345 APPLET(reboot, reboot_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000346#endif
347#ifdef BB_RENICE
Eric Andersen67991cf2001-02-14 21:23:06 +0000348 APPLET(renice, renice_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000349#endif
350#ifdef BB_RESET
Eric Andersen67991cf2001-02-14 21:23:06 +0000351 APPLET(reset, reset_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000352#endif
353#ifdef BB_RM
Eric Andersen67991cf2001-02-14 21:23:06 +0000354 APPLET(rm, rm_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000355#endif
356#ifdef BB_RMDIR
Eric Andersen67991cf2001-02-14 21:23:06 +0000357 APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000358#endif
359#ifdef BB_RMMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000360 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000361#endif
Eric Andersenec455952001-02-14 08:11:27 +0000362#ifdef BB_ROUTE
Tim Riker4c67c592001-09-16 02:00:09 +0000363 APPLET(route, route_main, _BB_DIR_SBIN)
Eric Andersenec455952001-02-14 08:11:27 +0000364#endif
Glenn L McGrathf8736d22001-06-26 01:19:34 +0000365#ifdef BB_RPM2CPIO
366 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
367#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000368#ifdef BB_SED
Eric Andersen67991cf2001-02-14 21:23:06 +0000369 APPLET(sed, sed_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000370#endif
371#ifdef BB_SETKEYCODES
Eric Andersen67991cf2001-02-14 21:23:06 +0000372 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000373#endif
Eric Andersen46bf7de2001-08-02 08:48:03 +0000374#if defined(BB_FEATURE_SH_IS_ASH) && defined(BB_ASH)
Matt Kraai2d91deb2001-08-01 17:21:35 +0000375 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN)
Eric Andersen46bf7de2001-08-02 08:48:03 +0000376#elif defined(BB_FEATURE_SH_IS_HUSH) && defined(BB_HUSH)
Matt Kraai2d91deb2001-08-01 17:21:35 +0000377 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN)
Eric Andersen46bf7de2001-08-02 08:48:03 +0000378#elif defined(BB_FEATURE_SH_IS_LASH) && defined(BB_LASH)
Matt Kraai2d91deb2001-08-01 17:21:35 +0000379 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN)
Eric Andersen46bf7de2001-08-02 08:48:03 +0000380#elif defined(BB_FEATURE_SH_IS_MSH) && defined(BB_MSH)
Matt Kraai2d91deb2001-08-01 17:21:35 +0000381 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000382#endif
383#ifdef BB_SLEEP
Eric Andersen67991cf2001-02-14 21:23:06 +0000384 APPLET(sleep, sleep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000385#endif
386#ifdef BB_SORT
Eric Andersen67991cf2001-02-14 21:23:06 +0000387 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000388#endif
Eric Andersenc2af1ee2001-10-18 19:33:06 +0000389#ifdef BB_START_STOP_DAEMON
390 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, start_stop_daemon)
391#endif
Eric Andersen98e599c2001-02-14 18:47:33 +0000392#ifdef BB_STTY
Eric Andersen67991cf2001-02-14 21:23:06 +0000393 APPLET(stty, stty_main, _BB_DIR_BIN)
Eric Andersen98e599c2001-02-14 18:47:33 +0000394#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000395#ifdef BB_SWAPONOFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000396 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000397#endif
398#ifdef BB_SWAPONOFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000399 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000400#endif
401#ifdef BB_SYNC
Eric Andersen67991cf2001-02-14 21:23:06 +0000402 APPLET(sync, sync_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000403#endif
404#ifdef BB_SYSLOGD
Eric Andersen67991cf2001-02-14 21:23:06 +0000405 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000406#endif
407#ifdef BB_TAIL
Eric Andersen67991cf2001-02-14 21:23:06 +0000408 APPLET(tail, tail_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000409#endif
410#ifdef BB_TAR
Eric Andersen67991cf2001-02-14 21:23:06 +0000411 APPLET(tar, tar_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000412#endif
413#ifdef BB_TEE
Eric Andersen67991cf2001-02-14 21:23:06 +0000414 APPLET(tee, tee_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000415#endif
416#ifdef BB_TELNET
Eric Andersen67991cf2001-02-14 21:23:06 +0000417 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000418#endif
419#ifdef BB_TEST
Eric Andersen67991cf2001-02-14 21:23:06 +0000420 APPLET(test, test_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000421#endif
Mark Whitley450736c2001-03-02 19:08:50 +0000422#ifdef BB_TFTP
423 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
424#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000425#ifdef BB_TOUCH
Eric Andersen67991cf2001-02-14 21:23:06 +0000426 APPLET(touch, touch_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000427#endif
428#ifdef BB_TR
Eric Andersen67991cf2001-02-14 21:23:06 +0000429 APPLET(tr, tr_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000430#endif
Eric Andersen5c58d282001-07-10 16:29:00 +0000431#ifdef BB_TRACEROUTE
432 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN)
433#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000434#ifdef BB_TRUE_FALSE
Eric Andersen67991cf2001-02-14 21:23:06 +0000435 APPLET(true, true_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000436#endif
437#ifdef BB_TTY
Eric Andersen67991cf2001-02-14 21:23:06 +0000438 APPLET(tty, tty_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000439#endif
440#ifdef BB_UMOUNT
Eric Andersen67991cf2001-02-14 21:23:06 +0000441 APPLET(umount, umount_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000442#endif
443#ifdef BB_UNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000444 APPLET(uname, uname_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000445#endif
446#ifdef BB_UNIQ
Eric Andersen67991cf2001-02-14 21:23:06 +0000447 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000448#endif
449#ifdef BB_UNIX2DOS
Eric Andersen655584b2001-07-25 07:22:55 +0000450 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000451#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000452#ifdef BB_UPDATE
Eric Andersen67991cf2001-02-14 21:23:06 +0000453 APPLET(update, update_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000454#endif
455#ifdef BB_UPTIME
Eric Andersen67991cf2001-02-14 21:23:06 +0000456 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000457#endif
458#ifdef BB_USLEEP
Eric Andersen67991cf2001-02-14 21:23:06 +0000459 APPLET(usleep, usleep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000460#endif
461#ifdef BB_UUDECODE
Eric Andersen67991cf2001-02-14 21:23:06 +0000462 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000463#endif
464#ifdef BB_UUENCODE
Eric Andersen67991cf2001-02-14 21:23:06 +0000465 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000466#endif
Eric Andersen3f980402001-04-04 17:31:15 +0000467#ifdef BB_VI
468 APPLET(vi, vi_main, _BB_DIR_BIN)
469#endif
Eric Andersenffde8672001-01-25 23:40:32 +0000470#ifdef BB_WATCHDOG
Eric Andersen67991cf2001-02-14 21:23:06 +0000471 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
Eric Andersenffde8672001-01-25 23:40:32 +0000472#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000473#ifdef BB_WC
Eric Andersen67991cf2001-02-14 21:23:06 +0000474 APPLET(wc, wc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000475#endif
476#ifdef BB_WGET
Eric Andersen67991cf2001-02-14 21:23:06 +0000477 APPLET(wget, wget_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000478#endif
479#ifdef BB_WHICH
Eric Andersen67991cf2001-02-14 21:23:06 +0000480 APPLET(which, which_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000481#endif
482#ifdef BB_WHOAMI
Eric Andersen67991cf2001-02-14 21:23:06 +0000483 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000484#endif
485#ifdef BB_XARGS
Eric Andersen67991cf2001-02-14 21:23:06 +0000486 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000487#endif
488#ifdef BB_YES
Eric Andersen67991cf2001-02-14 21:23:06 +0000489 APPLET(yes, yes_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000490#endif
491#ifdef BB_GUNZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000492 APPLET(zcat, gunzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000493#endif
Eric Andersen8c725e62000-11-30 00:27:06 +0000494
Eric Andersen7e9276b2001-02-22 01:15:47 +0000495#if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
496 { 0,NULL,0 }
Mark Whitley130005c2000-10-25 00:28:27 +0000497};
498
Eric Andersen8c725e62000-11-30 00:27:06 +0000499#endif
Eric Andersenf349e972001-08-21 16:18:59 +0000500