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,d) extern int b(int argc, char **argv);
20 #define APPLET_NOUSAGE(a,b,c,d) extern int b(int argc, char **argv);
21 #define APPLET_ODDNAME(a,b,c,d,e) 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,d) a##_trivial_usage "\n\n" a##_full_usage "\0"
26 #define APPLET_NOUSAGE(a,b,c,d) "\b\0"
27 #define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\n\n" e##_full_usage "\0"
29 #define APPLET(a,b,c,d) a##_trivial_usage "\0"
30 #define APPLET_NOUSAGE(a,b,c,d) "\b\0"
31 #define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\0"
33 #elif defined(MAKE_LINKS)
34 # define APPLET(a,b,c,d) LINK c a
35 # define APPLET_NOUSAGE(a,b,c,d) LINK c a
36 # define APPLET_ODDNAME(a,b,c,d,e) LINK c a
38 const struct BB_applet applets[] = {
39 #define APPLET(a,b,c,d) {#a,b,c,d},
40 #define APPLET_NOUSAGE(a,b,c,d) {a,b,c,d},
41 #define APPLET_ODDNAME(a,b,c,d,e) {a,b,c,d},
47 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
49 #ifdef CONFIG_ADDGROUP
50 APPLET(addgroup, addgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
53 APPLET(adduser, adduser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
55 #ifdef CONFIG_ADJTIMEX
56 APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
59 APPLET(ar, ar_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
62 APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
65 APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
67 #ifdef CONFIG_BASENAME
68 APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
71 APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
73 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
75 APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
78 APPLET(cal, cal_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
81 APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
84 APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
87 APPLET(chmod, chmod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
90 APPLET(chown, chown_main, _BB_DIR_BIN, _BB_SUID_NEVER)
93 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
96 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
99 APPLET(clear, clear_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
102 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
105 APPLET(cp, cp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
108 APPLET(cpio, cpio_main, _BB_DIR_BIN, _BB_SUID_NEVER)
111 APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
114 APPLET(date, date_main, _BB_DIR_BIN, _BB_SUID_NEVER)
117 APPLET(dc, dc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
120 APPLET(dd, dd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
122 #ifdef CONFIG_DEALLOCVT
123 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
125 #ifdef CONFIG_DELGROUP
126 APPLET(delgroup, delgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
128 #ifdef CONFIG_DELUSER
129 APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
132 APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
134 #ifdef CONFIG_DIRNAME
135 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
138 APPLET(dmesg, dmesg_main, _BB_DIR_BIN, _BB_SUID_NEVER)
140 #ifdef CONFIG_DOS2UNIX
141 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
144 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
146 #ifdef CONFIG_DPKG_DEB
147 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, dpkg_deb)
150 APPLET(du, du_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
152 #ifdef CONFIG_DUMPKMAP
153 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER)
156 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
159 APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
161 #if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
162 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
165 APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
168 APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
171 APPLET(false, false_main, _BB_DIR_BIN, _BB_SUID_NEVER)
174 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
176 #ifdef CONFIG_FDFLUSH
177 APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
180 APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
183 APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
185 #ifdef CONFIG_FREERAMDISK
186 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
188 #ifdef CONFIG_FSCK_MINIX
189 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix)
192 APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
195 APPLET(getty, getty_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
198 APPLET(grep, grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
201 APPLET(gunzip, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
204 APPLET(gzip, gzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
207 APPLET(halt, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
210 APPLET(head, head_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
212 #ifdef CONFIG_HEXDUMP
213 APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
216 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
218 #ifdef CONFIG_HOSTNAME
219 APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
222 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
224 #ifdef CONFIG_HWCLOCK
225 APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
228 APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
230 #ifdef CONFIG_IFCONFIG
231 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
234 APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
237 APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
240 APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)
242 #ifdef CONFIG_KILLALL
243 APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
246 APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
249 APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
252 APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
254 #ifdef CONFIG_FEATURE_INITRD
255 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
258 APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
260 #ifdef CONFIG_LOADACM
261 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
263 #ifdef CONFIG_LOADFONT
264 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
266 #ifdef CONFIG_LOADKMAP
267 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
270 APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
273 APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_NEVER)
275 #ifdef CONFIG_LOGNAME
276 APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
278 #ifdef CONFIG_LOGREAD
279 APPLET(logread, logread_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
281 #ifdef CONFIG_LOSETUP
282 APPLET(losetup, losetup_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
285 APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
288 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
290 #ifdef CONFIG_MAKEDEVS
291 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
294 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
297 APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
300 APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
303 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
305 #ifdef CONFIG_MKFS_MINIX
306 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
309 APPLET(mknod, mknod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
312 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
315 APPLET(mktemp, mktemp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
317 #ifdef CONFIG_MODPROBE
318 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
321 APPLET(more, more_main, _BB_DIR_BIN, _BB_SUID_NEVER)
324 APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
327 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
330 APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
333 APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
336 APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
338 #ifdef CONFIG_NETSTAT
339 APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
341 #ifdef CONFIG_NSLOOKUP
342 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
345 APPLET(od, od_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
348 APPLET(openvt, openvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
351 APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
354 APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER)
357 APPLET(ping, ping_main, _BB_DIR_BIN, _BB_SUID_NEVER)
360 APPLET(ping6, ping6_main, _BB_DIR_BIN, _BB_SUID_NEVER)
362 #ifdef CONFIG_PIVOT_ROOT
363 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
365 #ifdef CONFIG_POWEROFF
366 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
369 APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
372 APPLET(ps, ps_main, _BB_DIR_BIN, _BB_SUID_NEVER)
375 APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
378 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
380 #ifdef CONFIG_READLINK
381 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
384 APPLET(reboot, reboot_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
387 APPLET(renice, renice_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
390 APPLET(reset, reset_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
393 APPLET(rm, rm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
396 APPLET(rmdir, rmdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
399 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
402 APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
404 #ifdef CONFIG_RPM2CPIO
405 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
407 #ifdef CONFIG_RUN_PARTS
408 APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts)
411 APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
413 #ifdef CONFIG_SETKEYCODES
414 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
416 #if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
417 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
418 #elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
419 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
420 #elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
421 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
422 #elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
423 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
426 APPLET(sleep, sleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
429 APPLET(sort, sort_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
431 #ifdef CONFIG_START_STOP_DAEMON
432 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon)
435 APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER)
438 APPLET(su, su_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
440 #ifdef CONFIG_SULOGIN
441 APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
443 #ifdef CONFIG_SWAPONOFF
444 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
446 #ifdef CONFIG_SWAPONOFF
447 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
450 APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
452 #ifdef CONFIG_SYSLOGD
453 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
456 APPLET(tail, tail_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
459 APPLET(tar, tar_main, _BB_DIR_BIN, _BB_SUID_NEVER)
462 APPLET(tee, tee_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
465 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
468 APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
471 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
474 APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
477 APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
480 APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
483 APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
485 #ifdef CONFIG_TRACEROUTE
486 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
489 APPLET(true, true_main, _BB_DIR_BIN, _BB_SUID_NEVER)
492 APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
495 APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
498 APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
501 APPLET(uname, uname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
504 # ifdef CONFIG_FEATURE_UNCOMPRESS
505 APPLET_ODDNAME("uncompress", gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER, gunzip)
509 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
511 #ifdef CONFIG_UNIX2DOS
512 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
515 APPLET(unzip, unzip_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
518 APPLET(update, update_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
521 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
524 APPLET(usleep, usleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
526 #ifdef CONFIG_UUDECODE
527 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
529 #ifdef CONFIG_UUENCODE
530 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
533 APPLET(vi, vi_main, _BB_DIR_BIN, _BB_SUID_NEVER)
536 APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
539 APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
541 #ifdef CONFIG_WATCHDOG
542 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
545 APPLET(wc, wc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
548 APPLET(wget, wget_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
551 APPLET(which, which_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
554 APPLET(who, who_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
557 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
560 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
563 APPLET(yes, yes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
566 APPLET(zcat, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
569 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)