people/mcb30/busybox.git
16 years agoeliminate mixed declaration, to support older compilers a little longer.
pgf [Mon, 28 Nov 2005 16:29:45 +0000 (16:29 +0000)]
eliminate mixed declaration, to support older compilers a little longer.

git-svn-id: svn://busybox.net/trunk/busybox@12553 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agouse libbb/get_kernel_revision(), reduce stack usage, add loses -w -f option for getop...
vodz [Mon, 28 Nov 2005 15:54:22 +0000 (15:54 +0000)]
use libbb/get_kernel_revision(), reduce stack usage, add loses -w -f option for getopt, convert to bb_getopt_ulflags(), reduce memory usage - xmalloc to bb_common_bufsiz1, size reduce over 200 bytes

git-svn-id: svn://busybox.net/trunk/busybox@12551 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoPatch from Cristian Ionescu-Idbohrn to deal with _ vs - better.
landley [Sun, 27 Nov 2005 19:01:53 +0000 (19:01 +0000)]
Patch from Cristian Ionescu-Idbohrn to deal with _ vs - better.

git-svn-id: svn://busybox.net/trunk/busybox@12546 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoremove bug: fsck do not know path
vodz [Sat, 26 Nov 2005 11:01:23 +0000 (11:01 +0000)]
remove bug: fsck do not know path

git-svn-id: svn://busybox.net/trunk/busybox@12536 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agochange the interface of libbb/compare_string_array (unsigned short to int), usaging...
vodz [Sat, 26 Nov 2005 10:45:26 +0000 (10:45 +0000)]
change the interface of libbb/compare_string_array (unsigned short to int), usaging for e2fsprogs/fsck

git-svn-id: svn://busybox.net/trunk/busybox@12535 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore use const for interface of libbb/compare_string_array, example usage for e2fspro...
vodz [Sat, 26 Nov 2005 10:33:55 +0000 (10:33 +0000)]
more use const for interface of libbb/compare_string_array, example usage for e2fsprogs/fsck

git-svn-id: svn://busybox.net/trunk/busybox@12534 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore use libbb/bb_msg_read_error
vodz [Fri, 25 Nov 2005 11:36:36 +0000 (11:36 +0000)]
more use libbb/bb_msg_read_error

git-svn-id: svn://busybox.net/trunk/busybox@12521 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoreduce bss
vodz [Thu, 24 Nov 2005 12:10:13 +0000 (12:10 +0000)]
reduce bss

git-svn-id: svn://busybox.net/trunk/busybox@12509 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoUpdate to modprobe usage from Yann E. Morin
landley [Wed, 23 Nov 2005 04:55:02 +0000 (04:55 +0000)]
Update to modprobe usage from Yann E. Morin

git-svn-id: svn://busybox.net/trunk/busybox@12488 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoCan't store a pointer in an int on 64 bit platforms.
landley [Tue, 22 Nov 2005 17:09:14 +0000 (17:09 +0000)]
Can't store a pointer in an int on 64 bit platforms.

git-svn-id: svn://busybox.net/trunk/busybox@12476 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoMove interface.c to networking directory since it's only used by ifconfig.
landley [Tue, 22 Nov 2005 07:52:54 +0000 (07:52 +0000)]
Move interface.c to networking directory since it's only used by ifconfig.

git-svn-id: svn://busybox.net/trunk/busybox@12475 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoSupport # comments after s/// option list.
landley [Sun, 20 Nov 2005 07:44:35 +0000 (07:44 +0000)]
Support # comments after s/// option list.

git-svn-id: svn://busybox.net/trunk/busybox@12441 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoQuote the user we pass to addgroup so funky chars are preserved. Fix by dragan_marin...
vapier [Tue, 15 Nov 2005 05:53:00 +0000 (05:53 +0000)]
Quote the user we pass to addgroup so funky chars are preserved.  Fix by dragan_marinkovic in Bug 544

git-svn-id: svn://busybox.net/trunk/busybox@12255 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoYann Morin's modprobe multiple options patch. There's more work to be done,
landley [Tue, 15 Nov 2005 00:08:29 +0000 (00:08 +0000)]
Yann Morin's modprobe multiple options patch.  There's more work to be done,
but let's ship 1.1 first...

