oweals/busybox.git
18 years agolots of silly indent fixes
Denis Vlasenko [Tue, 3 Oct 2006 19:56:34 +0000 (19:56 -0000)]
lots of silly indent fixes

18 years agorandom style fixes
Denis Vlasenko [Tue, 3 Oct 2006 19:02:20 +0000 (19:02 -0000)]
random style fixes

18 years agotraceroute: fix compilation if netinet/protocols.h is missing
Denis Vlasenko [Tue, 3 Oct 2006 18:19:02 +0000 (18:19 -0000)]
traceroute: fix compilation if netinet/protocols.h is missing

18 years agoYeah, yeah... I forgot about 'svn add'... fixing that
Denis Vlasenko [Tue, 3 Oct 2006 17:52:24 +0000 (17:52 -0000)]
Yeah, yeah... I forgot about 'svn add'... fixing that

18 years agorunit/chpst: "change process state" utility
Denis Vlasenko [Tue, 3 Oct 2006 15:57:40 +0000 (15:57 -0000)]
runit/chpst: "change process state" utility
It's "nice" on steroids - can set uid/gid, mem/cpu limits etc. +3.5k

18 years agotraceroute: do not look up icmp protocol# in /etc, it is well-known :)
Denis Vlasenko [Tue, 3 Oct 2006 10:47:35 +0000 (10:47 -0000)]
traceroute: do not look up icmp protocol# in /etc, it is well-known :)

18 years agoifupdown: Debian users contributed improvement to it
Denis Vlasenko [Mon, 2 Oct 2006 20:57:10 +0000 (20:57 -0000)]
ifupdown: Debian users contributed improvement to it

18 years agoeject: -T (implements single button open/close)
Denis Vlasenko [Mon, 2 Oct 2006 20:49:25 +0000 (20:49 -0000)]
eject: -T (implements single button open/close)

18 years agomount: accept and ignore -s (sloppy) option.
Denis Vlasenko [Mon, 2 Oct 2006 18:52:49 +0000 (18:52 -0000)]
mount: accept and ignore -s (sloppy) option.
needed for compatibility with Linux automounter.

18 years agosed: -e options were handled in reverse order. fix that.
Denis Vlasenko [Sun, 1 Oct 2006 21:37:40 +0000 (21:37 -0000)]
sed: -e options were handled in reverse order. fix that.

18 years agosed: unbreak multiple -e, -f option handling (my fault)
Denis Vlasenko [Sun, 1 Oct 2006 21:05:12 +0000 (21:05 -0000)]
sed: unbreak multiple -e, -f option handling (my fault)

18 years agogzip: add a bit of comment. The code itself
Denis Vlasenko [Sun, 1 Oct 2006 16:44:04 +0000 (16:44 -0000)]
gzip: add a bit of comment. The code itself
is too bloated to work on it...

18 years agog[un]zip: add support for -v (verbose).
Denis Vlasenko [Sun, 1 Oct 2006 15:55:11 +0000 (15:55 -0000)]
g[un]zip: add support for -v (verbose).
Add CONFIG_DESKTOP, almost all bloat from this change
is hidden under that.

18 years agowget: make progress bar and ETA work correctly with -c
Denis Vlasenko [Sun, 1 Oct 2006 10:58:54 +0000 (10:58 -0000)]
wget: make progress bar and ETA work correctly with -c

18 years agodpkg: fix use-after-free (bug 939)
Denis Vlasenko [Sat, 30 Sep 2006 21:05:25 +0000 (21:05 -0000)]
dpkg: fix use-after-free (bug 939)

18 years agolsmod: repair indentation
Denis Vlasenko [Sat, 30 Sep 2006 20:41:44 +0000 (20:41 -0000)]
lsmod: repair indentation
httpd: ifdef CONFIG -> if ENABLE (shorted, catched typos)

18 years agovconfig: fix bug 701 (I be damned if I understand it)
Denis Vlasenko [Sat, 30 Sep 2006 19:37:25 +0000 (19:37 -0000)]
vconfig: fix bug 701 (I be damned if I understand it)

