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(crond, crond_main, _BB_DIR_USR_SBIN)
114 APPLET(crontab, crontab_main, _BB_DIR_USR_BIN)
117 APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
120 APPLET(date, date_main, _BB_DIR_BIN, _BB_SUID_NEVER)
123 APPLET(dc, dc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
126 APPLET(dd, dd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
128 #ifdef CONFIG_DEALLOCVT
129 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
131 #ifdef CONFIG_DELGROUP
132 APPLET(delgroup, delgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
134 #ifdef CONFIG_DELUSER
135 APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
138 APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
140 #ifdef CONFIG_DIRNAME
141 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
144 APPLET(dmesg, dmesg_main, _BB_DIR_BIN, _BB_SUID_NEVER)
146 #ifdef CONFIG_DOS2UNIX
147 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
150 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
152 #ifdef CONFIG_DPKG_DEB
153 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, dpkg_deb)
156 APPLET(du, du_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
158 #ifdef CONFIG_DUMPKMAP
159 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER)
161 #ifdef CONFIG_DUMPLEASES
162 APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
165 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
168 APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
170 #if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
171 APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
174 APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
177 APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
180 APPLET(false, false_main, _BB_DIR_BIN, _BB_SUID_NEVER)
183 APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
185 #ifdef CONFIG_FDFLUSH
186 APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
189 APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
192 APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
194 #ifdef CONFIG_FREERAMDISK
195 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
197 #ifdef CONFIG_FSCK_MINIX
198 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix)
201 APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
204 APPLET(getty, getty_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
207 APPLET(grep, grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
210 APPLET(gunzip, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
213 APPLET(gzip, gzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
216 APPLET(halt, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
219 APPLET(head, head_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
221 #ifdef CONFIG_HEXDUMP
222 APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
225 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
227 #ifdef CONFIG_HOSTNAME
228 APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
231 APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
233 #ifdef CONFIG_HWCLOCK
234 APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
237 APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
239 #ifdef CONFIG_IFCONFIG
240 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
243 APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
246 APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
249 APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)
251 #ifdef CONFIG_KILLALL
252 APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
255 APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
258 APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
261 APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
263 #ifdef CONFIG_FEATURE_INITRD
264 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
267 APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
269 #ifdef CONFIG_LOADACM
270 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
272 #ifdef CONFIG_LOADFONT
273 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
275 #ifdef CONFIG_LOADKMAP
276 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
279 APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
282 APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_NEVER)
284 #ifdef CONFIG_LOGNAME
285 APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
287 #ifdef CONFIG_LOGREAD
288 APPLET(logread, logread_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
290 #ifdef CONFIG_LOSETUP
291 APPLET(losetup, losetup_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
294 APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
297 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
299 #ifdef CONFIG_MAKEDEVS
300 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
303 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
306 APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
309 APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
312 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
314 #ifdef CONFIG_MKFS_MINIX
315 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
318 APPLET(mknod, mknod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
321 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
324 APPLET(mktemp, mktemp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
326 #ifdef CONFIG_MODPROBE
327 APPLET(modprobe, modprobe_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
330 APPLET(more, more_main, _BB_DIR_BIN, _BB_SUID_NEVER)
333 APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
336 APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
339 APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
342 APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
345 APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
347 #ifdef CONFIG_NETSTAT
348 APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
350 #ifdef CONFIG_NSLOOKUP
351 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
354 APPLET(od, od_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
357 APPLET(openvt, openvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
360 APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
363 APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER)
366 APPLET(ping, ping_main, _BB_DIR_BIN, _BB_SUID_NEVER)
369 APPLET(ping6, ping6_main, _BB_DIR_BIN, _BB_SUID_NEVER)
371 #ifdef CONFIG_PIVOT_ROOT
372 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
374 #ifdef CONFIG_POWEROFF
375 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
378 APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
381 APPLET(ps, ps_main, _BB_DIR_BIN, _BB_SUID_NEVER)
384 APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
387 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
389 #ifdef CONFIG_READLINK
390 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
393 APPLET(reboot, reboot_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
396 APPLET(renice, renice_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
399 APPLET(reset, reset_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
402 APPLET(rm, rm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
405 APPLET(rmdir, rmdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
408 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
411 APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
413 #ifdef CONFIG_RPM2CPIO
414 APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
416 #ifdef CONFIG_RUN_PARTS
417 APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts)
420 APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
422 #ifdef CONFIG_SETKEYCODES
423 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
425 #if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
426 APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
427 #elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
428 APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
429 #elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
430 APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
431 #elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
432 APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
435 APPLET(sleep, sleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
438 APPLET(sort, sort_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
440 #ifdef CONFIG_START_STOP_DAEMON
441 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon)
444 APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER)
447 APPLET(su, su_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
449 #ifdef CONFIG_SULOGIN
450 APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
452 #ifdef CONFIG_SWAPONOFF
453 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
455 #ifdef CONFIG_SWAPONOFF
456 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
459 APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
461 #ifdef CONFIG_SYSLOGD
462 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
465 APPLET(tail, tail_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
468 APPLET(tar, tar_main, _BB_DIR_BIN, _BB_SUID_NEVER)
471 APPLET(tee, tee_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
474 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
476 #ifdef CONFIG_TELNETD
477 APPLET(telnetd, telnetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
480 APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
483 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
486 APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
489 APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
492 APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
495 APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
497 #ifdef CONFIG_TRACEROUTE
498 APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
501 APPLET(true, true_main, _BB_DIR_BIN, _BB_SUID_NEVER)
504 APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
507 APPLET(udhcpc, udhcpc_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
510 APPLET(udhcpd, udhcpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
513 APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
516 APPLET(uname, uname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
519 # ifdef CONFIG_FEATURE_UNCOMPRESS
520 APPLET_ODDNAME("uncompress", gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER, gunzip)
524 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
526 #ifdef CONFIG_UNIX2DOS
527 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
530 APPLET(unzip, unzip_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
533 APPLET(update, update_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
536 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
539 APPLET(usleep, usleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
541 #ifdef CONFIG_UUDECODE
542 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
544 #ifdef CONFIG_UUENCODE
545 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
548 APPLET(vi, vi_main, _BB_DIR_BIN, _BB_SUID_NEVER)
551 APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
554 APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
556 #ifdef CONFIG_WATCHDOG
557 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
560 APPLET(wc, wc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
563 APPLET(wget, wget_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
566 APPLET(which, which_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
569 APPLET(who, who_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
572 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
575 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
578 APPLET(yes, yes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
581 APPLET(zcat, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
584 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)