Mike Frysinger
c881c733bb
cleanup comments and coding style and rewrite the mdev.conf parser to use common busybox functions and call strdup() less often ... saves a ~few hundred bytes
2007-11-19 09:04:22 +00:00
Denis Vlasenko
ed6a49c657
ip: stop propagating argc; optimize ip_parse_common_args
...
function old new delta
find_pair 167 187 +20
static.families - 17 +17
die_must_be_on_off - 11 +11
...
on_off 33 22 -11
do_ipaddr 103 90 -13
do_iptunnel 1001 986 -15
iproute_list_or_flush 1237 1217 -20
static.ip_common_commands 43 22 -21
do_iproute 2217 2193 -24
parse_args 1444 1414 -30
ip_do 47 16 -31
do_iprule 994 963 -31
ip_main 153 113 -40
ipaddr_modify 1357 1305 -52
ipaddr_list_or_flush 2543 2490 -53
ip_parse_common_args 294 159 -135
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 4/24 up/down: 85/-563) Total: -478 bytes
text data bss dec hex filename
775561 966 9236 785763 bfd63 busybox_old
775073 962 9236 785271 bfb77 busybox_unstripped
2007-11-18 22:56:25 +00:00
Denis Vlasenko
2a587df80a
stty: mark variable as static
2007-11-18 11:47:25 +00:00
Mike Frysinger
49d15890e0
make output a little more friendly
2007-11-18 06:42:56 +00:00
Mike Frysinger
e13bd362e3
merge from upstream for systems that dont integrate libintl into their C library:
...
commit aa1e5ef5c1d95e7ebf0821d9ba27debe43a87a22
Author: Sam Ravnborg <sam@ravnborg.org>
Date: Sun Aug 12 23:15:44 2007 +0200
kbuild: check if we can link gettext not just compile
cygwin provides the header file but the lib file needs
to be added manually. A generic fix is to check if
we can compile and link a program that uses gettext()
and if it fails fall back to NO_NLS.
International users of cygwin may have to specify
HOST_LOADLIBES := "-lintl" on the make command line.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2007-11-18 06:17:52 +00:00
Mike Frysinger
dbd18f639c
exported symbols may be weak, so allow symbols marked as W
2007-11-18 06:13:58 +00:00
Denis Vlasenko
70ab28f907
syslogd: use DEV_CONSOLE consistently
...
init: remove obsolete comment
2007-11-18 05:43:05 +00:00
Denis Vlasenko
fbe5f39f0f
hexdump: add hd alias, add -R option
2007-11-18 05:36:50 +00:00
Paul Fox
16aec39ebe
add comment clarifying busybox's use of non-standard tar header
2007-11-17 19:11:05 +00:00
Denis Vlasenko
8512862163
tar: fix a case where glibc detects bogus buffer overrun
...
which is not really there!
2007-11-16 20:35:30 +00:00
Denis Vlasenko
7e3a5f58bc
dmesg,klogd: make code more readable
...
libbb: explain why we declare klogctl
libbb: move defs around so that order makes more sense
2007-11-16 20:18:54 +00:00
Bernhard Reutner-Fischer
7c2db5c198
- use standard-imposed constants some more
2007-11-16 12:39:16 +00:00
Bernhard Reutner-Fischer
a702457eac
- remove most of the forward declarations. No obj-code changes.
2007-11-16 12:20:30 +00:00
Bernhard Reutner-Fischer
e8979889b4
- add note about SUSv3 missing options.
2007-11-16 11:52:42 +00:00
Denis Vlasenko
01cd9570c7
who: add -a (by Tito)
2007-11-16 05:24:43 +00:00
Denis Vlasenko
a6899c3587
lash: fix compile-time warning
2007-11-15 17:47:45 +00:00
Denis Vlasenko
6d38dc3af4
df: add -a
...
df: don't special case rootfs and /dev/root
function old new delta
df_main 746 684 -62
find_block_device 111 - -111
find_block_device_in_dir 243 - -243
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/1 up/down: 0/-416) Total: -416 bytes
2007-11-15 09:02:12 +00:00
Denis Vlasenko
f430cdbf2e
df: add -i (conditional on CONFIG)
...
uasge: trim a bit
2007-11-15 07:02:55 +00:00
Denis Vlasenko
1fe4e9e573
cosmetic change in message text
2007-11-15 00:57:40 +00:00
Paul Fox
ae6bf96659
bad syntax error should go to stderr
2007-11-14 23:48:35 +00:00
Denis Vlasenko
9d6c46955f
Introduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:
...
function old new delta
str2sockaddr 328 344 +16
2007-11-14 10:18:33 +00:00
Denis Vlasenko
8d0a734d91
tr: more of code shrink (getopt32-ification)
...
runtest: cleanup. Method of getting $applets was truly bizarre
function old new delta
tr_main 655 527 -128
2007-11-13 22:23:57 +00:00
Denis Vlasenko
3d461676a9
tr: better comments, small code shrink
...
function old new delta
expand 2232 2230 -2
tr_main 677 655 -22
2007-11-13 22:22:29 +00:00
Denis Vlasenko
a89d50fb9a
tr: properly detect read errors (Fernando Silveira <fsilveira@gmail.com>)
...
readprofile: use xwrite
function old new delta
tr_main 679 677 -2
readprofile_main 1964 1944 -20
2007-11-13 17:51:40 +00:00
Denis Vlasenko
130f559f4d
trylink: accomodate older versions of ld
2007-11-13 17:36:12 +00:00
Denis Vlasenko
05c8c4f745
who: code shrink by Tito <farmatito@tiscali.it>
...
function old new delta
who_main 271 259 -12
2007-11-13 17:26:21 +00:00
Denis Vlasenko
72cc9641f8
add sed mini-doc
2007-11-13 17:13:31 +00:00
Denis Vlasenko
40276648ab
sed: support GNU-like '\t' escape in substitutions
2007-11-13 16:48:10 +00:00
Denis Vlasenko
6df9e3c9a3
inetd: revert bogus fix for bug 1562; shrink inetd a bit
...
function old new delta
dupconfig 159 146 -13
getconfigent 1123 1073 -50
2007-11-12 21:21:35 +00:00
Denis Vlasenko
059c91711f
open_transformer: do not duplicate "<program> -cf -"
...
text data bss dec hex filename
677858 738 7236 685832 a7708 busybox_old
677804 738 7236 685778 a76d2 busybox_unstripped
2007-11-12 02:13:12 +00:00
Denis Vlasenko
4bfb84db4e
gzip: fix a case where tar xzf fails (we use uninitialized fd)
2007-11-12 01:44:49 +00:00
Denis Vlasenko
e5569cb52e
who: fix wrong date/time field size
2007-11-11 06:35:41 +00:00
Denis Vlasenko
40702dac93
Announce 1.8.1
2007-11-10 03:24:21 +00:00
Denis Vlasenko
f6ccc62c70
init: fix bug 1584: improper check for fork error
2007-11-10 01:57:35 +00:00
Denis Vlasenko
5cc6459c46
umount: stop using excessive aounts of stack. Surprisingly,
...
code shrank a lot too
function old new delta
umount_main 751 640 -111
2007-11-10 01:45:03 +00:00
Denis Vlasenko
73cb1fdfea
lineedit: stop using both data/bss and tons of stack.
...
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
2007-11-10 01:35:47 +00:00
Denis Vlasenko
e7fca5125a
*: remove superfluous "?" in option parsing
2007-11-10 01:32:18 +00:00
Denis Vlasenko
b4f608d8e0
readlink: realpath requires PATH_MAX, bb_common_bufsiz1 can be too small
...
umount: don't actually need char[2 * PATH_MAX] for realpath
2007-11-10 01:31:19 +00:00
Denis Vlasenko
d031b203c7
syslogd: support "symlink to symlink" for /dev/log; reduce stack usage
...
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
2007-11-10 01:28:19 +00:00
Bernhard Reutner-Fischer
9bd8d0c23e
- commentary fixes
...
- 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
2007-11-08 21:11:43 +00:00
Paul Fox
599bbfbd9b
xmalloc_follow_symlinks() -- fix ELOOP issue with absolute paths,
...
return full path in cases where path doesn't resolve to a link.
change name to better differentiate from xmalloc_readlink().
2007-11-08 20:00:36 +00:00
Denis Vlasenko
abbd363261
xreadlink: code shrink
...
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
2007-11-08 17:40:23 +00:00
Paul Fox
53bd4015aa
follow symlinks to find the true passwd file before updating.
2007-11-08 01:12:38 +00:00
Paul Fox
459a2ba1ef
new xmalloc_readlink_follow() routine to fully expand trailing symlinks
...
to get to a "real" file (or directory).
2007-11-08 01:11:41 +00:00
Paul Fox
49cce2b838
add "-A N" / "--tryagain=N" option to client, to allow altering the
...
default 60 second wait after failure to get a lease.
2007-11-07 16:01:28 +00:00
Paul Fox
6e1b62b18c
flush typeahead before prompt
2007-11-07 15:51:35 +00:00
Denis Vlasenko
a29a5e40ae
login: fix PAM login (was unable to complete Kerberos login)
2007-11-07 00:23:47 +00:00
Denis Vlasenko
cb12cb2407
modprobe: fix a bug where we were entering endless loop
...
syslogd: strip trailing '\n' too, not only NULs
2007-11-06 11:34:03 +00:00
Denis Vlasenko
5281630229
login: clear dangerous environment variables if started by non-root
2007-11-06 05:26:51 +00:00
Denis Vlasenko
6bef3d1d22
fbset: fix buglet where we were using wrong pointer
...
readahead: stop using stdio.h
*: style fixes
2007-11-06 03:05:54 +00:00