18 years agosyslogd: do not retry udp sends (can stall syslogd for extended periods
Denis Vlasenko [Sat, 30 Sep 2006 19:21:24 +0000 (19:21 -0000)]
syslogd: do not retry udp sends (can stall syslogd for extended periods
of time), resolve remote logging host before daemonization

18 years agosyslogd: getopt_ulflags'ification (save ~50 bytes)
Denis Vlasenko [Sat, 30 Sep 2006 19:20:00 +0000 (19:20 -0000)]
syslogd: getopt_ulflags'ification (save ~50 bytes)

18 years agosyslogd: add option to suppress logging of messages lower than level N (-n N)
Denis Vlasenko [Sat, 30 Sep 2006 19:17:40 +0000 (19:17 -0000)]
syslogd: add option to suppress logging of messages lower than level N (-n N)

18 years agofbset: store short string in the structure itself instead of the pointer
Denis Vlasenko [Sat, 30 Sep 2006 16:28:30 +0000 (16:28 -0000)]
fbset: store short string in the structure itself instead of the pointer
(small size saving)

18 years agofbset: add support for -a (bug 1017)
Denis Vlasenko [Sat, 30 Sep 2006 16:22:59 +0000 (16:22 -0000)]
fbset: add support for -a (bug 1017)

18 years agono-op (just for svn commit run. 2.6.18 oopses on that, need to reproduce)
Denis Vlasenko [Sat, 30 Sep 2006 08:32:41 +0000 (08:32 -0000)]
no-op (just for svn commit run. 2.6.18 oopses on that, need to reproduce)

18 years agolibiproute/ll_map.c: fix bug 279
Denis Vlasenko [Sat, 30 Sep 2006 00:18:16 +0000 (00:18 -0000)]
libiproute/ll_map.c: fix bug 279
("On-demand net module loading fails with CONFIG_FEATURE_IFUPDOWN_IP")

18 years agowc: optionally support very large files in wc
Denis Vlasenko [Fri, 29 Sep 2006 23:41:59 +0000 (23:41 -0000)]
wc: optionally support very large files in wc

18 years agowc: reduce source cruft, make it so that "wc -c" (one option, no filenames)
Denis Vlasenko [Fri, 29 Sep 2006 23:41:04 +0000 (23:41 -0000)]
wc: reduce source cruft, make it so that "wc -c" (one option, no filenames)
will not print leading blanks.

18 years agoMention the new gpl@busybox.net address.
Rob Landley [Fri, 29 Sep 2006 22:43:12 +0000 (22:43 -0000)]
Mention the new gpl@busybox.net address.

18 years agolosetup: use /dev/loopN or /dev/loop/N according to CONFIG_FEATURE_DEVFS=n/y
Denis Vlasenko [Fri, 29 Sep 2006 21:47:11 +0000 (21:47 -0000)]
losetup: use /dev/loopN or /dev/loop/N according to CONFIG_FEATURE_DEVFS=n/y

18 years agoYet another silly little byte saving. couldn't -> cannot
Denis Vlasenko [Fri, 29 Sep 2006 21:30:43 +0000 (21:30 -0000)]
Yet another silly little byte saving. couldn't -> cannot

18 years agogrep: add help text; fix style
Denis Vlasenko [Fri, 29 Sep 2006 21:04:12 +0000 (21:04 -0000)]
grep: add help text; fix style

18 years agogrep: implement -o option. Patch by Jac Goudsmit.
Denis Vlasenko [Fri, 29 Sep 2006 20:58:53 +0000 (20:58 -0000)]
grep: implement -o option. Patch by Jac Goudsmit.

18 years agotop: add support for -b, -n <iterations>
Denis Vlasenko [Fri, 29 Sep 2006 17:16:39 +0000 (17:16 -0000)]
top: add support for -b, -n <iterations>

18 years agomount: fix bug 946 (mount -f should update mtab)
Denis Vlasenko [Fri, 29 Sep 2006 14:43:20 +0000 (14:43 -0000)]
mount: fix bug 946 (mount -f should update mtab)

18 years agogetopt_ulflags: fix indentation in comment (needs to be 8 _spaces_
Denis Vlasenko [Fri, 29 Sep 2006 13:56:58 +0000 (13:56 -0000)]
getopt_ulflags: fix indentation in comment (needs to be 8 _spaces_
in order to look correct to both 4 tab and 8 tab population).
Add comment about :: (which indicates optional argument).

18 years agogetopt_ulflags: formatting fixes
Denis Vlasenko [Fri, 29 Sep 2006 08:23:42 +0000 (08:23 -0000)]
getopt_ulflags: formatting fixes

18 years agoxargs: simplify option parsing
Denis Vlasenko [Fri, 29 Sep 2006 08:20:30 +0000 (08:20 -0000)]
xargs: simplify option parsing

18 years agort_names.c: move few strings into rodata
Denis Vlasenko [Thu, 28 Sep 2006 22:36:23 +0000 (22:36 -0000)]
rt_names.c: move few strings into rodata

18 years agodpkg: style fixes; short -> int (generated code is smaller)
Denis Vlasenko [Thu, 28 Sep 2006 22:35:42 +0000 (22:35 -0000)]
dpkg: style fixes; short -> int (generated code is smaller)

18 years agodpkg: reduce bss usage by ~130 kbytes (yes, kilobytes!)
Denis Vlasenko [Thu, 28 Sep 2006 22:34:46 +0000 (22:34 -0000)]
dpkg: reduce bss usage by ~130 kbytes (yes, kilobytes!)
at the cost of ~100 bytes of text.
Improves friendliness to nommu systems.
(Dunno whether nommu people ever use dpkg, though...)

18 years agoifupdown: make dhcp start/stop scripts user configurable
Denis Vlasenko [Thu, 28 Sep 2006 22:31:51 +0000 (22:31 -0000)]
ifupdown: make dhcp start/stop scripts user configurable
in /etc/network/interfaces. Patch author is Gabriel L. Somlo <somlo@cmu.edu>

18 years agoTried to find sha1_crypt - nope... ok, save few bytes in md5_sha1_sum.c
Denis Vlasenko [Thu, 28 Sep 2006 00:29:00 +0000 (00:29 -0000)]
Tried to find sha1_crypt - nope... ok, save few bytes in md5_sha1_sum.c
(time to sleep, 02:28 in the morning)...

18 years agousage.h: fix compile-time bugs exposed by previous change
Denis Vlasenko [Wed, 27 Sep 2006 23:31:59 +0000 (23:31 -0000)]
usage.h: fix compile-time bugs exposed by previous change

18 years agousage.h: remove ugly tricks. We have USE_FEATURE_xxx now.
Denis Vlasenko [Wed, 27 Sep 2006 23:31:08 +0000 (23:31 -0000)]
usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.
Few bugs are now exposed...

18 years agosilly switch style fix
Denis Vlasenko [Wed, 27 Sep 2006 19:51:06 +0000 (19:51 -0000)]
silly switch style fix

18 years agocrontab: we indent using tabs
Denis Vlasenko [Wed, 27 Sep 2006 19:48:56 +0000 (19:48 -0000)]
crontab: we indent using tabs

18 years agolosetup: with no arguments lists all /dev/loopN. Corrected help text.
Denis Vlasenko [Wed, 27 Sep 2006 14:51:27 +0000 (14:51 -0000)]
losetup: with no arguments lists all /dev/loopN. Corrected help text.
(patch by Vladimir Dronnikov <dronnikov@gmail.ru>)

18 years agokill: implement killall5. OpenWRT folks will be happy.
Denis Vlasenko [Wed, 27 Sep 2006 14:25:33 +0000 (14:25 -0000)]
kill: implement killall5. OpenWRT folks will be happy.
However their code was unusably different from sysvinit original.
Run tested.

18 years agokill: fix bugs (kill -l output was horrible), fix style, constify data
Denis Vlasenko [Wed, 27 Sep 2006 14:19:16 +0000 (14:19 -0000)]
kill: fix bugs (kill -l output was horrible), fix style, constify data

18 years agoprocess utilities related style cleanup
Denis Vlasenko [Wed, 27 Sep 2006 14:17:31 +0000 (14:17 -0000)]
process utilities related style cleanup

18 years agoifupdown: fix for standalone shell; removed hardcoded PATH
Denis Vlasenko [Wed, 27 Sep 2006 14:14:51 +0000 (14:14 -0000)]
ifupdown: fix for standalone shell; removed hardcoded PATH

18 years agoifupdown: style cleanup, no code changes
Denis Vlasenko [Tue, 26 Sep 2006 20:35:30 +0000 (20:35 -0000)]
ifupdown: style cleanup, no code changes

18 years agoseveral fixes from openWRT project
Denis Vlasenko [Tue, 26 Sep 2006 17:41:00 +0000 (17:41 -0000)]
several fixes from openWRT project

18 years agologin: fix getopt_ulflags fallout (wasn't taking username supplied by getty)
Denis Vlasenko [Tue, 26 Sep 2006 16:31:01 +0000 (16:31 -0000)]
login: fix getopt_ulflags fallout (wasn't taking username supplied by getty)

18 years agohttpd: sanitize indentation
Denis Vlasenko [Tue, 26 Sep 2006 10:07:41 +0000 (10:07 -0000)]
httpd: sanitize indentation

18 years agowget: add (configurable) large file support. Run tested.
Denis Vlasenko [Tue, 26 Sep 2006 09:22:12 +0000 (09:22 -0000)]
wget: add (configurable) large file support. Run tested.

18 years agofix 'grep -C' which requires an argument
Eric Andersen [Mon, 25 Sep 2006 22:18:56 +0000 (22:18 -0000)]
fix 'grep -C' which requires an argument

18 years agovlock: make message shorter
Denis Vlasenko [Sun, 24 Sep 2006 02:10:03 +0000 (02:10 -0000)]
vlock: make message shorter

18 years agomount: fix breakage from recent changes (spurious -ro mounts)
Denis Vlasenko [Sun, 24 Sep 2006 01:01:01 +0000 (01:01 -0000)]
mount: fix breakage from recent changes (spurious -ro mounts)

18 years agoAnother attempt at untangling the logic so the compiler can follow it and not
Rob Landley [Sat, 23 Sep 2006 19:56:21 +0000 (19:56 -0000)]
Another attempt at untangling the logic so the compiler can follow it and not
generate pointless warnings.

18 years agowget: fix bug where wget creates null file if there is no remote one.
Denis Vlasenko [Sat, 23 Sep 2006 17:49:09 +0000 (17:49 -0000)]
wget: fix bug where wget creates null file if there is no remote one.
add O_LARGEFILE support (not run tested :).

18 years agoapplets.c: fix indentation
Denis Vlasenko [Sat, 23 Sep 2006 16:34:39 +0000 (16:34 -0000)]
applets.c: fix indentation

18 years agoremove unneeded #includes, fix indentation
Denis Vlasenko [Sat, 23 Sep 2006 16:01:09 +0000 (16:01 -0000)]
remove unneeded #includes, fix indentation

18 years agoinetd: deindent main loop, other readability enhancements
Denis Vlasenko [Sat, 23 Sep 2006 15:58:01 +0000 (15:58 -0000)]
inetd: deindent main loop, other readability enhancements

18 years agohexdump: fixlet for my breakage
Denis Vlasenko [Sat, 23 Sep 2006 15:53:01 +0000 (15:53 -0000)]
hexdump: fixlet for my breakage

18 years agoinetd: reformat with tabs for indentation
Denis Vlasenko [Sat, 23 Sep 2006 15:18:38 +0000 (15:18 -0000)]
inetd: reformat with tabs for indentation

18 years agohexdump: deindent, almost fits into 80 columns now
Denis Vlasenko [Sat, 23 Sep 2006 13:31:46 +0000 (13:31 -0000)]
hexdump: deindent, almost fits into 80 columns now

18 years agocorrect_password: undo whitespace damage.
Denis Vlasenko [Sat, 23 Sep 2006 13:11:49 +0000 (13:11 -0000)]
correct_password: undo whitespace damage.
vlock + correct_password: fix incorrect line breaks in messages.

18 years agoifupdown: getopt_ulflags'ification.
Denis Vlasenko [Sat, 23 Sep 2006 12:49:01 +0000 (12:49 -0000)]
ifupdown: getopt_ulflags'ification.

18 years agoarping: fix bug (getopt_ulflags and optarg don't mix),
Denis Vlasenko [Sat, 23 Sep 2006 12:46:30 +0000 (12:46 -0000)]
arping: fix bug (getopt_ulflags and optarg don't mix),
remove unreachable error path.

18 years agoinsmod: getopt_ulflags'isation
Denis Vlasenko [Sat, 23 Sep 2006 12:32:58 +0000 (12:32 -0000)]
insmod: getopt_ulflags'isation

18 years agopasswd: getopt_ulflags'isation
Denis Vlasenko [Sat, 23 Sep 2006 12:30:03 +0000 (12:30 -0000)]
passwd: getopt_ulflags'isation

18 years agobb_askpass: shorten static password buffer. 256 is way too large.
Denis Vlasenko [Sat, 23 Sep 2006 12:22:11 +0000 (12:22 -0000)]
bb_askpass: shorten static password buffer. 256 is way too large.
simplify code a bit.

18 years agoFollow-up to 16172: this also doesn't produce a warning for me on gcc 4.1,
Rob Landley [Fri, 22 Sep 2006 19:11:59 +0000 (19:11 -0000)]
Follow-up to 16172: this also doesn't produce a warning for me on gcc 4.1,
without having to feed the compiler nonsense.

18 years ago"I'll think about it" != "apply it now". It means I need to think about it.
Rob Landley [Fri, 22 Sep 2006 18:47:45 +0000 (18:47 -0000)]
"I'll think about it" != "apply it now".  It means I need to think about it.

18 years agonetstat: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 16:02:40 +0000 (16:02 -0000)]
netstat: getopt_ulflags'isation

18 years agogzip: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 15:13:38 +0000 (15:13 -0000)]
gzip: getopt_ulflags'isation

18 years agolosetup: getopt_ulflags'ification + small fix for perror_nomsg
Denis Vlasenko [Fri, 22 Sep 2006 14:53:41 +0000 (14:53 -0000)]
losetup: getopt_ulflags'ification + small fix for perror_nomsg

18 years agoawk: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 09:02:30 +0000 (09:02 -0000)]
awk: getopt_ulflags'isation

18 years agosed: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:56:03 +0000 (08:56 -0000)]
sed: getopt_ulflags'isation

18 years agohostname: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:53:14 +0000 (08:53 -0000)]
hostname: getopt_ulflags'isation

18 years agotelnetd: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:50:29 +0000 (08:50 -0000)]
telnetd: getopt_ulflags'isation

