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 CONFIG_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)
49 #ifdef CONFIG_ADDGROUP
50 APPLET(addgroup, addgroup_main, _BB_DIR_BIN)
53 APPLET(adduser, adduser_main, _BB_DIR_BIN)
55 #ifdef CONFIG_ADJTIMEX
56 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
59 APPLET(ar, ar_main, _BB_DIR_USR_BIN)
62 APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN)
64 #ifdef CONFIG_BASENAME
65 APPLET(basename, basename_main, _BB_DIR_USR_BIN)
68 APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN)
70 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
72 APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN)
75 APPLET(cat, cat_main, _BB_DIR_BIN)
78 APPLET(chgrp, chgrp_main, _BB_DIR_BIN)
81 APPLET(chmod, chmod_main, _BB_DIR_BIN)
84 APPLET(chown, chown_main, _BB_DIR_BIN)
87 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
90 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
93 APPLET(clear, clear_main, _BB_DIR_USR_BIN)
96 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
99 APPLET(cp, cp_main, _BB_DIR_BIN)
102 APPLET(cpio, cpio_main, _BB_DIR_BIN)
105 APPLET(cut, cut_main, _BB_DIR_USR_BIN)
108 APPLET(date, date_main, _BB_DIR_BIN)
111 APPLET(dc, dc_main, _BB_DIR_USR_BIN)
114 APPLET(dd, dd_main, _BB_DIR_BIN)
116 #ifdef CONFIG_DEALLOCVT
117 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
119 #ifdef CONFIG_DELGROUP
120 APPLET(delgroup, delgroup_main, _BB_DIR_BIN)
122 #ifdef CONFIG_DELUSER
123 APPLET(deluser, deluser_main, _BB_DIR_BIN)
126 APPLET(df, df_main, _BB_DIR_BIN)
128 #ifdef CONFIG_DIRNAME
129 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
132 APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
134 #ifdef CONFIG_DOS2UNIX
135 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
138 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
140 #ifdef CONFIG_DPKG_DEB
141 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
144 APPLET(du, du_main, _BB_DIR_USR_BIN)
146 #ifdef CONFIG_DUMPKMAP
147 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
150 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
153 APPLET(echo, echo_main, _BB_DIR_BIN)
155 #if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
156 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
159 APPLET(env, env_main, _BB_DIR_USR_BIN)
162 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
165 APPLET(false, false_main, _BB_DIR_BIN)
168 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN)
170 #ifdef CONFIG_FDFLUSH
171 APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
174 APPLET(find, find_main, _BB_DIR_USR_BIN)
177 APPLET(free, free_main, _BB_DIR_USR_BIN)
179 #ifdef CONFIG_FREERAMDISK
180 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
182 #ifdef CONFIG_FSCK_MINIX
183 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
186 APPLET(getopt, getopt_main, _BB_DIR_BIN)
189 APPLET(getty, getty_main, _BB_DIR_SBIN)
192 APPLET(grep, grep_main, _BB_DIR_BIN)
195 APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
198 APPLET(gzip, gzip_main, _BB_DIR_BIN)
201 APPLET(halt, halt_main, _BB_DIR_SBIN)
204 APPLET(head, head_main, _BB_DIR_USR_BIN)
206 #ifdef CONFIG_HEXDUMP
207 APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN)
210 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
212 #ifdef CONFIG_HOSTNAME
213 APPLET(hostname, hostname_main, _BB_DIR_BIN)
216 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN)
219 APPLET(id, id_main, _BB_DIR_USR_BIN)
221 #ifdef CONFIG_IFCONFIG
222 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
225 APPLET(init, init_main, _BB_DIR_SBIN)
228 APPLET(insmod, insmod_main, _BB_DIR_SBIN)
231 APPLET(kill, kill_main, _BB_DIR_BIN)
233 #ifdef CONFIG_KILLALL
234 APPLET(killall, kill_main, _BB_DIR_USR_BIN)
237 APPLET(klogd, klogd_main, _BB_DIR_SBIN)
240 APPLET(lash, lash_main, _BB_DIR_BIN)
243 APPLET(length, length_main, _BB_DIR_USR_BIN)
245 #ifdef CONFIG_FEATURE_INITRD
246 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
249 APPLET(ln, ln_main, _BB_DIR_BIN)
251 #ifdef CONFIG_LOADACM
252 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
254 #ifdef CONFIG_LOADFONT
255 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
257 #ifdef CONFIG_LOADKMAP
258 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
261 APPLET(logger, logger_main, _BB_DIR_USR_BIN)
263 #ifdef CONFIG_LOGNAME
264 APPLET(logname, logname_main, _BB_DIR_USR_BIN)
266 #ifdef CONFIG_LOGREAD
267 APPLET(logread, logread_main, _BB_DIR_SBIN)
270 APPLET(ls, ls_main, _BB_DIR_BIN)
273 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
275 #ifdef CONFIG_MAKEDEVS
276 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
279 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
282 APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
285 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
287 #ifdef CONFIG_MKFS_MINIX
288 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
291 APPLET(mknod, mknod_main, _BB_DIR_BIN)
294 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
297 APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
299 #ifdef CONFIG_MODPROBE
300 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
303 APPLET(more, more_main, _BB_DIR_BIN)
306 APPLET(mount, mount_main, _BB_DIR_BIN)
309 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN)
312 APPLET(mt, mt_main, _BB_DIR_BIN)
315 APPLET(mv, mv_main, _BB_DIR_BIN)
318 APPLET(nc, nc_main, _BB_DIR_USR_BIN)
320 #ifdef CONFIG_NETSTAT
321 APPLET(netstat, netstat_main, _BB_DIR_BIN)
323 #ifdef CONFIG_NSLOOKUP
324 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
327 APPLET(od, od_main, _BB_DIR_USR_BIN)
330 APPLET(pidof, pidof_main, _BB_DIR_BIN)
333 APPLET(ping, ping_main, _BB_DIR_BIN)
335 #ifdef CONFIG_PIVOT_ROOT
336 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
338 #ifdef CONFIG_POWEROFF
339 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
342 APPLET(printf, printf_main, _BB_DIR_USR_BIN)
345 APPLET(ps, ps_main, _BB_DIR_BIN)
348 APPLET(pwd, pwd_main, _BB_DIR_BIN)
351 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
353 #ifdef CONFIG_READLINK
354 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
357 APPLET(reboot, reboot_main, _BB_DIR_SBIN)
360 APPLET(renice, renice_main, _BB_DIR_USR_BIN)
363 APPLET(reset, reset_main, _BB_DIR_USR_BIN)
366 APPLET(rm, rm_main, _BB_DIR_BIN)
369 APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
372 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
375 APPLET(route, route_main, _BB_DIR_SBIN)
377 #ifdef CONFIG_RPM2CPIO
378 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
380 #ifdef CONFIG_RUN_PARTS
381 APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, run_parts)
384 APPLET(sed, sed_main, _BB_DIR_BIN)
386 #ifdef CONFIG_SETKEYCODES
387 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
389 #if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
390 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN)
391 #elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
392 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN)
393 #elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
394 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN)
395 #elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
396 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN)
399 APPLET(sleep, sleep_main, _BB_DIR_BIN)
402 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
404 #ifdef CONFIG_START_STOP_DAEMON
405 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, start_stop_daemon)
408 APPLET(stty, stty_main, _BB_DIR_BIN)
410 #ifdef CONFIG_SWAPONOFF
411 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
413 #ifdef CONFIG_SWAPONOFF
414 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
417 APPLET(sync, sync_main, _BB_DIR_BIN)
419 #ifdef CONFIG_SYSLOGD
420 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
423 APPLET(tail, tail_main, _BB_DIR_USR_BIN)
426 APPLET(tar, tar_main, _BB_DIR_BIN)
429 APPLET(tee, tee_main, _BB_DIR_USR_BIN)
432 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
435 APPLET(test, test_main, _BB_DIR_USR_BIN)
438 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
441 APPLET(touch, touch_main, _BB_DIR_BIN)
444 APPLET(tr, tr_main, _BB_DIR_USR_BIN)
446 #ifdef CONFIG_TRACEROUTE
447 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN)
450 APPLET(true, true_main, _BB_DIR_BIN)
453 APPLET(tty, tty_main, _BB_DIR_USR_BIN)
456 APPLET(umount, umount_main, _BB_DIR_BIN)
459 APPLET(uname, uname_main, _BB_DIR_BIN)
462 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
464 #ifdef CONFIG_UNIX2DOS
465 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
468 APPLET(update, update_main, _BB_DIR_SBIN)
471 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
474 APPLET(usleep, usleep_main, _BB_DIR_BIN)
476 #ifdef CONFIG_UUDECODE
477 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
479 #ifdef CONFIG_UUENCODE
480 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
483 APPLET(vi, vi_main, _BB_DIR_BIN)
485 #ifdef CONFIG_WATCHDOG
486 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
489 APPLET(wc, wc_main, _BB_DIR_USR_BIN)
492 APPLET(wget, wget_main, _BB_DIR_USR_BIN)
495 APPLET(which, which_main, _BB_DIR_USR_BIN)
498 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
501 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
504 APPLET(yes, yes_main, _BB_DIR_USR_BIN)
507 APPLET(zcat, gunzip_main, _BB_DIR_BIN)
510 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)