git-svn-id: svn://busybox.net/trunk/busybox@12236 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoMy last change to this file broke tar x. Sigh. (Trying to make sure we work
landley [Sat, 12 Nov 2005 11:04:11 +0000 (11:04 +0000)]
My last change to this file broke tar x.  Sigh.  (Trying to make sure we work
on file sizes between 2 and 4 gigs on 32 bit machines.  For supporting >4 gigs,
just use a 64 bit machine already...)

git-svn-id: svn://busybox.net/trunk/busybox@12225 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoI noticed that "tar tvjf file.tbz" was segfaulting. This fixed it.
landley [Sat, 12 Nov 2005 02:54:06 +0000 (02:54 +0000)]
I noticed that "tar tvjf file.tbz" was segfaulting.  This fixed it.

git-svn-id: svn://busybox.net/trunk/busybox@12224 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agotelnetd -b (bind to specific address) support from Iuri Gomes Diniz.
landley [Thu, 10 Nov 2005 22:37:40 +0000 (22:37 +0000)]
telnetd -b (bind to specific address) support from Iuri Gomes Diniz.

git-svn-id: svn://busybox.net/trunk/busybox@12205 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoOk, I've converted the contents of the "testing/sed" directory into a
landley [Thu, 10 Nov 2005 06:26:40 +0000 (06:26 +0000)]
Ok, I've converted the contents of the "testing/sed" directory into a
sed.tests file.  My brain hurts now.  (Lots of boggling at sed minutiae and
corner cases and going "why is gnu giving that output".  The behavior of N
and n with regard to EOF are only understandable if you read the Open Group
spec, not if you read the sed info page, by the way...)

Some of the existing sed tests are just nuts.  For example, sed-next-line is
testing for our behavior (which is wrong), and would fail if run against gnu
sed (which was getting it right.  Again, this was a spec-boggling moment,
with much head scratching.  I've got to add a debug mode where the stuff
output by the p command is a different color from the stuff output by normal
end of script printing (when not suppressed by -n).)

As for sed-handles-unsatisifed-backrefs: what is this test trying to _do_?  I
ran it against gnu sed and got an error message, and this behavior sounds
perfectly reasonable.  (It _is_ an unsatisfied backref.)  The fact we
currently ignore this case (and treat \1 as an empty string) isn't really
behavior we should have a test depend on for success.

The remaining one is sed-aic-commands, which is long and complicated.  I'm
trying to figure out if I should chop this into a number of smaller tests, or
if having one big "does-many-things" test is a good idea.

In any case, the _next_ step is to go through the Open Group standard and
make tests for every case not yet covered.  (And there are plenty.  There
are few comments in the file already.)  Plus I have notes about corner
cases from development that I need to collate and put into here.  This file
is maybe the first 1/3 of a truly comprehensive sed test.

Rob

git-svn-id: svn://busybox.net/trunk/busybox@12202 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agochange osbolete sigpause() to sigsuspend()
vodz [Wed, 9 Nov 2005 09:19:29 +0000 (09:19 +0000)]
change osbolete sigpause() to sigsuspend()

git-svn-id: svn://busybox.net/trunk/busybox@12195 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoPatch from Tomasz Mateja: don't try to CWD to a _filename_, just send the full
landley [Tue, 8 Nov 2005 00:52:31 +0000 (00:52 +0000)]
Patch from Tomasz Mateja: don't try to CWD to a _filename_, just send the full
path to the STOR command.

git-svn-id: svn://busybox.net/trunk/busybox@12184 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoIt was a bit out of date.
landley [Mon, 7 Nov 2005 09:06:34 +0000 (09:06 +0000)]
It was a bit out of date.

git-svn-id: svn://busybox.net/trunk/busybox@12177 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoFix the test suite so that individual *.tests files can be run ala
landley [Mon, 7 Nov 2005 08:50:53 +0000 (08:50 +0000)]
Fix the test suite so that individual *.tests files can be run ala
  COMMAND=sort ./sort.tests
So we can compare against non-busybox versions, and possibly our testsuite
will be useful to somebody like the Linux Test Project someday.

Redid testing.sh to add new command, "optional", to skip tests that require
certain features.  (use: `optional FEATURE_SORT_BIG`, or `optional ""` to
stop skipping.)  Note that optional is a NOP if the environment variable
"OPTIONFLAGS" is blank, so although we're marking up the tests with busybox
specific knowledge, it doesn't interfere with running the tests without
busybox.

