aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Exclude syslog code if FEATURE_SYSLOG is not setNguyễn Thái Ngọc Duy2010-04-092-5/+16
| | | | | | | syslog.h and syslog(...) may not exist in such configuration Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: add skip_dev_pfx()Denys Vlasenko2010-04-062-8/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: fill hostname field in utmp/wtmp recordsDenys Vlasenko2010-04-061-3/+13
| | | | | | | | | | | | | function old new delta get_lsa - 109 +109 make_new_session 438 504 +66 get_peer_lsa - 10 +10 ftpd_main 2340 2267 -73 get_sock_lsa 101 10 -91 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 1/2 up/down: 185/-164) Total: 21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363Denys Vlasenko2010-04-051-37/+86
| | | | | | | | | | | | | | | | | function old new delta write_new_utmp - 253 +253 skip_dev_pfx - 30 +30 handle_sigchld 42 72 +30 telnetd_main 1650 1673 +23 make_new_session 415 438 +23 ... login_main 1140 1148 +8 update_utmp 337 313 -24 write_wtmp 220 154 -66 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split update_utmp from login/getty in preparation to use it for telnetdDenys Vlasenko2010-04-052-0/+94
| | | | | | | | | | | | | | | | | | | function old new delta update_utent - 339 +339 login_main 1498 1128 -370 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 339/-370) Total: -31 bytes function old new delta update_utmp 246 337 +91 login_main 1128 1140 +12 getty_main 1908 1918 +10 ... update_utent 339 - -339 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 5/6 up/down: 119/-368) Total: -249 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: factor out hex2bin() for infiniband address parserDenys Vlasenko2010-04-041-0/+35
| | | | | | | | function old new delta hex2bin - 149 +149 in_ib 172 27 -145 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cosmetic fixes, no code changedDenys Vlasenko2010-04-031-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make index_in_substrings return -1 on ambiguous matchesDenys Vlasenko2010-04-031-3/+20
| | | | | | | function old new delta index_in_substrings 67 93 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* clean up redundant, commented-out and misplaced includesDenys Vlasenko2010-04-011-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* provide safe_gethostname() for non-linux systemsDenys Vlasenko2010-03-291-2/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: locate PAGE_SIZE on HurdDenys Vlasenko2010-03-291-7/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Hurd compat fixes. Mostly dealing with absent PATH_MAXJérémie Koenig2010-03-263-5/+17
| | | | | Signed-off-by: Jérémie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALEDenys Vlasenko2010-03-266-566/+443
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: optional table for better handling of neutral bidi charsTomas Heinrich2010-03-263-102/+264
| | | | | | | | | | | | | | | | | | | | | | | | | | Off: function old new delta unicode_bidi_isrtl - 55 +55 isrtl_str 51 65 +14 unicode_isrtl 55 - -55 read_line_input 5003 4937 -66 ------------------------------------------------------------------------------ (add/remove: 1/4 grow/shrink: 1/1 up/down: 69/-121) Total: -52 bytes On: function old new delta static.neutral_b - 320 +320 static.neutral_p - 142 +142 unicode_bidi_isrtl - 55 +55 unicode_bidi_is_neutral_wchar - 55 +55 isrtl_str 51 59 +8 unicode_isrtl 55 - -55 read_line_input 5003 4937 -66 ------------------------------------------------------------------------------ (add/remove: 4/4 grow/shrink: 1/1 up/down: 580/-121) Total: 459 bytes Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: merge some common stringsDenys Vlasenko2010-03-231-1/+1
| | | | | | | | text data bss dec hexfilename 838650 8009 0 846659 ceb43busybox_old 838519 8009 0 846528 ceac0busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date,touch: accept Jan 7 00:00:00 2010 formatAlexander Shishkin2010-03-221-1/+13
| | | | | | | | function old new delta parse_datestr 618 647 +29 Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/copyfd.c: don't mmap a largish buffer if we only want to copy a few kbDenys Vlasenko2010-03-191-0/+3
| | | | | | | function old new delta bb_full_fd_action 283 295 +12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: code shrink and better "died from signal" reporting from wait4pidDenys Vlasenko2010-03-181-1/+1
| | | | | | | | | | | | | | function old new delta parse 964 967 +3 udhcp_run_script 670 665 -5 singlemount 911 906 -5 mount_it_now 360 355 -5 inotifyd_main 521 516 -5 xspawn 21 - -21 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: first shot at optional unicode bidi input supportTomas Heinrich2010-03-183-18/+164
| | | | | | | | | | | | | | | | | function old new delta read_line_input 4886 5003 +117 in_uint16_table - 97 +97 in_interval_table - 78 +78 static.rtl_b - 68 +68 unicode_isrtl - 55 +55 isrtl_str - 51 +51 static.rtl_p - 42 +42 unicode_conv_to_printable2 633 477 -156 ------------------------------------------------------------------------------ (add/remove: 6/0 grow/shrink: 1/1 up/down: 508/-156) Total: 352 bytes Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/loop: comment out u32 hackDenys Vlasenko2010-03-181-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/getopt32.c: clear applet_long_options and opt_complementary after useDenys Vlasenko2010-03-161-5/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: fix another corner case with bad unicode inputDenys Vlasenko2010-03-112-26/+40
| | | | | | | | | | | | | | | | | function old new delta read_key 607 646 +39 readit 50 55 +5 getch_nowait 290 295 +5 hash_find 233 234 +1 xstrtoul_range_sfx 231 230 -1 passwd_main 1058 1056 -2 builtin_exit 45 43 -2 cmp_main 649 645 -4 lineedit_read_key 257 245 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/5 up/down: 50/-21) Total: 29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: invalid unicode characters are replaced with CONFIG_SUBST_WCHARTomas Heinrich2010-03-092-5/+30
| | | | | | | | | function old new delta read_key_ungets - 50 +50 lineedit_read_key 223 252 +29 Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/loop.c: move #include to its user, improve commentDenys Vlasenko2010-03-081-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/loop.c: use common fix_u32.h trickDenys Vlasenko2010-03-061-5/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tftp: do not show progress bar if we get error right away. +13 bytesDenys Vlasenko2010-03-051-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb/loop.c: style and readability fixes, no code changesDenys Vlasenko2010-03-051-13/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: gethostname-related fixesDenys Vlasenko2010-02-271-22/+0
| | | | | | | | function old new delta hostname_main 218 231 +13 nfsmount 3541 3474 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* su: move restricted_shell into su.c (the only user)Denys Vlasenko2010-02-262-47/+0
| | | | | | | | | | | | | | | | | | function old new delta su_main 448 468 +20 buffer_fill_and_print 179 196 +17 scriptreplay_main 205 208 +3 localcmd 275 277 +2 hash_find 233 234 +1 devmem_main 469 463 -6 install_main 724 716 -8 setusershell 11 - -11 find_pair 187 169 -18 restricted_shell 49 - -49 ------------------------------------------------------------------------------ (add/remove: 0/3 grow/shrink: 5/3 up/down: 43/-92) Total: -49 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* setup_environment(): eliminate one parameterDenys Vlasenko2010-02-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* crontab: use setup_environmentBernhard Reutner-Fischer2010-02-261-4/+3
| | | | | | | | | | function old new delta setup_environment 184 198 +14 .rodata 131770 131747 -23 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-23) Total: -9 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libbb/md5.c: remove wrong commentDenys Vlasenko2010-02-081-7/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser: copy /etc/skel to mew homes. +100 bytesDenys Vlasenko2010-02-061-4/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cosmetic fixesDenys Vlasenko2010-02-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hexdump: fix "hexdump nonexistent_file" handlingDenys Vlasenko2010-02-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: eliminate more aliasing warningsDenys Vlasenko2010-02-041-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: fix bb_ask() to operate on correct fdDenys Vlasenko2010-02-031-3/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkXXXX: unify [KBYTES] parameter handling (added it to mkswap)Denys Vlasenko2010-02-012-0/+49
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove now-unneeded memsetDenys Vlasenko2010-02-011-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make echo -e "foo\nfoo" | passwd USER workDenys Vlasenko2010-02-011-17/+21
| | | | | | | | | Suggested by Michael Zhu (linuxsir320 AT gmail.com) function old new delta bb_ask 333 340 +7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* better wording in ConfigDenys Vlasenko2010-01-311-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode: exclude FDD0..FDEF range tooDenys Vlasenko2010-01-311-48/+48
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* exclude more invalid unicode charsDenys Vlasenko2010-01-311-9/+63
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix handling of broken unicode sequencesDenys Vlasenko2010-01-311-22/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: unicode fixesDenys Vlasenko2010-01-312-0/+66
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* further work on unicodizationDenys Vlasenko2010-01-301-18/+59
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* more fine-grained Unicode supportDenys Vlasenko2010-01-292-18/+92
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unicode_wcwidth.c: shrinkDenys Vlasenko2010-01-251-50/+306
| | | | | | | | | | | | | function old new delta static.combining1 - 184 +184 in_interval_table - 78 +78 bb_wcwidth 328 406 +78 in_table 78 - -78 static.combining 516 148 -368 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/1 up/down: 340/-446) Total: -106 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* testsuite-discovered fixesDenys Vlasenko2010-01-251-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: better unicode width support. Hopefully fixes bug 839.Denys Vlasenko2010-01-243-59/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also opens up a possibility to make other unicode stuff smaller and more correct later. but: function old new delta static.combining - 516 +516 bb_wcwidth - 328 +328 unicode_cut_nchars - 141 +141 mbstowc_internal - 93 +93 in_table - 78 +78 cal_main 899 961 +62 static.combining0x10000 - 40 +40 unicode_strlen - 31 +31 bb_mbstrlen 31 - -31 bb_mbstowcs 173 102 -71 ------------------------------------------------------------------------------ (add/remove: 7/1 grow/shrink: 1/1 up/down: 1289/-102) Total: 1187 bytes Uses code of Markus Kuhn, which is in public domain: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c "Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted. The author disclaims all warranties with regard to this software." Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>