aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2006-08-10Ok, features.h already defines _OPEN_SOURCE (and complains if it's alreadyRob Landley
defined), yet it's not doing it for scripts/individual for some reason. (I hate fighting with header files.)
2006-08-09Another whack at scripts/individual. Now builds 212 applets.Rob Landley
2006-08-09Update usage to talk about the new shared subtree stuff in mount.Rob Landley
2006-08-08Add shared subtree support, suggested by Vladimir Dronnikov. Also break out aRob Landley
few new (unfinished) config options, which I intend to make hidden (but enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure to do that is non-obvious, it seems...
2006-08-06Teach md5sum and sha1sum to work the way other applets do so I don't have toRob Landley
teach scripts/individual new tricks. And while I'm at it, teach scripts/individual other new tricks. Now builds 198 applets, some of which I should teach it to hardlink together because they're really the same app...
2006-08-05scripts/individual now builds 171 applets. Some of them may even work. :)Rob Landley
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03These should have been part of 15767 too.Rob Landley
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-20move lchown/chown define out of specific files and into platform.h where it ↵Mike Frysinger
belongs
2006-07-20"formated" -> "formatted" throughout the code base."Robert P. J. Day"
2006-07-17Patch from Thaddeus Ternes, adding chuid to start-stop-daemon.Rob Landley
2006-07-16Cleaup read() and write() variants, plus a couple of new functions likeRob Landley
xlseek and fdlength() for the new mkswap.
2006-07-15We need xsetuid() and xsetgid() because per-user process resource limits canRob Landley
prevent a process from switching to a user that has too many processes, and when that happens WE'RE STILL ROOT. See http://lwn.net/Articles/190331/
2006-07-12A couple things that got tangled up in my tree, easier to check in both thanRob Landley
untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
2006-07-11Patch from Tito to remove pwd_to_spwd (which we don't actually need), withRob Landley
some #ifdef removal from me.
2006-07-10Upgrade netcat a lot. Make -e able to take the rest of the command line asRob Landley
what to exec. Add -f mode and a brief explanation of how to use it to replace minicom. Add -l -l mode so you can turn any command into a server. And group all of netcat's command line options under two CONFIG entries, so if you disable both it doesn't use getopt at all.
2006-07-06Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.Rob Landley
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-06-30Revert taskset for 1.2.0. It emits a warning, breaks building under RH9,Rob Landley
and nobody seemed interested in fixing it despite repeated complaints. I'll worry about it in the 1.3 timeframe...
2006-06-29Some old kernel headers don't #include BLKSSZGET in sys/mount.h.Rob Landley
2006-06-28cleanup patch usageMike Frysinger
2006-06-26fix watchdog on no-mmu systems by adding -F option for rexecMike Frysinger
2006-06-26Upgrade mdev to allow commands to be run on create/delete.Rob Landley
Both Jason Schoon and Giuseppe Ciotta deserve credit for this, I used elements of both.  It's been upgraded so that you can specify that a given command should run at create, at delete, or at both using different special characters (@, $, and * respectively).  It uses the system() method of running command lines which means you can use environment variables on the command line (it sets $MDEV to the name of the current device being created/deleted, which is useful if you matched it via regex), and the documentation warns that you need a /bin/sh to make that work, so you probably want to pick a default shell.
2006-06-24Document mount's new error return conventions.Rob Landley
2006-06-24Slowly pulling more common headers into libbb.h. Andre pointed out thatRob Landley
older uClibc didn't include sys/socket.h from netinet/in.h, so add an explicit #include for that too...
2006-06-22Patch from Shaun Jackman to replace CFLAGS_EXTRA with .config.makRob Landley
2006-06-22CONFIG_DHCP -> CONFIG_APP_DHCP.Rob Landley
2006-06-20Since rangecoder is just a bunch of C functions, move it into the one userRob Landley
(decompress_unlzma.c). Also a slight #include cleanup, and I've been meaning to put #include <unistd.h> into libbb.h since it's so darn common...
2006-06-18Undo all of the ugliness and some of the bloat from 15412.Rob Landley
2006-06-18skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley
that and callers wind up typecasting it back.
2006-06-15We came up with our own names for ATTRIBUTE_*, so why check if they're alreadyRob Landley
#defined? Also remove a check for a gcc version older than RH9 (if non-linux needs that #define they can put it in their section.)
2006-06-15Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley
fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
2006-06-14Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley
the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.) Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe as an overrideable default.
2006-06-13Random cleanup of platform.h.Rob Landley
2006-06-11- add fancy mode to start-stop-daemon to support --oknodo and --verboseBernhard Reutner-Fischer
2006-06-09add ordering warning on enum LocationPaul Fox
2006-06-08made "test" an ash built-in.Paul Fox
moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline.
2006-06-07need prototype for new vfork_daemon()Mike Frysinger
2006-06-07Fix from Tito to read from stdin only when it's not a tty.Rob Landley
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-07- add applet taskset to set/retrieve the CPU affinity of a processBernhard Reutner-Fischer
text data bss dec hex filename 584 0 0 584 248 taskset.o.gcc-2.95 509 0 0 509 1fd taskset.o.gcc-3.3 505 0 0 505 1f9 taskset.o.gcc-3.4 506 0 0 506 1fa taskset.o.gcc-4.0 498 0 0 498 1f2 taskset.o.gcc-4.1 495 0 0 495 1ef taskset.o.gcc-4.2-HEAD
2006-06-06only check __GNU_LIBRARY__ if it is actually definedMike Frysinger
2006-06-05Header cleanup on two more networking files (move libbb.h to the top andRob Landley
remove #includes that libbb.h already does), plus a minor cleanup of libbb.h to move #includes towards the top of the file where we can see 'em.
2006-06-02fix fdflish typo (reported by erik hovland)Paul Fox
2006-06-01Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, soRob Landley
defining it in a guard is silly.
2006-06-01The common case APPLET() macro only needs three arguments.Rob Landley
2006-05-31Patch from Tito to remove long options from hdparm.Rob Landley
2006-05-31Header file cleanup. platform.h apparently needs to be included early on so itRob Landley
can figure out what header files to include, and override stuff that comes later. But applets shouldn't include platform.h directly, they should include busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h to the top of busybox.h and platform.h near the top of libbb.h (right after bbconfig.h, which is something platform.h also needs access to). While we're at it, move some stuff from busybox.h to libbb.h so we have one big file to audit/clean up/try to make sense of instead of many.
2006-05-31Add catv (separate applet instead of cat -v). Also cleanup cat.c comments,Rob Landley
the following of which (from cat.c) belongs in svn history instead of the source code: /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * This is a new implementation of 'cat' which aims to be SUSv3 compliant. * * Changes from the previous implementation include: * 1) Multiple '-' args are accepted as required by SUSv3. The previous * implementation would close stdin and segfault on a subsequent '-'. * 2) The '-u' options is required by SUSv3. Note that the specified * behavior for '-u' is done by default, so all we need do is accept * the option. */