applets.h 22 KB

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