18 years agoadjtimex: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:47:54 +0000 (08:47 -0000)]
adjtimex: getopt_ulflags'isation

18 years agologger: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:44:58 +0000 (08:44 -0000)]
logger: getopt_ulflags'isation

18 years agogetopt: fix whitespace damage
Denis Vlasenko [Fri, 22 Sep 2006 08:42:06 +0000 (08:42 -0000)]
getopt: fix whitespace damage

18 years agoreadprofile: getopt_ulflags'isation
Denis Vlasenko [Fri, 22 Sep 2006 08:39:49 +0000 (08:39 -0000)]
readprofile: getopt_ulflags'isation

18 years agoipcs: fix my recent breakage
Denis Vlasenko [Fri, 22 Sep 2006 08:30:52 +0000 (08:30 -0000)]
ipcs: fix my recent breakage

18 years ago- add new applet resize.
Bernhard Reutner-Fischer [Fri, 22 Sep 2006 08:18:41 +0000 (08:18 -0000)]
- add new applet resize.
   text    data     bss     dec     hex filename
    185       0       0     185      b9 console-tools/resize.o
    255       0       0     255      ff console-tools/resize.o.print

18 years agoChange license statements (and clean up headers) on some of the files that
Rob Landley [Fri, 22 Sep 2006 02:52:41 +0000 (02:52 -0000)]
Change license statements (and clean up headers) on some of the files that
Erik or I are primary copyright holders on.