Moved setting the "OPTIONFLAGS" environment variable to runtest.  Philosophy:
busybox-specific stuff belongs in runtest; both testing.sh and the tests
themselves should be as busybox-agnostic as possible.

Moved detecting that a command isn't in busybox at all (hence skipping the
entire command.tests file) to runtests.  Rationale: optional can't currently
test for more than one feature at a time, so if we clear anything with
optional "" we might perform tests we don't want to.

Marked up busybox.tests to know which tests need CAT enabled.  Fixed up other
tests to be happy with new notation.

I suspect egrep should be appended to grep.  It's a sub-feature, really...

git-svn-id: svn://busybox.net/trunk/busybox@12176 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoYann E. Morin pointed out that rpcsvc/nfs_prot.h isn't needed with any
landley [Sun, 6 Nov 2005 23:37:47 +0000 (23:37 +0000)]
Yann E. Morin pointed out that rpcsvc/nfs_prot.h isn't needed with any
reasonably recent glibc, and breaks with uClibc.  So yank it.

git-svn-id: svn://busybox.net/trunk/busybox@12173 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoSize I zapped the bb_close() error, might as well make a TODO item.
landley [Fri, 4 Nov 2005 20:45:54 +0000 (20:45 +0000)]
Size I zapped the bb_close() error, might as well make a TODO item.

git-svn-id: svn://busybox.net/trunk/busybox@12152 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoFix bug 424: doing full_read breaks things like cat which should return a
landley [Fri, 4 Nov 2005 01:54:15 +0000 (01:54 +0000)]
Fix bug 424: doing full_read breaks things like cat which should return a
chunk of data when they get it and not block until they've buffered 4k.

The use case was cat /proc/psaux, but you can also reproduce this by
running non-busybox cat by itself and typing things at the command line.
Then run busybox cat.  Notice how cat is _supposed_ to echo each line back
to us as we hit enter?

git-svn-id: svn://busybox.net/trunk/busybox@12147 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoWhen cp ran out of space it didn't return a nonzero error code. Fixes bug 493.
landley [Fri, 4 Nov 2005 01:20:46 +0000 (01:20 +0000)]
When cp ran out of space it didn't return a nonzero error code.  Fixes bug 493.

git-svn-id: svn://busybox.net/trunk/busybox@12146 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoIt's no longer a temporary location. Smooth out the text a bit.
landley [Fri, 4 Nov 2005 00:50:48 +0000 (00:50 +0000)]
It's no longer a temporary location.  Smooth out the text a bit.

git-svn-id: svn://busybox.net/trunk/busybox@12145 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agopoint to the official links
andersen [Thu, 3 Nov 2005 23:32:14 +0000 (23:32 +0000)]
point to the official links

git-svn-id: svn://busybox.net/trunk/busybox@12139 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoAnnounce 1.1.0-pre1 already. Erik, please move links to the downloads directory
landley [Thu, 3 Nov 2005 22:11:00 +0000 (22:11 +0000)]
Announce 1.1.0-pre1 already.  Erik, please move links to the downloads directory
once you've got the signed tarballs up.

git-svn-id: svn://busybox.net/trunk/busybox@12135 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoFix cp /dev/null filename, and a few in-passing cleanups.
landley [Tue, 1 Nov 2005 21:55:14 +0000 (21:55 +0000)]
Fix cp /dev/null filename, and a few in-passing cleanups.

git-svn-id: svn://busybox.net/trunk/busybox@12100 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoWe've got fuser, fix some typos, and move Vodz's comment about UTF8 into
landley [Mon, 31 Oct 2005 23:52:02 +0000 (23:52 +0000)]
We've got fuser, fix some typos, and move Vodz's comment about UTF8 into
a new "internationalization" section, with some related concerns.

git-svn-id: svn://busybox.net/trunk/busybox@12084 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago\0 is a synonym for &. Our own "make allbaseconfig" breaks without this.
landley [Sun, 30 Oct 2005 10:08:13 +0000 (10:08 +0000)]
\0 is a synonym for &.  Our own "make allbaseconfig" breaks without this.

