aboutsummaryrefslogtreecommitdiff
path: root/libbb
AgeCommit message (Collapse)Author
2006-06-27Fix http://bugs.busybox.net/view.php?id=906 which could cause failures in top.Rob Landley
2006-06-25Whitespace. (Vim's auto-indent is kind of annoying at times, like "daytime"Rob Landley
and "nighttime"...)
2006-06-25Fix a possible race condition if two processes try to claim the same loopRob Landley
device at the same time. We should only CLR_FD if the set status fails, not if the SET_FD fails.
2006-06-24The logic to make cp -d or -P treat things like regular files should onlyRob Landley
trigger for symlinks, not for device nodes. This should fix "cp -a /dev ." to work as expected (when run by root, anyway). While I was there, cleanup headers and make an #ifdef go away...
2006-06-20The type changed too.Rob Landley
2006-06-20Use the new names for tty_baud_to_value() and tty_value_to_baud() again.Peter Kjellerstedt
2006-06-20Revert the last two patches to go back to a state before this file wasRob Landley
controversial.
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-17danf writes: stty doesn't support baud rates > 460800 bps, the attached ↵Mike Frysinger
patch adds support for all baud rates supported by Linux 2.6.16 on x86.
2006-06-16Revert svn 15333. If you vfork, you must either exec or exit. (The parent isRob Landley
blocked until you do so.)
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-10- fix bug #887, in bb_get_chomped_line_from_file(), the last char was removedBernhard Reutner-Fischer
unconditionally, even if it was not a newline. This was apparently broken by r14254 - whitespace while at it.
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-07sometimes daemonizing and vfork()/exit() is okMike Frysinger
2006-06-07bb_xdaemon() isnt available on no-mmu systemsMike Frysinger
2006-06-07comment all fieldsMike Frysinger
2006-06-07add reference to proc(5)Mike Frysinger
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-07whitespaceMike Frysinger
2006-06-07whitespaceMike Frysinger
2006-05-31- make getopt_ulflags aware of CONFIG_GETOPT_LONGBernhard Reutner-Fischer
2006-05-31- convert xcalloc(1,x) to xzallocBernhard Reutner-Fischer
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-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-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- make find_mount_point conditional on df and eject; Fixes `make hosttools´ onBernhard Reutner-Fischer
hosts where mntent.h does not exist.
2006-05-26errno and h_errno values are not the same #876 by rfelkerMike 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-19A pending item in my tree I might as well check in: I plan to migrate calloc()Rob Landley
and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size).
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-05-19- replace _PATH_DEVNULL with bb_dev_nullBernhard Reutner-Fischer
2006-05-19- use uint32_t instead of __u32Bernhard Reutner-Fischer
Thanks to Rich Felker for pointing this out.
2006-05-19- include strings.hBernhard Reutner-Fischer
Thanks to Rich Felker for pointing this out.
2006-05-19- single KERNEL_VERSION(a,b,c) macro in platform.hBernhard Reutner-Fischer
- rename get_kernel_revision() to get_linux_version_code from Robert P. J. Day
2006-05-16Make md5 calculation always go through an the buffer so that A) we don'tRob Landley
handle packets out of sequence if some data goes through the buffer and some doesn't, B) it works on systems that can't handle aligned access, C) we just have one code path to worry about. While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine well, which is why md5sum has been reading and processing data 4 bytes at a time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop unrolling and such in the algorithm was an attempt to work around that bug.
2006-05-15- patch from Robert P. J. Day to use filter instead of findstring.Bernhard Reutner-Fischer
2006-05-13pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵Mike Frysinger
mailing list
2006-05-12Autodetect parts of a multipart file, from Robert P. Day's suggestion.Rob Landley
2006-05-11Bug fix from Vladimir Oleynik, and suggestion I add my copyright noticeRob Landley
to the file.
2006-05-08Fiddling with llist to make memory management easier. Specifically, theRob Landley
option to delete the contents of the list when we delete the list is a good thing.
2006-05-08Remove a link that leaked in from the pending llist_t changes.Rob Landley
2006-05-07Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley
as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
2006-05-05Migrate endianness macros.Rob Landley
2006-05-04Not quite compiler independent, but we've never tried to be gcc independentRob Landley
anyway. This is at least less ugly than what was there before, and fixes building all sources at once.
2006-05-03Whitespace and documentation cleanup from Dennis Vlasenko.Rob Landley
2006-04-25Portability tweak from Shaun Jackman, don't include asm/page.h directly.Rob Landley