18 years ago- update and expand TODO a little bit
Bernhard Reutner-Fischer [Thu, 21 Sep 2006 22:58:38 +0000 (22:58 -0000)]
- update and expand TODO a little bit

18 years ago- pull r15578 from busybox_scratch branch:
Bernhard Reutner-Fischer [Thu, 21 Sep 2006 22:10:24 +0000 (22:10 -0000)]
- pull r15578 from busybox_scratch branch:
  - fix bug where it would behave wrong if ./nohup.out was not writable.
  - debloat and make it readable while at it.
$ size coreutils/nohup.o*
   text    data     bss     dec     hex filename
    362       0       0     362     16a coreutils/nohup.o.trunk
    344       0       0     344     158 coreutils/nohup.o
$ make bloatcheck
function                                             old     new   delta
nohup_main                                           324     310     -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-14)             Total: -14 bytes

18 years ago- silence gcc warning about a funcptr possibly being used uninitialized.
Bernhard Reutner-Fischer [Thu, 21 Sep 2006 20:40:56 +0000 (20:40 -0000)]
- silence gcc warning about a funcptr possibly being used uninitialized.
  This is a perfect example on where we should NOT care if the functor is not
  initialized since the result will not be what the user may expect.
  Safe bet would be to init to NULL, but let's try normal uu for good measure.
