Bernhard Reutner-Fischer [Fri, 26 May 2006 14:24:56 +0000 (14:24 -0000)]
- use portability wrapper define bb_setpgrp.
Bernhard Reutner-Fischer [Fri, 26 May 2006 14:05:48 +0000 (14:05 -0000)]
- work around bug in gcc-3.4.x on ARM
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:54:07 +0000 (13:54 -0000)]
- move llist to top of file so we can potentially use it in all prototypes easily
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:38:43 +0000 (13:38 -0000)]
- make find_mount_point conditional on df and eject; Fixes `make hosttools´ on
hosts where mntent.h does not exist.
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:34:25 +0000 (13:34 -0000)]
- add workaround for tar being broken since it uses a non-portable constant.
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:28:39 +0000 (13:28 -0000)]
- use the SED given by the user
- use the portable `` instead of $(). There is no bbsh, so this is needed.
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:22:57 +0000 (13:22 -0000)]
- 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
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:13:11 +0000 (13:13 -0000)]
- use ATTRIBUTE_ALWAYS_INLINE if requested
- use shorter boilerplate while at it
Bernhard Reutner-Fischer [Fri, 26 May 2006 13:10:10 +0000 (13:10 -0000)]
- 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"
Bernhard Reutner-Fischer [Fri, 26 May 2006 10:29:40 +0000 (10:29 -0000)]
- patch from Tito to pretty print the overall delta
Mike Frysinger [Fri, 26 May 2006 02:05:19 +0000 (02:05 -0000)]
Yann E. MORIN. writes:
hdparm has a uint64_t passed to printf with a %llu format (which is ok, because
it's the same size), but without first being casted(?) to unsigned long long int.
Which is kinda funny because it's done OK on a few lines above...
Mike Frysinger [Fri, 26 May 2006 01:56:42 +0000 (01:56 -0000)]
errno and h_errno values are not the same #876 by rfelker
Mike Frysinger [Fri, 26 May 2006 01:48:17 +0000 (01:48 -0000)]
fix spelling mistakes
Mike Frysinger [Fri, 26 May 2006 01:41:04 +0000 (01:41 -0000)]
check for queueing dependancy dependancies typos
Mike Frysinger [Fri, 26 May 2006 01:38:19 +0000 (01:38 -0000)]
queuing is spelled correctly
Rob Landley [Thu, 25 May 2006 23:02:40 +0000 (23:02 -0000)]
Rich Felker suggested removing dprintf() from watch, and one thing led to
another... This adds bb_xspawn() support, which does vfork/exec. (I don't
know why using a static instead of a local adds ~40 bytes, but using
the local doesn't work...)
Rob Landley [Thu, 25 May 2006 21:13:30 +0000 (21:13 -0000)]
And fix the error I just introduced. :)
Rob Landley [Thu, 25 May 2006 21:12:40 +0000 (21:12 -0000)]
Remove pointless #define.
Rob Landley [Thu, 25 May 2006 18:53:06 +0000 (18:53 -0000)]
Patch from Tito:
Remove -v verbose -V version -q quiet flags
Remove parse_opt_v2();
Rename parse_opt_v3() to parse_xfermode()
Remove if_strcat()
Rearrange code in dump_identity() to reduce size
Modify some strings so that they could be optimized by the compiler
Minor code clean up
Remove unneeded #define <shm.h>
#if BB_BIG_ENDIAN && !defined(__USE_XOPEN)
# define __USE_XOPEN
#endif
Must be before #include <unistd.h> and #include "busybox.h"
(noticed by Bernhard Fischer <rep.nop@aon.at>)
Remove duplicate code in do_time()
Rob Landley [Thu, 25 May 2006 18:31:11 +0000 (18:31 -0000)]
Remove a pointless #define.
Bernhard Reutner-Fischer [Thu, 25 May 2006 13:24:02 +0000 (13:24 -0000)]
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.
Rob Landley [Wed, 24 May 2006 17:58:00 +0000 (17:58 -0000)]
Two more issues pointed out by Bernhard.
Rob Landley [Wed, 24 May 2006 17:45:47 +0000 (17:45 -0000)]
Yann Morin spotted some leftover flotsam from halfway through the recent
llist.c interface change that accidentally got checked in. My bad.
Rob Landley [Tue, 23 May 2006 00:28:06 +0000 (00:28 -0000)]
It takes _talent_ to implement a version of nohup that does everything except
the actual blocking of HUP.
Bernhard Reutner-Fischer [Sun, 21 May 2006 22:06:59 +0000 (22:06 -0000)]
- set x bit
Rob Landley [Sun, 21 May 2006 18:33:27 +0000 (18:33 -0000)]
Convert to a global struct, the way sed was. Now I have two, I can work out
the infrastructure to merge global structs into a union...
Rob Landley [Sun, 21 May 2006 18:30:35 +0000 (18:30 -0000)]
Minor cleanups: Convert a few calloc() calls to xzalloc, remove unnecessary
memset, collate variable declarations...
Rob Landley [Sun, 21 May 2006 18:28:13 +0000 (18:28 -0000)]
New version of nohup that's much smaller, less paranoid, consistent,
vaguely portable, and licensed GPLv2 "or later".
Bernhard Reutner-Fischer [Sun, 21 May 2006 15:05:49 +0000 (15:05 -0000)]
- 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
Bernhard Reutner-Fischer [Sun, 21 May 2006 10:45:01 +0000 (10:45 -0000)]
- 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)
Bernhard Reutner-Fischer [Sun, 21 May 2006 10:04:46 +0000 (10:04 -0000)]
- there is no _usage.h anymore, so don't rm it in distclean.
Bernhard Reutner-Fischer [Sun, 21 May 2006 09:02:12 +0000 (09:02 -0000)]
- do not create usage_compressed.h if CONFIG_FEATURE_COMPRESS_USAGE is not set
Bernhard Reutner-Fischer [Sun, 21 May 2006 08:25:45 +0000 (08:25 -0000)]
- there is no "sh". Use $(SHELL)
Bernhard Reutner-Fischer [Sat, 20 May 2006 14:14:05 +0000 (14:14 -0000)]
- 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.
Rob Landley [Fri, 19 May 2006 22:54:42 +0000 (22:54 -0000)]
Patch from Robert P. Day to remove #ifdefed out SLIP support code that we
have no CONFIG option to enable, and which existing SLIP users don't seem
to miss.
Rob Landley [Fri, 19 May 2006 22:42:23 +0000 (22:42 -0000)]
Remove unused function parameter, from Garrett.
Rob Landley [Fri, 19 May 2006 22:14:19 +0000 (22:14 -0000)]
Add diffutils and dhcp to list of packages we provide replacements for.
Bernhard Reutner-Fischer [Fri, 19 May 2006 20:48:22 +0000 (20:48 -0000)]
- backout erroneously checked in snippet..
Rob Landley [Fri, 19 May 2006 20:47:55 +0000 (20:47 -0000)]
First quick stab at organizing TODO under whose TODO item it is.
Rob Landley [Fri, 19 May 2006 20:36:49 +0000 (20:36 -0000)]
A pending item in my tree I might as well check in: I plan to migrate calloc()
and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but
only takes one argument (the size).
Bernhard Reutner-Fischer [Fri, 19 May 2006 19:29:19 +0000 (19:29 -0000)]
- remove emacs layout block as suggested by Robert P.J. Day
- use shorter boilerplate while at it
Bernhard Reutner-Fischer [Fri, 19 May 2006 18:37:34 +0000 (18:37 -0000)]
- forgot to make busybox_unstripped depend on the applets in IMA mode.
Bernhard Reutner-Fischer [Fri, 19 May 2006 18:35:03 +0000 (18:35 -0000)]
- use shorter boilerplate.
Bernhard Reutner-Fischer [Fri, 19 May 2006 18:33:34 +0000 (18:33 -0000)]
- redirect stdout of scripts/config/conf to /nil for
allyesconfig, allnoconfig, defconfig, allbareconfig
- fix invalid call to "make"; use $(MAKE) instead.
Bernhard Reutner-Fischer [Fri, 19 May 2006 17:54:05 +0000 (17:54 -0000)]
- remove SIGIOT as suggested by landley.
Rob Landley [Fri, 19 May 2006 17:24:26 +0000 (17:24 -0000)]
Patch from tito to replace shared memory usage with mlock(), slightly tweaked
by me.
Mike Frysinger [Fri, 19 May 2006 16:14:31 +0000 (16:14 -0000)]
fix indenting in help output for ifconfig
Bernhard Reutner-Fischer [Fri, 19 May 2006 14:02:51 +0000 (14:02 -0000)]
- typo s/allbaseconfig/allbareconfig/
I thought Robert Day pointed this out, but i cannot find the mail in the archives..
Bernhard Reutner-Fischer [Fri, 19 May 2006 13:12:21 +0000 (13:12 -0000)]
- replace _PATH_DEVNULL with bb_dev_null
Bernhard Reutner-Fischer [Fri, 19 May 2006 13:02:27 +0000 (13:02 -0000)]
- do not use non-standard u_int.
- do not use _PATH_DEVNULL gnuism but bb_dev_null.
Thanks to Rich Felker.
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:48:56 +0000 (12:48 -0000)]
- make it C89 compatible; Declarations in the middle of a function is of course
fine in C99, but it really serves no purpose other than breaking compilation
on C89 compilers.
Thanks to Rich Felker for pointing this out.
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:44:16 +0000 (12:44 -0000)]
- use uint32_t instead of __u32
Thanks to Rich Felker for pointing this out.
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:41:13 +0000 (12:41 -0000)]
- Rich Felker writes:
SIGIOT is not defined in any standard i can find and it seems to be
useless (alias for SIGABRT) on linux. i put it in #ifdef but it's
probably best just to remove it and cut down the size a bit.
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:38:30 +0000 (12:38 -0000)]
- remove superfluous legacy includes.
This applet should be converted to use llist; __NEED_DLLIST
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:30:00 +0000 (12:30 -0000)]
- include strings.h
Thanks to Rich Felker for pointing this out.
Bernhard Reutner-Fischer [Fri, 19 May 2006 12:22:11 +0000 (12:22 -0000)]
- fix invalid mode
Bernhard Reutner-Fischer [Fri, 19 May 2006 11:54:02 +0000 (11:54 -0000)]
- single KERNEL_VERSION(a,b,c) macro in platform.h
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
Bernhard Reutner-Fischer [Fri, 19 May 2006 11:24:28 +0000 (11:24 -0000)]
- cleanup memory if opening aliases failed and cleanup was requested.
Rob Landley [Thu, 18 May 2006 21:53:51 +0000 (21:53 -0000)]
Fluff out info on morris accounts.
Rob Landley [Thu, 18 May 2006 20:41:43 +0000 (20:41 -0000)]
Avoid a memory leak pointed out by Lucas C. Villa Real.
Rob Landley [Wed, 17 May 2006 21:04:53 +0000 (21:04 -0000)]
Typo fix.
Rob Landley [Wed, 17 May 2006 20:24:53 +0000 (20:24 -0000)]
Patch from Bernhard Fischer to remove some useless bits.
Rob Landley [Wed, 17 May 2006 19:59:24 +0000 (19:59 -0000)]
Announce 1.1.3.
Rob Landley [Wed, 17 May 2006 19:47:58 +0000 (19:47 -0000)]
Typo that hits big endian systems.
Rob Landley [Wed, 17 May 2006 04:09:14 +0000 (04:09 -0000)]
The gnu extension to have realpath() malloc its buffer when handed a NULL
isn't implemented in uClibc, so we can't use it.
Rob Landley [Tue, 16 May 2006 16:52:12 +0000 (16:52 -0000)]
Rob Sullivan cleaned up the longstanding patch from Hideki IWAMOTO to add
ibs and obs support to dd, and made it configurable. I cleaned it up a bit
further and moved conv= into the same config option.
Rob Landley [Tue, 16 May 2006 15:32:30 +0000 (15:32 -0000)]
Largeish cleanup patch from Tito, mostly if statement therapy.
Rob Landley [Tue, 16 May 2006 02:38:26 +0000 (02:38 -0000)]
Make md5 calculation always go through an the buffer so that A) we don't
handle packets out of sequence if some data goes through the buffer and
some doesn't, B) it works on systems that can't handle aligned access,
C) we just have one code path to worry about.
While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine
well, which is why md5sum has been reading and processing data 4 bytes at a
time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop
unrolling and such in the algorithm was an attempt to work around that bug.
Rob Landley [Mon, 15 May 2006 21:02:36 +0000 (21:02 -0000)]
Remove some out of date bits.
Rob Landley [Mon, 15 May 2006 18:38:11 +0000 (18:38 -0000)]
The one line fix to Bernhard Fischer's "profoundly".
Bernhard Reutner-Fischer [Mon, 15 May 2006 10:04:50 +0000 (10:04 -0000)]
- patch from Robert P. J. Day to use filter instead of findstring.
Mike Frysinger [Sat, 13 May 2006 02:33:41 +0000 (02:33 -0000)]
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
Mike Frysinger [Sat, 13 May 2006 02:33:09 +0000 (02:33 -0000)]
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
Mike Frysinger [Sat, 13 May 2006 02:27:52 +0000 (02:27 -0000)]
fix whitespace
Rob Landley [Fri, 12 May 2006 20:44:16 +0000 (20:44 -0000)]
Patch from Lucas C. Villa Real adding "source" as a synonym for the "." command.
Paul Fox [Fri, 12 May 2006 14:47:20 +0000 (14:47 -0000)]
implement -print0 for find
Rob Landley [Fri, 12 May 2006 01:42:33 +0000 (01:42 -0000)]
Autodetect parts of a multipart file, from Robert P. Day's suggestion.
Rob Landley [Thu, 11 May 2006 21:19:22 +0000 (21:19 -0000)]
Busybox is licensed under GPLv2 or later. Shipping another license with the
project would confuse the issue.
Some of these files are available elsewhere under other license terms,
but that's not directly relevant to busybox.
Rob Landley [Thu, 11 May 2006 18:25:24 +0000 (18:25 -0000)]
Bug fix from Vladimir Oleynik, and suggestion I add my copyright notice
to the file.
Rob Landley [Thu, 11 May 2006 17:33:10 +0000 (17:33 -0000)]
Tabs weren't lining up in the help text.
Rob Landley [Thu, 11 May 2006 17:21:13 +0000 (17:21 -0000)]
More about configuring busybox.
Rob Landley [Thu, 11 May 2006 16:39:52 +0000 (16:39 -0000)]
Rename the devfs device names option so it doesn't bite people so often.
Rob Landley [Thu, 11 May 2006 15:23:23 +0000 (15:23 -0000)]
Patch from Vladamir Oleynik, reducing memory consumption.
Rob Landley [Thu, 11 May 2006 15:02:32 +0000 (15:02 -0000)]
Remove reference to programming.html, update description of FAQ.
Rob Landley [Thu, 11 May 2006 15:00:32 +0000 (15:00 -0000)]
Reorganize FAQ, update a few entries, and consolidate with programming.html.
Mike Frysinger [Thu, 11 May 2006 05:33:31 +0000 (05:33 -0000)]
back out default implicit %.o rule for now
Mike Frysinger [Thu, 11 May 2006 04:39:09 +0000 (04:39 -0000)]
move the dir related rules to the end so the E2FSPROGS_AR rule is the default
Mike Frysinger [Thu, 11 May 2006 04:37:25 +0000 (04:37 -0000)]
dont use tabs people
Mike Frysinger [Thu, 11 May 2006 02:36:51 +0000 (02:36 -0000)]
fix no previous prototype warning
Mike Frysinger [Thu, 11 May 2006 02:35:55 +0000 (02:35 -0000)]
fix no previous prototype warning
Mike Frysinger [Thu, 11 May 2006 02:31:45 +0000 (02:31 -0000)]
typecast bbig to kill format warnings
Mike Frysinger [Thu, 11 May 2006 02:10:13 +0000 (02:10 -0000)]
rename
Mike Frysinger [Thu, 11 May 2006 02:09:39 +0000 (02:09 -0000)]
remove files not related to busybox
Mike Frysinger [Wed, 10 May 2006 18:12:16 +0000 (18:12 -0000)]
add implicit rule for %.a to help debugging in subdirs
Rob Landley [Wed, 10 May 2006 17:41:21 +0000 (17:41 -0000)]
Shut up the warning "implicit declaration of strlen".
Mike Frysinger [Wed, 10 May 2006 17:18:11 +0000 (17:18 -0000)]
accept() takes a socklen_t, not an int
Mike Frysinger [Wed, 10 May 2006 17:17:09 +0000 (17:17 -0000)]
fix whitespace in comment example
Mike Frysinger [Wed, 10 May 2006 17:14:32 +0000 (17:14 -0000)]
some more useful debug info from Jason Holden
Mike Frysinger [Wed, 10 May 2006 17:12:12 +0000 (17:12 -0000)]
add a default .o rule for easier debug
Bernhard Reutner-Fischer [Wed, 10 May 2006 16:11:02 +0000 (16:11 -0000)]
- add helptext for --retries