aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
AgeCommit message (Collapse)Author
2006-10-03runit/chpst: "change process state" utilityDenis Vlasenko
It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k
2006-09-20Teach get_terminal_width_height to fall back to $LINES and $COLUMNS whenRob Landley
used via things like a serial console.
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-14Strangely, using // in the comments I added was not a persistent accident.Rob Landley
2006-09-12Remove pointless "const". Bloatcheck says 0 bytes difference.Rob Landley
2006-09-11- merge xstat.c into xfuncs.cBernhard Reutner-Fischer
2006-09-07getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko
2006-09-06removed a lot of trailing \n in bb_msg() calls. It is addedDenis Vlasenko
automatically by function itself.
2006-09-06Implement optional syslog logging using ordinaryDenis Vlasenko
bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually.
2006-09-05xfunc: fix: && -> &. Also nuked two double semicolons...Denis Vlasenko
2006-09-03replacing func() with xfunc() where appropriateDenis Vlasenko
2006-08-28- pull from busybox_scratch: r15829:15850Bernhard Reutner-Fischer
Various fixes, cleanups and shrinkage: saves 952 Bytes: text data bss dec hex filename 1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old 1086790 15853 790632 1893275 1ce39b busybox via: # scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped function old new delta ipcrm_main 756 822 +66 getval - 61 +61 maybe_set_utc - 40 +40 udhcpc_main 2896 2912 +16 md5_hash_block 428 437 +9 opt 8 16 +8 qgravechar 106 110 +4 make_bitmap 292 295 +3 inflate_unzip 2056 2059 +3 add_partition 1412 1414 +2 __parsespent 156 158 +2 qrealloc 41 42 +1 format - 1 +1 catv_main 313 314 +1 watch_main 293 292 -1 varunset 81 80 -1 part 1 - -1 check_if_skip 837 836 -1 start_stop_daemon_main 840 837 -3 create_lost_and_found 175 172 -3 supress_non_delimited_lines 4 - -4 static.l 4 - -4 static.c 5 1 -4 bsd_sum_file 237 233 -4 eval2 338 332 -6 arithmetic_common 166 158 -8 cmpfunc 22 5 -17 cksum_main 294 275 -19 cmp_main 465 439 -26 dd_main 1535 1508 -27 rmmod_main 376 333 -43 cut_file 727 644 -83 ipcs_main 3809 3721 -88 cut_main 722 614 -108 date_main 1443 1263 -180 remove_ids 222 - -222 ------------------------------------------------------------------------------ (add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
2006-08-09Another whack at scripts/individual. Now builds 212 applets.Rob Landley
2006-08-04Add comments to all the functions in this file documenting what they're for.Rob Landley
2006-08-04Thinko spotted by Vladimir Dronnikov.Rob Landley
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
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