- fix commentary typo while at it.

18 years agomount: nfs mount should enable bb_error-to-syslog support
Denis Vlasenko [Thu, 21 Sep 2006 12:30:16 +0000 (12:30 -0000)]
mount: nfs mount should enable bb_error-to-syslog support

18 years ago- gcc-2.95 doesn't support -static-libgcc
Bernhard Reutner-Fischer [Thu, 21 Sep 2006 11:54:51 +0000 (11:54 -0000)]
- gcc-2.95 doesn't support -static-libgcc
- remove Winline

18 years agomount: make Rob happy by reinstating #defines
Denis Vlasenko [Thu, 21 Sep 2006 11:13:08 +0000 (11:13 -0000)]
mount: make Rob happy by reinstating #defines

18 years agoTeach get_terminal_width_height to fall back to $LINES and $COLUMNS when
Rob Landley [Wed, 20 Sep 2006 22:06:01 +0000 (22:06 -0000)]
Teach get_terminal_width_height to fall back to $LINES and $COLUMNS when
used via things like a serial console.

18 years agoThe version checked into the tree is a snapshot of an unifinished applet, and
Rob Landley [Wed, 20 Sep 2006 21:57:36 +0000 (21:57 -0000)]
The version checked into the tree is a snapshot of an unifinished applet, and
you just made lots of ">>>>>>> mine" lines show up in my working copy of this.

