summaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mount: recognize "dirsync" (closes bug 835)Denis Vlasenko2008-02-181-2/+9
| | | | | | mount: sanitize environ if called by non-root *: adjust for slightly different sanitize routine
* whitespace fixesDenis Vlasenko2008-02-171-1/+1
|
* libbb: introduce and use xrename and rename_or_warn.Denis Vlasenko2008-02-172-11/+20
|
* libbb: introduce bb_signals and bb_signals_recursive,Denis Vlasenko2008-02-163-42/+81
| | | | | | | | | | | | | | | | | | | | | | | | 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
* we need to pass back the rtc device name that was actually used so that we ↵Mike Frysinger2008-02-151-6/+8
| | | | can turn around and check its sysfs status
* split some rtc funcs out of hwclock and into an rtc header/lib so that the ↵Mike Frysinger2008-02-152-0/+88
| | | | new rtcwake applet as well as hwclock can utilize the same code
* libbb: filename completion should match dangling symlinks tooDenis Vlasenko2008-02-141-1/+1
|
* cp: add ENABLE_FEATURE_VERBOSE_CP_MESSAGE. Closes bug 1470Denis Vlasenko2008-02-132-1/+26
|
* - spelling fixesBernhard Reutner-Fischer2008-02-111-1/+1
|
* getpot: add support for "a+" specifier for nonnegative int parameters.Denis Vlasenko2008-02-101-19/+42
| | | | | | | | | | | | | By Vladimir Dronnikov <dronnikov at gmail.com>. fdisk and top are converted as an example. function old new delta getopt32 1340 1370 +30 top_main 1137 1120 -17 fdisk_main 3033 2949 -84 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 30/-101) Total: -71 bytes
* msh: fix Ctrl-C handling with line editingDenis Vlasenko2008-02-021-2/+2
|
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-14/+14
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* *: move getopt reset code to better place(s)Denis Vlasenko2008-01-283-25/+23
|
* mkswap, readahead: stop using fdlength, it is reported to be unreliableDenis Vlasenko2008-01-271-0/+2
|
* tentatively fix getopt state corruption for NOFORK appletsDenis Vlasenko2008-01-271-2/+24
|
* - fix conflicting decls of syslog related facilitynames and prioritynames tablesBernhard Reutner-Fischer2008-01-272-2/+2
|
* fdisk: fix a case where break was reached only for DOS labelsDenis Vlasenko2008-01-241-3/+1
|
* eliminated CONFIG_FEATURE_EDITING_FANCY_KEYS. the size savingsPaul Fox2008-01-182-16/+0
| | | | | | | was small, compared to the total size of the command-line editing features, and it removed key bindings that most wouldn't consider "fancy", like ^U, and 'l' and 'h' in vi mode, ^F and ^B in emacs mode.
* enable use of ^V prefix to allow forced insertion of any character. inPaul Fox2008-01-111-4/+3
| | | | | particular, without this it's impossible to enter a TAB on the commandline (whether tab completion is enabled or not).
* allow 8-bit charactersPaul Fox2008-01-111-3/+0
|
* ps: fix build breakage from vda's recent commitDenis Vlasenko2008-01-073-7/+7
| | | | | *: whitespace fixes
* ps: fix overflow in USER and VSZ columnsDenis Vlasenko2008-01-061-8/+61
| | | | | | | | | | | | | | | | | function old new delta smart_ulltoa4 - 280 +280 smart_ulltoa5 283 408 +125 ulltoa6_and_space - 25 +25 scale 28 38 +10 bbunpack 358 366 +8 ps_main 259 261 +2 glob3 35 37 +2 fill_bounds 172 174 +2 process_stdin 456 446 -10 smart_ulltoa6 406 - -406 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 6/1 up/down: 454/-416) Total: 38 bytes
* ps: add conditional support for -o [e]timeDenis Vlasenko2008-01-051-2/+5
|
* libbb: introduce and use safe_waitpid (loops in EINTR)Denis Vlasenko2008-01-021-16/+21
| | | | | | | | | | | | | | | | | | | | | | *: 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
* adding libbb/printable.cDenis Vlasenko2007-12-301-0/+34
|
* libbb: introduce fputc_printable (from ed)Denis Vlasenko2007-12-301-0/+1
| | | | | | | | | | | | | | netstat: print control chars as ^C etc vi: style fixlet function old new delta fputc_printable - 100 +100 unix_do_one 451 487 +36 printLines 258 190 -68 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 136/-68) Total: 68 bytes
* Fix xmalloc_fgets_str so that it really does NOT strip terminator.Denis Vlasenko2007-12-262-13/+25
| | | | | | | | | | | | | | | | | | | | | | Add xmalloc_fgetline_str which does strip terminator, and use it in dpkg instead of xmalloc_fgets_str. netstat: use xmalloc_fgets_str - allows to eat strings with NULs (this fixes bug with some weird /proc/net/unix input) function old new delta xmalloc_fgets_internal - 191 +191 xmalloc_fgetline_str - 18 +18 do_info 116 120 +4 unix_do_one 451 447 -4 tcp_do_one 423 419 -4 send_tree 369 365 -4 xmalloc_fgets_str 178 15 -163 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/4 up/down: 213/-175) Total: 38 bytes text data bss dec hex filename 778445 832 7344 786621 c00bd busybox_old 778483 832 7344 786659 c00e3 busybox_unstripped
* nameif: extended matching (Nico Erfurth <masta@perlgolf.de>)Denis Vlasenko2007-12-241-1/+1
| | | | | | | | | | | | *: whitespace fixes function old new delta prepend_new_eth_table - 304 +304 nameif_main 620 684 +64 cc_macaddr 51 - -51 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 1/0 up/down: 368/-51) Total: 317 bytes
* defconfig: updateDenis Vlasenko2007-12-241-4/+6
| | | | | | | appletli.c: add vda's (C) top: fixlet for incorrect display of "0" Makefile: reduce stack size from 20k to 16k
* perror_nomsg: don't print extra colonDenis Vlasenko2007-12-221-2/+4
| | | | | losetup: print name of loop device in error messages
* num conversions: allow for leading '+' (renice needs that)Denis Vlasenko2007-12-111-5/+7
|
* lineedit: don't violate API if we do simple fgetsDenis Vlasenko2007-12-091-2/+4
| | | | | ash: cosmetic style fixes, no code changes
* signal names hack was wrong, it broke "get signal name" function.Denis Vlasenko2007-12-041-43/+40
| | | | | Reverting :(
* Make signal table a bit smallerDenis Vlasenko2007-12-041-3/+6
| | | | | | get_signum 136 151 +15 signals 224 192 -32
* guard against SIGxxx >= 32 (no code changes on i386)Denis Vlasenko2007-12-041-34/+39
|
* lineedit: reduce stack usageDenis Vlasenko2007-12-031-50/+43
| | | | | | | | | | | | | netstat: reduce stack usage; fix handling of NULs in unix socket filenames static.has_inode 1 - -1 do_info 119 116 -3 deinit_S 60 51 -9 unix_do_one 578 451 -127 parse_and_put_prompt 966 825 -141 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-281) Total: -281 bytes
* explain why we use mmap instead of mallocDenis Vlasenko2007-12-021-0/+2
|
* Introduce FEATURE_COPYBUF_KB.Denis Vlasenko2007-12-022-8/+34
| | | | | | | | People who want smaller stack at any cost may use it to reduce cp's stack usage (FEATURE_COPYBUF_KB=1). Desktop people may get faster copy of big files (FEATURE_COPYBUF_KB=32 is ~30% faster than 4kb)
* test: stop using lots of bss.Denis Vlasenko2007-11-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | function old new delta test_main 425 456 +31 t_lex 69 73 +4 syntax 100 104 +4 ptr_to_statics 8 12 +4 t_wp_op 4 - -4 t_wp 4 - -4 ngroups 4 - -4 group_array 4 - -4 binop 590 585 -5 oexpr 104 97 -7 aexpr 101 94 -7 nexpr 831 820 -11 leaving 156 - -156 ------------------------------------------------------------------------------ (add/remove: 0/5 grow/shrink: 4/4 up/down: 43/-202) Total: -159 bytes text data bss dec hex filename 775098 929 9084 785111 bfad7 busybox_old 775107 933 8908 784948 bfa34 busybox_unstripped
* Further optimize applet tables; prettify build outputDenis Vlasenko2007-11-292-8/+8
| | | | | | | text data bss dec hex filename 775923 929 9100 785952 bfe20 busybox_old 775565 929 9100 785594 bfcba busybox_unstripped
* reorganize applet table. Eliminates pointers to names.Denis Vlasenko2007-11-283-56/+55
| | | | | | | | | Should be a big win for libbusybox. busybox wins too: text data bss dec hex filename 776524 929 9100 786553 c0079 busybox_old 775903 929 9100 785932 bfe0c busybox_unstripped
* which: fix testsuite failureDenis Vlasenko2007-11-251-1/+1
| | | | | | pidof: do not output empty line if nothing found testsuite: disable false positive
* Introduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:Denis Vlasenko2007-11-141-3/+16
| | | | | | function old new delta str2sockaddr 328 344 +16
* lineedit: stop using both data/bss and tons of stack.Denis Vlasenko2007-11-101-93/+166
| | | | | | | | | stack usage was ~10 kb! unfortunately, noticeable code size growth: text data bss dec hex filename 9252 12 181 9445 24e5 busybox.t7/libbb/lineedit.o 9714 4 0 9718 25f6 busybox.t8/libbb/lineedit.o
* syslogd: support "symlink to symlink" for /dev/log; reduce stack usageDenis Vlasenko2007-11-101-1/+1
| | | | | | | | | | | | function old new delta create_socket - 134 +134 syslogd_main 1132 865 -267 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 134/-267) Total: -133 bytes text data bss dec hex filename 775603 974 9420 785997 bfe4d busybox_old 775445 974 9420 785839 bfdaf busybox_unstripped
* - commentary fixesBernhard Reutner-Fischer2007-11-081-11/+11
| | | | | | | - use common exit sequence for failure path: text data bss dec hex filename 308 0 0 308 134 libbb/xreadlink.o.pgf 296 0 0 296 128 libbb/xreadlink.o
* xmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths,Paul Fox2007-11-082-16/+23
| | | | | return full path in cases where path doesn't resolve to a link. change name to better differentiate from xmalloc_readlink().
* xreadlink: code shrinkDenis Vlasenko2007-11-081-17/+18
| | | | | | | | | | udhcp: add missing tryagain member to client_config function old new delta xmalloc_readlink_follow 169 154 -15 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15) Total: -15 bytes
* follow symlinks to find the true passwd file before updating.Paul Fox2007-11-081-1/+6
|
* new xmalloc_readlink_follow() routine to fully expand trailing symlinksPaul Fox2007-11-081-0/+45
| | | | to get to a "real" file (or directory).