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