aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
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-11Denis Vlasenko spotted the lack of bounds checking in my first attempt atRob Landley
itoa/utoa.
2006-07-10Add itoa and utoa to see what Denis Vlasenko thinks.Rob Landley
2006-06-30This kind of paranoia is a debug option at best.Rob Landley
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-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-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-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-04-13- patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer
2006-03-14More "extern" removals from Robert P. DayRob Landley
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-20remove #undef strlen, use #define strlen always but without ↵"Vladimir N. Oleynik"
xfunc/BB_STRLEN_IMPLEMENTATION
2006-02-20svn 14077 was completely broken and apparently never tested.Rob Landley
2006-02-16removed #undef strlen, use builtins and prototuped strlen from xfunc file ↵"Vladimir N. Oleynik"
(only\!)
2005-11-25more use libbb/bb_msg_read_error"Vladimir N. Oleynik"
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-03-08My bug. :-(Manuel Novoa III
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-07-05Fixup compile problem with dmallocEric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2002-11-03Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath
descriptors, support tar -j
2002-09-25New common unarchive code.Glenn L McGrath
2002-04-13Silly meEric Andersen
2002-04-13Stupid gcc always includes its own builtin strlen()...Eric Andersen
2002-02-26* libbb/xfuncs.c (xmalloc, xcalloc): Do not exit if a zero-length buffer isMatt Kraai
requested. (xrealloc): Simplify.
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-06-28Allow xrealloc to act as a free() when size=0, per SuS2.Eric Andersen
-Erik
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
2001-03-16Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen
files. Clean up the resulting damage and fix up the makefile. -Erik