summaryrefslogtreecommitdiff
path: root/libbb
AgeCommit message (Collapse)Author
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-15Tito writes: If the gecos field of an user is empty, obscure reports a false ↵Mike Frysinger
"similar to gecos" error.
2006-07-12More minor tweaks.Rob Landley
2006-07-12decuddle () from for/if/whileMike Frysinger
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-11Denis Vlasenko spotted the lack of bounds checking in my first attempt atRob Landley
itoa/utoa.
2006-07-10Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate."Robert P. J. Day"
2006-07-10Add itoa and utoa to see what Denis Vlasenko thinks.Rob Landley
2006-07-06Attempt to address Shaun Jackman's problem adding "busybox: busybox.bflt" toRob Landley
.config.mak.
2006-07-02Correct the comment to match the code."Robert P. J. Day"
2006-07-02Standardize on the vi editing directives being on the first line."Robert P. J. Day"
2006-07-02Allow a user-configurable minimum password length."Robert P. J. Day"
2006-07-01More removal of "#if 0" content."Robert P. J. Day"
2006-07-01Remove all usage of the "register" storage class specifier."Robert P. J. Day"
2006-06-30This kind of paranoia is a debug option at best.Rob Landley
2006-06-28Fix bug http://bugs.busybox.net/view.php?id=874 where hexdump -C got itsRob Landley
spacing wrong.
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...)