aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* syslogd,logread: get rid of head pointer, fix logread bug in the processDenis Vlasenko2007-08-121-43/+12
| | | | | | | | | | | | | | | | function old new delta logread_main 450 462 +12 syslogd_main 1246 1252 +6 shbuf - 4 +4 buf 34 30 -4 packed_usage 22729 22724 -5 log_locally 957 767 -190 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/3 up/down: 22/-199) Total: -177 bytes text data bss dec hex filename 773886 1116 11316 786318 bff8e busybox_old 773714 1116 11316 786146 bfee2 busybox_unstripped
* syslogd: do not convert tabs to ^IDenis Vlasenko2007-06-211-1/+1
|
* syslogd: move some vectors from data to text. Needs uclibc patchDenis Vlasenko2007-06-041-4/+4
| | | | | | | | | | to have any effect (patch is submitted to uclibc ml). # size *[67]/*/syslog*.o text data bss dec hex filename 3169 288 0 3457 d81 busybox.t6/sysklogd/syslogd.o 3457 0 0 3457 d81 busybox.t7/sysklogd/syslogd.o
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* make pidfile writing configurable.Denis Vlasenko2007-03-271-0/+2
| | | | [ui]toa_to_buf: change API. No users yet.
* move everything to new NOMMU helpers, except udhcpDenis Vlasenko2007-03-261-6/+1
|
* NOMMU re-exec trick shuld not depend on existence of "don't daemonize"Denis Vlasenko2007-03-241-1/+2
| | | | | option for every affected applet (and dnsd, for example, don't have one). Thus rework re-exec support to not require it. Code got smaller too.
* syslogd: fix it for small BUFSIZ caseDenis Vlasenko2007-03-201-71/+67
|
* syslogd: reduce data/bss usage. Code size is practically the same.Denis Vlasenko2007-03-151-126/+167
|
* syslogd: MARK code is buggy. Disabling it altogether on anti-bloat groundsDenis Vlasenko2007-02-141-0/+11
|
* syslogd: fix "readpath bug" by using readlink insteadDenis Vlasenko2007-02-111-17/+24
| | | | libbb: rename xgetcwd and xreadlink
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #4Denis Vlasenko2007-01-291-4/+5
|
* accumulated post-1.4.0 fixesDenis Vlasenko2007-01-241-2/+2
|
* whitespace fixes (leading spaces to tab)Denis Vlasenko2007-01-131-1/+1
|
* a bit more IPv6-ization workDenis Vlasenko2007-01-101-17/+8
| | | | syslogd: converted to use it (in -R host:port)
* Yet another small size reduction by Bernhard Fischer <rep.nop@aon.at>Denis Vlasenko2007-01-091-5/+2
|
* small size reduction by Bernhard Fischer <rep.nop@aon.at>Denis Vlasenko2007-01-091-3/+2
|
* small size reduction by Bernhard Fischer <rep.nop@aon.at>Denis Vlasenko2007-01-091-7/+6
|
* compilation fix by Bernhard Fischer <rep.nop@aon.at>Denis Vlasenko2007-01-091-1/+4
|
* syslogs: a bit better wording in explanation how bufferingDenis Vlasenko2007-01-061-10/+9
| | | | is allocated
* syslogd: start using bb_common_bufsiz1 instead of stack/mallocDenis Vlasenko2007-01-041-28/+35
| | | | | logger: optimize, also use bb_common_bufsiz1 (~40 bytes) tested to eat arbitrarily-sized input at high speed - ok
* syslogd: stop doing open/fstat/lseek/close on _every_ writeDenis Vlasenko2007-01-041-52/+65
| | | | | (still doing it if more than a second passed in between). Costs ~40 bytes.
* new libbb func: xmalloc_realpath (+ use it where makes sense)Denis Vlasenko2007-01-041-11/+21
| | | | | syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour
* syslogd: almost rewritten. Had several obvious bugs...Denis Vlasenko2007-01-041-327/+263
|
* Provide our own isdigit macro. saves more than 400 bytes.Denis Vlasenko2006-11-271-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-8/+6
|
* dnsd fix; option_mask32 added. dnsd needs more love.Denis Vlasenko2006-10-061-20/+19
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* syslogd: do not retry udp sends (can stall syslogd for extended periodsDenis Vlasenko2006-09-301-41/+14
| | | | of time), resolve remote logging host before daemonization
* syslogd: getopt_ulflags'ification (save ~50 bytes)Denis Vlasenko2006-09-301-143/+156
|
* syslogd: add option to suppress logging of messages lower than level N (-n N)Denis Vlasenko2006-09-301-4/+16
|
* Build fixes for gcc 4.0 with -Werror, from Tito.Rob Landley2006-09-111-1/+1
|
* few random readability enhansements. No code changesDenis Vlasenko2006-09-081-6/+7
|
* More allbareconfig fixes.Rob Landley2006-08-281-1/+8
|
* - merge -r15463:15564 from busybox_scratch branch through these changesets:Bernhard Reutner-Fischer2006-08-201-62/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines - use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert. - use xchdir() since all is invain if it fails there anyways, supposedly ------------------------------------------------------------------------ r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines - adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account. ------------------------------------------------------------------------ r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines - partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save s 144 bytes text data bss dec hex filename 862434 10156 645924 1518514 172bb2 busybox.old 862322 10156 645892 1518370 172b22 busybox function old new delta z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 new_text 70 60 -10 ipaddr_list_link 33 23 -10 gzip_main 898 822 -76 ------------------------------------------------------------------------------ (add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes ------------------------------------------------------------------------ r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines - remove useless global exports function old new delta rpm_main 940 1601 +661 rpm_getstring 107 112 +5 rpm_getint 148 153 +5 loop_through_files 103 106 +3 fileaction_dobackup 115 113 -2 fileaction_list 5 - -5 rpm_getcount 42 - -42 extract_cpio_gz 161 - -161 rpm_gettags 504 - -504 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes text data bss dec hex filename 862322 10156 645892 1518370 172b22 busybox.old 862290 10156 645892 1518338 172b02 busybox ------------------------------------------------------------------------ r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines - shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s emaphore stuff into single caller manually. stats: function old new delta logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 small 1 - -1 local_logging 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 syslogd_main 1299 1285 -14 static.res 36 16 -20 .rodata 186650 186586 -64 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,} text data bss dec hex filename 3723 348 5242 9313 2461 sysklogd/syslogd.o.orig 3697 348 4188 8233 2029 sysklogd/syslogd.o ============================================================================== Overall bloatcheck for the changeset mentioned above: function old new delta rpm_main 953 1608 +655 logMessage 395 427 +32 message 1245 1257 +12 opts - 4 +4 rpm_getstring 107 110 +3 rpm_getint 148 151 +3 loop_through_files 103 104 +1 small 1 - -1 fileaction_dobackup 115 113 -2 z_len 4 - -4 textend 4 - -4 part_nb 4 - -4 local_logging 4 - -4 insize 4 - -4 ifile_size 4 - -4 do_link 4 - -4 doRemoteLog 4 - -4 circular_logging 4 - -4 fileaction_list 5 - -5 new_text 70 60 -10 ipaddr_list_link 33 23 -10 clear_bufs 31 21 -10 syslogd_main 1287 1273 -14 builtin_help 190 176 -14 static.res 36 16 -20 builtin_source 229 199 -30 rpm_getcount 42 - -42 gzip_main 842 786 -56 .rodata 227176 227112 -64 lash_main 609 527 -82 busy_loop 3883 3739 -144 extract_cpio_gz 155 - -155 rpm_gettags 501 - -501 static.line 1025 - -1025 ------------------------------------------------------------------------------ (add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-19/+4
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-2/+1
| | | | and eventual platform specific includes in early.
* - s/defined(__uClinux__)/BB_NOMMU/Bernhard Reutner-Fischer2006-05-311-3/+3
| | | | | | | This needs a second pass to: + add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag) + eventually globally export argc and argv, so we don't need to pass it to bb_daemon().
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-191-8/+0
| | | | - use shorter boilerplate while at it
* - commentary typo and superfluous whitespace removal in weird messages.Bernhard Reutner-Fischer2006-04-181-3/+3
|
* - patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer2006-04-121-2/+1
|
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-11/+2
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"2006-02-161-1/+1
| | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
* just whitespaceTim Riker2006-01-251-1/+1
|
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-15/+2
| | | | - use shorter boilerplate while at it.
* 20 bytes data to bss"Vladimir N. Oleynik"2005-10-151-6/+4
|
* complex RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1"Vladimir N. Oleynik"2005-10-151-5/+8
|