aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* progress meter: move file name to bb_progress_t. +20 bytesDenys Vlasenko2011-02-111-13/+11
| | | | | | We were doing expensive unicode conversion on every update Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/progress.c: make sure we never get negative ETADenys Vlasenko2011-02-111-16/+17
| | | | | | | function old new delta bb_progress_update 738 733 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* progress meter: display >999 hours ETA correctlyDenys Vlasenko2011-02-101-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: shrink progress meter code; strink wget and add debug loggingDenys Vlasenko2011-02-101-30/+65
| | | | | | | | | | | | | | function old new delta fgets_and_trim - 73 +73 retrieve_file_data 367 349 -18 bb_progress_update 723 699 -24 wget_main 2220 2190 -30 ftpcmd 133 87 -46 gethdr 200 153 -47 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/5 up/down: 73/-165) Total: -92 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* progress bar: better overflow protection; more precise barDenys Vlasenko2011-02-101-23/+31
| | | | | | | function old new delta bb_progress_update 639 749 +110 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* save 10 bytes on stringsDenys Vlasenko2011-02-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: use FEATURE_COPYBUF_KB-sized buffer. Much faster for local transfersDenys Vlasenko2011-02-101-1/+1
| | | | | | | | | | | | | | | function old new delta base64enc - 53 +53 gethdr 190 200 +10 ftpcmd 129 133 +4 progress_meter 160 122 -38 retrieve_file_data 431 392 -39 base64enc_512 46 - -46 wget_main 2456 2220 -236 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/3 up/down: 67/-359) Total: -292 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix TMOUT not restoring tty attributesDenys Vlasenko2011-02-081-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | function old new delta pgetc 420 500 +80 readtoken1 3202 3239 +37 read_line_input 3316 3337 +21 udhcpc_main 2610 2630 +20 file_get 266 272 +6 expandarg 958 963 +5 localcmd 257 259 +2 addLines 85 87 +2 read_line 94 95 +1 ed_main 2540 2541 +1 timed_out 1 - -1 lineedit_read_key 256 255 -1 alrm_sighandler 44 - -44 cmdloop 539 434 -105 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 10/2 up/down: 175/-151) Total: 24 bytes text data bss dec hex filename 887379 936 17200 905515 dd12b busybox_old 887411 936 17192 905539 dd143 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: spawn should remove child which failed to execDenys Vlasenko2011-02-031-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-032-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move nofork_save_area from libbb.h to vfork_daemon_rexec.cDenys Vlasenko2011-02-022-30/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make BB_EXECVP/LP try to exec real binary if there's no /proc/self/exeDenys Vlasenko2011-02-022-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df,find_mount_point: optionally don't ignore rootfsLauri Kasanen2011-01-312-1/+20
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/copy_file.c: use smallints instead of signed charsDenys Vlasenko2011-01-281-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hDenys Vlasenko2011-01-252-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add ENABLE_FEATURE_SYSTEMD and use it in syslogdDavide Cavalca2011-01-251-0/+62
| | | | | Signed-off-by: Davide Cavalca <davide@geexbox.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* nicer looking ifdef in libbb/makedev.cDenys Vlasenko2011-01-241-9/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* FreeBSD compat for match_fstypeChris Rees2011-01-241-1/+2
| | | | | Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* FreeBSD compat for makedevChris Rees2011-01-241-2/+8
| | | | | Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* FreeBSD compatChris Rees2011-01-241-1/+1
| | | | | Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make ndelay_no/off a bit more clever. +14 bytesDenys Vlasenko2011-01-241-6/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-181-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: better comment in parse_dateDenys Vlasenko2011-01-171-1/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb unicode: comment out usused function and unused parameterDenys Vlasenko2011-01-112-6/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libbb: progress indicator: use unicode support funcs instead of open-coding itDenys Vlasenko2011-01-101-16/+4
| | | | | | | function old new delta bb_progress_update 729 641 -88 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* tftp: fix bad interaction betweel poll() and alarm(). Closes bug 3061Denys Vlasenko2011-01-101-1/+1
| | | | | | | | | | | | | | | This was breaking timeout handling. function old new delta tftp_progress_update - 45 +45 tftp_progress_done - 32 +32 tftp_protocol 1839 1858 +19 tftp_progress_init 9 15 +6 tftp_main 298 286 -12 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/1 up/down: 102/-12) Total: 90 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* suppress "'fast_strtol_10' defined but not used" warningDenys Vlasenko2011-01-071-1/+3
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* kill[all[5]],pkill: make signal list show signal numbers, and show RTMIN/MAXDenys Vlasenko2011-01-031-1/+16
| | | | | | | | function old new delta print_signames 31 64 +33 signals 224 231 +7 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* kill[all[5]],pkill: more correct, and smaller, SIGRTMIN/MAX codeDenys Vlasenko2011-01-031-10/+19
| | | | | | | | | | | function old new delta __libc_current_sigrtmin 6 - -6 __libc_current_sigrtmax 6 - -6 get_signum 339 295 -44 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 0/1 up/down: 0/-56) Total: -56 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* date,touch: treat 2-digit years better (fit them into +-50 yrs around today)Denys Vlasenko2011-01-021-0/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: optionally support RTMIN[+n] and RTMAX[-n] signal namesDenys Vlasenko2010-12-302-6/+38
| | | | | | | | | | | | | | | function old new delta get_signum 140 336 +196 __libc_allocate_rtsig - 56 +56 __libc_current_sigrtmin - 6 +6 __libc_current_sigrtmax - 6 +6 current_rtmin - 4 +4 current_rtmax - 4 +4 bbconfig_config_bz2 4961 4962 +1 ------------------------------------------------------------------------------ (add/remove: 6/0 grow/shrink: 2/0 up/down: 273/0) Total: 273 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* plug a DIR* leak on error pathDenys Vlasenko2010-12-281-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: new applet. +1664 bytesLauri Kasanen2010-12-051-0/+2
| | | | | | | | | text data bss dec hex filename 883379 936 17192 901507 dc183 busybox_old 885043 936 17192 903171 dc803 busybox_unstripped Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-12-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add if guards around include <malloc.h>Denys Vlasenko2010-12-051-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/pw_encrypt_sha: forgot to move &ctx to 1st param here in sha hash reworkDenys Vlasenko2010-12-011-25/+25
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* exclude the case of just "busybox" from previous commitDenys Vlasenko2010-11-291-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* if only one applet is enabled, make "busybox applet [params]" work as expectedDenys Vlasenko2010-11-291-29/+33
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fixes for bugs discovered by randomconfig builds and testsDenys Vlasenko2010-11-221-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix misspelling in commentDenys Vlasenko2010-11-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* lineedit: fix tab-completion of filenames with spacesMike Shal2010-11-221-22/+45
| | | | | | | | | | | | Using ash in busybox git version dea28e1e, tab completion doesn't seem to work properly for filenames that have special characters (such as spaces) in them. For example, with filenames "foo bar" and "foo zap", typing "ls fo<TAB>" correctly expands to "ls foo\ ", but then continuing to type "b<TAB>" will produce "ls foo\ bbar", which is not correct (the 'b' is duplicated). Signed-off-by: Mike Shal <marfey@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: create history files with mode 0600Wolfram Sang2010-11-151-5/+7
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: remove unused variableLauri Kasanen2010-11-131-4/+3
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* type fix in commentDenys Vlasenko2010-11-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename archival/libunarchive -> archival/libarchive; move bz/ into itDenys Vlasenko2010-11-032-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-293-12/+12
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* unicode: update unicode_width on !unicode branch too. Closes bug 2593Denys Vlasenko2010-10-291-2/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* decompress_bunzip2: handle concatenated .bz2 filesDenys Vlasenko2010-10-281-1/+1
| | | | | | | | | | function old new delta unpack_bz2_stream 207 307 +100 start_bunzip 199 209 +10 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 110/0) Total: 110 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use _exit() in sighandlers; showkey: do not use exit-thru-sighandlerMarek Polacek2010-10-281-9/+11
| | | | | | | | | | | | While at it, make ESC sequences more readable; and removed check for isatty(stdin) in reset. Code shrink: text data bss dec hex filename 884771 936 17216 902923 dc70b busybox_old 884723 936 17216 902875 dc6db busybox_unstripped Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-2815-27/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>