aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* dos2unix: tiny shrinkDenis Vlasenko2008-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | login,su: fix setup_environment() so that it works as intended (parameter names were a bit misleading) fdisk: shrink help text: shrink function old new delta login_main 1658 1701 +43 setup_environment 206 203 -3 dos_compatible_flag 4 1 -3 dos2unix_main 383 375 -8 get_boot 1724 1702 -22 fdisk_main 2949 2889 -60 packed_usage 24250 23948 -302 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 43/-398) Total: -355 bytes text data bss dec hex filename 798768 661 7428 806857 c4fc9 busybox_old 798327 658 7428 806413 c4e0d busybox_unstripped
* libbb: introduce and use sigprocmask_allsigs and sigaction_set.Denis Vlasenko2008-03-171-10/+8
| | | | | libbb: rename sig_pause to wait_for_any_sig.
* libbb: introduse and use signal_[no_]SA_RESTART_empty_mask and sigaction_setDenis Vlasenko2008-03-122-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | signal_SA_RESTART_empty_mask - 65 +65 signal_no_SA_RESTART_empty_mask - 54 +54 dd_main 1325 1369 +44 sigaction_set - 19 +19 dname_enc 373 377 +4 UNSPEC_print 64 66 +2 setsignal 296 294 -2 bb_signals_recursive 95 92 -3 bb_askpass 367 361 -6 inetd_main 1810 1797 -13 rx_main 912 883 -29 sigdelset 32 - -32 __sigdelset 32 - -32 __GI_sigdelset 32 - -32 sighup_handler 84 37 -47 arping_main 1844 1797 -47 fsck_main 1869 1807 -62 run_list 1917 1844 -73 vlock_main 492 409 -83 progressmeter 883 798 -85 handle_incoming_and_exit 2737 2651 -86 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 3/12 up/down: 188/-632) Total: -444 bytes
* nc: remove a bit of bloatDenis Vlasenko2008-03-121-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | inetd: more NOMMU fixes rx: shrink devfsd: minor shrink vlock: shrink tcpudp: narrow down window where we have no wildcard socket parse_one_line 1015 1102 +87 init_ring - 53 +53 xzalloc_lsa - 48 +48 read_byte 51 50 -1 rearm_alarm 28 25 -3 nc_main 1028 1000 -28 initring 53 - -53 vlock_main 583 496 -87 reread_config_file 1089 991 -98 rx_main 1046 912 -134 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/6 up/down: 188/-404) Total: -216 bytes text data bss dec hex filename 800120 661 7428 808209 c5511 busybox_old 799796 661 7428 807885 c53cd busybox_unstripped
* inetd: make it NOMMU-capable and IPv6-friendly. Lots of renamesDenis Vlasenko2008-03-123-19/+28
| | | | | | | | | | of variable/function names Total: -2474 bytes text data bss dec hex filename 802215 661 7452 810328 c5d58 busybox_old 800120 661 7428 808209 c5511 busybox_unstripped
* crond: make it NOMMU-capableDenis Vlasenko2008-03-121-12/+2
| | | | | | | | | | | | | | | | | | | | | | | function old new delta safe_setenv4 - 62 +62 ForkJob 472 511 +39 change_identity 21 57 +36 ParseField 564 571 +7 SynchronizeDir 178 176 -2 LogLevel 4 - -4 LogFile 4 - -4 FileBase 4 - -4 DebugOpt 4 - -4 CDir 4 - -4 DeleteFile 141 132 -9 packed_usage 24248 24228 -20 crondlog 157 113 -44 change_identity_e2str 54 - -54 SynchronizeFile 729 671 -58 crond_main 1555 1404 -151 ------------------------------------------------------------------------------ (add/remove: 1/6 grow/shrink: 3/6 up/down: 144/-358) Total: -214 bytes
* define DEBUG as 0, for when ENABLE_FEATURE_DEVPTS is not on.Paul Fox2008-03-051-0/+2
|
* actually add bb_qsort.cDenis Vlasenko2008-03-028-7/+27
| | | | | *: s/Denis/Denys/
* libbb: inntroduce and use bb_pstrcmp() and qsort_string_vector()Denis Vlasenko2008-03-022-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | msh: glob0/glob1/glob2/glob3 are just a sorting routine! remove them. bb_pstrcmp - 25 +25 qsort_string_vector - 24 +24 expand 2209 2227 +18 getopt32 1359 1370 +11 passwd_main 1072 1074 +2 handle_incoming_and_exit 2737 2735 -2 UNSPEC_print 66 64 -2 forkexec 1343 1339 -4 input_tab 3338 3330 -8 get_dir 185 177 -8 expmeta 481 473 -8 cmdputs 405 397 -8 xstrcmp 12 - -12 find_pair 187 167 -20 match_compare 25 - -25 dir_strcmp 25 - -25 glob2 27 - -27 glob3 34 - -34 glob1 256 - -256 ------------------------------------------------------------------------------ (add/remove: 2/6 grow/shrink: 3/8 up/down: 80/-439) Total: -359 bytes
* *: add optimization barrier to all "G trick" locationsDenis Vlasenko2008-02-275-4/+14
|
* libbb: add forgotten part of "script" applet changeDenis Vlasenko2008-02-271-0/+56
|
* script: new applet by Pascal Bellard <pascal.bellard AT ads-lu.com>Denis Vlasenko2008-02-271-0/+1
|
* actually add libbb/safe_gethostname.cDenis Vlasenko2008-02-251-0/+53
|
* *: intrduce and use safe_gethostname. By Tito <farmatito AT tiscali.it>Denis Vlasenko2008-02-254-21/+13
| | | | | | | | | | | | | | | | | | | | | safe_gethostname - 48 +48 glob3 35 37 +2 timestamp_and_log 314 315 +1 udhcp_send_kernel_packet 234 231 -3 scan_tree 275 271 -4 passwd_main 1074 1070 -4 print_login_prompt 68 58 -10 obscure 392 377 -15 syslogd_main 882 866 -16 print_login_issue 516 478 -38 hostname_main 278 223 -55 parse_and_put_prompt 825 756 -69 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/9 up/down: 51/-214) Total: -163 bytes text data bss dec hex filename 798791 728 7484 807003 c505b busybox_old 798631 728 7484 806843 c4fbb busybox_unstripped
* lpd: spool mode added by VladimirDenis Vlasenko2008-02-254-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | lpr: more robust error reporting *: introduce and use xchroot libbb: full_read/write now will report partial data counts prior to error isdirectory.c: style fixes lpd_main 249 486 +237 xchroot - 29 +29 get_response_or_say_and_die 110 139 +29 full_write 52 60 +8 full_read 55 63 +8 static.newline 1 - -1 switch_root_main 404 400 -4 chpst_main 1089 1079 -10 getopt32 1370 1359 -11 chroot_main 115 101 -14 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 4/4 up/down: 311/-40) Total: 271 bytes text data bss dec hex filename 798472 728 7484 806684 c4f1c busybox_old 798775 728 7484 806987 c504b busybox_unstripped
* lpd: new applet by Vladimir Dronnikov <dronnikov AT gmail.com>Denis Vlasenko2008-02-241-2/+1
|
* less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)Denis Vlasenko2008-02-241-0/+14
| | | | | *: minor shrink
* small code readability and typo fixesDenis Vlasenko2008-02-221-1/+1
|
* lpr and lpq applets by Walter Harms.Denis Vlasenko2008-02-221-1/+1
| | | | | | | | text data bss dec hex filename 392 0 0 392 188 lpq.o 1378 0 0 1378 562 lpr.o 142 0 0 142 8e parse_prt.o
* corrected English in commentDenis Vlasenko2008-02-201-1/+1
|
* libbb: introduce and use nonblock_safe_read(). Yay!Denis Vlasenko2008-02-202-3/+57
| | | | | | | | | | | | | | | | | Our shells are immune from this nasty O_NONBLOCK now! function old new delta nonblock_safe_read - 78 +78 file_get 276 295 +19 generateMTFValues 428 435 +7 read_line_input 1776 1772 -4 preadbuffer 543 450 -93 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/2 up/down: 104/-97) Total: 7 bytes text data bss dec hex filename 615190 715 23924 639829 9c355 busybox_old 615168 715 23924 639807 9c33f busybox_unstripped
* lineedit: tiny shrinkDenis Vlasenko2008-02-181-1/+9
|
* 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