summaryrefslogtreecommitdiff
path: root/init
Commit message (Collapse)AuthorAgeFilesLines
* - use ut_user rather than ut_name (Cristian Ionescu-Idbohrn)Bernhard Reutner-Fischer2008-06-011-4/+1
| | | | | | | | - use ut_tv.tv_sec rather than ut_time (me) - shrink halt a little bit (me): halt_main 464 433 -31 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31) Total: -31 bytes
* - use STD*_FILENO some more. No object-code changesBernhard Reutner-Fischer2008-05-191-3/+3
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-10/+10
|
* init: fix askfirst not working as intendedDenis Vlasenko2008-04-051-21/+26
|
* shells: do not frocibly enable test, echo and kill _applets_,Denis Vlasenko2008-04-011-2/+2
| | | | | | | | | | | | | | | | | | | just build relevant source and use xxx_main functions. build system: add a special case when we have exactly one applet enabled (makes "true", "false", "basename" REALLY tiny). getopt32: do not use stdio. function old new delta getopt32 1385 1412 +27 make_device 1187 1200 +13 basename_main 120 127 +7 tcpudpsvd_main 1922 1926 +4 testcmd 5 - -5 echocmd 5 - -5 fuser_main 1243 1231 -12 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22) Total: 29 bytes
* *: 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
|
* *: mode tcp/udpsvd to networking, delete ipsvd/*Denis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | */Config.in: fixes to text svlogd: make it NOMMU capable function old new delta processorstart 378 420 +42 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 42/0) Total: 42 bytes text data bss dec hex filename 797153 662 7420 805235 c4973 busybox_old 797196 662 7420 805278 c499e busybox_unstripped
* *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param)Denis Vlasenko2008-03-172-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* *: fix fallout from -Wunused-parameterDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f 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-192-108/+96
| | | | | | | ::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
|
* halt: write wtmp entry if wtmp support is enabledDenis Vlasenko2008-01-241-5/+38
|
* whitespace fixesDenis Vlasenko2008-01-071-2/+2
|
* 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-252-133/+109
|
* init: add FEATURE_KILL_REMOVED (Eugene Bordenkircher <eugebo@gmail.com>)Denis Vlasenko2007-12-252-63/+74
| | | | | 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-102-124/+123
| | | | | 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-113-3/+3
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-011-1/+1
| | | | | 263 bytes saved.
* 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
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (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
* 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-263-3/+3
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes. No code changesDenis Vlasenko2007-04-121-1/+1
|
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-042-4/+4
|
* 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-052-5/+10
|
* 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
|