aboutsummaryrefslogtreecommitdiff
path: root/init
AgeCommit message (Collapse)Author
2008-01-27- fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer
2008-01-24halt: write wtmp entry if wtmp support is enabledDenis Vlasenko
2008-01-07whitespace fixesDenis Vlasenko
2008-01-04init: wait for orphaned children too while waitingDenis Vlasenko
for sysinit-like processes (Harald Küthe <harald-tuxbox@arcor.de>)
2008-01-02libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko
*: use more approproate (shorter) versions of wait() function old new delta safe_waitpid - 48 +48 wait_any_nohang - 17 +17 send_tree 365 369 +4 processorstop 432 435 +3 text_yank 110 108 -2 make_human_readable_str 202 200 -2 crond_main 1368 1366 -2 handle_sigchld 49 43 -6 reapchild 166 159 -7 custom 260 250 -10 checkscript 191 177 -14 wait_nohang 17 - -17 wait_pid 43 - -43 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 2/7 up/down: 72/-103) Total: -31 bytes
2007-12-26init: don't spawn tons of waiting children, one is enoughDenis Vlasenko
init: shrink signal disabling code init: rename some functions text data bss dec hex filename 778657 832 7344 786833 c0191 busybox_old 778445 832 7344 786621 c00bd busybox_unstripped
2007-12-25init: sometimes, #ifdefs are cleaner.Denis Vlasenko
2007-12-25convert #if to if -- let gcc optimize away dead code for usMike Frysinger
2007-12-25init: add FEATURE_KILL_REMOVED (Eugene Bordenkircher <eugebo@gmail.com>)Denis Vlasenko
init: slight size optimization
2007-12-10cttyhack: add missing ';'Denis Vlasenko
init: remove pointless access() check
2007-12-10init: remove superfluous forks and messing up with argv[0]Denis Vlasenko
cttyhack: add stealing of ctty
2007-11-18syslogd: use DEV_CONSOLE consistentlyDenis Vlasenko
init: remove obsolete comment
2007-11-10init: fix bug 1584: improper check for fork errorDenis Vlasenko
2007-11-06fbset: fix buglet where we were using wrong pointerDenis Vlasenko
readahead: stop using stdio.h *: style fixes
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-10-01'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko
263 bytes saved.
2007-09-30introduce and use close_on_exec_on(fd). -50 bytes.Denis Vlasenko
2007-09-24*: kill bb_get_last_path_component, replace with two functionsDenis Vlasenko
(one which strips trailing slash and one which does not) wget: straighten out as a result of above change text data bss dec hex filename 5056 1 0 5057 13c1 busybox.t4/networking/wget.o 5022 0 0 5022 139e busybox.t5/networking/wget.o
2007-08-18don't pass argc in getopt32, it's superfluousDenis Vlasenko
(add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
2007-06-14init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko
init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
2007-06-13*: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko
correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
2007-06-12remove nearly-duplicate PATHs in several placesDenis Vlasenko
function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
2007-05-31delete tons of extra #includesDenis Vlasenko
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-12style fixes. No code changesDenis Vlasenko
2007-04-04- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer
2007-03-24random style fixes (extra spaces deleted)Denis Vlasenko
2007-03-05decouple INIT and SYSLOGD (patch by Eric Spakman E.Spakman@inter.nl.net)Denis Vlasenko
2007-03-05init: fix handling of stdio file descriptorsDenis Vlasenko
2007-02-27init: de-indent a block of codeDenis Vlasenko
2007-02-27init: trivial compile fixDenis Vlasenko
2007-02-21init: stop doing silly things with the console (-400 bytes)Denis Vlasenko
init_shared.[ch]: unused, thus deleted
2007-02-17init: code readability enhancements; very small code changesDenis Vlasenko
2007-02-16- whitespace cleanup and add a possible shrinkage suggestionBernhard Reutner-Fischer
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-02-03assorted fixes for bugs found with randomconfigDenis Vlasenko
2007-02-03lineedit: add missing #if/#endifDenis Vlasenko
init: fix warnings
2007-02-03Add BB_EXEC[LV]P() which encapsulate FEATURE_EXEC_PREFER_APPLETSDenis Vlasenko
(patch from Gabriel L. Somlo <somlo@cmu.edu>)
2007-01-29preparatory patch for -Wwrite-strings #3Denis Vlasenko
2007-01-29preparatory patch for -Wwrite-strings #2Denis Vlasenko
2007-01-21Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko
executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
2007-01-03convert calloc to xzallocDenis Vlasenko
fix sleep-on-die option
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-12-21introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko
2006-11-01PID should be stored in pid_t, not int or long.Denis Vlasenko
find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
2006-10-27reshuffle libbb.h contents so that order of decls makes senseDenis Vlasenko
Found bad typo in largefile support :)
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko