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.
13 #if defined(PROTOTYPES)
14 #define APPLET(a,b,c,d) \
15 extern int b(int argc, char **argv); \
16 extern const char d[];
17 #define APPLET_NOUSAGE(a,b,c) \
18 extern int b(int argc, char **argv);
19 #elif defined(MAKE_LINKS)
20 #define APPLET(a,b,c,d) LINK c a
21 #define APPLET_NOUSAGE(a,b,c) LINK c a
23 const struct BB_applet applets[] = {
24 #define APPLET(a,b,c,d) {a,b,c,d},
25 #define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
29 APPLET("[", test_main, _BB_DIR_USR_BIN, test_usage)
32 APPLET("ar", ar_main, _BB_DIR_USR_BIN, ar_usage)
35 APPLET("basename", basename_main, _BB_DIR_USR_BIN, basename_usage)
37 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
39 APPLET("cat", cat_main, _BB_DIR_BIN, cat_usage)
41 #ifdef BB_CHMOD_CHOWN_CHGRP
42 APPLET("chgrp", chmod_chown_chgrp_main, _BB_DIR_BIN, chgrp_usage)
44 #ifdef BB_CHMOD_CHOWN_CHGRP
45 APPLET("chmod", chmod_chown_chgrp_main, _BB_DIR_BIN, chmod_usage)
47 #ifdef BB_CHMOD_CHOWN_CHGRP
48 APPLET("chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage)
51 APPLET("chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage)
54 APPLET("chvt", chvt_main, _BB_DIR_USR_BIN, chvt_usage)
57 APPLET("clear", clear_main, _BB_DIR_USR_BIN, clear_usage)
60 APPLET("cmp", cmp_main, _BB_DIR_USR_BIN, cmp_usage)
63 APPLET("cp", cp_mv_main, _BB_DIR_BIN, cp_usage)
66 APPLET("cut", cut_main, _BB_DIR_USR_BIN, cut_usage)
69 APPLET("date", date_main, _BB_DIR_BIN, date_usage)
72 APPLET("dc", dc_main, _BB_DIR_USR_BIN, dc_usage)
75 APPLET("dd", dd_main, _BB_DIR_BIN, dd_usage)
78 APPLET("deallocvt", deallocvt_main, _BB_DIR_USR_BIN, deallocvt_usage)
81 APPLET("df", df_main, _BB_DIR_BIN, df_usage)
84 APPLET("dirname", dirname_main, _BB_DIR_USR_BIN, dirname_usage)
87 APPLET("dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage)
90 APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage)
93 APPLET("dpkg", dpkg_main, _BB_DIR_USR_BIN, dpkg_usage)
96 APPLET("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb_usage)
99 APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage)
102 APPLET("dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage)
105 APPLET("dutmp", dutmp_main, _BB_DIR_USR_SBIN, dutmp_usage)
108 APPLET("echo", echo_main, _BB_DIR_BIN, echo_usage)
111 APPLET("expr", expr_main, _BB_DIR_USR_BIN, expr_usage)
114 APPLET("false", false_main, _BB_DIR_BIN, false_usage)
117 APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN)
120 APPLET("fdflush", fdflush_main, _BB_DIR_BIN, fdflush_usage)
123 APPLET("find", find_main, _BB_DIR_USR_BIN, find_usage)
126 APPLET("free", free_main, _BB_DIR_USR_BIN, free_usage)
128 #ifdef BB_FREERAMDISK
129 APPLET("freeramdisk", freeramdisk_main, _BB_DIR_SBIN, freeramdisk_usage)
132 APPLET("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage)
135 APPLET("getopt", getopt_main, _BB_DIR_BIN, getopt_usage)
138 APPLET("grep", grep_main, _BB_DIR_BIN, grep_usage)
141 APPLET("gunzip", gunzip_main, _BB_DIR_BIN, gunzip_usage)
144 APPLET("gzip", gzip_main, _BB_DIR_BIN, gzip_usage)
147 APPLET("halt", halt_main, _BB_DIR_SBIN, halt_usage)
150 APPLET("head", head_main, _BB_DIR_USR_BIN, head_usage)
153 APPLET("hostid", hostid_main, _BB_DIR_USR_BIN, hostid_usage)
156 APPLET("hostname", hostname_main, _BB_DIR_BIN, hostname_usage)
159 APPLET("id", id_main, _BB_DIR_USR_BIN, id_usage)
162 APPLET_NOUSAGE("init", init_main, _BB_DIR_SBIN)
165 APPLET("insmod", insmod_main, _BB_DIR_SBIN, insmod_usage)
168 APPLET("kill", kill_main, _BB_DIR_BIN, kill_usage)
171 APPLET("killall", kill_main, _BB_DIR_USR_BIN, killall_usage)
174 APPLET("length", length_main, _BB_DIR_USR_BIN, length_usage)
177 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
180 APPLET("ln", ln_main, _BB_DIR_BIN, ln_usage)
183 APPLET("loadacm", loadacm_main, _BB_DIR_USR_BIN, loadacm_usage)
186 APPLET("loadfont", loadfont_main, _BB_DIR_USR_BIN, loadfont_usage)
189 APPLET("loadkmap", loadkmap_main, _BB_DIR_SBIN, loadkmap_usage)
192 APPLET("logger", logger_main, _BB_DIR_USR_BIN, logger_usage)
195 APPLET("logname", logname_main, _BB_DIR_USR_BIN, logname_usage)
198 APPLET("ls", ls_main, _BB_DIR_BIN, ls_usage)
201 APPLET("lsmod", lsmod_main, _BB_DIR_SBIN, lsmod_usage)
204 APPLET("makedevs", makedevs_main, _BB_DIR_SBIN, makedevs_usage)
207 APPLET("md5sum", md5sum_main, _BB_DIR_USR_BIN, md5sum_usage)
210 APPLET("mkdir", mkdir_main, _BB_DIR_BIN, mkdir_usage)
213 APPLET("mkfifo", mkfifo_main, _BB_DIR_USR_BIN, mkfifo_usage)
216 APPLET("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix_usage)
219 APPLET("mknod", mknod_main, _BB_DIR_BIN, mknod_usage)
222 APPLET("mkswap", mkswap_main, _BB_DIR_SBIN, mkswap_usage)
225 APPLET("mktemp", mktemp_main, _BB_DIR_BIN, mktemp_usage)
228 APPLET("more", more_main, _BB_DIR_BIN, more_usage)
231 APPLET("mount", mount_main, _BB_DIR_BIN, mount_usage)
234 APPLET("mt", mt_main, _BB_DIR_BIN, mt_usage)
237 APPLET("mv", cp_mv_main, _BB_DIR_BIN, mv_usage)
240 APPLET("nc", nc_main, _BB_DIR_USR_BIN, nc_usage)
243 APPLET("nslookup", nslookup_main, _BB_DIR_USR_BIN, nslookup_usage)
246 APPLET("ping", ping_main, _BB_DIR_BIN, ping_usage)
249 APPLET("pivot_root", pivot_root_main, _BB_DIR_SBIN, pivot_root_usage)
252 APPLET("poweroff", poweroff_main, _BB_DIR_SBIN, poweroff_usage)
255 APPLET("printf", printf_main, _BB_DIR_USR_BIN, printf_usage)
258 APPLET("ps", ps_main, _BB_DIR_BIN, ps_usage)
261 APPLET("pwd", pwd_main, _BB_DIR_BIN, pwd_usage)
264 APPLET("rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage)
267 APPLET("readlink", readlink_main, _BB_DIR_USR_BIN, readlink_usage)
270 APPLET("reboot", reboot_main, _BB_DIR_SBIN, reboot_usage)
273 APPLET("renice", renice_main, _BB_DIR_USR_BIN, renice_usage)
276 APPLET("reset", reset_main, _BB_DIR_USR_BIN, reset_usage)
279 APPLET("rm", rm_main, _BB_DIR_BIN, rm_usage)
282 APPLET("rmdir", rmdir_main, _BB_DIR_BIN, rmdir_usage)
285 APPLET("rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage)
288 APPLET("rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage)
291 APPLET("sed", sed_main, _BB_DIR_BIN, sed_usage)
293 #ifdef BB_SETKEYCODES
294 APPLET("setkeycodes", setkeycodes_main, _BB_DIR_USR_BIN, setkeycodes_usage)
297 APPLET("sh", shell_main, _BB_DIR_BIN, shell_usage)
300 APPLET("sleep", sleep_main, _BB_DIR_BIN, sleep_usage)
303 APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
306 APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
309 APPLET("swapon", swap_on_off_main, _BB_DIR_SBIN, swapon_usage)
312 APPLET("sync", sync_main, _BB_DIR_BIN, sync_usage)
315 APPLET("syslogd", syslogd_main, _BB_DIR_SBIN, syslogd_usage)
318 APPLET("tail", tail_main, _BB_DIR_USR_BIN, tail_usage)
321 APPLET("tar", tar_main, _BB_DIR_BIN, tar_usage)
324 APPLET("tee", tee_main, _BB_DIR_USR_BIN, tee_usage)
327 APPLET("telnet", telnet_main, _BB_DIR_USR_BIN, telnet_usage)
330 APPLET("test", test_main, _BB_DIR_USR_BIN, test_usage)
333 APPLET("touch", touch_main, _BB_DIR_BIN, touch_usage)
336 APPLET("tr", tr_main, _BB_DIR_USR_BIN, tr_usage)
339 APPLET("true", true_main, _BB_DIR_BIN, true_usage)
342 APPLET("tty", tty_main, _BB_DIR_USR_BIN, tty_usage)
345 APPLET("umount", umount_main, _BB_DIR_BIN, umount_usage)
348 APPLET("uname", uname_main, _BB_DIR_BIN, uname_usage)
351 APPLET("uniq", uniq_main, _BB_DIR_USR_BIN, uniq_usage)
354 APPLET("unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage)
357 APPLET("update", update_main, _BB_DIR_SBIN, update_usage)
360 APPLET("uptime", uptime_main, _BB_DIR_USR_BIN, uptime_usage)
363 APPLET("usleep", usleep_main, _BB_DIR_BIN, usleep_usage)
366 APPLET("uudecode", uudecode_main, _BB_DIR_USR_BIN, uudecode_usage)
369 APPLET("uuencode", uuencode_main, _BB_DIR_USR_BIN, uuencode_usage)
372 APPLET("watchdog", watchdog_main, _BB_DIR_SBIN, watchdog_usage)
375 APPLET("wc", wc_main, _BB_DIR_USR_BIN, wc_usage)
378 APPLET("wget", wget_main, _BB_DIR_USR_BIN, wget_usage)
381 APPLET("which", which_main, _BB_DIR_USR_BIN, which_usage)
384 APPLET("whoami", whoami_main, _BB_DIR_USR_BIN, whoami_usage)
387 APPLET("xargs", xargs_main, _BB_DIR_USR_BIN, xargs_usage)
390 APPLET("yes", yes_main, _BB_DIR_USR_BIN, yes_usage)
393 APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage)
396 #if !defined(PROTOTYPES) && !defined(MAKE_LINKS)
400 /* The -1 arises because of the {0,NULL,0,NULL} entry above. */
401 size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);