Please don't do that again.

18 years agoThe Software Freedom Law Center wants us to add a copyright notice to the
Rob Landley [Wed, 20 Sep 2006 21:41:13 +0000 (21:41 -0000)]
The Software Freedom Law Center wants us to add a copyright notice to the
generated binaries, to make copyright enforcement easier.  Our liason with
them (Bradley Kuhn) suggested the following text:

> Copyright (C) YEAR-2006  Erik Andersen, Rob Landley, and others.
> Licensed under GPLv2.  See source distribution for full notice.

And the busybox help message seems the least offensive place to put it.  (At
some point in the future, I need to strip 128 bytes from the binary to feel
good about this, though. :)

Minor header file cleanup while I was there, since libbb.h already #includes
most of that stuff...

18 years agoLicense clarification.
Rob Landley [Wed, 20 Sep 2006 20:01:29 +0000 (20:01 -0000)]
License clarification.

18 years ago- fix documentation for the command-line options of ipcs. Closes #1036
Bernhard Reutner-Fischer [Wed, 20 Sep 2006 15:56:53 +0000 (15:56 -0000)]
- fix documentation for the command-line options of ipcs. Closes #1036

18 years ago- fix embarrassing typo of mine. Closes bug #1038
Bernhard Reutner-Fischer [Wed, 20 Sep 2006 15:29:13 +0000 (15:29 -0000)]
- fix embarrassing typo of mine. Closes bug #1038