290fcb4213
Undo all of the ugliness and some of the bloat from 15412.
Rob Landley
2006-06-18 23:59:03 +00:00
ea224be6aa
skip_whitespace() shouldn't claim its return value is const, it doesn't know that and callers wind up typecasting it back.
Rob Landley
2006-06-18 20:20:07 +00:00
14d7065ef1
Make this slightly more readable, and expose the hypocrasy of a comment that says "our implementation makes it impossible to use blocksizes smaller than 22 octets" right above a check for blocksize < 8.
Rob Landley
2006-06-18 15:23:13 +00:00
b000586d02
danf writes: stty doesn't support baud rates > 460800 bps, the attached patch adds support for all baud rates supported by Linux 2.6.16 on x86.
Mike Frysinger
2006-06-17 22:41:28 +00:00
fe3d844bb1
Make it so Erik has to forward me less email.
Rob Landley
2006-06-16 22:29:03 +00:00
6d82f94681
- do away with the fwd-decls of functions. Should not contain any code changes AFAICT.
Bernhard Reutner-Fischer
2006-06-16 16:37:07 +00:00
d9a761d9c3
Revert svn 15333. If you vfork, you must either exec or exit. (The parent is blocked until you do so.)
Rob Landley
2006-06-16 16:35:53 +00:00
1449a2014a
This directory was fallout from the great feature freeze of 2003, which led up to the 1.00 release. I just moved what was left of it to http://busybox.net/~landley/pending because it does _not_ belong in the tree anymore.
Rob Landley
2006-06-16 15:08:59 +00:00
747041955e
- hide CONFIG_GETOPT_LONG for the 1.2.0 release. Turned on per default. I will revisit this and make sure that run-parts and ifupdown are fixed; hdparm needs treatment too..
Bernhard Reutner-Fischer
2006-06-16 14:03:23 +00:00
f5efa7bfeb
- add patch to provide a target 'html' to build a cross-reference of the source
Bernhard Reutner-Fischer
2006-06-16 12:45:29 +00:00
fd4b61d5f3
- add needed includes and include busybox.h needed for the ATTRIBUTE define.
Bernhard Reutner-Fischer
2006-06-16 12:28:39 +00:00
bc8c50351f
Remove warnings caused by #include <sys/mount.h> in platform.h. Apparently we redefine a lot of stuff from standard header files...
Rob Landley
2006-06-16 04:25:19 +00:00
9947a244d4
Patch from Rich Felker: - duplicated format bit 14 forced LIST_EXEC always-on - -p option was behaving just like -F (SUSv3 says -p only shows / for dirs, not other special symbols) - tests for LIST_EXEC in color functions were nonsense (constant tests). i assume they were supposed to be (all_fmt & LIST_EXEC) however having coloring of executable files depend on -F seems undesirable.
Rob Landley
2006-06-15 22:11:10 +00:00
1761b9dabe
- use shorter boilerplate, more accurate header guard - don't use multi-line string literals
Bernhard Reutner-Fischer
2006-06-15 21:56:28 +00:00
7011dd0e06
- drats.
Bernhard Reutner-Fischer
2006-06-15 21:39:34 +00:00
42f091a761
- let the scripts be prerequisites of the files the generate - make sure that bbconfig isn't too stupid
Bernhard Reutner-Fischer
2006-06-15 21:35:35 +00:00
39218932b1
Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess's test case to the testsuite, plus another one that would have been broken by the first attempt at a fix.
Rob Landley
2006-06-15 20:50:38 +00:00
cd82c3c041
Don't do workarounds for broken shells. Busybox is about to grow a shell that we can run our own testsuite under, and I want it to handle the full range of strange and peverted behavior you can find in real world shell scripts. In the meantime, I'll just say #!/bin/bash in places that may care.
Rob Landley
2006-06-15 20:07:57 +00:00
04b7ef967b
Jens Michaelsen pointed out that Linksys' firmware download side moved.
Rob Landley
2006-06-15 17:34:57 +00:00
148734df99
We came up with our own names for ATTRIBUTE_*, so why check if they're already #defined? Also remove a check for a gcc version older than RH9 (if non-linux needs that #define they can put it in their section.)
Rob Landley
2006-06-15 16:00:42 +00:00
22d26fc6ae
Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
Rob Landley
2006-06-15 15:49:36 +00:00
d6e5083d16
Help text update for libbb, talking about make standalone.
Rob Landley
2006-06-15 15:04:53 +00:00
e2c7d34051
- there is no "CONFIG_STANDALONE" in the repository. Also iff there was a CONFIG_STANDALONE, we'd need to toggle this on per default.
Bernhard Reutner-Fischer
2006-06-14 17:33:57 +00:00
597e70e9e4
- rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP
Bernhard Reutner-Fischer
2006-06-14 17:32:11 +00:00
32bf1f9d42
- rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP so it's off in defconfig - expand the cmd_get/cmd_put macros - Jason Schoon writes: unlink only if non-stdio
Bernhard Reutner-Fischer
2006-06-14 17:29:10 +00:00
f1bd42a305
- correct typo
Bernhard Reutner-Fischer
2006-06-14 16:51:50 +00:00
df798b7f58
- minor size tweak text data bss dec hex filename 613 0 0 613 265 loginutils/su.o.orig 605 0 0 605 25d loginutils/su.o
Bernhard Reutner-Fischer
2006-06-14 16:36:45 +00:00
66e3a222cd
- minor shrinkage
Bernhard Reutner-Fischer
2006-06-14 16:17:50 +00:00
d760560c52
Attempt at fixing bug 836, vaguely based on patch from somebody named clausmuus, forwarded to me by Yann E. Morin.
Rob Landley
2006-06-14 01:51:16 +00:00
a34b48abe5
Upgrade the standalone shell code to use CONFIG_BUSYBOX_EXEC_PATH.
Rob Landley
2006-06-14 01:27:01 +00:00
c7ddefc062
Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are at the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.)
Rob Landley
2006-06-14 01:24:33 +00:00
575c8bacda
Don't break allbareconfig.
Rob Landley
2006-06-13 21:30:09 +00:00
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
bbc81fe9f4
- 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:05:12 +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