Bernhard Reutner-Fischer
f087798e8b
- convert old-style parameter declarations (K&R) to modern style.
2006-06-25 22:08:53 +00:00
Bernhard Reutner-Fischer
35492137f8
- add note about strict ordering
2006-06-21 18:19:53 +00:00
Bernhard Reutner-Fischer
fa61ca7591
- add cross-reference generation target.
...
Experimental.
2006-06-16 17:19:39 +00:00
Bernhard Reutner-Fischer
6d82f94681
- do away with the fwd-decls of functions. Should not contain any code changes
...
AFAICT.
2006-06-16 16:37:07 +00:00
Bernhard Reutner-Fischer
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..
2006-06-16 14:03:23 +00:00
Bernhard Reutner-Fischer
f5efa7bfeb
- add patch to provide a target 'html' to build a cross-reference of the source
2006-06-16 12:45:29 +00:00
Bernhard Reutner-Fischer
fd4b61d5f3
- add needed includes and include busybox.h needed for the ATTRIBUTE define.
2006-06-16 12:28:39 +00:00
Bernhard Reutner-Fischer
1761b9dabe
- use shorter boilerplate, more accurate header guard
...
- don't use multi-line string literals
2006-06-15 21:56:28 +00:00
Bernhard Reutner-Fischer
7011dd0e06
- drats.
2006-06-15 21:39:34 +00:00
Bernhard Reutner-Fischer
42f091a761
- let the scripts be prerequisites of the files the generate
...
- make sure that bbconfig isn't too stupid
2006-06-15 21:35:35 +00:00
Bernhard Reutner-Fischer
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.
2006-06-14 17:33:57 +00:00
Bernhard Reutner-Fischer
597e70e9e4
- rename CONFIG_FEATURE_TFTP_DEBUG to CONFIG_DEBUG_TFTP
2006-06-14 17:32:11 +00:00
Bernhard Reutner-Fischer
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
2006-06-14 17:29:10 +00:00
Bernhard Reutner-Fischer
f1bd42a305
- correct typo
2006-06-14 16:51:50 +00:00
Bernhard Reutner-Fischer
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
2006-06-14 16:36:45 +00:00
Bernhard Reutner-Fischer
66e3a222cd
- minor shrinkage
2006-06-14 16:17:50 +00:00
Bernhard Reutner-Fischer
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
2006-06-13 14:20:17 +00:00
Bernhard Reutner-Fischer
2f6a317944
- fix stupid typo from last checkin
2006-06-12 14:34:01 +00:00
Bernhard Reutner-Fischer
f81ac42689
- remove superfluous CONFIG_BEGIN and CONFIG_END
2006-06-11 18:04:23 +00:00
Bernhard Reutner-Fischer
a926f8e50a
- add fancy mode to start-stop-daemon to support --oknodo and --verbose
2006-06-11 17:24:01 +00:00
Bernhard Reutner-Fischer
081b1ac6b4
- invert logic for nocheck_targets to exclude the empty default target.
2006-06-11 16:41:10 +00:00
Bernhard Reutner-Fischer
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.
2006-06-10 14:58:33 +00:00
Bernhard Reutner-Fischer
62f9856f54
- revert incorrect select change
2006-06-10 14:32:56 +00:00
Bernhard Reutner-Fischer
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
2006-06-10 14:15:03 +00:00
Bernhard Reutner-Fischer
3b1936dcf9
- use bb_xbind
...
Thanks Erik Hovland
2006-06-10 11:39:09 +00:00
Bernhard Reutner-Fischer
44e216f264
- use bb_xchdir instead of ignoring eventual errors of chdir
...
Thanks to Erik Hovland
2006-06-10 11:29:44 +00:00
Bernhard Reutner-Fischer
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.
2006-06-10 11:04:43 +00:00
Bernhard Reutner-Fischer
1e23b6fdb5
- make sure that we see string_insert only if we need it.
2006-06-09 07:12:27 +00:00
Bernhard Reutner-Fischer
f915a77386
- do away with the comment that noted that the current implementation
...
unly supports linux.
2006-06-07 21:26:09 +00:00
Bernhard Reutner-Fischer
5929edc1fa
- spelling
2006-06-07 20:30:01 +00:00
Bernhard Reutner-Fischer
19008b8373
- reuse strings and messages. Saves about 600B
2006-06-07 20:17:41 +00:00
Bernhard Reutner-Fischer
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
2006-06-07 15:44:59 +00:00
Bernhard Reutner-Fischer
e0387a6ee8
- fix the build if we have ftpput without ftpget (speeling reeoe)
...
Thanks to Stephane Billiart
2006-06-07 13:31:59 +00:00
Bernhard Reutner-Fischer
bc291dc731
- add note about need to unify the 4 itoa() implementations.
2006-06-05 16:00:12 +00:00
Bernhard Reutner-Fischer
1e34731a6a
- add testcase for grep bug ( http://busybox.net/bugs/view.php?id=887 )
...
The patch for bug #887 seems to work for me..
2006-06-04 18:40:48 +00:00
Bernhard Reutner-Fischer
213cc00445
- add note about ingroup and is_a_group_member
2006-06-04 17:58:19 +00:00
Bernhard Reutner-Fischer
863073da08
- add note about removing superfluous fmt specifiers
2006-06-04 16:05:02 +00:00
Bernhard Reutner-Fischer
395010b1f0
- note to cleanup fprintf(2,...) -> bb_error_msg(...) and
...
perror("bar") -> bb_perror_msg("bar");
2006-06-04 15:37:59 +00:00
Bernhard Reutner-Fischer
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
2006-06-03 22:45:37 +00:00
Bernhard Reutner-Fischer
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
2006-06-03 21:40:11 +00:00
Bernhard Reutner-Fischer
5084c78cbe
- remove superfluous call of stack_machine(0) upon exit.
2006-06-03 21:19:09 +00:00
Bernhard Reutner-Fischer
5f6d67b7d6
- no need to have timer_duration in the data section.
...
- cleanup a little bit while at it.
2006-06-03 20:53:18 +00:00
Bernhard Reutner-Fischer
b1312c9125
- use bb_msg_write_error in 3 places
...
- whitespace
2006-06-03 20:09:02 +00:00
Bernhard Reutner-Fischer
c89982dcd7
- move #include busybox.h to the very top so we pull in the config
...
and eventual platform specific includes in early.
2006-06-03 19:49:21 +00:00
Bernhard Reutner-Fischer
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.
2006-06-03 19:35:15 +00:00
Bernhard Reutner-Fischer
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"
Fixes bug #889
842162 10244 645924 1498330 16dcda busybox.old-4.1.20060603-1948
842178 10244 645924 1498346 16dcea busybox.new-4.1.20060603-1948
2006-06-03 19:08:49 +00:00
Bernhard Reutner-Fischer
62558765b9
2006-06-02 Shaun Jackman <sjackman@gmail.com>
...
* shell/lash.c (pseudo_exec) [_NEWLIB_VERSION]: Remove the
__getopt_initialized hackery.
2006-06-03 10:28:25 +00:00
Bernhard Reutner-Fischer
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.
Quoth rdate(8) from the BSD System Manager's Manual:
-p Do not set, just print the remote time
-s Do not print the time.
2006-06-03 10:24:20 +00:00
Bernhard Reutner-Fischer
e15d7573a1
- move #include busybox.h to the very top so we pull in the config
...
and eventual platform specific includes in early.
2006-06-02 20:56:16 +00:00
Bernhard Reutner-Fischer
cf1f2ace39
- fix CONFIG_DEBUG_INIT compile failure
2006-06-02 10:43:17 +00:00
Bernhard Reutner-Fischer
b5353a20f3
- look at bb_applet_name. Should close bugs #892 and #893
...
also restructure code a bit so the fix only adds 1 byte..
2006-06-01 18:30:42 +00:00
Bernhard Reutner-Fischer
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
2006-06-01 14:36:14 +00:00
Bernhard Reutner-Fischer
9a5686b605
- fix IMA compile error i introduced when adding this untested snippet.
2006-05-31 18:57:56 +00:00
Bernhard Reutner-Fischer
dac033e98c
ha! a scratch-buffer! ;)
...
put the isdigit hack into it to help landley out..
2006-05-31 15:36:20 +00:00
Bernhard Reutner-Fischer
f9437aaf5b
- make getopt_ulflags aware of CONFIG_GETOPT_LONG
2006-05-31 14:12:51 +00:00
Bernhard Reutner-Fischer
8d3a6f7aaf
- add CONFIG_FEATURE_WGET_LONG_OPTIONS
2006-05-31 14:11:38 +00:00
Bernhard Reutner-Fischer
f3ac9ebc8e
- convert xcalloc(1,x) to xzalloc
2006-05-31 13:31:16 +00:00
Bernhard Reutner-Fischer
595159f38c
- shrink klogd a bit
...
text data bss dec hex filename
569 0 0 569 239 sysklogd/klogd.o.orig
537 0 0 537 219 sysklogd/klogd.o
2006-05-31 12:22:13 +00:00
Bernhard Reutner-Fischer
c418d482ba
- s/defined(__uClinux__)/BB_NOMMU/
...
This needs a second pass to:
+ add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag)
+ eventually globally export argc and argv, so we don't need to pass it to
bb_daemon().
2006-05-31 10:19:51 +00:00
Bernhard Reutner-Fischer
507cd755a4
- conditionally define BB_NOMMU
2006-05-31 10:04:03 +00:00
Bernhard Reutner-Fischer
7ae1553980
- consolidate "Sending SIG%s to all processes"; untested..
...
text data bss dec hex filename
5379 32 8 5419 152b init/init.o.oorig
5358 32 8 5398 1516 init/init.o
2006-05-30 18:17:21 +00:00
Bernhard Reutner-Fischer
a8622e049d
- this could use a brother which deals with glibc based systems..
2006-05-30 15:49:10 +00:00
Bernhard Reutner-Fischer
c58dbf28e0
- remove useless variable "status" from init_main.
...
http://www.opengroup.org/onlinepubs/009695399/functions/waitpid.html suggests
that we need not specify a status if we don't want, and we don't.
"If wait() or waitpid() return because the status of a child process is available, these functions shall return a value equal to the process ID of the child process. In this case, if the value of the argument stat_loc is not a null pointer, information shall be stored in the location pointed to by stat_loc. "
text data bss dec hex filename
5391 32 8 5431 1537 init/init.o.06
5379 32 8 5419 152b init/init.o
2006-05-30 12:16:54 +00:00
Bernhard Reutner-Fischer
3ab3080bc2
- use config_buffer for message()
...
- add second argument to waitfor(*action,pid); if action==NULL then use pid tor
wait for. If an action was given, we wait for the action to finish just as
before. In run() remove second and third occurance of the same functionality
the waitfor() call now provides.
Adjust the former only caller of waitfor accordingly.
PS: Not using waitfor but creating a second function used a few bytes more than
simply extending and reusing waitfor.
text data bss dec hex filename
5426 32 8 5466 155a init/init.o.orig
5391 32 8 5431 1537 init/init.o
2006-05-30 12:10:29 +00:00
Bernhard Reutner-Fischer
077368194c
- cleanup conftest temporary files.
2006-05-29 20:01:52 +00:00
Bernhard Reutner-Fischer
35e1a077d6
- DEBUG_INIT -> config CONFIG_DEBUG_INIT
2006-05-29 13:08:35 +00:00
Bernhard Reutner-Fischer
76bb97c995
- landley, remove this?
2006-05-29 13:01:37 +00:00
Bernhard Reutner-Fischer
49e60b9788
- set_term() doesn't need an argument. (Like r15220 this is just compile-tested)
...
text data bss dec hex filename
5432 32 8 5472 1560 init/init.o.r15220
5426 32 8 5466 155a init/init.o
2006-05-29 12:57:52 +00:00
Bernhard Reutner-Fischer
0da069d382
- move common code into new open_new_terminal() function;
...
text data bss dec hex filename
864434 10244 645892 1520570 1733ba busybox_old
864386 10244 645892 1520522 17338a busybox_unstripped
add/remove: 1/0 grow/shrink: 0/2 up/down: 92/-143 (-51)
function old new delta
open_new_terminal - 92 +92
exec_signal 345 276 -69
run 1527 1453 -74
Again, 48 != 51 so let's trust the former..
2006-05-29 12:54:16 +00:00
Bernhard Reutner-Fischer
bbc225e13d
- just whitespace
2006-05-29 12:12:45 +00:00
Bernhard Reutner-Fischer
d2c306e862
- ls: remove unused variable
...
- dpkg.c, diff: use xstat
text data bss dec hex filename
848823 9100 645216 1503139 16efa3 busybox_old
848679 9100 645216 1502995 16ef13 busybox_unstripped
bloatcheck is completely useless as it sees -79 for this, which is bogus.
2006-05-29 12:10:23 +00:00
Bernhard Reutner-Fischer
95a040fac8
- use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit:
...
add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32)
function old new delta
static.add_interface 271 274 +3
static.glob3 36 38 +2
static.renice_main 409 408 -1
static.readcmd 1083 1081 -2
static.changepath 176 174 -2
static.parse_opts 56 51 -5
static.rx_main 1095 1088 -7
static.xargs_main 759 739 -20
----------------------------------------------------------------
Result :-) -32
2006-05-27 09:36:43 +00:00
Bernhard Reutner-Fischer
d765ee5d0f
- provide fallback defines for non-linux
2006-05-26 20:34:02 +00:00
Bernhard Reutner-Fischer
b21d23bd46
- provide fallback defines for non-linux
2006-05-26 20:33:12 +00:00
Bernhard Reutner-Fischer
01d23ade57
- add central knob to turn off getopt_long everywhere. EXPERIMENTAL!
...
Adds "Enable getopt long" under "General options", default y.
Send patches to fix getopt_ulflags and run_parts.c if you turn this off..
See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
2006-05-26 20:19:22 +00:00
Bernhard Reutner-Fischer
d29337580e
- use strtol instead of strtoll if the latter does not exist
...
- add and use wrapper for attribute
- add and use replacement for vasprintf if it is unavailable
2006-05-26 19:58:58 +00:00
Bernhard Reutner-Fischer
781e42d66c
- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).
...
- fix last.c to also look at the double-underscore UT_ defines.
2006-05-26 14:41:40 +00:00
Bernhard Reutner-Fischer
b180e5a766
- use portability wrapper define bb_setpgrp.
2006-05-26 14:24:56 +00:00
Bernhard Reutner-Fischer
08421e1d0c
- work around bug in gcc-3.4.x on ARM
2006-05-26 14:05:48 +00:00
Bernhard Reutner-Fischer
8379053b11
- move llist to top of file so we can potentially use it in all prototypes easily
2006-05-26 13:54:07 +00:00
Bernhard Reutner-Fischer
76b82cfd6f
- make find_mount_point conditional on df and eject; Fixes `make hosttools´ on
...
hosts where mntent.h does not exist.
2006-05-26 13:38:43 +00:00
Bernhard Reutner-Fischer
4ed1f1d99d
- add workaround for tar being broken since it uses a non-portable constant.
2006-05-26 13:34:25 +00:00
Bernhard Reutner-Fischer
7fca7e3378
- use the SED given by the user
...
- use the portable `` instead of $(). There is no bbsh, so this is needed.
2006-05-26 13:28:39 +00:00
Bernhard Reutner-Fischer
e28d1d6fdc
- add target hosttools (see make help)
...
- rename check_gcc to check_cc and pass the CC to use as arg#1; peruse check_cc for HOSTCFLAGS
- add and use check_strip
- add checks for {,no-}whole-archive and {start,end}-group LD flags
2006-05-26 13:22:57 +00:00
Bernhard Reutner-Fischer
6d0dbeb550
- use ATTRIBUTE_ALWAYS_INLINE if requested
...
- use shorter boilerplate while at it
2006-05-26 13:13:11 +00:00
Bernhard Reutner-Fischer
e00fc16aaa
- move libc checks from busybox.h to platform.h
...
- add ATTRIBUTE_ALWAYS_INLINE, endian handling for DEC UNIX, some more
compiler dependent defines to platform.h
- add conditional bb_setpgrp define to platform.h
- remove superfluous specifying args from "#define fdprintf dprintf"
2006-05-26 13:10:10 +00:00
Bernhard Reutner-Fischer
7fd9983c56
- patch from Tito to pretty print the overall delta
2006-05-26 10:29:40 +00:00
Bernhard Reutner-Fischer
89a22ea5d9
make the testsuite a little less brittle:
...
- 'function fn_name\n{' breaks on older FreeBSD default shells, so use the more
widely supported 'fn_name () {'. This needs more fixing..
- test for integers ought to use the proper operators
- test for strings ought to use quoting of the strings to be fair to strange
implementations of test(1)
- make sure not to ignore return-codes != 0 from commands; Some shells exit
immediately on this (much like explicitely requesting set -e in e.g. bash)
TODO:
*) Some older shells do not allow a space after the test-condition in an "if"
statement. This doesn't work:
if [ $status -ne 0 ] ; then
as opposed to this:
if [ $status -ne 0 ]; then
or this
if [ $status -ne 0 ]
then
*) strict spacing between commands. In some shells you have to say:
foo ; bar ; baz
The affected shells barf on stuff like ommitting the space, so this doesn't
work:
foo; bar ;baz
*) $() vs. ``
The former isn't really portable as opposed to the latter.
*) fix frong assumption that the testsuite is run from the source-dir.
This is a complete misconception and renders the testsuite completely useless.
That said, i note that IMO a test-harness ought to do it's best to work in
a wide variety of environments, everything else defeats it's purpose.
2006-05-25 13:24:02 +00:00
Bernhard Reutner-Fischer
a81cec9192
- set x bit
2006-05-21 22:06:59 +00:00
Bernhard Reutner-Fischer
4148afe049
- fix wrong path to scripts/usage; It is in the builddir and not in the srcdir.
...
- flag .depend as .NOTPARALLEL to workaround bug in make-3.80 and make-3.81
Some more details on the second workaround (i.e. kludge):
make-3.80 silently fails, while make-3.81 is at least self-conscious enough to
admit:
include/usage_compressed.h: .config scripts/usage
# Implicit rule search has not been done.
# File does not exist.
# File has not been updated.
# Dependencies commands running (THIS IS A BUG).
# commands to execute (from `/home/cow/src/bb2/Makefile', line 430):
$(Q)$(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@
I'm giving up on trying to run the rest of the prerequisites of .depend in
parallel and just (try to) indicate that the prerequisites of .depend are
not to be run in parallel.
While this makes `make distclean defconfig;make -j´ work for me, it is not a
real -- longterm -- solution; FIXME
2006-05-21 15:05:49 +00:00
Bernhard Reutner-Fischer
a1e130f122
- check for existing usage binary, so it get's more obvious that the toplevel
...
Makefile uses the wrong path to the binary (it's in top_builddir and not in top_srcdir)
2006-05-21 10:45:01 +00:00
Bernhard Reutner-Fischer
3c8c0690fd
- there is no _usage.h anymore, so don't rm it in distclean.
2006-05-21 10:04:46 +00:00
Bernhard Reutner-Fischer
30ead9a9b9
- do not create usage_compressed.h if CONFIG_FEATURE_COMPRESS_USAGE is not set
2006-05-21 09:02:12 +00:00
Bernhard Reutner-Fischer
1a5eb46820
- there is no "sh". Use $(SHELL)
2006-05-21 08:25:45 +00:00
Bernhard Reutner-Fischer
ef21629a6b
- silence warning about no return in function returning non-void
...
- put CONFIG_DEBUG_CROND_OPTION into config
no changes in size when debugging is disabled.
2006-05-20 14:14:05 +00:00
Bernhard Reutner-Fischer
35017fb4fc
- backout erroneously checked in snippet..
2006-05-19 20:48:22 +00:00
Bernhard Reutner-Fischer
b1629b1b2a
- remove emacs layout block as suggested by Robert P.J. Day
...
- use shorter boilerplate while at it
2006-05-19 19:29:19 +00:00
Bernhard Reutner-Fischer
d8e87a09d1
- forgot to make busybox_unstripped depend on the applets in IMA mode.
2006-05-19 18:37:34 +00:00
Bernhard Reutner-Fischer
c7801c4634
- use shorter boilerplate.
2006-05-19 18:35:03 +00:00
Bernhard Reutner-Fischer
351c832d75
- redirect stdout of scripts/config/conf to /nil for
...
allyesconfig, allnoconfig, defconfig, allbareconfig
- fix invalid call to "make"; use $(MAKE) instead.
2006-05-19 18:33:34 +00:00