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_TRIVIAL_HELP
25 #define APPLET(a,b,c) a##_trivial_usage "\0"
26 #define APPLET_NOUSAGE(a,b,c) "\0"
27 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\0"
29 #define APPLET(a,b,c) a##_trivial_usage "\n\n" a##_full_usage "\0"
30 #define APPLET_NOUSAGE(a,b,c) "\0"
31 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\n\n" d##_full_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(ar, ar_main, _BB_DIR_USR_BIN)
53 APPLET(basename, basename_main, _BB_DIR_USR_BIN)
55 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
57 APPLET(cat, cat_main, _BB_DIR_BIN)
59 #ifdef BB_CHMOD_CHOWN_CHGRP
60 APPLET(chgrp, chmod_chown_chgrp_main, _BB_DIR_BIN)
62 #ifdef BB_CHMOD_CHOWN_CHGRP
63 APPLET(chmod, chmod_chown_chgrp_main, _BB_DIR_BIN)
65 #ifdef BB_CHMOD_CHOWN_CHGRP
66 APPLET(chown, chmod_chown_chgrp_main, _BB_DIR_BIN)
69 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
72 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
75 APPLET(clear, clear_main, _BB_DIR_USR_BIN)
78 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
81 APPLET(cp, cp_mv_main, _BB_DIR_BIN)
84 APPLET(cut, cut_main, _BB_DIR_USR_BIN)
87 APPLET(date, date_main, _BB_DIR_BIN)
90 APPLET(dc, dc_main, _BB_DIR_USR_BIN)
93 APPLET(dd, dd_main, _BB_DIR_BIN)
96 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
99 APPLET(df, df_main, _BB_DIR_BIN)
102 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
105 APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
108 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
111 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
114 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
117 APPLET(du, du_main, _BB_DIR_USR_BIN)
120 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
123 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
126 APPLET(echo, echo_main, _BB_DIR_BIN)
129 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
132 APPLET(false, false_main, _BB_DIR_BIN)
135 APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN)
138 APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
141 APPLET(find, find_main, _BB_DIR_USR_BIN)
144 APPLET(free, free_main, _BB_DIR_USR_BIN)
146 #ifdef BB_FREERAMDISK
147 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
150 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
153 APPLET(getopt, getopt_main, _BB_DIR_BIN)
156 APPLET(grep, grep_main, _BB_DIR_BIN)
159 APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
162 APPLET(gzip, gzip_main, _BB_DIR_BIN)
165 APPLET(halt, halt_main, _BB_DIR_SBIN)
168 APPLET(head, head_main, _BB_DIR_USR_BIN)
171 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
174 APPLET(hostname, hostname_main, _BB_DIR_BIN)
177 APPLET(id, id_main, _BB_DIR_USR_BIN)
180 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
183 APPLET(init, init_main, _BB_DIR_SBIN)
186 APPLET(insmod, insmod_main, _BB_DIR_SBIN)
189 APPLET(kill, kill_main, _BB_DIR_BIN)
192 APPLET(killall, kill_main, _BB_DIR_USR_BIN)
195 APPLET(klogd, klogd_main, _BB_DIR_SBIN)
198 APPLET(length, length_main, _BB_DIR_USR_BIN)
201 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
204 APPLET(ln, ln_main, _BB_DIR_BIN)
207 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
210 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
213 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
216 APPLET(logger, logger_main, _BB_DIR_USR_BIN)
219 APPLET(logname, logname_main, _BB_DIR_USR_BIN)
222 APPLET(logread, logread_main, _BB_DIR_SBIN)
225 APPLET(ls, ls_main, _BB_DIR_BIN)
228 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
231 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
234 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
237 APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
240 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
243 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
246 APPLET(mknod, mknod_main, _BB_DIR_BIN)
249 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
252 APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
255 APPLET(more, more_main, _BB_DIR_BIN)
258 APPLET(mount, mount_main, _BB_DIR_BIN)
261 APPLET(mt, mt_main, _BB_DIR_BIN)
264 APPLET(mv, cp_mv_main, _BB_DIR_BIN)
267 APPLET(nc, nc_main, _BB_DIR_USR_BIN)
270 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
273 APPLET(ping, ping_main, _BB_DIR_BIN)
276 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
279 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
282 APPLET(printf, printf_main, _BB_DIR_USR_BIN)
285 APPLET(ps, ps_main, _BB_DIR_BIN)
288 APPLET(pwd, pwd_main, _BB_DIR_BIN)
291 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
294 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
297 APPLET(reboot, reboot_main, _BB_DIR_SBIN)
300 APPLET(renice, renice_main, _BB_DIR_USR_BIN)
303 APPLET(reset, reset_main, _BB_DIR_USR_BIN)
306 APPLET(rm, rm_main, _BB_DIR_BIN)
309 APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
312 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
315 APPLET(route, route_main, _BB_DIR_USR_BIN)
318 APPLET(rpmunpack, rpmunpack_main, _BB_DIR_USR_BIN)
321 APPLET(sed, sed_main, _BB_DIR_BIN)
323 #ifdef BB_SETKEYCODES
324 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
327 APPLET(sh, shell_main, _BB_DIR_BIN)
330 APPLET(sleep, sleep_main, _BB_DIR_BIN)
333 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
336 APPLET(stty, stty_main, _BB_DIR_BIN)
339 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
342 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
345 APPLET(sync, sync_main, _BB_DIR_BIN)
348 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
351 APPLET(tail, tail_main, _BB_DIR_USR_BIN)
354 APPLET(tar, tar_main, _BB_DIR_BIN)
357 APPLET(tee, tee_main, _BB_DIR_USR_BIN)
360 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
363 APPLET(test, test_main, _BB_DIR_USR_BIN)
366 APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
369 APPLET(touch, touch_main, _BB_DIR_BIN)
372 APPLET(tr, tr_main, _BB_DIR_USR_BIN)
375 APPLET(true, true_main, _BB_DIR_BIN)
378 APPLET(tty, tty_main, _BB_DIR_USR_BIN)
381 APPLET(umount, umount_main, _BB_DIR_BIN)
384 APPLET(uname, uname_main, _BB_DIR_BIN)
387 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
390 APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
393 APPLET(update, update_main, _BB_DIR_SBIN)
396 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
399 APPLET(usleep, usleep_main, _BB_DIR_BIN)
402 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
405 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
408 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
411 APPLET(wc, wc_main, _BB_DIR_USR_BIN)
414 APPLET(wget, wget_main, _BB_DIR_USR_BIN)
417 APPLET(which, which_main, _BB_DIR_USR_BIN)
420 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
423 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
426 APPLET(yes, yes_main, _BB_DIR_USR_BIN)
429 APPLET(zcat, gunzip_main, _BB_DIR_BIN)
432 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
436 /* The -1 arises because of the {0,NULL,0,-1} entry above. */
437 size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);