summaryrefslogtreecommitdiff
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* "formated" -> "formatted" throughout the code base."Robert P. J. Day"2006-07-201-2/+2
|
* Patch from Thaddeus Ternes, adding chuid to start-stop-daemon.Rob Landley2006-07-171-1/+2
|
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-162-6/+7
| | | | xlseek and fdlength() for the new mkswap.
* We need xsetuid() and xsetgid() because per-user process resource limits canRob Landley2006-07-151-0/+2
| | | | | 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/
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-1/+10
| | | | | | | | | | | | | | 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.
* Patch from Tito to remove pwd_to_spwd (which we don't actually need), withRob Landley2006-07-111-6/+0
| | | | some #ifdef removal from me.
* Upgrade netcat a lot. Make -e able to take the rest of the command line asRob Landley2006-07-102-12/+31
| | | | | | | 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.
* Minor build tweaks that save 1100 bytes building busybox on Ubuntu 6.06.Rob Landley2006-07-061-0/+15
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-027-0/+7
|
* Revert taskset for 1.2.0. It emits a warning, breaks building under RH9,Rob Landley2006-06-302-18/+0
| | | | | and nobody seemed interested in fixing it despite repeated complaints. I'll worry about it in the 1.3 timeframe...
* Some old kernel headers don't #include BLKSSZGET in sys/mount.h.Rob Landley2006-06-291-0/+3
|
* cleanup patch usageMike Frysinger2006-06-281-4/+4
|
* fix watchdog on no-mmu systems by adding -F option for rexecMike Frysinger2006-06-261-2/+3
|
* Upgrade mdev to allow commands to be run on create/delete.Rob Landley2006-06-261-8/+14
| | | | | | | | | | | 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.
* Document mount's new error return conventions.Rob Landley2006-06-241-1/+3
|
* Slowly pulling more common headers into libbb.h. Andre pointed out thatRob Landley2006-06-241-0/+5
| | | | | older uClibc didn't include sys/socket.h from netinet/in.h, so add an explicit #include for that too...
* Patch from Shaun Jackman to replace CFLAGS_EXTRA with .config.makRob Landley2006-06-221-1/+1
|
* CONFIG_DHCP -> CONFIG_APP_DHCP.Rob Landley2006-06-221-3/+3
|
* Since rangecoder is just a bunch of C functions, move it into the one userRob Landley2006-06-201-0/+1
| | | | | (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...
* Undo all of the ugliness and some of the bloat from 15412.Rob Landley2006-06-181-2/+2
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-1/+1
| | | | that and callers wind up typecasting it back.
* We came up with our own names for ATTRIBUTE_*, so why check if they're alreadyRob Landley2006-06-151-22/+0
| | | | | #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.)
* Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot ofRob Landley2006-06-151-1/+4
| | | | | | 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.)
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley2006-06-141-0/+1
| | | | | | | | 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.
* Random cleanup of platform.h.Rob Landley2006-06-131-16/+24
|
* - add fancy mode to start-stop-daemon to support --oknodo and --verboseBernhard Reutner-Fischer2006-06-111-0/+4
|
* add ordering warning on enum LocationPaul Fox2006-06-091-0/+1
|
* made "test" an ash built-in.Paul Fox2006-06-081-0/+1
| | | | | | | | | | | | | | | | | | | 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.
* need prototype for new vfork_daemon()Mike Frysinger2006-06-071-0/+1
|
* Fix from Tito to read from stdin only when it's not a tty.Rob Landley2006-06-071-1/+1
|
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-0/+2
|
* - add applet taskset to set/retrieve the CPU affinity of a processBernhard Reutner-Fischer2006-06-072-0/+18
| | | | | | | | | | 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
* only check __GNU_LIBRARY__ if it is actually definedMike Frysinger2006-06-061-2/+2
|
* Header cleanup on two more networking files (move libbb.h to the top andRob Landley2006-06-051-16/+13
| | | | | 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.
* fix fdflish typo (reported by erik hovland)Paul Fox2006-06-021-1/+1
|
* Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, soRob Landley2006-06-011-2/+0
| | | | defining it in a guard is silly.
* The common case APPLET() macro only needs three arguments.Rob Landley2006-06-011-232/+232
|
* Patch from Tito to remove long options from hdparm.Rob Landley2006-05-311-3/+3
|
* Header file cleanup. platform.h apparently needs to be included early on so itRob Landley2006-05-312-36/+21
| | | | | | | | | | | 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.
* Add catv (separate applet instead of cat -v). Also cleanup cat.c comments,Rob Landley2006-05-312-0/+8
| | | | | | | | | | | | | | | | | | 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. */
* - s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer2006-05-311-1/+1
| | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon().
* - conditionally define BB_NOMMUBernhard Reutner-Fischer2006-05-311-4/+14
|
* Put parentheses around some of the SWAP() macros, as pointed out by PeterRob Landley2006-05-301-6/+6
| | | | Kjellerstedt.
* Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valuesRob Landley2006-05-291-5/+16
| | | | | to/from little endian or big endian, which is a NOP if that's what the current platform already is.
* This is not C++.Rob Landley2006-05-291-1/+1
|
* Remove _() and N_() from platform.h. #define them as NOP macros in the twoRob Landley2006-05-291-12/+4
| | | | | | files still using them. I didn't remove them from e2fsck.c to avoid stomping pending cleanup patches from Garrett, and I didn't bother to remove them from fdisk.c because that entire file needs to be rewritten from scratch.
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitsRob Landley2006-05-281-0/+1
| | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
* Move portability stuff to platform.h, and clean up adjtimex.c a bit whileRob Landley2006-05-271-0/+17
| | | | I'm in the area.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-0/+2
|
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-2/+2
| | | | head, and change all the callers.