aboutsummaryrefslogtreecommitdiff
path: root/runit/runsv.c
Commit message (Collapse)AuthorAgeFilesLines
* join some common strings, -400 bytesGravatar Denys Vlasenko2015-10-081-2/+2
| | | | | | | | | | | | | | | function old new delta print_intel_cstates 499 511 +12 file_insert 355 364 +9 dpkg_main 2944 2940 -4 ifenslave_main 645 640 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 21/-9) Total: 12 bytes text data bss dec hex filename 937564 932 17676 956172 e970c busybox_old 937164 932 17676 955772 e957c busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: use <poll.h> instead of <sys/poll.h>Gravatar Thomas Petazzoni2013-10-161-1/+0
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesGravatar Denys Vlasenko2013-01-141-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hGravatar Pere Orga2011-04-111-0/+5
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Move stpcpy replacement function into libbbGravatar Dan Fandrich2011-02-131-17/+7
| | | | | Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove runit/runit_lib.cGravatar Denys Vlasenko2010-10-131-3/+3
| | | | | | | | | | | | | | | | | | | function old new delta runsv_main 1770 1786 +16 svstatus_get 176 188 +12 sv_main 1180 1186 +6 runsvdir_main 683 689 +6 processorstart 385 391 +6 control 126 132 +6 logdir_open 1184 1187 +3 lock_exnb 14 - -14 lock_ex 14 - -14 open_write 17 - -17 open_read 17 - -17 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 7/0 up/down: 55/-62) Total: -7 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* runit_lib: remove/inline a few more thingsGravatar Denys Vlasenko2010-09-051-1/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Gravatar Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove a few more cases of argc usage. -89 bytes.Gravatar Denys Vlasenko2009-11-281-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use {i,u}toa() where appropriateGravatar Denys 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>
* runsv: run ./finish with parameters (runit compat)Gravatar 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>
* runsv: rename field in a struct to not collide with other nameGravatar Denys Vlasenko2009-07-151-18/+19
| | | | | | no code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stop using non-standard macro, use WEXITSTATUS insteadGravatar Denys Vlasenko2009-06-071-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* runsv: another tiny optimizationGravatar Denis Vlasenko2009-02-261-8/+6
| | | | | | | function old new delta startservice 297 288 -9 ctrl 435 426 -9
* runsv: small optimizationGravatar Denis Vlasenko2009-02-261-5/+2
| | | | | | | | *: more paranoia around passing NULL to execl[e] function old new delta custom 240 221 -19
* init: preparatory patch, no code changesGravatar Denis Vlasenko2009-01-311-2/+2
|
* *: a bit of code shrinkGravatar Denis Vlasenko2008-11-091-2/+3
| | | | | | | | | | | | | | 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
* runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.Gravatar Denis Vlasenko2008-11-061-2/+2
| | | | | *: s/int/pid_t where appropriate
* *: rename ATTRIBUTE_XXX to just XXX.Gravatar Denis Vlasenko2008-07-051-3/+3
|
* whitespace fixes. no code changesGravatar Denis Vlasenko2008-06-251-4/+3
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesGravatar Bernhard Reutner-Fischer2008-05-191-1/+1
|
* selinux/*: -Wunused-parameter fixesGravatar Denis Vlasenko2008-03-171-5/+8
| | | | | | | | | | runsv: make it NOMMU-capable function old new delta startservice 291 313 +22 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 22/0) Total: 22 bytes
* *: add -Wunused-parameter; fix resulting breakageGravatar Denis Vlasenko2008-03-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* actually add bb_qsort.cGravatar Denis Vlasenko2008-03-021-1/+1
| | | | | *: s/Denis/Denys/
* libbb: introduce and use xrename and rename_or_warn.Gravatar Denis Vlasenko2008-02-171-10/+0
|
* libbb: introduce bb_signals and bb_signals_recursive,Gravatar Denis Vlasenko2008-02-161-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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
* *: more readable handling of pipe fds. No code changes.Gravatar Denis Vlasenko2008-02-161-23/+24
|
* *: tidy up usage of char **environGravatar Denis Vlasenko2008-01-281-1/+1
|
* libbb: introduce and use safe_waitpid (loops in EINTR)Gravatar Denis Vlasenko2008-01-021-3/+2
| | | | | | | | | | | | | | | | | | | | | | *: 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
* add -fvisibility=hidden to CC flags, mark XXX_main functionsGravatar Denis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce and use close_on_exec_on(fd). -50 bytes.Gravatar Denis Vlasenko2007-09-301-12/+12
|
* assorted static vars removalGravatar Denis Vlasenko2007-09-281-8/+23
| | | | | | | | | | | | | | | | | | | | | function old new delta tcpudpsvd_main 1829 1839 +10 update_status 567 569 +2 sigterm 1 - -1 ......... dhcprelay_signal_handler 8 - -8 nfs_strerror 60 49 -11 singlemount 4579 4564 -15 static.p 16 - -16 svstatus 20 - -20 dhcprelay_xid_list 32 - -32 runsv_main 1785 1746 -39 static.buf 74 28 -46 svd 56 - -56 dhcprelay_main 1141 1080 -61 ------------------------------------------------------------------------------ (add/remove: 0/20 grow/shrink: 2/10 up/down: 12/-386) Total: -374 bytes
* isrv: use monotonic_secGravatar Denis Vlasenko2007-08-311-8/+28
| | | | | runsv: do not use clock_gettime if !MONOTONIC_CLOCK
* runit/*: get rid of tai[a] time abstraction, it's too bloaty.Gravatar Denis Vlasenko2007-08-201-78/+73
| | | | | | | | | | text data bss dec hex filename 772537 1058 11092 784687 bf92f busybox.t0/busybox 772459 1058 11060 784577 bf8c1 busybox.t1/busybox 772326 1058 11028 784412 bf81c busybox.t2/busybox 772158 1058 10980 784196 bf744 busybox.t3/busybox 771490 1055 10988 783533 bf4ad busybox.t4/busybox
* introduce and use xdup2(int, int)Gravatar Denis Vlasenko2007-08-181-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* xpipe: introduce (saves ~170 bytes)Gravatar Denis Vlasenko2007-05-261-3/+2
| | | | | udhcp/signalpipe.c: use pipe instead of socketpair.
* style fixes. No code changes.Gravatar Denis Vlasenko2007-04-101-1/+2
|
* tcpsvd: new appletGravatar Denis Vlasenko2007-04-011-3/+3
| | | | | | | | | | It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
* add NOMMU fixme's; move move_fd from runit_lib to libbb; nuke fd_copyGravatar Denis Vlasenko2007-03-251-3/+3
|
* add missing copyright statements and doc for svGravatar Denis Vlasenko2007-03-121-0/+27
|
* runsv: random code savings, ~300 bytesGravatar Denis Vlasenko2007-03-091-72/+63
|
* runsv: add missing {}Gravatar Denis Vlasenko2007-02-181-1/+2
|
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #4Gravatar Denis Vlasenko2007-01-291-8/+8
|
* runit/* cleanup part 2Gravatar Denis Vlasenko2007-01-271-4/+4
|
* runit cleanup part 1Gravatar Denis Vlasenko2007-01-271-12/+12
|
* Trailing whitespace removal over entire treeGravatar Denis Vlasenko2007-01-111-3/+3
|
* style fixesGravatar Denis Vlasenko2006-12-261-2/+2
| | | | last xcalloc replaced by xzalloc
* forgot about avn add... :(Gravatar Denis Vlasenko2006-11-171-0/+613