git-svn-id: svn://busybox.net/trunk/busybox@12076 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoadd ZyXEL to the shame list
vapier [Sat, 29 Oct 2005 08:14:34 +0000 (08:14 +0000)]
add ZyXEL to the shame list

git-svn-id: svn://busybox.net/trunk/busybox@11980 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agofix <p> and <a> tags
vapier [Sat, 29 Oct 2005 08:03:54 +0000 (08:03 +0000)]
fix <p> and <a> tags

git-svn-id: svn://busybox.net/trunk/busybox@11979 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoupdate doctype and add a charset encoding
vapier [Sat, 29 Oct 2005 07:57:51 +0000 (07:57 +0000)]
update doctype and add a charset encoding

git-svn-id: svn://busybox.net/trunk/busybox@11978 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- add BB_APPLET_RUNLEVEL used by emdebian via /etc/init.d/rc.
aldot [Fri, 28 Oct 2005 20:37:03 +0000 (20:37 +0000)]
- add BB_APPLET_RUNLEVEL used by emdebian via /etc/init.d/rc.
  Note that we leave the buggy CONFIG_* namespace now, so please fix any applet you thouch.

git-svn-id: svn://busybox.net/trunk/busybox@11965 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoupdate
vodz [Fri, 28 Oct 2005 16:17:09 +0000 (16:17 +0000)]
update

git-svn-id: svn://busybox.net/trunk/busybox@11962 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoPlease don't use if(asprintf(&t)<0) free(t); Use concat_subpath_file() for scan dir...
vodz [Fri, 28 Oct 2005 16:08:47 +0000 (16:08 +0000)]
Please don't use if(asprintf(&t)<0) free(t); Use concat_subpath_file() for scan dir. Added losed chdir(".."). Removed warnings for 64-bit inode size. Why use memcpy and do not let? Very strange code for me

git-svn-id: svn://busybox.net/trunk/busybox@11961 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agobb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in...
vodz [Fri, 28 Oct 2005 15:43:41 +0000 (15:43 +0000)]
bb_opt_complementally for rdate applet. Add losed record to util-linux/Makefile.in for switch_root applet

git-svn-id: svn://busybox.net/trunk/busybox@11960 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoNew applet, fuser, from Tony J. White. (Needs some cleanup.)
landley [Fri, 28 Oct 2005 13:05:12 +0000 (13:05 +0000)]
New applet, fuser, from Tony J. White.  (Needs some cleanup.)

git-svn-id: svn://busybox.net/trunk/busybox@11954 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- move GETXXKEY_R_FUNC into an internal helper file to allow for compiling
aldot [Fri, 28 Oct 2005 11:21:40 +0000 (11:21 +0000)]
- move GETXXKEY_R_FUNC into an internal helper file to allow for compiling
  with IMA.

git-svn-id: svn://busybox.net/trunk/busybox@11952 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- remove warning about "'static' is not at beginning of declaration".
aldot [Fri, 28 Oct 2005 09:45:07 +0000 (09:45 +0000)]
- remove warning about "'static' is not at beginning of declaration".

git-svn-id: svn://busybox.net/trunk/busybox@11947 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoRob Sullivan sent in some cleanups, which I beat on slightly.
landley [Fri, 28 Oct 2005 09:24:33 +0000 (09:24 +0000)]
Rob Sullivan sent in some cleanups, which I beat on slightly.

git-svn-id: svn://busybox.net/trunk/busybox@11946 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoAdd a switch_root utility (like kconfig's utils/run_init.c, although not
landley [Thu, 27 Oct 2005 22:55:50 +0000 (22:55 +0000)]
Add a switch_root utility (like kconfig's utils/run_init.c, although not
actuall using any of that code).  This is needed because pivot_root doesn't
work right under initramfs.  (See the menuconfig help.)

git-svn-id: svn://busybox.net/trunk/busybox@11935 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoSomebody suggested this, but I've forgotten who.
landley [Thu, 27 Oct 2005 22:50:04 +0000 (22:50 +0000)]
Somebody suggested this, but I've forgotten who.

git-svn-id: svn://busybox.net/trunk/busybox@11934 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoAdd --no-same-owner and --no-same-permissions options to tar.
landley [Thu, 27 Oct 2005 22:49:08 +0000 (22:49 +0000)]
Add --no-same-owner and --no-same-permissions options to tar.

