80b8b39899
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Denis Vlasenko
2007-06-25 10:55:35 +00:00
1399282b47
- need to pass the PATH down to the gcc-version check to be able to find the correct cc. Fixes make PATH="$CROSS_BIN:$PATH" CROSS_COMPILE=foo- like invocations that previously failed to resolve since the information about the path set by the user was lost.
Bernhard Reutner-Fischer
2007-06-25 10:41:01 +00:00
88308fec80
test: suppress gcc warning telnetd: do not use suferfluous static variable.
Denis Vlasenko
2007-06-25 10:35:11 +00:00
118b81df76
- handy to have the cross_compile block here, too
Bernhard Reutner-Fischer
2007-06-22 17:39:21 +00:00
2ee028dd5b
syslogd: do not convert tabs to ^I
Denis Vlasenko
2007-06-21 13:44:53 +00:00
b304eadca8
test: shrink a bit
Denis Vlasenko
2007-06-21 13:35:52 +00:00
d67a606489
build system: remove kernel .config locations (spotted by walter harms <wharms@bfs.de>)
Denis Vlasenko
2007-06-21 12:57:29 +00:00
931de892cc
random shrinkage of statics, -60 bytes saved
Denis Vlasenko
2007-06-21 12:43:45 +00:00
a80b4a0fa7
tar: improve OLDGNU compat, make old SUN compat configurable
Denis Vlasenko
2007-06-21 12:41:59 +00:00
9a33780152
- add ATTRIBUTE_UNUSED_RESULT for internal use
Bernhard Reutner-Fischer
2007-06-21 10:39:20 +00:00
b7e61485d6
since we removed the deprecated matches() now and thus not alot of warnings are currently seen, let's strive to fixup these: - warn a little bit about unused results
Bernhard Reutner-Fischer
2007-06-21 10:28:11 +00:00
88976d00d8
remove extra ')'
Denis Vlasenko
2007-06-21 07:09:18 +00:00
14923db72f
slattach: new applet.
Denis Vlasenko
2007-06-20 15:23:03 +00:00
cd0e80ce90
- move iprule and ipaddress from matches() to index_in_str_array text data bss dec hex filename 2544 0 0 2544 9f0 networking/libiproute/iprule.o.oorig 2356 0 0 2356 934 networking/libiproute/iprule.o 6481 0 0 6481 1951 networking/libiproute/ipaddress.o.oorig 6464 0 0 6464 1940 networking/libiproute/ipaddress.o
Bernhard Reutner-Fischer
2007-06-20 14:53:49 +00:00
7510384107
do not do utime() on links, it acts on link targets, and we don't want that. rename link_name to link_target, less confusing this way.
Denis Vlasenko
2007-06-20 14:49:47 +00:00
761ce14fd2
- remove another user of the deprecated matches() func by moving it to use index_in_str_array. Untested. text data bss dec hex filename 445 0 4 449 1c1 ip_parse_common_args.o.oorig 391 0 4 395 18b ip_parse_common_args.o
Bernhard Reutner-Fischer
2007-06-20 12:42:03 +00:00
ee921393a5
- do not hardcode HOSTCFLAGS to gcc specific flags. Fixes errors when not using gcc as HOSTCC
Bernhard Reutner-Fischer
2007-06-20 10:01:12 +00:00
bb0baed564
- strndupa is a GNU extension. Using strdup to avoid several errors like: util-linux/mdev.c:(.text+0x29a): undefined reference to `strndupa'
Bernhard Reutner-Fischer
2007-06-20 09:56:47 +00:00
bb98db2ed2
echo: fix yet another buglet in non-fancy echo
Denis Vlasenko
2007-06-19 23:04:17 +00:00
a19faf8bb7
find: -context support for SELinux (KaiGai Kohei <kaigai@kaigai.gr.jp>) find: make it a bit smaller
Denis Vlasenko
2007-06-19 22:22:57 +00:00
a61cb92f2d
make /etc/network parsing configurable. -200 bytes when off.
Denis Vlasenko
2007-06-19 11:24:47 +00:00
6d9ea24611
networking/interface.c: huke remaining big statics; use malloc for INET[6]_rresolve return value. Went thru callers and adjusted them - code got smaller too.
Denis Vlasenko
2007-06-19 11:12:46 +00:00
91e149a373
libbb: random hunt for statics
Denis Vlasenko
2007-06-18 10:35:06 +00:00
2c91efb7c2
libpwdgrp/pwd_grp.c: allocate local storage on first call, not in bss. -1k bss
Denis Vlasenko
2007-06-18 10:08:27 +00:00
7679145cfa
ping: fix write-after-allocated-mem bug ping: use monotonic_us instead of gettimeofday: smaller code and needs only 4 bytes in the packet ping: display roundtrip times with 1/1000th of ms, not 1/10 ms precision. wget: small optimization
Denis Vlasenko
2007-06-18 08:55:57 +00:00
ebd27aabaa
fix an obvious typo while trying to access the tv_usec member
Mike Frysinger
2007-06-18 07:12:31 +00:00
bd7bb299c0
wget: use monotonic_sec instead of gettimeofday zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid()
Denis Vlasenko
2007-06-17 23:40:26 +00:00
459be35234
hwclock: size optimizations libbb/time.c: new file, introducing monotonic_us() pscan, traceroute, arping: use it instead of gettimeofday ping, zcip: TODO
Denis Vlasenko
2007-06-17 19:09:05 +00:00
a7825f269d
make FEATURE_HAVE_RPC auto-selectable by mount and inetd sub-features
Denis Vlasenko
2007-06-16 13:56:51 +00:00
7b72fc1200
pscan: new applet (portscanner). ~1350 bytes. By Tito <farmatito@tiscali.it> wget: lift 256 chars limitation on terminal width
Denis Vlasenko
2007-06-16 13:37:59 +00:00
53a0e97196
find: make -size match GNU find
Denis Vlasenko
2007-06-16 00:30:52 +00:00
b941129ccb
find: add conditional support for -maxdepth and -regex (needed for Linux 2.6.22-rc4 build)
Denis Vlasenko
2007-06-15 23:43:11 +00:00
d786cc5966
fdisk: fix minor issues with help text
Denis Vlasenko
2007-06-15 21:17:21 +00:00
be99243945
- fix test -f ./exists Note that test -f ./exists -a "-u" = "-u" doesn't work and did not work even before r18282, so this is a breakage not caused by me..
Bernhard Reutner-Fischer
2007-06-15 10:36:49 +00:00
867266059b
- vda perfers not to use the banner
Bernhard Reutner-Fischer
2007-06-15 08:30:33 +00:00
432d69cb41
applets/Kbuild: straighten it a bit
Denis Vlasenko
2007-06-14 21:41:15 +00:00
0e0639b702
Alex Landau writes: open firmware for reading, not writing
Mike Frysinger
2007-06-14 09:29:48 +00:00
d8540f71ac
init: make sure fd 0,1,2 are not closed, + related optimizations.
Denis Vlasenko
2007-06-14 07:53:06 +00:00
1adf681e87
traceroute: stop using floating point needlessly; nuke useless assignment.
Denis Vlasenko
2007-06-14 07:47:52 +00:00
26017b1b04
minix.h: add very simple test script
Denis Vlasenko
2007-06-13 12:49:46 +00:00
1fd46215b2
fsck_minix: forgotten bit of previous commit...
Denis Vlasenko
2007-06-13 12:35:34 +00:00
a6691317e5
fsck_minix: stop using data/bss
Denis Vlasenko
2007-06-13 12:28:21 +00:00
ca525b4f24
*: BB_BANNER -> bb_banner (it is not a const or #define)! 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
Denis Vlasenko
2007-06-13 12:27:17 +00:00
b51fd3525e
as suggested by Renaud Cerrato and Souf, switch over to recursive_action() for some nice shrinkage and so we work even when CONFIG_SYSFS_DEPRECATED is off
Mike Frysinger
2007-06-13 09:24:50 +00:00
a78ef2ccf1
add support for firmware loading
Mike Frysinger
2007-06-13 07:34:15 +00:00
d67cef2425
hush: fix read builtin to not read ahead past eol and to not use insane amounts of stack. Testsuite updated.
Denis Vlasenko
2007-06-13 06:47:47 +00:00
f5f75c5e82
remove nearly-duplicate PATHs in several places
Denis Vlasenko
2007-06-12 22:35:19 +00:00
f312e32662
login: make /etc/nologin support configurable. -240 bytes if not selected.
Denis Vlasenko
2007-06-12 22:04:57 +00:00
637c975098
fix "--help prints usage for wrong applet" bug
Denis Vlasenko
2007-06-12 20:55:38 +00:00
745119605e
top: on user suggestion make percentile calculations configurable. -56 bytes when off. +600 bytes when on top: reorder columns, so that [P]PIDs are together and VSZ/%MEM are together. Makes more sense
Denis Vlasenko
2007-06-11 16:31:55 +00:00
d71e45856e
- use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes.
Bernhard Reutner-Fischer
2007-06-11 15:09:21 +00:00
b1e5addfed
top: improve global CPU percentage (smaller & faster code)
Denis Vlasenko
2007-06-10 18:04:54 +00:00
5a65447e30
top: add config option and code for global CPU % display
Denis Vlasenko
2007-06-10 17:11:59 +00:00
e8a0788b24
moved biggest stack buffers to malloc space, or made their size configurable (8k of shell line edit buffer is an overkill)
Denis Vlasenko
2007-06-10 15:08:44 +00:00
77e44d60e6
httpd: move data off bss. httpd: do not realpath() for SCRIPT_FILENAME - it resolves symlinks but it should not:
Denis Vlasenko
2007-06-09 23:49:05 +00:00
66db264a5f
- also note where to checkout the 1_6_stable branch
Bernhard Reutner-Fischer
2007-06-09 09:12:45 +00:00
89bca27158
test: recognize /path/to/[ case too
Denis Vlasenko
2007-06-08 07:33:45 +00:00
8936a19880
- Add a FAQ entry on "how do i cross compile busybox"
Bernhard Reutner-Fischer
2007-06-08 07:19:06 +00:00
bb4b9f1fc9
- add a config-time range check for IPC_SYSLOG_BUFFER_SIZE The upper-bound doesn't look like it is working since it accepts LONG_MAX as input. I suspect that this is an lxdialog feature or something like that ;)
Bernhard Reutner-Fischer
2007-06-07 13:22:56 +00:00
e16e6e79e4
awk: experimentally modify "global" trick to make code smaller by minimizing data offsets
Denis Vlasenko
2007-06-07 13:14:53 +00:00
4b49512881
- update defconfig
Bernhard Reutner-Fischer
2007-06-07 13:12:51 +00:00
1622cb8cea
- i need this disabled code for testing a patch. Please leave it in.
Bernhard Reutner-Fischer
2007-06-07 12:11:24 +00:00