aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* fix an obvious typo while trying to access the tv_usec memberMike Frysinger2007-06-181-1/+1
|
* wget: use monotonic_sec instead of gettimeofdayDenis Vlasenko2007-06-171-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid() function old new delta monotonic_sec - 41 +41 find_pair 164 180 +16 run_list_real 2018 2028 +10 cmp_main 547 555 +8 collect_ctx 112 119 +7 singlemount 4544 4549 +5 time_main 1124 1128 +4 static.start_sec - 4 +4 static.lastupdate_sec - 4 +4 sock - 4 +4 read_package_field 253 257 +4 pick 38 40 +2 get_next_line 145 147 +2 count_lines 59 61 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 static.initialized 4 1 -3 dhcprelay_main 1125 1122 -3 catcher 380 377 -3 arping_main 1969 1966 -3 s 8 4 -4 cfg 4 - -4 static.lastupdate 8 - -8 start 8 - -8 random_xid 95 33 -62 .rodata 129114 129050 -64 zcip_main 1731 1576 -155 progressmeter 1035 867 -168 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 10/11 up/down: 113/-490) Total: -377 bytes
* hwclock: size optimizationsDenis Vlasenko2007-06-173-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | libbb/time.c: new file, introducing monotonic_us() pscan, traceroute, arping: use it instead of gettimeofday ping, zcip: TODO function old new delta monotonic_us - 89 +89 find_pair 164 180 +16 .rodata 129747 129763 +16 refresh 1144 1152 +8 ............ timeout 8 4 -4 static.start 8 4 -4 last 8 4 -4 parse_conf 1303 1284 -19 time_main 1149 1124 -25 gettimeofday_us 39 - -39 arping_main 2042 1969 -73 hwclock_main 594 501 -93 catcher 485 380 -105 traceroute_main 4300 4117 -183 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 8/11 up/down: 157/-562) Total: -405 bytes
* remove obsolete commentDenis Vlasenko2007-06-161-2/+1
|
* find: make -size match GNU findDenis Vlasenko2007-06-161-2/+2
|
* - vda perfers not to use the bannerBernhard Reutner-Fischer2007-06-151-3/+2
|
* init: make sure fd 0,1,2 are not closed, + related optimizations.Denis Vlasenko2007-06-141-6/+6
| | | | | | init_main 929 920 -9 bb_daemonize_or_rexec 145 127 -18
* *: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko2007-06-132-5/+9
| | | | | | | | | | | | correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
* hush: fix read builtin to not read ahead past eol and to not useDenis Vlasenko2007-06-131-11/+42
| | | | | insane amounts of stack. Testsuite updated.
* remove nearly-duplicate PATHs in several placesDenis Vlasenko2007-06-122-2/+2
| | | | | | | | | | | | | | function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
* login: make /etc/nologin support configurable. -240 bytes if not selected.Denis Vlasenko2007-06-121-2/+0
|
* diff: shrink code (-85 bytes):Denis Vlasenko2007-06-121-1/+1
| | | | | | | | | | | | function old new delta fiddle_sum 8 - -8 diffreg 2717 2690 -27 prepare 334 284 -50 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-85) Total: -85 bytes s/ATTRIBUTE_ALWAYS_INLINE/ALWAYS_INLINE/g
* A few more string duplicates found & eliminatedDenis Vlasenko2007-06-122-6/+5
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 679693 2700 15632 698025 aa6a9 busybox_old 679523 2700 15632 697855 aa5ff busybox_unstripped
* uudecode: nuke duplicate base64_table[]. saves 65 bytesDenis Vlasenko2007-06-121-2/+3
|
* - use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes.Bernhard Reutner-Fischer2007-06-111-2/+2
|
* top: add config option and code for global CPU % displayDenis Vlasenko2007-06-101-2/+9
|
* moved biggest stack buffers to malloc space, or made their size configurableDenis Vlasenko2007-06-102-23/+34
| | | | | | | | | | | | | | | | | (8k of shell line edit buffer is an overkill) # make ARCH=i386 bloatcheck function old new delta read_line_input 3933 3967 +34 ifaddrlist 348 345 -3 do_loadfont 208 191 -17 edit_file 840 819 -21 .rodata 129112 129080 -32 uncompress 1305 1268 -37 loadfont_main 566 495 -71 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 34/-181) Total: -147 bytes
* login: ask passwords even for wrong usernames.Denis Vlasenko2007-06-081-3/+8
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 680099 2704 15648 698451 aa853 busybox_old 680110 2704 15648 698462 aa85e busybox_unstripped
* make busybox --install work even if /proc/self/exe doesn't existDenis Vlasenko2007-06-083-4/+5
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 680095 2704 15648 698447 aa84f busybox_old 680099 2704 15648 698451 aa853 busybox_unstripped
* ps: fix -Z (by Yuichi Nakamura <ynakam@hitachisoft.jp>)Denis Vlasenko2007-06-061-1/+10
|
* nc: make connecting to IPv4 from IPv6-enabled hosts easierDenis Vlasenko2007-06-051-12/+20
| | | | (was requiring -s <local addr>)
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-1/+1
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* delete tons of extra #includesDenis Vlasenko2007-05-3113-38/+4
|
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-314-23/+3
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* whitespace fixesDenis Vlasenko2007-05-302-2/+2
|
* verror_msg: don't printf(NULL)Denis Vlasenko2007-05-291-3/+8
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-264-4/+4
| | | | | *: s/include "busybox.h"/include "libbb.h"
* xpipe: introduce (saves ~170 bytes)Denis Vlasenko2007-05-261-14/+18
| | | | | udhcp/signalpipe.c: use pipe instead of socketpair.
* hush: fix handling of unmatched ${name (without closing '}') -Denis Vlasenko2007-05-242-4/+7
| | | | | | | was eating all remaining input, potentially megabytes. nofork: save/restore die_jmp too nofork: use -2222 instead of -111 as "special" return valur for zero (-111 is used by some applets. -2222 won't fit in exitcode and thus safer)
* more compile fixes from randomconfig runDenis Vlasenko2007-05-171-0/+2
|
* fix trivial compile errors found by randomconfig runDenis Vlasenko2007-05-171-0/+1
|
* cryptpw: forgot svn add... how typical of me :(Denis Vlasenko2007-05-082-5/+50
|
* cryptpw: new applet (a bit less than 3k added)Denis Vlasenko2007-05-082-1/+5
| | | | | (by Thomas Lundquist <lists@zelow.no>)
* fix suid config handlingDenis Vlasenko2007-05-021-2/+2
|
* test: code size saving, no logic changesDenis Vlasenko2007-05-011-22/+126
| | | | | | | | | | | | | | | ps: fix warning, make a bit smaller kill -l: make smaller & know much more signals function old new delta get_signum 121 153 +32 kill_main 826 843 +17 get_signame 44 36 -8 signals 252 224 -28 .rodata 131955 131923 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/3 up/down: 49/-68) Total: -19 bytes
* hush: fix nofork + ctrl-Z clobbering of globalsDenis Vlasenko2007-04-281-12/+29
|
* find_root_device: use lstat - don't follow linksDenis Vlasenko2007-04-211-1/+2
|
* hush: begin fixing non-functional job controlDenis Vlasenko2007-04-211-2/+4
|
* procps: remove all global variablesDenis Vlasenko2007-04-192-2/+2
| | | | | | | | text data bss dec hex filename 1462 14 24 1500 5dc busybox.t2/procps/ps.o 1484 0 0 1484 5cc busybox.t3/procps/ps.o 3122 0 252 3374 d2e busybox.t1/procps/top.o 3117 0 0 3117 c2d busybox.t3/procps/top.o
* ps: add -o tty and -o rss supportDenis Vlasenko2007-04-191-7/+23
| | | | | 1373 14 24 1411 583 busybox.t1/procps/ps.o 1462 14 24 1500 5dc busybox.t2/procps/ps.o
* loop device code: readability improvementDenis Vlasenko2007-04-191-10/+14
|
* lineedit: state->hist_file doesn't exist if !FEATURE_EDITING_SAVEHISTORY,Denis Vlasenko2007-04-151-0/+2
| | | | #ifdef it out
* lineedit: nuke two unused variables and code which sets themDenis Vlasenko2007-04-141-9/+0
| | | | | | applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
* lineedit: do not try to open NULL history fileDenis Vlasenko2007-04-141-2/+2
|
* hush: use NOFORK applets as appropriate. Net reduction of code size.Denis Vlasenko2007-04-141-41/+48
|
* teach find_root_device to deal with /dev/ subdirsDenis Vlasenko2007-04-133-15/+57
| | | | (by "Kirill K. Smirnov" <lich@math.spbu.ru>)
* make xsocket die with address family printed (if VERBOSE_RESOLUTION_ERRORS=y)Denis Vlasenko2007-04-131-1/+12
|
* login: remove setpgrp call (makes it work from shell prompt again).Denis Vlasenko2007-04-122-15/+4
| | | | | login: sanitize stdio descriptors (we are suid, need to be careful!) shrink login and set_environment by ~100 bytes.
* pass a copy of argv[i] to NOFORK applets (they may permute it etc).Denis Vlasenko2007-04-121-14/+18
| | | | set/save/restore more shared global variables whan call one applet from another
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer2007-04-121-0/+16
| | | | | | a bit. -916 byte