git-svn-id: svn://busybox.net/trunk/busybox@11933 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- Matthias Wenzel writes:
aldot [Thu, 27 Oct 2005 14:43:27 +0000 (14:43 +0000)]
- Matthias Wenzel writes:
without the fix below md5sum will always report a correct md5 on _any_
wrongly formattet input files.
- use short boilerplate and remove superfluous keyword extern.

git-svn-id: svn://busybox.net/trunk/busybox@11932 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- correct boilerplate
aldot [Thu, 27 Oct 2005 06:59:05 +0000 (06:59 +0000)]
- correct boilerplate
- use bb_xgetlarg for the patch_level to catch invalid arguments.

git-svn-id: svn://busybox.net/trunk/busybox@11927 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoReference for new patch feature we'll need to be compatible with...
landley [Thu, 27 Oct 2005 00:57:50 +0000 (00:57 +0000)]
Reference for new patch feature we'll need to be compatible with...

git-svn-id: svn://busybox.net/trunk/busybox@11926 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago * uniq.c: remove unneeded include and use short boilerplate.
aldot [Wed, 26 Oct 2005 10:47:26 +0000 (10:47 +0000)]
* uniq.c: remove unneeded include and use short boilerplate.
* coreutils.h: remove prototype of non-existing xgetoptfile_sort_uniq
and add boilerplate.
* networking/{ipaddr,ip,iplink,iproute,iptunnel}.c: touch includes
and use short boilerplate.
* libiproute/iproute.c: rename round to avoid clashes with older
SuSE gcc and use short boilerplate.

git-svn-id: svn://busybox.net/trunk/busybox@11924 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoUpdate the TODO list to reflect stuff we've already done.
landley [Tue, 25 Oct 2005 20:22:50 +0000 (20:22 +0000)]
Update the TODO list to reflect stuff we've already done.

git-svn-id: svn://busybox.net/trunk/busybox@11917 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoShaun Jackman noted that limits.h defines path_max and isn't included from
landley [Tue, 25 Oct 2005 02:22:13 +0000 (02:22 +0000)]
Shaun Jackman noted that limits.h defines path_max and isn't included from
find_root_device.c.  (We #include it in busybox.h but not libbb.h, it seems.
Someday, someone's going to have to clarify for me the difference between
those two...)

git-svn-id: svn://busybox.net/trunk/busybox@11913 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoTwo changes. One from Shaun Jackman makes libbb/interface.c compile only if
landley [Tue, 25 Oct 2005 02:19:55 +0000 (02:19 +0000)]
Two changes.  One from Shaun Jackman makes libbb/interface.c compile only if
it's going to be used.  (I'm guessing it doesn't work with newlib.)

The other one is from me: allyesconfig shouldn't enable devfs because that
changes all sorts of unrelated stuff (like /dev/loop0->dev/loop/0), which
can come as a bit of a surprise.  (It's still there, but you have to go into
menuconfig and select it manually.)

git-svn-id: svn://busybox.net/trunk/busybox@11912 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- fix bug to avoid aliasing busybox' main to zcip_main in IMA mode.
aldot [Fri, 21 Oct 2005 10:43:11 +0000 (10:43 +0000)]
- fix bug to avoid aliasing busybox' main to zcip_main in IMA mode.

git-svn-id: svn://busybox.net/trunk/busybox@11905 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoanother more const
vodz [Thu, 20 Oct 2005 11:17:48 +0000 (11:17 +0000)]
another more const

git-svn-id: svn://busybox.net/trunk/busybox@11897 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore const
vodz [Thu, 20 Oct 2005 09:48:28 +0000 (09:48 +0000)]
more const

git-svn-id: svn://busybox.net/trunk/busybox@11896 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore const, attribute_noreturn saved 200 bytes
vodz [Wed, 19 Oct 2005 09:21:51 +0000 (09:21 +0000)]
more const, attribute_noreturn saved 200 bytes

git-svn-id: svn://busybox.net/trunk/busybox@11886 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- consume space between functionname and opening brackets
aldot [Mon, 17 Oct 2005 14:21:06 +0000 (14:21 +0000)]
- consume space between functionname and opening brackets
  Fixes Rob's issue using busybox awk for building gcc-4_0 optionlist (http://busybox.net/lists/busybox/2005-October/016659.html)

