TODO 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Busybox TODO
  2. Stuff that needs to be done
  3. tr - missing SuS3 features in busybox 1.0pre10
  4. tr doesnt support [:blank:], [:digit:] or other predefined classes, [=equiv=]
  5. support is also missing.
  6. ----
  7. find
  8. doesn't understand () or -exec, and these are actually used out in the real
  9. world. The "make uninstall" of lots of things (including busybox itself)
  10. breaks because of this, and sometimes even "make install" (like udev).
  11. ----
  12. comm
  13. Perl needs "comm" to build. It's small and simple, but we haven't got it.
  14. ---
  15. sh
  16. The command shell situation is a big mess. We have three or four different
  17. shells that don't really share any code, and the "standalone shell" doesn't
  18. work all that well (especially not in a chroot environment), due to apps not
  19. being reentrant. Unifying the various shells and figuring out a configurable
  20. way of adding the minimal set of bash features a given script uses is a big
  21. job, but it be a big improvement.
  22. ---
  23. gzip
  24. Can't handle compressing multiple files at once. (I don't mean making a
  25. multiple file archive, I mean compressing more than one file at a time.)
  26. Some global variables aren't re-initialized between runs.
  27. ---
  28. gunzip
  29. same problem as gzip. "gunzip one.gz two.gz three.gz" doesn't work for
  30. two.gz and three.gz due to global variables not getting reset.
  31. ---
  32. diff
  33. We should have a diff -u command. We have patch, we should have diff
  34. (we only need to support unified diffs though).
  35. ---
  36. patch
  37. should have -i support, and simple fuzz factor support to apply patches
  38. at an offset shouldn't take up too much space.
  39. ---
  40. man
  41. It would be nice to have a man command. Not one that handles troff or
  42. anything, just one that can handle preformatted ascii man pages, possibly
  43. compressed. This could probably be a script in the extras directory that
  44. calls cat/zcatbzcat | more
  45. ---
  46. less
  47. More sucks if you're used to less. A tiny less implementation would be
  48. very nice.
  49. ---
  50. bzip2
  51. Compression-side support.
  52. Architectural issues:
  53. Do a SUSv3 audit
  54. Look at the full Single Unix Specification version 3 (available online at
  55. "http://www.opengroup.org/onlinepubs/009695399/nfindex.html") and
  56. figure out which of our apps are compliant, and what we're missing that
  57. we might actually care about.
  58. Even better would be some kind of automated compliance test harness that
  59. exercises each command line option and the various corner cases.
  60. --
  61. Unify archivers
  62. Lots of archivers have the same general infrastructure. The directory
  63. traversal code should be factored out, and the guts of each archiver could
  64. be some setup code and a series of callbacks for "add this file",
  65. "add this directory", "add this symlink" and so on.
  66. This could clean up tar and zip, and make it cheaper to add cpio and ar
  67. write support, and possibly even cheaply add things like mkisofs someday,
  68. if it becomes relevant.
  69. ---
  70. Text buffer support.
  71. Several existing applets and potential additions (sort, vi, less...) read
  72. a whole file into memory and act on it. There might be an opportunity
  73. for shared code in there that could be moved into libbb...
  74. ---
  75. Individual compilation of applets.
  76. It would be nice if busybox had the option to compile to individual applets,
  77. for people who want an alternate implementation less bloated than the gnu
  78. utils (or simply with less political baggage), but without it being one big
  79. executable.
  80. Turning libbb into a real dll is another possibility, especially if libbb
  81. could export some of the other library interfaces we've already more or less
  82. got the code for (like zlib).
  83. ---
  84. buildroot - Make a "dogfood" option
  85. Busybox is now capable of replacing most gnu packages for real world use,
  86. such as developing software or in a live CD. A system built from busybox
  87. (1.00 with updated sort.c), uclibc 0.9.27, gcc, binutils, make, and a few
  88. other development tools (http://www.landley.net/code/firmware has an example
  89. system using autoconf, automake, bison, flex, libtools, m4, zlib,
  90. and groff: dunno what subset of that is actually necessary) is capable of
  91. rebuilding itself, from scratch, under itself.
  92. It would be a good "eating our own dogfood" test if buildroot had the option
  93. of using busybox instead of bzip2, coreutils, file, findutils, gawk, grep,
  94. inetutils, modutils, net-tools, procps, sed, shadow, sysklogd, sysvinit, tar,
  95. util-linux, and vim. Anything that's wrong with the resulting system, we
  96. can fix. (It would be nice to be able to upgrade busybox to be able to
  97. replace bash, diffutils, gzip, less, and patch as well.)
  98. ---
  99. Memory Allocation
  100. We have a CONFIG_BUFFER mechanism that lets us select whether to do memory
  101. allocation on the stack or the heap. Unfortunately, we're not using it much.
  102. We need to audit our memory allocations and turn a lot of malloc/free calls
  103. into RESERVE_CONFIG_BUFFER/RELEASE_CONFIG_BUFFER.
  104. And while we're at it, many of the CONFIG_FEATURE_CLEAN_UP #ifdefs will be
  105. optimized out by the compiler in the stack allocation case (since there's no
  106. free for an alloca()), and this means that various cleanup loops that just
  107. call free might also be optimized out by the compiler if written right, so
  108. we can yank those #ifdefs too, and generally clean up the code.