aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
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. */
2006-05-31- s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer
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().
2006-05-31- conditionally define BB_NOMMUBernhard Reutner-Fischer
2006-05-30Put parentheses around some of the SWAP() macros, as pointed out by PeterRob Landley
Kjellerstedt.
2006-05-29Add SWAP_LE?? and SWAP_BE?? macros, and make things use them. Converts valuesRob Landley
to/from little endian or big endian, which is a NOP if that's what the current platform already is.
2006-05-29This is not C++.Rob Landley
2006-05-29Remove _() and N_() from platform.h. #define them as NOP macros in the twoRob Landley
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.
2006-05-28Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitsRob Landley
on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
2006-05-27Move portability stuff to platform.h, and clean up adjtimex.c a bit whileRob Landley
I'm in the area.
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-05-26Slight sanity fix: data is void *, not char *. And it's called dataRob Landley
almost everywhere, so be consistent.
2006-05-26- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).Bernhard Reutner-Fischer
- fix last.c to also look at the double-underscore UT_ defines.
2006-05-26- move llist to top of file so we can potentially use it in all prototypes ↵Bernhard Reutner-Fischer
easily
2006-05-26- add workaround for tar being broken since it uses a non-portable constant.Bernhard Reutner-Fischer
2006-05-26- move libc checks from busybox.h to platform.hBernhard Reutner-Fischer
- add ATTRIBUTE_ALWAYS_INLINE, endian handling for DEC UNIX, some more compiler dependent defines to platform.h - add conditional bb_setpgrp define to platform.h - remove superfluous specifying args from "#define fdprintf dprintf"
2006-05-26fix spelling mistakesMike Frysinger
2006-05-25Rich Felker suggested removing dprintf() from watch, and one thing led toRob Landley
another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...)
2006-05-21New version of nohup that's much smaller, less paranoid, consistent,Rob Landley
vaguely portable, and licensed GPLv2 "or later".