git-svn-id: svn://busybox.net/trunk/busybox@11883 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore const, use bb_getopt_ulflags, insert XXX for show place of problems
vodz [Mon, 17 Oct 2005 10:47:19 +0000 (10:47 +0000)]
more const, use bb_getopt_ulflags, insert XXX for show place of problems

git-svn-id: svn://busybox.net/trunk/busybox@11882 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agodata --> text
vodz [Mon, 17 Oct 2005 09:48:57 +0000 (09:48 +0000)]
data --> text

git-svn-id: svn://busybox.net/trunk/busybox@11881 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoThe fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,
landley [Sun, 16 Oct 2005 08:42:18 +0000 (08:42 +0000)]
The fact "tar tvjf thing.tbz" didn't work was due to the "-1" in -r11859,
which was apparently never tested.  That meant that there always had
to be at least one unparsed argument left over, which is not the case for
tar.

git-svn-id: svn://busybox.net/trunk/busybox@11877 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoWhitespace and curly bracket cleanup (our tabstop is 4 in busybox),
landley [Sun, 16 Oct 2005 03:54:49 +0000 (03:54 +0000)]
Whitespace and curly bracket cleanup (our tabstop is 4 in busybox),
and switch more stuff from CONFIG to ENABLE.

git-svn-id: svn://busybox.net/trunk/busybox@11876 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- don't update copyright years. He might release it, but apparently will have
aldot [Sat, 15 Oct 2005 20:56:31 +0000 (20:56 +0000)]
- don't update copyright years. He might release it, but apparently will have
  to update the year himself.

git-svn-id: svn://busybox.net/trunk/busybox@11875 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore const, all data to text
vodz [Sat, 15 Oct 2005 14:41:08 +0000 (14:41 +0000)]
more const, all data to text

git-svn-id: svn://busybox.net/trunk/busybox@11874 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago20 bytes data to bss
vodz [Sat, 15 Oct 2005 14:24:01 +0000 (14:24 +0000)]
20 bytes data to bss

git-svn-id: svn://busybox.net/trunk/busybox@11873 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- an empty middle term in ?: violates ISO C
aldot [Sat, 15 Oct 2005 14:13:09 +0000 (14:13 +0000)]
- an empty middle term in ?: violates ISO C
- use shorter boilerplate and use C89 style comments

git-svn-id: svn://busybox.net/trunk/busybox@11872 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agodata --> code
vodz [Sat, 15 Oct 2005 14:10:36 +0000 (14:10 +0000)]
data --> code

git-svn-id: svn://busybox.net/trunk/busybox@11871 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agodata --> bss
vodz [Sat, 15 Oct 2005 13:56:17 +0000 (13:56 +0000)]
data --> bss

git-svn-id: svn://busybox.net/trunk/busybox@11870 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agocomplex RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1
vodz [Sat, 15 Oct 2005 13:49:21 +0000 (13:49 +0000)]
complex RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1

git-svn-id: svn://busybox.net/trunk/busybox@11869 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoRESERVE_CONFIG_BUFFER --> bb_common_bufsiz1
vodz [Sat, 15 Oct 2005 13:45:32 +0000 (13:45 +0000)]
RESERVE_CONFIG_BUFFER --> bb_common_bufsiz1

git-svn-id: svn://busybox.net/trunk/busybox@11868 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agocommon BUFSIZ BSS buffer, small reduce code, data and bss
vodz [Sat, 15 Oct 2005 10:23:55 +0000 (10:23 +0000)]
common BUFSIZ BSS buffer, small reduce code, data and bss

git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agollist must initialize, add loses ifdef, small indent correction
vodz [Sat, 15 Oct 2005 06:32:38 +0000 (06:32 +0000)]
llist must initialize, add loses ifdef, small indent correction

git-svn-id: svn://busybox.net/trunk/busybox@11866 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoAdd --exclude option (to make uClibc-0.9.28 headers install using busybox tar).
landley [Sat, 15 Oct 2005 03:06:21 +0000 (03:06 +0000)]
Add --exclude option (to make uClibc-0.9.28 headers install using busybox tar).

I have no idea how to apply bb_getopt_complementally to a --longopt that
has no short option.  The documentation from vodz has a bad case of
babelfish poisoning, and I can't understand it.  It sort of seems to
suggest there is a way, but what it is I have no idea.  So I used \n as
the short option, which is fairly unlikely to be used for something else. :)

