68286770b6
Patch from Shaun Jackman to detect "name=value" variable assignments. Random cleanup at the end by me to make some unrelated #ifdefs go away...
Rob Landley
2006-06-13 19:01:30 +00:00
f946379599
Make lash smaller. (Use llist_t for file closing, and different allocation functions.)
Rob Landley
2006-06-13 18:50:20 +00:00
7c7b0d7437
Rewrite of dmesg, smaller and simpler.
Rob Landley
2006-06-13 18:31:04 +00:00
18958e9309
Random cleanup of platform.h.
Rob Landley
2006-06-13 18:28:33 +00:00
0960ca7383
Work around a persistent uClibc bug, since 0.9.29 still hasn't shipped. Poked to do this by Jason Schoon.
Rob Landley
2006-06-13 18:27:16 +00:00
19a3940f15
Patch from Denis Vlasenko: * Rename a var: statbytes -> transferred * cursize == transferred, always. Nuke cursize. * Make progressmeter() a nop if !CONFIG_FEATURE_WGET_STATUSBAR (reduces #ifdef forest) * double elapsed -> int elapsed * Do not sprintf to buf first and then write(STDERR) it, just fprintf directly to stderr * Progress bar printing code made smaller * Style fixes
Rob Landley
2006-06-13 17:10:26 +00:00
76ef08c5e3
Whitespace cleanup from Denis Vlasenko.
Rob Landley
2006-06-13 16:44:26 +00:00
7900b7b9b9
Use -ffunction-sections -fdata-sections --gc-sections if the compiler supports it. If nothing else, this gives us better granularity in bloatcheck.
Rob Landley
2006-06-13 16:17:16 +00:00
c4b673994e
Use xstat() instead of if(stat()) die()
Rob Landley
2006-06-13 16:09:16 +00:00
fd8409f8c5
Patch from Denis Vlasenko, tweak error messages.
Rob Landley
2006-06-13 15:31:39 +00:00
9a1a9de49f
Minor size shrinkage.
Rob Landley
2006-06-13 15:12:14 +00:00
9a202c9daa
Patch from Denis Vlasenko: unlzma was make files with mode 777. Tweak everything to do stat() and use xopen3().
Rob Landley
2006-06-13 14:54:42 +00:00
1dea55d577
Fix from Paul Fox to make compressed help text notice config changes.
Rob Landley
2006-06-13 14:37:14 +00:00
7b8ff22685
- make VERBOSE= and V= work equally; use BUILD_VERBOSE internally. - move the link flags to cmd_link* so they are printed when requesting verbose output
Bernhard Reutner-Fischer
2006-06-13 14:20:17 +00:00
2f6a317944
- fix stupid typo from last checkin
Bernhard Reutner-Fischer
2006-06-12 14:34:01 +00:00
f81ac42689
- remove superfluous CONFIG_BEGIN and CONFIG_END
Bernhard Reutner-Fischer
2006-06-11 18:04:23 +00:00
a926f8e50a
- add fancy mode to start-stop-daemon to support --oknodo and --verbose
Bernhard Reutner-Fischer
2006-06-11 17:24:01 +00:00
081b1ac6b4
- invert logic for nocheck_targets to exclude the empty default target.
Bernhard Reutner-Fischer
2006-06-11 16:41:10 +00:00
e5de38497a
- don't check for toolchain-setting for make targets that don't need them - we already depend on sed, so do away with tr. Avoids pulling in yet another dependency.
Bernhard Reutner-Fischer
2006-06-10 14:58:33 +00:00
b25f98a417
- fix two segfaults (reported by Horst Kronstorfer) - remove dangling file if get fails (spotted and fixed by Jason Schoon) - shrink it (Bernhard Fischer) Thanks, all! text data bss dec hex filename 2684 0 0 2684 a7c networking/tftp.o.orig 2748 0 0 2748 abc networking/tftp.o.allfixed 2666 0 0 2666 a6a networking/tftp.o.+shrink
Bernhard Reutner-Fischer
2006-06-10 14:15:03 +00:00
3b1936dcf9
- use bb_xbind Thanks Erik Hovland
Bernhard Reutner-Fischer
2006-06-10 11:39:09 +00:00
44e216f264
- use bb_xchdir instead of ignoring eventual errors of chdir Thanks to Erik Hovland
Bernhard Reutner-Fischer
2006-06-10 11:29:44 +00:00
2d1a6e7c1f
- fix bug #887, in bb_get_chomped_line_from_file(), the last char was removed unconditionally, even if it was not a newline. This was apparently broken by r14254 - whitespace while at it.
Bernhard Reutner-Fischer
2006-06-10 11:04:43 +00:00
6ba8bbe88a
add ordering warning on enum Location
Paul Fox
2006-06-09 12:25:10 +00:00
1e23b6fdb5
- make sure that we see string_insert only if we need it.
Bernhard Reutner-Fischer
2006-06-09 07:12:27 +00:00
7ba12c6957
remove leading "Enable" from the config option text. not only is it redundant, but it made the menuconfig shortcut mechanism mostly useless, since so many of the entries started with 'E'.
Paul Fox
2006-06-08 21:48:47 +00:00
6ab037872f
made "test" an ash built-in.
Paul Fox
2006-06-08 21:37:26 +00:00
176f2df69b
Patch from Erik Hovland, via Tito.
Rob Landley
2006-06-08 14:19:48 +00:00
9c6f9552ec
Some day, maybe gcc will be able to optimize out static functions that are never used so we don't have to #ifdef them. Wouldn't that be nice?
Rob Landley
2006-06-08 14:11:36 +00:00
2e7dfc179c
need prototype for new vfork_daemon()
Mike Frysinger
2006-06-07 21:58:57 +00:00
9be7435203
initial support for no-mmu systems
Mike Frysinger
2006-06-07 21:48:43 +00:00
6fb5847faf
sometimes daemonizing and vfork()/exit() is ok
Mike Frysinger
2006-06-07 21:48:30 +00:00
ca70774293
bb_xdaemon() isnt available on no-mmu systems
Mike Frysinger
2006-06-07 21:47:34 +00:00
373af43bb0
comment all fields
Mike Frysinger
2006-06-07 21:37:59 +00:00
2fc534f3f1
hint at where the Magic comes from
Mike Frysinger
2006-06-07 21:37:49 +00:00
f915a77386
- do away with the comment that noted that the current implementation unly supports linux.
Bernhard Reutner-Fischer
2006-06-07 21:26:09 +00:00
6d8ce170b0
Fix from Tito to read from stdin only when it's not a tty.
Rob Landley
2006-06-07 21:22:42 +00:00
5929edc1fa
- spelling
Bernhard Reutner-Fischer
2006-06-07 20:30:01 +00:00
301ad67912
add reference to proc(5)
Mike Frysinger
2006-06-07 20:24:34 +00:00
19008b8373
- reuse strings and messages. Saves about 600B
Bernhard Reutner-Fischer
2006-06-07 20:17:41 +00:00
4c5ad2fc90
Consolidate devfs garbage and mark it as obsolete.
Rob Landley
2006-06-07 20:11:53 +00:00
830d258dee
use bb_xbind/bb_xlisten
Mike Frysinger
2006-06-07 20:06:24 +00:00
828d6bb3bc
whitespace
Mike Frysinger
2006-06-07 20:04:13 +00:00
62a2c15376
whitespace
Mike Frysinger
2006-06-07 20:03:13 +00:00
e3fdf2431a
add a --noclobber flag
Mike Frysinger
2006-06-07 18:12:27 +00:00
81514ecca3
add support for cleaning out previous busybox install
Mike Frysinger
2006-06-07 18:08:25 +00:00
74b29a107f
dont install emtpy libdirs
Mike Frysinger
2006-06-07 17:27:46 +00:00
55b12105b5
dont mix tabs and spaces, kthx
Mike Frysinger
2006-06-07 17:24:29 +00:00
bc6584977a
remove cvs $Id tag
Mike Frysinger
2006-06-07 16:31:05 +00:00
16d3e4e0af
- add applet taskset to set/retrieve the CPU affinity of a process text data bss dec hex filename 584 0 0 584 248 taskset.o.gcc-2.95 509 0 0 509 1fd taskset.o.gcc-3.3 505 0 0 505 1f9 taskset.o.gcc-3.4 506 0 0 506 1fa taskset.o.gcc-4.0 498 0 0 498 1f2 taskset.o.gcc-4.1 495 0 0 495 1ef taskset.o.gcc-4.2-HEAD
Bernhard Reutner-Fischer
2006-06-07 15:44:59 +00:00
ea93f8a397
Tito writes: this patch fixes two potential bugs with the -i -I flags that could be reset during option parsing
Mike Frysinger
2006-06-07 14:25:22 +00:00
e0387a6ee8
- fix the build if we have ftpput without ftpget (speeling reeoe) Thanks to Stephane Billiart
Bernhard Reutner-Fischer
2006-06-07 13:31:59 +00:00
0753f4a15e
Callers to identify() converted the endianness of the buffer. So did identify(). This meant big endian systems had a NUXI problem. Removed the redundant conversion from the callers, and made some in-passing cleanups while I was there.
Rob Landley
2006-06-07 00:27:25 +00:00
eb29d6ce6a
Remove a config entry that leaked in from my tree before I decided to implement cat -v as a separate applet.
Rob Landley
2006-06-06 22:59:37 +00:00
c44ab02f15
Whack the one last warning in make allbareconfig...
Rob Landley
2006-06-06 19:50:16 +00:00
280dae74b0
import support for microblaze relocations from uClinux-dist
Mike Frysinger
2006-06-06 06:30:32 +00:00
2a13175440
make the default prompt suck less when using fancy prompts
Mike Frysinger
2006-06-06 06:26:12 +00:00
75c6b7962d
fix from uClinux-dist for proper exit status if reading /proc/modules failed
Mike Frysinger
2006-06-06 06:19:19 +00:00
b306cb767f
merge blackfin/microblaze from uClinux-dist
Mike Frysinger
2006-06-06 06:15:52 +00:00
8e640a1043
use vfork() instead of vork() since the only thing we do is execve() an app after fork (allows time to work on no-mmu)
Mike Frysinger
2006-06-06 06:08:34 +00:00
b16b5bb08f
only check __GNU_LIBRARY__ if it is actually defined
Mike Frysinger
2006-06-06 06:00:20 +00:00
362dc2bf33
Header cleanup on two more networking files (move libbb.h to the top and remove #includes that libbb.h already does), plus a minor cleanup of libbb.h to move #includes towards the top of the file where we can see 'em.
Rob Landley
2006-06-05 17:35:24 +00:00
12d87550a3
Confirming it's not needed.
Rob Landley
2006-06-05 17:32:44 +00:00
bc291dc731
- add note about need to unify the 4 itoa() implementations.
Bernhard Reutner-Fischer
2006-06-05 16:00:12 +00:00
213cc00445
- add note about ingroup and is_a_group_member
Bernhard Reutner-Fischer
2006-06-04 17:58:19 +00:00
863073da08
- add note about removing superfluous fmt specifiers
Bernhard Reutner-Fischer
2006-06-04 16:05:02 +00:00
395010b1f0
- note to cleanup fprintf(2,...) -> bb_error_msg(...) and perror("bar") -> bb_perror_msg("bar");
Bernhard Reutner-Fischer
2006-06-04 15:37:59 +00:00
1b9d7c9aa9
- use bb_msg_{read,write}_error where appropriate. text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox
Bernhard Reutner-Fischer
2006-06-03 22:45:37 +00:00
a3d4bf38b0
- use bb functions instead of handrolling stuff. - add XXX question about supposedly superfluous else clause text data bss dec hex filename 5918 0 0 5918 171e editors/sed.o.orig 5901 0 0 5901 170d editors/sed.o
Bernhard Reutner-Fischer
2006-06-03 21:40:11 +00:00
e84f4343b2
Remove #ifdeffed out code, both KEEP_UNUSED and #if 0.
Rob Landley
2006-06-03 21:23:20 +00:00
5084c78cbe
- remove superfluous call of stack_machine(0) upon exit.
Bernhard Reutner-Fischer
2006-06-03 21:19:09 +00:00
5f6d67b7d6
- no need to have timer_duration in the data section. - cleanup a little bit while at it.
Bernhard Reutner-Fischer
2006-06-03 20:53:18 +00:00
b1312c9125
- use bb_msg_write_error in 3 places - whitespace
Bernhard Reutner-Fischer
2006-06-03 20:09:02 +00:00
c89982dcd7
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early.
Bernhard Reutner-Fischer
2006-06-03 19:49:21 +00:00
deda6a5c0d
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it.
Bernhard Reutner-Fischer
2006-06-03 19:35:15 +00:00
2c351a8f98
- patch from Yann E. Morin: makes modprobe understand shell patterns (especially '*') in module aliases, such as: "alias usb:v0582p0075d*dc*dsc*dp*ic*isc*ip* snd_usb_audio"
Bernhard Reutner-Fischer
2006-06-03 19:08:49 +00:00
5c0ae06ef1
- No options should set the current system time. Shaun Jackman writes: A bug introduced in svn 11946 broke rdate. It no longer sets the current system time when no options are specified. The options have the opposite sense from what one might think, and, oddly enough, -ps is intentionally a no-op.
Bernhard Reutner-Fischer
2006-06-03 10:24:20 +00:00
9a990aaba8
Patch from Atsushi Nemoto: This patch make depmod.pl more robust in cross environment. If native nm did not recognize target's object, you can override it with NM environment variable.
Rob Landley
2006-06-02 21:30:40 +00:00
e15d7573a1
- move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early.
Bernhard Reutner-Fischer
2006-06-02 20:56:16 +00:00
ecae66ac16
Header cleanup: don't #include headers that libbb.h already includes.
Rob Landley
2006-06-02 20:53:38 +00:00
ff97ee9abd
#ifdef reduction.
Rob Landley
2006-06-02 19:03:01 +00:00
3132e9d830
use xmalloc()
Mike Frysinger
2006-06-02 06:30:30 +00:00
f0327f8e98
fix fdflish typo (reported by erik hovland)
Paul Fox
2006-06-02 03:37:16 +00:00
b5353a20f3
- look at bb_applet_name. Should close bugs #892 and #893 also restructure code a bit so the fix only adds 1 byte..
Bernhard Reutner-Fischer
2006-06-01 18:30:42 +00:00
d04e9b8130
- shrink logread a bit. text data bss dec hex filename 862 26 188 1076 434 logread.o.orig 825 26 188 1039 40f logread.o
Bernhard Reutner-Fischer
2006-06-01 14:36:14 +00:00
d112f8fa5e
make halt and poweroff messages more accurate (i.e., claim "we're about to", rather than "it's done", and combine with reboot handler to save space.
Paul Fox
2006-06-01 13:17:49 +00:00
8fc32d9326
Shaun Jackman pointed out that KERNEL_VERSION() is used without guards, so defining it in a guard is silly.
Rob Landley
2006-06-01 00:52:30 +00:00
317a45cb62
The common case APPLET() macro only needs three arguments.
Rob Landley
2006-06-01 00:51:38 +00:00
9b1857f79f
Bugfix from Shaun Jackman: don't attempt to write 64 bytes and then fail if the write wasn't 192 bytes long.
Rob Landley
2006-05-31 23:54:50 +00:00
d5b9b60fa5
Add CONFIG_NITPICK. (And tweak a couple other help entries while I'm there.)
Rob Landley
2006-05-31 23:23:42 +00:00
0620841758
Patch from Tito to remove long options from hdparm.
Rob Landley
2006-05-31 22:52:57 +00:00
c8b360ebb7
Use BB endianness macro.
Rob Landley
2006-05-31 22:24:33 +00:00
b623a542df
Header file cleanup. platform.h apparently needs to be included early on so it can figure out what header files to include, and override stuff that comes later. But applets shouldn't include platform.h directly, they should include busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h to the top of busybox.h and platform.h near the top of libbb.h (right after bbconfig.h, which is something platform.h also needs access to).
Rob Landley
2006-05-31 22:09:03 +00:00
8abbee474c
Add catv (separate applet instead of cat -v). Also cleanup cat.c comments, the following of which (from cat.c) belongs in svn history instead of the source code:
Rob Landley
2006-05-31 19:36:04 +00:00
9a5686b605
- fix IMA compile error i introduced when adding this untested snippet.
Bernhard Reutner-Fischer
2006-05-31 18:57:56 +00:00
dac033e98c
ha! a scratch-buffer! ;) put the isdigit hack into it to help landley out..
Bernhard Reutner-Fischer
2006-05-31 15:36:20 +00:00