Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * applets.h - a listing of all busybox applets. |
| 3 | * |
| 4 | * If you write a new applet, you need to add an entry to this list to make |
| 5 | * busybox aware of it. |
| 6 | * |
| 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. |
| 11 | */ |
| 12 | |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 13 | #if defined(PROTOTYPES) |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 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); |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 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 |
| 22 | #else |
| 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}, |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 26 | #endif |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 27 | |
| 28 | #ifdef BB_TEST |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 29 | APPLET("[", test_main, _BB_DIR_USR_BIN, test_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 30 | #endif |
| 31 | #ifdef BB_AR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 32 | APPLET("ar", ar_main, _BB_DIR_USR_BIN, ar_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 33 | #endif |
| 34 | #ifdef BB_BASENAME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 35 | APPLET("basename", basename_main, _BB_DIR_USR_BIN, basename_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 36 | #endif |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 37 | APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 38 | #ifdef BB_CAT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 39 | APPLET("cat", cat_main, _BB_DIR_BIN, cat_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 40 | #endif |
| 41 | #ifdef BB_CHMOD_CHOWN_CHGRP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 42 | APPLET("chgrp", chmod_chown_chgrp_main, _BB_DIR_BIN, chgrp_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 43 | #endif |
| 44 | #ifdef BB_CHMOD_CHOWN_CHGRP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 45 | APPLET("chmod", chmod_chown_chgrp_main, _BB_DIR_BIN, chmod_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 46 | #endif |
| 47 | #ifdef BB_CHMOD_CHOWN_CHGRP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 48 | APPLET("chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 49 | #endif |
| 50 | #ifdef BB_CHROOT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 51 | APPLET("chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 52 | #endif |
| 53 | #ifdef BB_CHVT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 54 | APPLET("chvt", chvt_main, _BB_DIR_USR_BIN, chvt_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 55 | #endif |
| 56 | #ifdef BB_CLEAR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 57 | APPLET("clear", clear_main, _BB_DIR_USR_BIN, clear_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 58 | #endif |
| 59 | #ifdef BB_CMP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 60 | APPLET("cmp", cmp_main, _BB_DIR_USR_BIN, cmp_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 61 | #endif |
| 62 | #ifdef BB_CP_MV |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 63 | APPLET("cp", cp_mv_main, _BB_DIR_BIN, cp_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 64 | #endif |
| 65 | #ifdef BB_CUT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 66 | APPLET("cut", cut_main, _BB_DIR_USR_BIN, cut_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 67 | #endif |
| 68 | #ifdef BB_DATE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 69 | APPLET("date", date_main, _BB_DIR_BIN, date_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 70 | #endif |
| 71 | #ifdef BB_DC |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 72 | APPLET("dc", dc_main, _BB_DIR_USR_BIN, dc_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 73 | #endif |
| 74 | #ifdef BB_DD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 75 | APPLET("dd", dd_main, _BB_DIR_BIN, dd_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 76 | #endif |
| 77 | #ifdef BB_DEALLOCVT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 78 | APPLET("deallocvt", deallocvt_main, _BB_DIR_USR_BIN, deallocvt_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 79 | #endif |
| 80 | #ifdef BB_DF |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 81 | APPLET("df", df_main, _BB_DIR_BIN, df_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 82 | #endif |
| 83 | #ifdef BB_DIRNAME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 84 | APPLET("dirname", dirname_main, _BB_DIR_USR_BIN, dirname_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 85 | #endif |
| 86 | #ifdef BB_DMESG |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 87 | APPLET("dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 88 | #endif |
| 89 | #ifdef BB_DOS2UNIX |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 90 | APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 91 | #endif |
| 92 | #ifdef BB_DU |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 93 | APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 94 | #endif |
| 95 | #ifdef BB_DUMPKMAP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 96 | APPLET("dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 97 | #endif |
| 98 | #ifdef BB_DUTMP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 99 | APPLET("dutmp", dutmp_main, _BB_DIR_USR_SBIN, dutmp_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 100 | #endif |
| 101 | #ifdef BB_ECHO |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 102 | APPLET("echo", echo_main, _BB_DIR_BIN, echo_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 103 | #endif |
| 104 | #ifdef BB_EXPR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 105 | APPLET("expr", expr_main, _BB_DIR_USR_BIN, expr_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 106 | #endif |
| 107 | #ifdef BB_TRUE_FALSE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 108 | APPLET("false", false_main, _BB_DIR_BIN, false_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 109 | #endif |
| 110 | #ifdef BB_FBSET |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 111 | APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 112 | #endif |
| 113 | #ifdef BB_FDFLUSH |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 114 | APPLET("fdflush", fdflush_main, _BB_DIR_BIN, fdflush_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 115 | #endif |
| 116 | #ifdef BB_FIND |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 117 | APPLET("find", find_main, _BB_DIR_USR_BIN, find_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 118 | #endif |
| 119 | #ifdef BB_FREE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 120 | APPLET("free", free_main, _BB_DIR_USR_BIN, free_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 121 | #endif |
| 122 | #ifdef BB_FREERAMDISK |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 123 | APPLET("freeramdisk", freeramdisk_main, _BB_DIR_SBIN, freeramdisk_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 124 | #endif |
| 125 | #ifdef BB_FSCK_MINIX |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 126 | APPLET("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 127 | #endif |
| 128 | #ifdef BB_GETOPT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 129 | APPLET("getopt", getopt_main, _BB_DIR_BIN, getopt_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 130 | #endif |
| 131 | #ifdef BB_GREP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 132 | APPLET("grep", grep_main, _BB_DIR_BIN, grep_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 133 | #endif |
| 134 | #ifdef BB_GUNZIP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 135 | APPLET("gunzip", gunzip_main, _BB_DIR_BIN, gunzip_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 136 | #endif |
| 137 | #ifdef BB_GZIP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 138 | APPLET("gzip", gzip_main, _BB_DIR_BIN, gzip_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 139 | #endif |
| 140 | #ifdef BB_HALT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 141 | APPLET("halt", halt_main, _BB_DIR_SBIN, halt_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 142 | #endif |
| 143 | #ifdef BB_HEAD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 144 | APPLET("head", head_main, _BB_DIR_USR_BIN, head_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 145 | #endif |
| 146 | #ifdef BB_HOSTID |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 147 | APPLET("hostid", hostid_main, _BB_DIR_USR_BIN, hostid_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 148 | #endif |
| 149 | #ifdef BB_HOSTNAME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 150 | APPLET("hostname", hostname_main, _BB_DIR_BIN, hostname_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 151 | #endif |
| 152 | #ifdef BB_ID |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 153 | APPLET("id", id_main, _BB_DIR_USR_BIN, id_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 154 | #endif |
| 155 | #ifdef BB_INIT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 156 | APPLET_NOUSAGE("init", init_main, _BB_DIR_SBIN) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 157 | #endif |
| 158 | #ifdef BB_INSMOD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 159 | APPLET("insmod", insmod_main, _BB_DIR_SBIN, insmod_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 160 | #endif |
| 161 | #ifdef BB_KILL |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 162 | APPLET("kill", kill_main, _BB_DIR_BIN, kill_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 163 | #endif |
| 164 | #ifdef BB_KILLALL |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 165 | APPLET("killall", kill_main, _BB_DIR_USR_BIN, killall_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 166 | #endif |
| 167 | #ifdef BB_LENGTH |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 168 | APPLET("length", length_main, _BB_DIR_USR_BIN, length_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 169 | #endif |
| 170 | #ifdef BB_LINUXRC |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 171 | APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 172 | #endif |
| 173 | #ifdef BB_LN |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 174 | APPLET("ln", ln_main, _BB_DIR_BIN, ln_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 175 | #endif |
| 176 | #ifdef BB_LOADACM |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 177 | APPLET("loadacm", loadacm_main, _BB_DIR_USR_BIN, loadacm_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 178 | #endif |
| 179 | #ifdef BB_LOADFONT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 180 | APPLET("loadfont", loadfont_main, _BB_DIR_USR_BIN, loadfont_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 181 | #endif |
| 182 | #ifdef BB_LOADKMAP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 183 | APPLET("loadkmap", loadkmap_main, _BB_DIR_SBIN, loadkmap_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 184 | #endif |
| 185 | #ifdef BB_LOGGER |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 186 | APPLET("logger", logger_main, _BB_DIR_USR_BIN, logger_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 187 | #endif |
| 188 | #ifdef BB_LOGNAME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 189 | APPLET("logname", logname_main, _BB_DIR_USR_BIN, logname_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 190 | #endif |
| 191 | #ifdef BB_LS |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 192 | APPLET("ls", ls_main, _BB_DIR_BIN, ls_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 193 | #endif |
| 194 | #ifdef BB_LSMOD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 195 | APPLET("lsmod", lsmod_main, _BB_DIR_SBIN, lsmod_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 196 | #endif |
| 197 | #ifdef BB_MAKEDEVS |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 198 | APPLET("makedevs", makedevs_main, _BB_DIR_SBIN, makedevs_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 199 | #endif |
| 200 | #ifdef BB_MD5SUM |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 201 | APPLET("md5sum", md5sum_main, _BB_DIR_USR_BIN, md5sum_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 202 | #endif |
| 203 | #ifdef BB_MKDIR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 204 | APPLET("mkdir", mkdir_main, _BB_DIR_BIN, mkdir_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 205 | #endif |
| 206 | #ifdef BB_MKFIFO |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 207 | APPLET("mkfifo", mkfifo_main, _BB_DIR_USR_BIN, mkfifo_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 208 | #endif |
| 209 | #ifdef BB_MKFS_MINIX |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 210 | APPLET("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 211 | #endif |
| 212 | #ifdef BB_MKNOD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 213 | APPLET("mknod", mknod_main, _BB_DIR_BIN, mknod_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 214 | #endif |
| 215 | #ifdef BB_MKSWAP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 216 | APPLET("mkswap", mkswap_main, _BB_DIR_SBIN, mkswap_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 217 | #endif |
| 218 | #ifdef BB_MKTEMP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 219 | APPLET("mktemp", mktemp_main, _BB_DIR_BIN, mktemp_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 220 | #endif |
| 221 | #ifdef BB_MORE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 222 | APPLET("more", more_main, _BB_DIR_BIN, more_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 223 | #endif |
| 224 | #ifdef BB_MOUNT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 225 | APPLET("mount", mount_main, _BB_DIR_BIN, mount_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 226 | #endif |
| 227 | #ifdef BB_MT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 228 | APPLET("mt", mt_main, _BB_DIR_BIN, mt_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 229 | #endif |
| 230 | #ifdef BB_CP_MV |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 231 | APPLET("mv", cp_mv_main, _BB_DIR_BIN, mv_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 232 | #endif |
| 233 | #ifdef BB_NC |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 234 | APPLET("nc", nc_main, _BB_DIR_USR_BIN, nc_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 235 | #endif |
| 236 | #ifdef BB_NSLOOKUP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 237 | APPLET("nslookup", nslookup_main, _BB_DIR_USR_BIN, nslookup_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 238 | #endif |
| 239 | #ifdef BB_PING |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 240 | APPLET("ping", ping_main, _BB_DIR_BIN, ping_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 241 | #endif |
| 242 | #ifdef BB_POWEROFF |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 243 | APPLET("poweroff", poweroff_main, _BB_DIR_SBIN, poweroff_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 244 | #endif |
| 245 | #ifdef BB_PRINTF |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 246 | APPLET("printf", printf_main, _BB_DIR_USR_BIN, printf_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 247 | #endif |
| 248 | #ifdef BB_PS |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 249 | APPLET("ps", ps_main, _BB_DIR_BIN, ps_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 250 | #endif |
| 251 | #ifdef BB_PWD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 252 | APPLET("pwd", pwd_main, _BB_DIR_BIN, pwd_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 253 | #endif |
| 254 | #ifdef BB_RDATE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 255 | APPLET("rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 256 | #endif |
| 257 | #ifdef BB_READLINK |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 258 | APPLET("readlink", readlink_main, _BB_DIR_USR_BIN, readlink_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 259 | #endif |
| 260 | #ifdef BB_REBOOT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 261 | APPLET("reboot", reboot_main, _BB_DIR_SBIN, reboot_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 262 | #endif |
| 263 | #ifdef BB_RENICE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 264 | APPLET("renice", renice_main, _BB_DIR_USR_BIN, renice_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 265 | #endif |
| 266 | #ifdef BB_RESET |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 267 | APPLET("reset", reset_main, _BB_DIR_USR_BIN, reset_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 268 | #endif |
| 269 | #ifdef BB_RM |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 270 | APPLET("rm", rm_main, _BB_DIR_BIN, rm_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 271 | #endif |
| 272 | #ifdef BB_RMDIR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 273 | APPLET("rmdir", rmdir_main, _BB_DIR_BIN, rmdir_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 274 | #endif |
| 275 | #ifdef BB_RMMOD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 276 | APPLET("rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 277 | #endif |
Eric Andersen | e500d20 | 2000-11-29 21:38:11 +0000 | [diff] [blame] | 278 | #ifdef BB_RPMUNPACK |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 279 | APPLET("rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage) |
Eric Andersen | e500d20 | 2000-11-29 21:38:11 +0000 | [diff] [blame] | 280 | #endif |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 281 | #ifdef BB_SED |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 282 | APPLET("sed", sed_main, _BB_DIR_BIN, sed_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 283 | #endif |
| 284 | #ifdef BB_SETKEYCODES |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 285 | APPLET("setkeycodes", setkeycodes_main, _BB_DIR_USR_BIN, setkeycodes_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 286 | #endif |
| 287 | #ifdef BB_SH |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 288 | APPLET("sh", shell_main, _BB_DIR_BIN, shell_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 289 | #endif |
| 290 | #ifdef BB_SLEEP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 291 | APPLET("sleep", sleep_main, _BB_DIR_BIN, sleep_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 292 | #endif |
| 293 | #ifdef BB_SORT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 294 | APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 295 | #endif |
| 296 | #ifdef BB_SWAPONOFF |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 297 | APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 298 | #endif |
| 299 | #ifdef BB_SWAPONOFF |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 300 | APPLET("swapon", swap_on_off_main, _BB_DIR_SBIN, swapon_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 301 | #endif |
| 302 | #ifdef BB_SYNC |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 303 | APPLET("sync", sync_main, _BB_DIR_BIN, sync_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 304 | #endif |
| 305 | #ifdef BB_SYSLOGD |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 306 | APPLET("syslogd", syslogd_main, _BB_DIR_SBIN, syslogd_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 307 | #endif |
| 308 | #ifdef BB_TAIL |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 309 | APPLET("tail", tail_main, _BB_DIR_USR_BIN, tail_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 310 | #endif |
| 311 | #ifdef BB_TAR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 312 | APPLET("tar", tar_main, _BB_DIR_BIN, tar_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 313 | #endif |
| 314 | #ifdef BB_TEE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 315 | APPLET("tee", tee_main, _BB_DIR_USR_BIN, tee_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 316 | #endif |
| 317 | #ifdef BB_TELNET |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 318 | APPLET("telnet", telnet_main, _BB_DIR_USR_BIN, telnet_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 319 | #endif |
| 320 | #ifdef BB_TEST |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 321 | APPLET("test", test_main, _BB_DIR_USR_BIN, test_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 322 | #endif |
| 323 | #ifdef BB_TOUCH |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 324 | APPLET("touch", touch_main, _BB_DIR_BIN, touch_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 325 | #endif |
| 326 | #ifdef BB_TR |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 327 | APPLET("tr", tr_main, _BB_DIR_USR_BIN, tr_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 328 | #endif |
| 329 | #ifdef BB_TRUE_FALSE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 330 | APPLET("true", true_main, _BB_DIR_BIN, true_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 331 | #endif |
| 332 | #ifdef BB_TTY |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 333 | APPLET("tty", tty_main, _BB_DIR_USR_BIN, tty_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 334 | #endif |
| 335 | #ifdef BB_UMOUNT |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 336 | APPLET("umount", umount_main, _BB_DIR_BIN, umount_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 337 | #endif |
| 338 | #ifdef BB_UNAME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 339 | APPLET("uname", uname_main, _BB_DIR_BIN, uname_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 340 | #endif |
| 341 | #ifdef BB_UNIQ |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 342 | APPLET("uniq", uniq_main, _BB_DIR_USR_BIN, uniq_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 343 | #endif |
| 344 | #ifdef BB_UNIX2DOS |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 345 | APPLET("unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 346 | #endif |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 347 | #ifdef BB_UPDATE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 348 | APPLET("update", update_main, _BB_DIR_SBIN, update_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 349 | #endif |
| 350 | #ifdef BB_UPTIME |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 351 | APPLET("uptime", uptime_main, _BB_DIR_USR_BIN, uptime_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 352 | #endif |
| 353 | #ifdef BB_USLEEP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 354 | APPLET("usleep", usleep_main, _BB_DIR_BIN, usleep_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 355 | #endif |
| 356 | #ifdef BB_UUDECODE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 357 | APPLET("uudecode", uudecode_main, _BB_DIR_USR_BIN, uudecode_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 358 | #endif |
| 359 | #ifdef BB_UUENCODE |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 360 | APPLET("uuencode", uuencode_main, _BB_DIR_USR_BIN, uuencode_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 361 | #endif |
| 362 | #ifdef BB_WC |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 363 | APPLET("wc", wc_main, _BB_DIR_USR_BIN, wc_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 364 | #endif |
| 365 | #ifdef BB_WGET |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 366 | APPLET("wget", wget_main, _BB_DIR_USR_BIN, wget_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 367 | #endif |
| 368 | #ifdef BB_WHICH |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 369 | APPLET("which", which_main, _BB_DIR_USR_BIN, which_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 370 | #endif |
| 371 | #ifdef BB_WHOAMI |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 372 | APPLET("whoami", whoami_main, _BB_DIR_USR_BIN, whoami_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 373 | #endif |
| 374 | #ifdef BB_XARGS |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 375 | APPLET("xargs", xargs_main, _BB_DIR_USR_BIN, xargs_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 376 | #endif |
| 377 | #ifdef BB_YES |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 378 | APPLET("yes", yes_main, _BB_DIR_USR_BIN, yes_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 379 | #endif |
| 380 | #ifdef BB_GUNZIP |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 381 | APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage) |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 382 | #endif |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 383 | |
Eric Andersen | 868c057 | 2000-12-02 00:44:48 +0000 | [diff] [blame] | 384 | #if !defined(PROTOTYPES) && !defined(MAKE_LINKS) |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 385 | { 0,NULL,0,NULL} |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 386 | }; |
| 387 | |
| 388 | /* The -1 arises because of the {0,NULL,0,NULL} entry above. */ |
Eric Andersen | a683ee8 | 2000-11-17 18:51:45 +0000 | [diff] [blame] | 389 | size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1); |
Mark Whitley | 130005c | 2000-10-25 00:28:27 +0000 | [diff] [blame] | 390 | |
Eric Andersen | 8c725e6 | 2000-11-30 00:27:06 +0000 | [diff] [blame] | 391 | #endif |