git-svn-id: svn://busybox.net/trunk/busybox@11865 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- new bb_opt_complementally syntax, use [-:?] only - 'free' chars
vodz [Fri, 14 Oct 2005 09:56:52 +0000 (09:56 +0000)]
- new bb_opt_complementally syntax, use [-:?] only - 'free' chars
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets
- use bb_default_error_retval for env applet

git-svn-id: svn://busybox.net/trunk/busybox@11859 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- split VERSION into parts
aldot [Thu, 13 Oct 2005 10:40:18 +0000 (10:40 +0000)]
- split VERSION into parts
- add some filesystem operation wrapper variables for use in the makefiles and
  pull them in early in the toplevel makefile
- use the cross-toolchain for "make sizes"

git-svn-id: svn://busybox.net/trunk/busybox@11856 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- initialize the correct variables
aldot [Thu, 13 Oct 2005 10:24:44 +0000 (10:24 +0000)]
- initialize the correct variables

git-svn-id: svn://busybox.net/trunk/busybox@11855 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- typo in makefile variable: s/archvial/archival/
aldot [Thu, 13 Oct 2005 10:19:35 +0000 (10:19 +0000)]
- typo in makefile variable: s/archvial/archival/

git-svn-id: svn://busybox.net/trunk/busybox@11854 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoshow_usage should use bb_default_error_retval.
landley [Wed, 12 Oct 2005 21:50:02 +0000 (21:50 +0000)]
show_usage should use bb_default_error_retval.

git-svn-id: svn://busybox.net/trunk/busybox@11853 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoDid you know the uclibc IRC channel has daily logs on the web going back to
landley [Wed, 12 Oct 2005 19:10:34 +0000 (19:10 +0000)]
Did you know the uclibc IRC channel has daily logs on the web going back to
2002?

git-svn-id: svn://busybox.net/trunk/busybox@11851 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoperror correction
vodz [Wed, 12 Oct 2005 16:45:21 +0000 (16:45 +0000)]
perror correction

git-svn-id: svn://busybox.net/trunk/busybox@11849 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agocreate e2fs_set_sbin_path(), noticed by Tito, Thanks
vodz [Wed, 12 Oct 2005 16:22:19 +0000 (16:22 +0000)]
create e2fs_set_sbin_path(), noticed by Tito, Thanks

git-svn-id: svn://busybox.net/trunk/busybox@11848 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agousage bb_dev_null
vodz [Wed, 12 Oct 2005 15:34:25 +0000 (15:34 +0000)]
usage bb_dev_null

git-svn-id: svn://busybox.net/trunk/busybox@11846 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agobb_dev_null
vodz [Wed, 12 Oct 2005 15:21:32 +0000 (15:21 +0000)]
bb_dev_null

git-svn-id: svn://busybox.net/trunk/busybox@11845 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoremove 1 CR, correct strange bb_opt_complementally, add #if 0 and XXX-comment: pleace...
vodz [Wed, 12 Oct 2005 14:36:42 +0000 (14:36 +0000)]
remove 1 CR, correct strange bb_opt_complementally, add #if 0 and XXX-comment: pleace examine this\!

git-svn-id: svn://busybox.net/trunk/busybox@11844 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomake fsck.h as common, e2fsck: includes correct
vodz [Wed, 12 Oct 2005 12:24:01 +0000 (12:24 +0000)]
make fsck.h as common, e2fsck: includes correct

git-svn-id: svn://busybox.net/trunk/busybox@11843 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore busyboxes, remove 1 extern function (mainstream also have for one fsck)
vodz [Wed, 12 Oct 2005 12:11:42 +0000 (12:11 +0000)]
more busyboxes, remove 1 extern function (mainstream also have for one fsck)

git-svn-id: svn://busybox.net/trunk/busybox@11842 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agomore busyboxes
vodz [Wed, 12 Oct 2005 11:38:09 +0000 (11:38 +0000)]
more busyboxes

git-svn-id: svn://busybox.net/trunk/busybox@11841 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agotrivial generate exit code
vodz [Wed, 12 Oct 2005 08:43:00 +0000 (08:43 +0000)]
trivial generate exit code

