12c96a64a4
- set the scope properly. Thanks to Jean Wolter, who wrote: busybox ip and the original ip utility behave differently when setting the following route (verified with ip route show using the original ip utility):
Bernhard Reutner-Fischer
2007-04-11 16:23:57 +00:00
473dae080a
add more convenient defines for [NO]MMU: "#ifndef BB_NOMMU" is a double negative
Denis Vlasenko
2007-04-11 07:04:23 +00:00
f1a7141cfc
random NOMMU fixes. compressed --help really does work for NOMMU! /me happy
Denis Vlasenko
2007-04-10 23:32:37 +00:00
80d14beae9
Rename two config options: FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE FEATURE_EXEC_PREFER_APPLETS => FEATURE_PREFER_APPLETS Make SH_STANDALONE depend on PREFER_APPLETS. getopt.c: more randomconfig-induced fixes
Denis Vlasenko
2007-04-10 23:03:30 +00:00
8905496444
xargs: fix my brain fart (resulted in memory leak)
Denis Vlasenko
2007-04-10 21:41:16 +00:00
c6758a07c6
make compressed help code NOMMU- and NOFORK-friendly - no forking anymore, bunzip2 unpack routine now does all it in memory.
Denis Vlasenko
2007-04-10 21:40:19 +00:00
335b63d8d1
make a few struct bb_applet members conditional rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
Denis Vlasenko
2007-04-10 21:38:30 +00:00
07c394e69b
- mv ip*_main into ip.c; use a dispatcher to save on needless duplication. Saves a minor 12b.
Bernhard Reutner-Fischer
2007-04-10 20:11:12 +00:00
99003b8a87
- use enum for the OPs as suggested by vda. No obj-code changes.
Bernhard Reutner-Fischer
2007-04-10 19:30:50 +00:00
f73cac8d3d
- forgot this hunk that corrects the usage text of ip
Bernhard Reutner-Fischer
2007-04-10 19:00:08 +00:00
e87d7955f8
- rewrite the ip applet to be less bloaty - mark libiproute's matches() as deprecated. Convert to index_in_(sub)str_array()! text data bss dec hex filename 314 0 0 314 13a ip.o.orig 200 0 0 200 c8 ip.o Using a smallint for the key would save another byte.
Bernhard Reutner-Fischer
2007-04-10 18:43:27 +00:00
51f7ab6162
- add ATTRIBUTE_DEPRECATED for functions that should be removed in the future. This is ment to provide means to point at cruft marked for cleanup.
Bernhard Reutner-Fischer
2007-04-10 18:40:05 +00:00
b38cf3ff8a
bunzip2: big style cleanup. No code changes apart from one s/write/safe_write/ (verified with objdump).
Denis Vlasenko
2007-04-10 17:16:33 +00:00
a9d7d24e1f
echo: fix regression ("echo" with no arguments didn't print newline. echo: use fputs if no options are given. Code growth ~15 bytes.
Denis Vlasenko
2007-04-10 16:34:00 +00:00
99912ca733
audit small applets and mark some of them as NOFORK. Put big scary warnings in relevant places.
Denis Vlasenko
2007-04-10 15:43:37 +00:00
163516da3a
- very minor shrinkage (-3b)
Bernhard Reutner-Fischer
2007-04-10 14:16:19 +00:00
de17ece1db
- use skip_non_whitespace() where appropriate
Bernhard Reutner-Fischer
2007-04-10 09:38:35 +00:00
8b1fab2879
- add prototype for str_tolower()
Bernhard Reutner-Fischer
2007-04-10 09:38:07 +00:00
7e8a53a335
- add libbb function str_tolower to convert a string to lowercase. - shrink wget a bit
Bernhard Reutner-Fischer
2007-04-10 09:37:29 +00:00
3f3aa2a57d
make xfunctions optionally longjump instead of exit. use it for making NOFORK more practical. touch: make it a NOFORK applet
Denis Vlasenko
2007-04-09 21:35:07 +00:00
cd7001f705
factor out NOFORK/NOEXEC code from find. Use it for xargs too.
Denis Vlasenko
2007-04-09 21:32:30 +00:00
53d445aa75
wait4pid: if passed with pid < 0, do not set errno - it is already set by exec!
Denis Vlasenko
2007-04-09 13:21:33 +00:00
7e754f12d3
Implement first instance of NOFORK applet - echo find: use NOFORK/NOEXEC; small -exec buglet also eliminated vfork_daemon_rexec: honor PREFER_APPLETS echo: small size improvements
Denis Vlasenko
2007-04-09 13:04:50 +00:00
c44ab01b75
Improve STANDALONE_SHELL. "safe" applets are renamed NOEXEC applets and now this fact is recorded in applets.h, not ash.c.
Denis Vlasenko
2007-04-09 03:11:58 +00:00
fdf63a30fe
docs: "how to add a patch"
Denis Vlasenko
2007-04-07 09:35:56 +00:00
540a2a1f3b
libiproute: audit callgraph, shortcut error paths into die() functions. Kill a few statics, made other globals smaller: oneline is smallint, _SL_ is char
Denis Vlasenko
2007-04-07 01:14:45 +00:00
fbd2918f5c
udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. a few global variables reduced to smallints function old new delta add_lease 75 227 +152 static.blank_chaddr - 16 +16 MAC_BCAST_ADDR - 6 +6 sockfd 4 8 +4 udhcp_run_script 1153 1155 +2 state 8 5 -3 listen_mode 4 1 -3 perform_release 152 148 -4 fd 8 4 -4 blank_chaddr 16 - -16 udhcpc_main 2518 2497 -21 .rodata 131864 131832 -32 oldest_expired_lease 61 - -61 clear_lease 127 - -127 ------------------------------------------------------------------------------ (add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271) Total: -91 bytes
Denis Vlasenko
2007-04-07 01:05:47 +00:00
5f42d26865
nc: missed exit() in signal handler
Denis Vlasenko
2007-04-05 20:57:10 +00:00
29fe7265b8
nc: port nc 1.10 to busybox
Denis Vlasenko
2007-04-05 20:26:28 +00:00
00c2c4868a
- clean up addgroup, fix adding users to existing groups and make it optional (Tito)
Bernhard Reutner-Fischer
2007-04-05 13:16:39 +00:00
45aebfd32d
- bail out if either file does not exist Avoids filling my scrollback-buffer with superfluous information ;)
Bernhard Reutner-Fischer
2007-04-05 12:27:12 +00:00
2e75dcc80d
- add -s|--spider which only checks if the file exists but does not download it's content. Closes#1291
Bernhard Reutner-Fischer
2007-04-05 10:31:47 +00:00
6d79dd66cb
- size and prune were mixed up
Bernhard Reutner-Fischer
2007-04-05 09:40:12 +00:00
bdd253e450
- fix segfault in reset_ino_dev_hashtable() when *hashtable was null. Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled.
Bernhard Reutner-Fischer
2007-04-05 09:21:24 +00:00
7d6c9296e7
find: missed 'ststic' on const data
Denis Vlasenko
2007-04-05 00:35:43 +00:00
56fce00fc7
find: un-DESKTOPize (Kai Schwenzfeier <niteblade@gmx.net>) find: -group, -depth (Natanael Copa <natanael.copa@gmail.com>) find: make constant array static, declare PARM_xx constants with enum
Denis Vlasenko
2007-04-04 23:41:35 +00:00
febe3c4211
- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"
Bernhard Reutner-Fischer
2007-04-04 20:52:03 +00:00
d9c2d5fe4f
- minor shrinkage text data bss dec hex filename 1431 0 4 1435 59b tail.o.orig 1396 0 0 1396 574 tail.o
Bernhard Reutner-Fischer
2007-04-04 20:29:15 +00:00
2a47dea263
- remove bss users. Shrinkage while at it. See XXX for further, pre-existing bugs text data bss dec hex filename 1969 0 32 2001 7d1 dd.o.oorig 1941 0 0 1941 795 dd.o
Bernhard Reutner-Fischer
2007-04-04 14:01:23 +00:00
3a60244ae9
- remove some bss users. text data bss dec hex filename 6220 8 14 6242 1862 stty.o.oorig 6219 8 0 6227 1853 stty.o
Bernhard Reutner-Fischer
2007-04-04 13:59:49 +00:00
0e6ab01c5a
- remove superfluous bss user (flags) and manually unswitch some areas: text data bss dec hex filename 4517 0 34 4551 11c7 stat.o.oorig 4300 0 30 4330 10ea stat.o
Bernhard Reutner-Fischer
2007-04-04 13:58:33 +00:00
794687947f
Add/improve comment, shorten some usage texts. No code changes.
Denis Vlasenko
2007-04-04 11:02:55 +00:00
64a15124e7
ipsvd: use IP:PORT syntax for environment vars. Pros: 1. it's saner (matches internal libc sockaddr abstraction). 2. it's smaller. Cons: not compatible with smarden's ipsvd. Fix IPv6 define typos. Stop interpreting options in prog's args. Code size -162 bytes.
Denis Vlasenko
2007-04-04 10:16:15 +00:00
02fd66885c
ipsvd: make udpsvd work similar to tcpsvd (multiple parallel children for several streams of udp packets tested to work) code size: -509 bytes
Denis Vlasenko
2007-04-03 23:23:10 +00:00
b933ac1e25
ipsvd: fixes and improvements after testing
Denis Vlasenko
2007-04-03 12:09:46 +00:00
992e05b6f0
udpsvd: more work on it. works in limited testing.
Denis Vlasenko
2007-04-03 01:13:04 +00:00
cea0a8bccb
- use bb_error_msg
Bernhard Reutner-Fischer
2007-04-02 17:01:22 +00:00
8025afad8a
- use xregcomp. Untested. vda, isn't there a regfree missing here? text data bss dec hex filename 2522 0 0 2522 9da expr.o.r18305 2478 0 0 2478 9ae expr.o
Bernhard Reutner-Fischer
2007-04-02 16:54:41 +00:00
3c5929a53b
- remove some unneeded forward declarations. No obj-code changes.
Bernhard Reutner-Fischer
2007-04-02 16:41:24 +00:00
adb01b1583
- remove args from bss, minor misc shrinkage while at it. text data bss dec hex filename 2577 0 4 2581 a15 expr.o 2522 0 0 2522 9da expr.o
Bernhard Reutner-Fischer
2007-04-02 16:38:13 +00:00
729bd9e0b0
test: comment out unused code udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C
Denis Vlasenko
2007-04-02 12:37:28 +00:00
2856dab477
tcpsvd: new applet It's a GPL-ed 'clone' of Dan Bernstein's tcpserver. Author: Gerrit Pape <pape@smarden.org> http://smarden.sunsite.dk/ipsvd/ size tcpsvd.o text data bss dec hex filename 2571 4 16 2591 a1f tcpsvd.o
Denis Vlasenko
2007-04-01 01:18:20 +00:00
f443bffd3c
lash: make -c work; crush buffer overrun and free of non-malloced ptr (from Mats Erik Andersson <mats.andersson64@comhem.se>)
Denis Vlasenko
2007-03-31 11:08:50 +00:00