summaryrefslogtreecommitdiff
path: root/init/init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* init: fix askfirst not working as intendedDenis Vlasenko2008-04-051-21/+26
|
* *: whitespace fixes, no code changesDenis Vlasenko2008-03-241-2/+2
|
* init: do not close all descriptors > 2. We were doing it - sometimes.Denis Vlasenko2008-03-171-5/+4
| | | | | Good choices are "do it, always" or "don't do it". Second is smaller.
* init: do not use bb_sanitize_stdio(), "/dev/null" may be missing (yet)Denis Vlasenko2008-03-171-2/+16
|
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta getopt32 1370 1385 +15 sulogin_main 490 494 +4 realpath_main 84 86 +2 sleep_main 76 77 +1 mt_main 256 257 +1 printenv_main 75 74 -1 fdformat_main 546 545 -1 usleep_main 44 42 -2 setlogcons_main 77 75 -2 ed_main 2654 2649 -5 deallocvt_main 69 64 -5 addgroup_main 373 368 -5 mkfs_minix_main 2989 2982 -7 tail_main 1221 1213 -8 sv_main 1254 1241 -13 du_main 348 328 -20 tftp_main 325 302 -23 split_main 581 558 -23 nc_main 1000 977 -23 diff_main 891 868 -23 arping_main 1797 1770 -27 ls_main 893 847 -46 od_main 2797 2750 -47 readprofile_main 1944 1895 -49 tcpudpsvd_main 1973 1922 -51 udhcpc_main 2590 2513 -77 grep_main 824 722 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/22 up/down: 23/-560) Total: -537 bytes text data bss dec hex filename 796973 658 7428 805059 c48c3 busybox_old 796479 662 7420 804561 c46d1 busybox_unstripped
* libbb: introduce and use sigprocmask_allsigs and sigaction_set.Denis Vlasenko2008-03-171-29/+2
| | | | | libbb: rename sig_pause to wait_for_any_sig.
* init: make it NOMMU-capableDenis Vlasenko2008-02-191-19/+31
| | | | | httpd: trivial compile fix
* init: fix commentsDenis Vlasenko2008-02-191-2/+2
|
* init: HUP should not be temporarily set to "restart",Denis Vlasenko2008-02-191-4/+1
| | | | | we use it for config reload, and we have QUIT for "restart".
* init: fix bug 1111: restart actions were not splitting words:Denis Vlasenko2008-02-191-102/+87
| | | | | | | ::restart:/sbin/rc restart resulted in: exec of '/sbin/rc restart' failed: No such file or directory
* libbb: introduce bb_signals and bb_signals_recursive,Denis Vlasenko2008-02-161-19/+29
| | | | | | | | | | | | | | | | | | | | | | | | which sets same handler for many signals. sig_catch is nuked (bb_signals_recursive is more descriptive name). *: use them as appropriate. function old new delta bb_signals_recursive - 95 +95 bb_signals - 52 +52 run_command 258 273 +15 svlogd_main 1368 1377 +9 runsv_main 1746 1752 +6 runsvdir_main 1643 1646 +3 UNSPEC_print 64 66 +2 time_main 1128 1127 -1 ... resize_main 246 210 -36 sig_catch 63 - -63 set_fatal_sighandler 85 14 -71 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548) Total: -366 bytes
* init: allow last line to be not terminated by '\n'Denis Vlasenko2008-01-291-3/+3
|
* - fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer2008-01-271-1/+1
|
* init: wait for orphaned children too while waitingDenis Vlasenko2008-01-041-3/+9
| | | | | for sysinit-like processes (Harald Küthe <harald-tuxbox@arcor.de>)
* libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko2008-01-021-17/+9
| | | | | | | | | | | | | | | | | | | | | | *: 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
* init: don't spawn tons of waiting children, one is enoughDenis Vlasenko2007-12-261-39/+47
| | | | | | | | | 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
* init: sometimes, #ifdefs are cleaner.Denis Vlasenko2007-12-251-22/+13
|
* convert #if to if -- let gcc optimize away dead code for usMike Frysinger2007-12-251-131/+108
|
* init: add FEATURE_KILL_REMOVED (Eugene Bordenkircher <eugebo@gmail.com>)Denis Vlasenko2007-12-251-63/+54
| | | | | init: slight size optimization
* cttyhack: add missing ';'Denis Vlasenko2007-12-101-5/+7
| | | | | init: remove pointless access() check
* init: remove superfluous forks and messing up with argv[0]Denis Vlasenko2007-12-101-124/+122
| | | | | cttyhack: add stealing of ctty
* syslogd: use DEV_CONSOLE consistentlyDenis Vlasenko2007-11-181-4/+0
| | | | | init: remove obsolete comment
* init: fix bug 1584: improper check for fork errorDenis Vlasenko2007-11-101-2/+1
|
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-2/+4
| | | | | | readahead: stop using stdio.h *: style fixes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce and use close_on_exec_on(fd). -50 bytes.Denis Vlasenko2007-09-301-1/+1
|
* *: kill bb_get_last_path_component, replace with two functionsDenis Vlasenko2007-09-241-2/+3
| | | | | | | | | (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
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+3
| | | | | | | | | 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
* init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko2007-06-141-12/+10
| | | | | | init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
* *: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko2007-06-131-1/+1
| | | | | | | | | | | | 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
* remove nearly-duplicate PATHs in several placesDenis Vlasenko2007-06-121-5/+1
| | | | | | | | | | | | | | 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
* delete tons of extra #includesDenis Vlasenko2007-05-311-3/+3
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+1
|
* random style fixes (extra spaces deleted)Denis Vlasenko2007-03-241-2/+1
|
* decouple INIT and SYSLOGD (patch by Eric Spakman E.Spakman@inter.nl.net)Denis Vlasenko2007-03-051-5/+5
|
* init: fix handling of stdio file descriptorsDenis Vlasenko2007-03-051-10/+10
|
* init: de-indent a block of codeDenis Vlasenko2007-02-271-143/+139
|
* init: trivial compile fixDenis Vlasenko2007-02-271-2/+2
|
* init: stop doing silly things with the console (-400 bytes)Denis Vlasenko2007-02-211-217/+131
| | | | init_shared.[ch]: unused, thus deleted
* init: code readability enhancements; very small code changesDenis Vlasenko2007-02-171-52/+52
|
* - whitespace cleanup and add a possible shrinkage suggestionBernhard Reutner-Fischer2007-02-161-3/+4
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* assorted fixes for bugs found with randomconfigDenis Vlasenko2007-02-031-1/+1
|
* lineedit: add missing #if/#endifDenis Vlasenko2007-02-031-5/+4
| | | | init: fix warnings
* Add BB_EXEC[LV]P() which encapsulate FEATURE_EXEC_PREFER_APPLETSDenis Vlasenko2007-02-031-14/+3
| | | | (patch from Gabriel L. Somlo <somlo@cmu.edu>)
* preparatory patch for -Wwrite-strings #3Denis Vlasenko2007-01-291-8/+8
|
* Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko2007-01-211-9/+20
| | | | | | 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>
* convert calloc to xzallocDenis Vlasenko2007-01-031-26/+26
| | | | fix sleep-on-die option
* style fixesDenis Vlasenko2006-12-261-3/+3
| | | | last xcalloc replaced by xzalloc