git-svn-id: svn://busybox.net/trunk/busybox@11840 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agocorrect strange *3 isatty(0) code
vodz [Wed, 12 Oct 2005 08:38:28 +0000 (08:38 +0000)]
correct strange *3 isatty(0) code

git-svn-id: svn://busybox.net/trunk/busybox@11839 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoPrepend '-' to the first argument if required, more const, indent
vodz [Wed, 12 Oct 2005 08:34:27 +0000 (08:34 +0000)]
Prepend '-' to the first argument if required, more const, indent

git-svn-id: svn://busybox.net/trunk/busybox@11838 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agonew featured bb_opt_complementally, correct argc checking
vodz [Wed, 12 Oct 2005 08:17:29 +0000 (08:17 +0000)]
new featured bb_opt_complementally, correct argc checking

git-svn-id: svn://busybox.net/trunk/busybox@11837 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoThere doesn't seem to be a standard header for makedev(), but this is close.
landley [Tue, 11 Oct 2005 20:17:30 +0000 (20:17 +0000)]
There doesn't seem to be a standard header for makedev(), but this is close.

git-svn-id: svn://busybox.net/trunk/busybox@11831 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- use complementally '!' to '?' - 'ask' is best 'free' char for this.
vodz [Tue, 11 Oct 2005 14:38:01 +0000 (14:38 +0000)]
- use complementally '!' to '?' - 'ask' is best 'free' char for this.
- more long opt compatibility, can set flag for long opt struct now
- more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets.

git-svn-id: svn://busybox.net/trunk/busybox@11828 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoThe check for EROFS was wrong. For example, if you try to mount a filesystem
landley [Tue, 11 Oct 2005 07:26:15 +0000 (07:26 +0000)]
The check for EROFS was wrong.  For example, if you try to mount a filesystem
appended to an executable that's being run (yes, I'm doing this) you get
EPERM, but mounting readonly fixes it.  Doing the fallback all the time
shouldn't hurt, and is one less test.

git-svn-id: svn://busybox.net/trunk/busybox@11825 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- do not use bb_xgetularg10_bnd as a lower value of -1 doesn't work due to lowe
aldot [Mon, 10 Oct 2005 13:34:19 +0000 (13:34 +0000)]
- do not use bb_xgetularg10_bnd as a lower value of -1 doesn't work due to lowe
  being unsigned.
- minor correction: use stdin only when no file was given via -i.
- use shorter boilerplate.

git-svn-id: svn://busybox.net/trunk/busybox@11824 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agobetter check usage with options, correct show problem error message, indent
vodz [Mon, 10 Oct 2005 12:17:33 +0000 (12:17 +0000)]
better check usage with options, correct show problem error message, indent

git-svn-id: svn://busybox.net/trunk/busybox@11823 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agobb_mkdep: Rewroted. removed problem "include name must uniq", speed up * 3.
vodz [Mon, 10 Oct 2005 11:35:17 +0000 (11:35 +0000)]
bb_mkdep: Rewroted. removed problem "include name must uniq", speed up * 3.
e2fsprogs: remove confuse bb_mkdep. Use internal e2fsprogs includes only.
other: remove confuse bb_mkdep.

git-svn-id: svn://busybox.net/trunk/busybox@11822 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoFluff out INSTALL a bit.
landley [Sun, 9 Oct 2005 20:18:32 +0000 (20:18 +0000)]
Fluff out INSTALL a bit.

git-svn-id: svn://busybox.net/trunk/busybox@11821 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years ago- remove passing PREFIX and CROSS to make which was added for bug #94.
aldot [Sun, 9 Oct 2005 19:12:34 +0000 (19:12 +0000)]
- remove passing PREFIX and CROSS to make which was added for bug #94.
  My recent Makefile touch-up assures that make O=/tmp/o PREFIX=/tmp/i install
  works as expected without this ugly workaround.

git-svn-id: svn://busybox.net/trunk/busybox@11820 69ca8d6d-28ef-0310-b511-8ec308f3f277

16 years agoThe readme in 1.0 is more up to date than the 1.1 version...
landley [Sun, 9 Oct 2005 18:20:54 +0000 (18:20 +0000)]
The readme in 1.0 is more up to date than the 1.1 version...

git-svn-id: svn://busybox.net/trunk/busybox@11819 69ca8d6d-28ef-0310-b511-8ec308f3f277