2 * applets.h - a listing of all busybox applets.
4 * If you write a new applet, you need to add an entry to this list to make
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.
18 #if defined(PROTOTYPES)
19 #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)
24 #ifdef BB_FEATURE_VERBOSE_USAGE
25 #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"
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"
33 #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
38 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},
47 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
50 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
53 APPLET(ar, ar_main, _BB_DIR_USR_BIN)
56 APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN)
59 APPLET(basename, basename_main, _BB_DIR_USR_BIN)
61 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
63 APPLET(cat, cat_main, _BB_DIR_BIN)
66 APPLET(chgrp, chgrp_main, _BB_DIR_BIN)
69 APPLET(chmod, chmod_main, _BB_DIR_BIN)
72 APPLET(chown, chown_main, _BB_DIR_BIN)
75 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
78 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
81 APPLET(clear, clear_main, _BB_DIR_USR_BIN)
84 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
87 APPLET(cp, cp_main, _BB_DIR_BIN)
90 APPLET(cpio, cpio_main, _BB_DIR_BIN)
93 APPLET(cut, cut_main, _BB_DIR_USR_BIN)
96 APPLET(date, date_main, _BB_DIR_BIN)
99 APPLET(dc, dc_main, _BB_DIR_USR_BIN)
102 APPLET(dd, dd_main, _BB_DIR_BIN)
105 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
108 APPLET(df, df_main, _BB_DIR_BIN)
111 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
114 APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
117 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
120 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
123 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
126 APPLET(du, du_main, _BB_DIR_USR_BIN)
129 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
132 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
135 APPLET(echo, echo_main, _BB_DIR_BIN)
137 #if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
138 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
141 APPLET(env, env_main, _BB_DIR_USR_BIN)
144 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
147 APPLET(false, false_main, _BB_DIR_BIN)
150 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN)
153 APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
156 APPLET(find, find_main, _BB_DIR_USR_BIN)
159 APPLET(free, free_main, _BB_DIR_USR_BIN)
161 #ifdef BB_FREERAMDISK
162 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
165 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
168 APPLET(getopt, getopt_main, _BB_DIR_BIN)
171 APPLET(grep, grep_main, _BB_DIR_BIN)
174 APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
177 APPLET(gzip, gzip_main, _BB_DIR_BIN)
180 APPLET(halt, halt_main, _BB_DIR_SBIN)
183 APPLET(head, head_main, _BB_DIR_USR_BIN)
186 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
189 APPLET(hostname, hostname_main, _BB_DIR_BIN)
192 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN)
195 APPLET(id, id_main, _BB_DIR_USR_BIN)
198 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
201 APPLET(init, init_main, _BB_DIR_SBIN)
204 APPLET(insmod, insmod_main, _BB_DIR_SBIN)
207 APPLET(kill, kill_main, _BB_DIR_BIN)
210 APPLET(killall, kill_main, _BB_DIR_USR_BIN)
213 APPLET(klogd, klogd_main, _BB_DIR_SBIN)
216 APPLET(lash, lash_main, _BB_DIR_BIN)
219 APPLET(length, length_main, _BB_DIR_USR_BIN)
221 #ifdef BB_FEATURE_LINUXRC
222 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
225 APPLET(ln, ln_main, _BB_DIR_BIN)
228 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
231 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
234 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
237 APPLET(logger, logger_main, _BB_DIR_USR_BIN)
240 APPLET(logname, logname_main, _BB_DIR_USR_BIN)
243 APPLET(logread, logread_main, _BB_DIR_SBIN)
246 APPLET(ls, ls_main, _BB_DIR_BIN)
249 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
252 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
255 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
258 APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
261 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
264 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
267 APPLET(mknod, mknod_main, _BB_DIR_BIN)
270 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
273 APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
276 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
279 APPLET(more, more_main, _BB_DIR_BIN)
282 APPLET(mount, mount_main, _BB_DIR_BIN)
285 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN)
288 APPLET(mt, mt_main, _BB_DIR_BIN)
291 APPLET(mv, mv_main, _BB_DIR_BIN)
294 APPLET(nc, nc_main, _BB_DIR_USR_BIN)
297 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
300 APPLET(pidof, pidof_main, _BB_DIR_BIN)
303 APPLET(ping, ping_main, _BB_DIR_BIN)
306 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
309 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
312 APPLET(printf, printf_main, _BB_DIR_USR_BIN)
315 APPLET(ps, ps_main, _BB_DIR_BIN)
318 APPLET(pwd, pwd_main, _BB_DIR_BIN)
321 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
324 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
327 APPLET(reboot, reboot_main, _BB_DIR_SBIN)
330 APPLET(renice, renice_main, _BB_DIR_USR_BIN)
333 APPLET(reset, reset_main, _BB_DIR_USR_BIN)
336 APPLET(rm, rm_main, _BB_DIR_BIN)
339 APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
342 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
345 APPLET(route, route_main, _BB_DIR_USR_BIN)
348 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
351 APPLET(rpmunpack, rpmunpack_main, _BB_DIR_USR_BIN)
354 APPLET(sed, sed_main, _BB_DIR_BIN)
356 #ifdef BB_SETKEYCODES
357 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
359 #if defined(BB_FEATURE_SH_IS_ASH) && defined(BB_ASH)
360 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN)
361 #elif defined(BB_FEATURE_SH_IS_HUSH) && defined(BB_HUSH)
362 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN)
363 #elif defined(BB_FEATURE_SH_IS_LASH) && defined(BB_LASH)
364 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN)
365 #elif defined(BB_FEATURE_SH_IS_MSH) && defined(BB_MSH)
366 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN)
369 APPLET(sleep, sleep_main, _BB_DIR_BIN)
372 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
375 APPLET(stty, stty_main, _BB_DIR_BIN)
378 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
381 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
384 APPLET(sync, sync_main, _BB_DIR_BIN)
387 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
390 APPLET(tail, tail_main, _BB_DIR_USR_BIN)
393 APPLET(tar, tar_main, _BB_DIR_BIN)
396 APPLET(tee, tee_main, _BB_DIR_USR_BIN)
399 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
402 APPLET(test, test_main, _BB_DIR_USR_BIN)
405 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
408 APPLET(touch, touch_main, _BB_DIR_BIN)
411 APPLET(tr, tr_main, _BB_DIR_USR_BIN)
414 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN)
417 APPLET(true, true_main, _BB_DIR_BIN)
420 APPLET(tty, tty_main, _BB_DIR_USR_BIN)
423 APPLET(umount, umount_main, _BB_DIR_BIN)
426 APPLET(uname, uname_main, _BB_DIR_BIN)
429 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
432 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
435 APPLET(update, update_main, _BB_DIR_SBIN)
438 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
441 APPLET(usleep, usleep_main, _BB_DIR_BIN)
444 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
447 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
450 APPLET(vi, vi_main, _BB_DIR_BIN)
453 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
456 APPLET(wc, wc_main, _BB_DIR_USR_BIN)
459 APPLET(wget, wget_main, _BB_DIR_USR_BIN)
462 APPLET(which, which_main, _BB_DIR_USR_BIN)
465 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
468 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
471 APPLET(yes, yes_main, _BB_DIR_USR_BIN)
474 APPLET(zcat, gunzip_main, _BB_DIR_BIN)
477 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)