summaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-16/+69
| | | | xlseek and fdlength() for the new mkswap.
* We need xsetuid() and xsetgid() because per-user process resource limits canRob Landley2006-07-151-0/+12
| | | | | 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/
* Denis Vlasenko spotted the lack of bounds checking in my first attempt atRob Landley2006-07-111-11/+14
| | | | itoa/utoa.
* Add itoa and utoa to see what Denis Vlasenko thinks.Rob Landley2006-07-101-1/+50
|
* This kind of paranoia is a debug option at best.Rob Landley2006-06-301-1/+1
|
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley2006-06-141-1/+15
| | | | | | | | 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.
* Rich Felker suggested removing dprintf() from watch, and one thing led toRob Landley2006-05-251-0/+34
| | | | | | 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...)
* A pending item in my tree I might as well check in: I plan to migrate calloc()Rob Landley2006-05-191-0/+9
| | | | | and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size).
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-191-9/+0
| | | | - use shorter boilerplate while at it
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley2006-05-071-9/+0
| | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
* Not quite compiler independent, but we've never tried to be gcc independentRob Landley2006-05-041-10/+4
| | | | | anyway. This is at least less ugly than what was there before, and fixes building all sources at once.
* - patch from Denis Vlasenko to add and use bb_xopen3()Bernhard Reutner-Fischer2006-04-131-3/+10
|
* More "extern" removals from Robert P. DayRob Landley2006-03-141-2/+4
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-10/+10
| | | | definitions. (That should only be on prototypes.)
* remove #undef strlen, use #define strlen always but without ↵"Vladimir N. Oleynik"2006-02-201-3/+7
| | | | xfunc/BB_STRLEN_IMPLEMENTATION
* svn 14077 was completely broken and apparently never tested.Rob Landley2006-02-201-14/+4
|
* removed #undef strlen, use builtins and prototuped strlen from xfunc file ↵"Vladimir N. Oleynik"2006-02-161-1/+0
| | | | (only\!)
* more use libbb/bb_msg_read_error"Vladimir N. Oleynik"2005-11-251-1/+1
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-5/+5
|
* My bug. :-(Manuel Novoa III2004-03-081-0/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Fixup compile problem with dmallocEric Andersen2003-07-051-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-20/+69
|
* Abstract read and seek in unarchiving code, convert bunzip to file ↵Glenn L McGrath2002-11-031-12/+1
| | | | descriptors, support tar -j
* New common unarchive code.Glenn L McGrath2002-09-251-0/+56
|
* Silly meEric Andersen2002-04-131-0/+1
|
* Stupid gcc always includes its own builtin strlen()...Eric Andersen2002-04-131-0/+6
|
* * libbb/xfuncs.c (xmalloc, xcalloc): Do not exit if a zero-length buffer isMatt Kraai2002-02-261-16/+5
| | | | | requested. (xrealloc): Simplify.
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-7/+1
| | | | -Erik
* Allow xrealloc to act as a free() when size=0, per SuS2.Eric Andersen2001-06-281-1/+11
| | | | -Erik
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-5/+0
| | | | | | | 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
* Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen2001-03-161-0/+107
files. Clean up the resulting damage and fix up the makefile. -Erik