aboutsummaryrefslogtreecommitdiff
path: root/runit (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-044-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make it easier to distinquish "struct tm", pointer to one, etcDenys Vlasenko2010-01-091-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exactDenys Vlasenko2010-01-061-2/+1
| | | | | | | | | | | | function old new delta hwclock_main 329 428 +99 rtc_adjtime_is_utc 138 134 -4 edir 365 354 -11 read_rtc 39 23 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31) Total: 68 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove a few more cases of argc usage. -89 bytes.Denys Vlasenko2009-11-281-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: added xfdopen_for_read/writeDenys Vlasenko2009-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xfdopen_helper - 40 +40 logdir_open 1163 1184 +21 process_stdin 433 443 +10 xfdopen_for_write - 9 +9 doCommands 2465 2474 +9 patch_main 1214 1222 +8 bbunpack 457 465 +8 xfdopen_for_read - 7 +7 scan_tree 258 262 +4 xstrtoul_range_sfx 230 231 +1 sendmail_main 957 955 -2 passwd_main 1027 1023 -4 parse 969 964 -5 test_main 253 247 -6 sed_main 655 649 -6 dos2unix_main 437 429 -8 fbsplash_main 950 938 -12 handle_dir_common 371 354 -17 expand_vars_to_list 2197 2169 -28 update_passwd 1275 1246 -29 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117) Total: 0 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-132-17/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use ffulsh_all()Denys Vlasenko2009-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta buffer_fill_and_print 179 196 +17 fflush_all - 9 +9 spawn 87 92 +5 rtcwake_main 455 453 -2 ... alarm_intr 93 84 -9 readcmd 1072 1062 -10 bb_ask 345 333 -12 more_main 845 832 -13 flush_stdout_stderr 42 23 -19 xfflush_stdout 27 - -27 flush_stderr 30 - -30 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chpst: tiny shrinkage and add possible TODOBernhard Reutner-Fischer2009-10-271-4/+4
| | | | | | | | | text data bss dec hex filename 1398 0 0 1398 576 runit/chpst.o.old 1385 0 0 1385 569 runit/chpst.o Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: a few more NOINLINEsDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta print_linkinfo - 815 +815 do_msg - 783 +783 INET_setroute - 757 +757 varvalue - 746 +746 do_sem - 637 +637 inflate_codes - 617 +617 INET6_setroute - 491 +491 edir - 370 +370 sync_cursor - 298 +298 update_utmp - 246 +246 searchLines - 165 +165 setup_alarm - 144 +144 may_wakeup - 101 +101 getNum 566 371 -195 refresh 1166 848 -318 rtcwake_main 809 479 -330 getty_main 2396 1921 -475 chpst_main 1373 746 -627 inflate_unzip_internal 1335 567 -768 evalvar 1384 612 -772 ipaddr_list_or_flush 2160 1246 -914 route_main 1585 245 -1340 ipcs_main 2523 1049 -1474 ------------------------------------------------------------------------------ (add/remove: 13/0 grow/shrink: 0/10 up/down: 6170/-7213) Total: -1043 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: code shrink via NOINLINEDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta expand_vars_to_list - 2118 +2118 lzo1x_optimize - 1429 +1429 run_pipe 358 1775 +1417 arith_apply - 1335 +1335 mainQSort3 - 1198 +1198 logdir_open - 1163 +1163 rewrite - 1039 +1039 dump_identity - 987 +987 do_shm - 884 +884 cpio_o - 863 +863 cpio_main 1450 560 -890 ipcs_main 3442 2523 -919 bb_dump_dump 2611 1488 -1123 process_dev 4572 3405 -1167 logdirs_reopen 1308 86 -1222 arith 2084 707 -1377 mainSort 2622 1202 -1420 do_lzo_compress 2276 799 -1477 run_list 2491 943 -1548 expand_variables 2280 135 -2145 ------------------------------------------------------------------------------ (add/remove: 9/0 grow/shrink: 1/10 up/down: 12433/-13288) Total: -855 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use {i,u}toa() where appropriateDenys Vlasenko2009-10-061-4/+2
| | | | | | | | | | | function old new delta startservice 377 363 -14 setari_u 54 40 -14 ash_main 1375 1361 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42) Total: -42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more C standard compat fixes from Dan FandrichDenys Vlasenko2009-09-061-2/+2
| | | | | | | function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove some GNUisms. by Dan Fandrich (dan AT coneharvesters.com)Denys Vlasenko2009-09-061-1/+1
| | | | | | | | | | function old new delta logdirs_reopen 1310 1308 -2 read_line_input 4757 4753 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-6) Total: -6 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* runsv: run ./finish with parameters (runit compat)Earl Chew2009-08-021-18/+45
| | | | | | | | | function old new delta startservice 288 377 +89 runsv_main 1763 1783 +20 Signed-off-by: Earl Chew <earl_chew@agilent.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* svlogd: fix bug 521: use line buffering if any filtering is doneDenys Vlasenko2009-08-024-27/+137
| | | | | | | | function old new delta logdirs_reopen 1296 1310 +14 svlogd_main 1439 1444 +5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sv: fix "sv o SRV; ...; sv d SRV" (bug 461) + code shrinkDenys Vlasenko2009-07-151-33/+35
| | | | | | | | | function old new delta status 120 118 -2 control 159 126 -33 sv_main 1222 1183 -39 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* runsv: rename field in a struct to not collide with other nameDenys Vlasenko2009-07-152-19/+20
| | | | | | no code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* svlogd: do not overrun read buffer (fixes bug 439)Denys Vlasenko2009-07-031-9/+6
| | | | | | | | | function old new delta rotate 513 534 +21 logdirs_reopen 1291 1296 +5 processorstart 409 385 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stop using non-standard macro, use WEXITSTATUS insteadDenys Vlasenko2009-06-073-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-2/+2
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* *: make "pragma GCC visibility push(hidden)" less uglyDenis Vlasenko2009-04-091-6/+2
|
* runsv: another tiny optimizationDenis Vlasenko2009-02-261-8/+6
| | | | | | | function old new delta startservice 297 288 -9 ctrl 435 426 -9
* runsv: small optimizationDenis Vlasenko2009-02-262-6/+3
| | | | | | | | *: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19
* init: fix compile breakage with '# CONFIG_FEATURE_KILL_REMOVED is not set'Denis Vlasenko2009-02-141-1/+1
| | | | | runsvdir.c: fix typo in comment
* udhcpd: add code which rejects lease files with suspicious or old timestamp.Denis Vlasenko2009-02-021-2/+2
| | | | | *: s/time(0)/time(NULL)/g
* init: preparatory patch, no code changesDenis Vlasenko2009-01-312-6/+6
|
* runsvdir: straighten some convoluted code. logic is unchangedDenis Vlasenko2008-11-111-8/+6
|
* *: a bit of code shrinkDenis Vlasenko2008-11-092-4/+6
| | | | | | | | | | | | | | function old new delta stop_handler 41 38 -3 sulogin_main 508 504 -4 got_cont 4 - -4 cont_handler 11 - -11 startservice 309 297 -12 processorstart 423 409 -14 tcpudpsvd_main 1861 1843 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 0/5 up/down: 0/-66) Total: -66 bytes
* sv: make default service dir configurable (Vladimir wants it)Denis Vlasenko2008-11-062-1/+9
|
* runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.Denis Vlasenko2008-11-063-24/+37
| | | | | *: s/int/pid_t where appropriate
* runsvdir: if we have PID == 1, SIGHUP should make small pause,Denis Vlasenko2008-10-311-2/+3
| | | | | not 1 minute one
* runsvdir: kill another globalDenis Vlasenko2008-10-291-4/+2
|
* runsvdir: fx a recent vda's buglet (was pausing even if not signaled).Denis Vlasenko2008-10-291-34/+42
| | | | | stop spawning children immediately if signaled. Kill one global.
* runsvdir: shrink (by Vladimir)Denis Vlasenko2008-10-291-9/+2
|
* runsvdir: do not exit if we are pid 1.Denis Vlasenko2008-10-291-14/+41
|
* runsvdir: conditionalize "log in argiment" (mis)feature. By Vladimir.Denis Vlasenko2008-09-222-64/+88
| | | | | | | | | | | | | | with: runsv 139 141 +2 runsvdir_main 1583 1513 -70 without: warn2_cannot 14 27 +13 runsv 139 141 +2 warnx 28 16 -12 warn3x 23 - -23 runsvdir_main 1583 1125 -458
* runsvd: shrink by VladimirDenis Vlasenko2008-09-111-29/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *: use unified trivial signal handler function old new delta record_signo - 10 +10 process_stdin 433 443 +10 bbunpack 383 391 +8 wc_main 598 605 +7 conescape 293 296 +3 nmeter_main 670 672 +2 fallbackSort 1717 1719 +2 bb_got_signal - 1 +1 microcom_main 713 712 -1 signalled 2 - -2 pack_gzip 1661 1659 -2 evalvar 1376 1374 -2 compare_keys 737 735 -2 parse_command 1460 1456 -4 expand 1748 1744 -4 s_term 37 29 -8 s_hangup 8 - -8 fgotsig 10 - -10 find_pair 187 169 -18 signal_handler 190 170 -20 runsvdir_main 1701 1583 -118 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 6/10 up/down: 43/-199) Total: -156 bytes
* envdir: fix "envdir with no params" caseDenis Vlasenko2008-08-201-1/+3
|
* chpst: fix "envdir dir" case (bug 4574).Denis Vlasenko2008-08-151-1/+1
|
* randomconfig fixesDenis Vlasenko2008-08-051-3/+3
|
* chpst: large code shrink by VladimirDenis Vlasenko2008-07-301-195/+178
| | | | | | | | | | | | | function old new delta chpst_main 1058 1357 +299 euidgid 56 - -56 suidgid 59 - -59 slimit 208 - -208 packed_usage 24638 24420 -218 edir 375 - -375 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 1/1 up/down: 299/-916) Total: -617 bytes
* - first pass to unify/cleanup uid handling (-236b)Bernhard Reutner-Fischer2008-07-211-6/+2
| | | | This needs further love, alot of love.. Tito?
* - fix spellingBernhard Reutner-Fischer2008-07-212-16/+16
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-056-24/+24
|
* whitespace fixes. no code changesDenis Vlasenko2008-06-251-4/+3
|
* runsvdir: make it more robust against libc buglets (errno accidentally set ↵Denis Vlasenko2008-05-311-2/+7
| | | | | | | | | | to !0) closes bug 3514 function old new delta runsvdir_main 1672 1664 -8
* - 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-192-2/+2
|
* Use intra-DSO calls when we build libbusybox. No-op for normal build.Denis Vlasenko2008-05-091-0/+8
| | | | | | | | | This was Bernhard Fischer' idea. text data bss dec hex filename 773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped 769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
* chpst: fix "env directory" parsing to not strip everythingDenis Vlasenko2008-04-011-24/+22
| | | | | after 1st whitespace. -6 bytes.