avoid signed<->unsigned warning
[oweals/busybox.git] / include / applets.h
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
13 #undef APPLET
14 #undef APPLET_ODDNAME
15 #undef APPLET_NOUSAGE
16
17
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"
28 # else
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"
32 # endif
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
37 #else
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},
42 #endif
43
44 #ifdef CONFIG_INSTALL_NO_USR
45 # define _BB_DIR_USR_BIN _BB_DIR_BIN
46 # define _BB_DIR_USR_SBIN _BB_DIR_SBIN
47 #endif
48
49
50
51 #ifdef CONFIG_TEST
52         APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
53         APPLET_NOUSAGE("[[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
54 #endif
55 #ifdef CONFIG_ADDGROUP
56         APPLET(addgroup, addgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
57 #endif
58 #ifdef CONFIG_ADDUSER
59         APPLET(adduser, adduser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
60 #endif
61 #ifdef CONFIG_ADJTIMEX
62         APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
63 #endif
64 #ifdef CONFIG_AR
65         APPLET(ar, ar_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
66 #endif
67 #ifdef CONFIG_ARPING
68         APPLET(arping, arping_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
69 #endif
70 #ifdef CONFIG_ASH
71         APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
72 #endif
73 #ifdef CONFIG_AWK
74         APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
75 #endif
76 #ifdef CONFIG_BASENAME
77         APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
78 #endif
79 #ifdef CONFIG_BBCONFIG
80         APPLET(bbconfig, bbconfig_main, _BB_DIR_BIN, _BB_SUID_NEVER)
81 #endif
82 #ifdef CONFIG_BUNZIP2
83         APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
84 #endif
85         APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
86 #ifdef CONFIG_BUNZIP2
87         APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
88 #endif
89 #ifdef CONFIG_CAL
90         APPLET(cal, cal_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
91 #endif
92 #ifdef CONFIG_CAT
93         APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
94 #endif
95 #ifdef CONFIG_CHATTR
96         APPLET(chattr, chattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
97 #endif
98 #ifdef CONFIG_CHGRP
99         APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
100 #endif
101 #ifdef CONFIG_CHMOD
102         APPLET(chmod, chmod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
103 #endif
104 #ifdef CONFIG_CHOWN
105         APPLET(chown, chown_main, _BB_DIR_BIN, _BB_SUID_NEVER)
106 #endif
107 #ifdef CONFIG_CHROOT
108         APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
109 #endif
110 #ifdef CONFIG_CHVT
111         APPLET(chvt, chvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
112 #endif
113 #ifdef CONFIG_CLEAR
114         APPLET(clear, clear_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
115 #endif
116 #ifdef CONFIG_CMP
117         APPLET(cmp, cmp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
118 #endif
119 #ifdef CONFIG_COMM
120         APPLET(comm, comm_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
121 #endif
122 #ifdef CONFIG_CP
123         APPLET(cp, cp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
124 #endif
125 #ifdef CONFIG_CPIO
126         APPLET(cpio, cpio_main, _BB_DIR_BIN, _BB_SUID_NEVER)
127 #endif
128 #ifdef CONFIG_CROND
129         APPLET(crond, crond_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
130 #endif
131 #ifdef CONFIG_CRONTAB
132         APPLET(crontab, crontab_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
133 #endif
134 #ifdef CONFIG_CUT
135         APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
136 #endif
137 #ifdef CONFIG_DATE
138         APPLET(date, date_main, _BB_DIR_BIN, _BB_SUID_NEVER)
139 #endif
140 #ifdef CONFIG_DC
141         APPLET(dc, dc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
142 #endif
143 #ifdef CONFIG_DD
144         APPLET(dd, dd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
145 #endif
146 #ifdef CONFIG_DEALLOCVT
147         APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
148 #endif
149 #ifdef CONFIG_DELGROUP
150         APPLET(delgroup, delgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
151 #endif
152 #ifdef CONFIG_DELUSER
153         APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
154 #endif
155 #ifdef CONFIG_DEVFSD
156         APPLET(devfsd, devfsd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
157 #endif
158 #ifdef CONFIG_DF
159         APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
160 #endif
161 #ifdef CONFIG_DIRNAME
162         APPLET(dirname, dirname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
163 #endif
164 #ifdef CONFIG_DMESG
165         APPLET(dmesg, dmesg_main, _BB_DIR_BIN, _BB_SUID_NEVER)
166 #endif
167 #ifdef CONFIG_DNSD
168         APPLET(dnsd, dnsd_main, _BB_DIR_USR_SBIN, _BB_SUID_ALWAYS)
169 #endif
170 #ifdef CONFIG_DOS2UNIX
171         APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
172 #endif
173 #ifdef CONFIG_DPKG
174         APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
175 #endif
176 #ifdef CONFIG_DPKG_DEB
177         APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, dpkg_deb)
178 #endif
179 #ifdef CONFIG_DU
180         APPLET(du, du_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
181 #endif
182 #ifdef CONFIG_DUMPKMAP
183         APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER)
184 #endif
185 #ifdef CONFIG_DUMPLEASES
186         APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
187 #endif
188 #ifdef CONFIG_E2FSCK
189         APPLET(e2fsck, e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
190 #endif
191 #ifdef CONFIG_E2LABEL
192         APPLET_NOUSAGE("e2label", tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
193 #endif
194 #ifdef CONFIG_ECHO
195         APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
196 #endif
197 #if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
198         APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
199 #endif
200 #ifdef CONFIG_EJECT
201         APPLET(eject, eject_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
202 #endif
203 #ifdef CONFIG_ENV
204         APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
205 #endif
206 #ifdef CONFIG_ETHER_WAKE
207         APPLET_ODDNAME("ether-wake", etherwake_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, ether_wake)
208 #endif
209 #ifdef CONFIG_EXPR
210         APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
211 #endif
212 #ifdef CONFIG_FAKEIDENTD
213         APPLET(fakeidentd, fakeidentd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
214 #endif
215 #ifdef CONFIG_FALSE
216         APPLET(false, false_main, _BB_DIR_BIN, _BB_SUID_NEVER)
217 #endif
218 #ifdef CONFIG_FBSET
219         APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
220 #endif
221 #ifdef CONFIG_FDFLUSH
222         APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
223 #endif
224 #ifdef CONFIG_FDFORMAT
225         APPLET(fdformat, fdformat_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
226 #endif
227 #ifdef CONFIG_FDISK
228         APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
229 #endif
230 #if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS)
231         APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
232 #endif
233 #ifdef CONFIG_FIND
234         APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
235 #endif
236 #ifdef CONFIG_FINDFS
237         APPLET_NOUSAGE("findfs", tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
238 #endif
239 #ifdef CONFIG_FOLD
240         APPLET(fold, fold_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
241 #endif
242 #ifdef CONFIG_FREE
243         APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
244 #endif
245 #ifdef CONFIG_FREERAMDISK
246         APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
247 #endif
248 #ifdef CONFIG_FSCK
249         APPLET(fsck, fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
250 #endif
251 #ifdef CONFIG_E2FSCK
252         APPLET_NOUSAGE("fsck.ext2", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
253         APPLET_NOUSAGE("fsck.ext3", e2fsck_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
254 #endif
255 #ifdef CONFIG_FSCK_MINIX
256         APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix)
257 #endif
258 #ifdef CONFIG_FTPGET
259         APPLET(ftpget, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
260 #endif
261 #ifdef CONFIG_FTPPUT
262         APPLET(ftpput, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
263 #endif
264 #ifdef CONFIG_FUSER
265         APPLET(fuser, fuser_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
266 #endif
267 #ifdef CONFIG_GETOPT
268         APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
269 #endif
270 #ifdef CONFIG_GETTY
271         APPLET(getty, getty_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
272 #endif
273 #ifdef CONFIG_GREP
274         APPLET(grep, grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
275 #endif
276 #ifdef CONFIG_GUNZIP
277         APPLET(gunzip, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
278 #endif
279 #ifdef CONFIG_GZIP
280         APPLET(gzip, gzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
281 #endif
282 #ifdef CONFIG_HALT
283         APPLET(halt, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
284 #endif
285 #ifdef CONFIG_HDPARM
286         APPLET(hdparm, hdparm_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
287 #endif
288 #ifdef CONFIG_HEAD
289         APPLET(head, head_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
290 #endif
291 #ifdef CONFIG_HEXDUMP
292         APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
293 #endif
294 #ifdef CONFIG_HOSTID
295         APPLET(hostid, hostid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
296 #endif
297 #ifdef CONFIG_HOSTNAME
298         APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
299 #endif
300 #ifdef CONFIG_HTTPD
301         APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
302 #endif
303 #ifdef CONFIG_HUSH
304         APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
305 #endif
306 #ifdef CONFIG_HWCLOCK
307         APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
308 #endif
309 #ifdef CONFIG_ID
310         APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
311 #endif
312 #ifdef CONFIG_IFCONFIG
313         APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
314 #endif
315 #ifdef CONFIG_IFUPDOWN
316         APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
317 #endif
318 #ifdef CONFIG_IFUPDOWN
319         APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
320 #endif
321 #ifdef CONFIG_INETD
322         APPLET(inetd, inetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
323 #endif
324 #ifdef CONFIG_INIT
325         APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
326 #endif
327 #ifdef CONFIG_INSMOD
328         APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
329 #endif
330 #ifdef CONFIG_INSTALL
331         APPLET(install, install_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
332 #endif
333 #ifdef CONFIG_IP
334         APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
335 #endif
336 #ifdef CONFIG_IPADDR
337         APPLET(ipaddr, ipaddr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
338 #endif
339 #ifdef CONFIG_IPCALC
340         APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER)
341 #endif
342 #ifdef CONFIG_IPCRM
343         APPLET(ipcrm, ipcrm_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
344 #endif
345 #ifdef CONFIG_IPCS
346         APPLET(ipcs, ipcs_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
347 #endif
348 #ifdef CONFIG_IPLINK
349         APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER)
350 #endif
351 #ifdef CONFIG_IPROUTE
352         APPLET(iproute, iproute_main, _BB_DIR_BIN, _BB_SUID_NEVER)
353 #endif
354 #ifdef CONFIG_IPTUNNEL
355         APPLET(iptunnel, iptunnel_main, _BB_DIR_BIN, _BB_SUID_NEVER)
356 #endif
357 #ifdef CONFIG_KILL
358         APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)
359 #endif
360 #ifdef CONFIG_KILLALL
361         APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
362 #endif
363 #ifdef CONFIG_KLOGD
364         APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
365 #endif
366 #ifdef CONFIG_LASH
367         APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
368 #endif
369 #ifdef CONFIG_LAST
370         APPLET(last, last_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
371 #endif
372 #ifdef CONFIG_LENGTH
373         APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
374 #endif
375 #ifdef CONFIG_LESS
376         APPLET(less, less_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
377 #endif
378 #ifdef CONFIG_FEATURE_INITRD
379         APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
380 #endif
381 #ifdef CONFIG_LN
382         APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
383 #endif
384 #ifdef CONFIG_LOADFONT
385         APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
386 #endif
387 #ifdef CONFIG_LOADKMAP
388         APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
389 #endif
390 #ifdef CONFIG_LOGGER
391         APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
392 #endif
393 #ifdef CONFIG_LOGIN
394         APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
395 #endif
396 #ifdef CONFIG_LOGNAME
397         APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
398 #endif
399 #ifdef CONFIG_LOGREAD
400         APPLET(logread, logread_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
401 #endif
402 #ifdef CONFIG_LOSETUP
403         APPLET(losetup, losetup_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
404 #endif
405 #ifdef CONFIG_LS
406         APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
407 #endif
408 #ifdef CONFIG_LSATTR
409         APPLET(lsattr, lsattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
410 #endif
411 #ifdef CONFIG_LSMOD
412         APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
413 #endif
414 #ifdef CONFIG_UNLZMA
415         APPLET(lzmacat, unlzma_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
416 #endif
417 #ifdef CONFIG_MAKEDEVS
418         APPLET(makedevs, makedevs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
419 #endif
420 #ifdef CONFIG_MD5SUM
421         APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
422 #endif
423 #ifdef CONFIG_MDEV
424         APPLET(mdev, mdev_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
425 #endif
426 #ifdef CONFIG_MESG
427         APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
428 #endif
429 #ifdef CONFIG_MKDIR
430         APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
431 #endif
432 #ifdef CONFIG_MKE2FS
433         APPLET(mke2fs, mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
434 #endif
435 #ifdef CONFIG_MKFIFO
436         APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
437 #endif
438 #ifdef CONFIG_MKE2FS
439         APPLET_NOUSAGE("mkfs.ext2", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
440         APPLET_NOUSAGE("mkfs.ext3", mke2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
441 #endif
442 #ifdef CONFIG_MKFS_MINIX
443         APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
444 #endif
445 #ifdef CONFIG_MKNOD
446         APPLET(mknod, mknod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
447 #endif
448 #ifdef CONFIG_MKSWAP
449         APPLET(mkswap, mkswap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
450 #endif
451 #ifdef CONFIG_MKTEMP
452         APPLET(mktemp, mktemp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
453 #endif
454 #ifdef CONFIG_MODPROBE
455         APPLET(modprobe, modprobe_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
456 #endif
457 #ifdef CONFIG_MORE
458         APPLET(more, more_main, _BB_DIR_BIN, _BB_SUID_NEVER)
459 #endif
460 #ifdef CONFIG_MOUNT
461         APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
462 #endif
463 #ifdef CONFIG_MOUNTPOINT
464         APPLET(mountpoint, mountpoint_main, _BB_DIR_BIN, _BB_SUID_NEVER)
465 #endif
466 #ifdef CONFIG_MSH
467         APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
468 #endif
469 #ifdef CONFIG_MT
470         APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
471 #endif
472 #ifdef CONFIG_MV
473         APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
474 #endif
475 #ifdef CONFIG_NAMEIF
476         APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
477 #endif
478 #ifdef CONFIG_NC
479         APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
480 #endif
481 #ifdef CONFIG_NETSTAT
482         APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
483 #endif
484 #ifdef CONFIG_NICE
485         APPLET(nice, nice_main, _BB_DIR_BIN, _BB_SUID_NEVER)
486 #endif
487 #ifdef CONFIG_NOHUP
488         APPLET(nohup, nohup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
489 #endif
490 #ifdef CONFIG_NSLOOKUP
491         APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
492 #endif
493 #ifdef CONFIG_OD
494         APPLET(od, od_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
495 #endif
496 #ifdef CONFIG_OPENVT
497         APPLET(openvt, openvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
498 #endif
499 #ifdef CONFIG_PASSWD
500         APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
501 #endif
502 #ifdef CONFIG_PATCH
503         APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
504 #endif
505 #ifdef CONFIG_PIDOF
506         APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER)
507 #endif
508 #ifdef CONFIG_PING
509         APPLET(ping, ping_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
510 #endif
511 #ifdef CONFIG_PING6
512         APPLET(ping6, ping6_main, _BB_DIR_BIN, _BB_SUID_NEVER)
513 #endif
514 #ifdef CONFIG_PIPE_PROGRESS
515         APPLET_NOUSAGE("pipe_progress", pipe_progress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
516 #endif
517 #ifdef CONFIG_PIVOT_ROOT
518         APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
519 #endif
520 #ifdef CONFIG_HALT
521         APPLET(poweroff, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
522 #endif
523 #ifdef CONFIG_PRINTENV
524         APPLET(printenv, printenv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
525 #endif
526 #ifdef CONFIG_PRINTF
527         APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
528 #endif
529 #ifdef CONFIG_PS
530         APPLET(ps, ps_main, _BB_DIR_BIN, _BB_SUID_NEVER)
531 #endif
532 #ifdef CONFIG_PWD
533         APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
534 #endif
535 #ifdef CONFIG_RDATE
536         APPLET(rdate, rdate_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
537 #endif
538 #ifdef CONFIG_READLINK
539         APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
540 #endif
541 #ifdef CONFIG_READPROFILE
542         APPLET(readprofile, readprofile_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
543 #endif
544 #ifdef CONFIG_REALPATH
545         APPLET(realpath, realpath_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
546 #endif
547 #ifdef CONFIG_HALT
548         APPLET(reboot, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
549 #endif
550 #ifdef CONFIG_RENICE
551         APPLET(renice, renice_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
552 #endif
553 #ifdef CONFIG_RESET
554         APPLET(reset, reset_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
555 #endif
556 #ifdef CONFIG_RM
557         APPLET(rm, rm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
558 #endif
559 #ifdef CONFIG_RMDIR
560         APPLET(rmdir, rmdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
561 #endif
562 #ifdef CONFIG_RMMOD
563         APPLET(rmmod, rmmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
564 #endif
565 #ifdef CONFIG_ROUTE
566         APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
567 #endif
568 #ifdef CONFIG_RPM
569         APPLET(rpm, rpm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
570 #endif
571 #ifdef CONFIG_RPM2CPIO
572         APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
573 #endif
574 #ifdef CONFIG_RUN_PARTS
575         APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts)
576 #endif
577 #if BB_APPLET_RUNLEVEL
578         APPLET(runlevel, runlevel_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
579 #endif
580 #ifdef CONFIG_RX
581         APPLET(rx, rx_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
582 #endif
583 #ifdef CONFIG_SED
584         APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
585 #endif
586 #ifdef CONFIG_SEQ
587         APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
588 #endif
589 #ifdef CONFIG_SETCONSOLE
590         APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
591 #endif
592 #ifdef CONFIG_SETKEYCODES
593         APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
594 #endif
595 #ifdef CONFIG_SETSID
596         APPLET(setsid, setsid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
597 #endif
598 #if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
599         APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
600 #elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
601         APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
602 #elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
603         APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
604 #elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
605         APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
606 #endif
607 #ifdef CONFIG_SHA1SUM
608         APPLET(sha1sum, sha1sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
609 #endif
610 #ifdef CONFIG_SLEEP
611         APPLET(sleep, sleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
612 #endif
613 #ifdef CONFIG_SORT
614         APPLET(sort, sort_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
615 #endif
616 #ifdef CONFIG_START_STOP_DAEMON
617         APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon)
618 #endif
619 #ifdef CONFIG_STAT
620         APPLET(stat, stat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
621 #endif
622 #ifdef CONFIG_STRINGS
623         APPLET(strings, strings_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
624 #endif
625 #ifdef CONFIG_STTY
626         APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER)
627 #endif
628 #ifdef CONFIG_SU
629         APPLET(su, su_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
630 #endif
631 #ifdef CONFIG_SULOGIN
632         APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
633 #endif
634 #ifdef CONFIG_SUM
635         APPLET(sum, sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
636 #endif
637 #ifdef CONFIG_SWAPONOFF
638         APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
639 #endif
640 #ifdef CONFIG_SWAPONOFF
641         APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
642 #endif
643 #ifdef CONFIG_SWITCH_ROOT
644         APPLET(switch_root, switch_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
645 #endif
646 #ifdef CONFIG_SYNC
647         APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
648 #endif
649 #ifdef CONFIG_BB_SYSCTL
650         APPLET(sysctl, sysctl_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
651 #endif
652 #ifdef CONFIG_SYSLOGD
653         APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
654 #endif
655 #ifdef CONFIG_TAIL
656         APPLET(tail, tail_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
657 #endif
658 #ifdef CONFIG_TAR
659         APPLET(tar, tar_main, _BB_DIR_BIN, _BB_SUID_NEVER)
660 #endif
661 #ifdef CONFIG_TEE
662         APPLET(tee, tee_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
663 #endif
664 #ifdef CONFIG_TELNET
665         APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
666 #endif
667 #ifdef CONFIG_TELNETD
668         APPLET(telnetd, telnetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
669 #endif
670 #ifdef CONFIG_TEST
671         APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
672 #endif
673 #ifdef CONFIG_TFTP
674         APPLET(tftp, tftp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
675 #endif
676 #ifdef CONFIG_TIME
677         APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
678 #endif
679 #ifdef CONFIG_TOP
680         APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
681 #endif
682 #ifdef CONFIG_TOUCH
683         APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
684 #endif
685 #if ENABLE_TR
686         APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
687 #endif
688 #ifdef CONFIG_TRACEROUTE
689         APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)
690 #endif
691 #ifdef CONFIG_TRUE
692         APPLET(true, true_main, _BB_DIR_BIN, _BB_SUID_NEVER)
693 #endif
694 #ifdef CONFIG_TTY
695         APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
696 #endif
697 #ifdef CONFIG_TUNE2FS
698         APPLET(tune2fs, tune2fs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
699 #endif
700 #ifdef CONFIG_UDHCPC
701         APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
702 #endif
703 #ifdef CONFIG_UDHCPD
704         APPLET(udhcpd, udhcpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
705 #endif
706 #ifdef CONFIG_UMOUNT
707         APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
708 #endif
709 #ifdef CONFIG_UNAME
710         APPLET(uname, uname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
711 #endif
712 #ifdef CONFIG_UNCOMPRESS
713         APPLET(uncompress, uncompress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
714 #endif
715 #ifdef CONFIG_UNIQ
716         APPLET(uniq, uniq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
717 #endif
718 #ifdef CONFIG_UNIX2DOS
719         APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
720 #endif
721 #ifdef CONFIG_UNLZMA
722         APPLET(unlzma, unlzma_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
723 #endif
724 #ifdef CONFIG_UNZIP
725         APPLET(unzip, unzip_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
726 #endif
727 #ifdef CONFIG_UPTIME
728         APPLET(uptime, uptime_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
729 #endif
730 #ifdef CONFIG_USLEEP
731         APPLET(usleep, usleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
732 #endif
733 #ifdef CONFIG_UUDECODE
734         APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
735 #endif
736 #ifdef CONFIG_UUENCODE
737         APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
738 #endif
739 #ifdef CONFIG_VCONFIG
740         APPLET(vconfig, vconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
741 #endif
742 #ifdef CONFIG_VI
743         APPLET(vi, vi_main, _BB_DIR_BIN, _BB_SUID_NEVER)
744 #endif
745 #ifdef CONFIG_VLOCK
746         APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
747 #endif
748 #ifdef CONFIG_WATCH
749         APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
750 #endif
751 #if ENABLE_WATCHDOG
752         APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
753 #endif
754 #ifdef CONFIG_WC
755         APPLET(wc, wc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
756 #endif
757 #ifdef CONFIG_WGET
758         APPLET(wget, wget_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
759 #endif
760 #ifdef CONFIG_WHICH
761         APPLET(which, which_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
762 #endif
763 #ifdef CONFIG_WHO
764         APPLET(who, who_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
765 #endif
766 #ifdef CONFIG_WHOAMI
767         APPLET(whoami, whoami_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
768 #endif
769 #ifdef CONFIG_XARGS
770         APPLET(xargs, xargs_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
771 #endif
772 #ifdef CONFIG_YES
773         APPLET(yes, yes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
774 #endif
775 #ifdef CONFIG_GUNZIP
776         APPLET(zcat, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
777 #endif
778 #ifdef CONFIG_ZCIP
779         APPLET(zcip, zcip_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
780 #endif
781
782 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
783         { 0,NULL,0,0 }
784 };
785
786 #endif