oweals/busybox.git
22 years agoSet the close-on-exec flag, just to be saf
Eric Andersen [Mon, 30 Sep 2002 20:08:53 +0000 (20:08 -0000)]
Set the close-on-exec flag, just to be saf

22 years agoDoh. We divide microseconds by 60?
Eric Andersen [Mon, 30 Sep 2002 19:37:48 +0000 (19:37 -0000)]
Doh.  We divide microseconds by 60?

22 years agoSave status so we know if to delete compressed file
Glenn L McGrath [Mon, 30 Sep 2002 05:30:29 +0000 (05:30 -0000)]
Save status so we know if to delete compressed file

22 years agomake_directory() will fail instantly so we dont need to test for failure here
Glenn L McGrath [Sat, 28 Sep 2002 08:32:14 +0000 (08:32 -0000)]
make_directory() will fail instantly so we dont need to test for failure here

22 years agoFail straight away rather than recursively printing error messages :)
Glenn L McGrath [Sat, 28 Sep 2002 08:30:47 +0000 (08:30 -0000)]
Fail straight away rather than recursively printing error messages :)

22 years agoFix for using '-' as the filename when reading from stdin
Glenn L McGrath [Sat, 28 Sep 2002 02:06:39 +0000 (02:06 -0000)]
Fix for using '-' as the filename when reading from stdin

22 years agoBug fix from Nitin Gupta <gupta@equator.com>
Eric Andersen [Fri, 27 Sep 2002 23:34:53 +0000 (23:34 -0000)]
Bug fix from Nitin Gupta <gupta@equator.com>

22 years agoFix compress support and prevent a segfault
Glenn L McGrath [Fri, 27 Sep 2002 06:46:02 +0000 (06:46 -0000)]
Fix compress support and prevent a segfault

22 years agoFix simple define problem
Glenn L McGrath [Thu, 26 Sep 2002 16:01:21 +0000 (16:01 -0000)]
Fix simple define problem

22 years agoAvoid calling exit() from within fork/vfork'ed processes.
Eric Andersen [Thu, 26 Sep 2002 13:59:40 +0000 (13:59 -0000)]
Avoid calling exit() from within fork/vfork'ed processes.
 -Erik

22 years agoIgnoring SIGCHLD causes a race leading to the occasional hang of init
Eric Andersen [Wed, 25 Sep 2002 15:08:40 +0000 (15:08 -0000)]
Ignoring SIGCHLD causes a race leading to the occasional hang of init
when init will wait() on itself in waitfor() when the child exits before
init is scheduled to run.  Letting init hang is very seriously bad.
 -Erik

22 years agoReverse some minor changes that got caught up in my big unarchive patch
Glenn L McGrath [Wed, 25 Sep 2002 06:08:19 +0000 (06:08 -0000)]
Reverse some minor changes that got caught up in my big unarchive patch

22 years agoRemove files made obsolete by new unarchiving code
Glenn L McGrath [Wed, 25 Sep 2002 03:04:03 +0000 (03:04 -0000)]
Remove files made obsolete by new unarchiving code

22 years agoNew common unarchive code.
Glenn L McGrath [Wed, 25 Sep 2002 02:47:48 +0000 (02:47 -0000)]
New common unarchive code.

22 years agoFixup largefile settings
Eric Andersen [Sun, 22 Sep 2002 12:09:44 +0000 (12:09 -0000)]
Fixup largefile settings
 -Erik

22 years agoFix error messages conditions, and make them the same as GNU mkdir.
Glenn L McGrath [Sun, 22 Sep 2002 02:12:30 +0000 (02:12 -0000)]
Fix error messages conditions, and make them the same as GNU mkdir.

22 years agodon't leak FILEs
Eric Andersen [Fri, 20 Sep 2002 07:33:18 +0000 (07:33 -0000)]
don't leak FILEs

22 years agoupdate the noise a tiny bit
Eric Andersen [Wed, 18 Sep 2002 20:52:26 +0000 (20:52 -0000)]
update the noise a tiny bit

22 years agoUpdate webpage
Eric Andersen [Wed, 18 Sep 2002 20:48:20 +0000 (20:48 -0000)]
Update webpage

22 years agoCommit vodz's patch, plus a tweak to change TracePid to TracerPid. Now 0_60_4
Manuel Novoa III [Wed, 18 Sep 2002 19:27:10 +0000 (19:27 -0000)]
Commit vodz's patch, plus a tweak to change TracePid to TracerPid.  Now
works on i386 (2.4.19) and arm (2.4.6).

22 years agopatch from John Hall <john.hall@optionexist.co.uk> to change the
Eric Andersen [Wed, 18 Sep 2002 14:23:06 +0000 (14:23 -0000)]
patch from John Hall <john.hall@optionexist.co.uk> to change the
klogd specific messages to facility LOG_SYSLOG and tidies up some
of the priorities.

22 years agoAdd a new top applet
Eric Andersen [Tue, 17 Sep 2002 22:14:58 +0000 (22:14 -0000)]
Add a new top applet
 -Erik

22 years agoClear screen too.
Eric Andersen [Tue, 17 Sep 2002 21:21:27 +0000 (21:21 -0000)]
Clear screen too.

22 years agore-enable the cursor, in case it got disabled
Eric Andersen [Tue, 17 Sep 2002 21:17:35 +0000 (21:17 -0000)]
re-enable the cursor, in case it got disabled
 -Erik

22 years agoModified so that it "works" for archs other than i386... arm in particular.
Manuel Novoa III [Tue, 17 Sep 2002 21:02:16 +0000 (21:02 -0000)]
Modified so that it "works" for archs other than i386... arm in particular.
Also tried to clean up the logic a little, and ensure that read errors
or invalid archives resulted in error returns.  This could use a lot more
work... Volunteers?

22 years agoSane-ify the screen clearing stuff.
Eric Andersen [Tue, 17 Sep 2002 20:53:41 +0000 (20:53 -0000)]
Sane-ify the screen clearing stuff.
 -Erik

22 years agohehe.
Eric Andersen [Tue, 17 Sep 2002 20:35:58 +0000 (20:35 -0000)]
hehe.

22 years agoVodz' last_patch57:
Eric Andersen [Tue, 17 Sep 2002 20:06:29 +0000 (20:06 -0000)]
Vodz' last_patch57:
    Ok. Patch with reduce size ready.
    Notes: syslogd imposible close logsocket,
    the real programm write logmessages (hmm, cycle loop?)

    (Excuse me - this have small tab-formats rewroting also)

       text    data     bss     dec     hex filename
       2913     332   12388   15633    3d11 syslogd.o
       3109     332    9252   12693    3195 syslogd_old.o

22 years agoSupport setting depth
Eric Andersen [Tue, 17 Sep 2002 08:44:56 +0000 (08:44 -0000)]
Support setting depth

22 years agolast_patch56 from vodz to simplify copy_file logic
Eric Andersen [Tue, 17 Sep 2002 08:42:21 +0000 (08:42 -0000)]
last_patch56 from vodz to simplify copy_file logic

22 years agoPatch from "Joe.C" <joe@numa.com.tw>
Eric Andersen [Tue, 17 Sep 2002 08:41:08 +0000 (08:41 -0000)]
Patch from "Joe.C" <joe@numa.com.tw>

22 years agoPatch from David McCullough <davidm@snapgear.com>
Eric Andersen [Tue, 17 Sep 2002 08:40:12 +0000 (08:40 -0000)]
Patch from David McCullough <davidm@snapgear.com>

22 years agoUse "MiB" not "Mb"
Eric Andersen [Tue, 17 Sep 2002 06:36:56 +0000 (06:36 -0000)]
Use "MiB" not "Mb"
 -Erik

22 years agoTypo fix from Steven Merrifield
Eric Andersen [Tue, 17 Sep 2002 05:43:26 +0000 (05:43 -0000)]
Typo fix from Steven Merrifield

22 years agolast_patch55 from vodz:
Eric Andersen [Mon, 16 Sep 2002 10:44:24 +0000 (10:44 -0000)]
last_patch55 from vodz:
    I found overflow problem in xargs applet
    (allocated not space for trailing '\0').
    Last patch also reduce 22 bytes size. ;)

22 years agoLet people force overwrite links
Eric Andersen [Mon, 16 Sep 2002 10:23:38 +0000 (10:23 -0000)]
Let people force overwrite links
 -Erik

22 years agoProperly honor FILEUTILS_INTERACTIVE and FILEUTILS_FORCE for
Eric Andersen [Mon, 16 Sep 2002 09:23:22 +0000 (09:23 -0000)]
Properly honor FILEUTILS_INTERACTIVE and FILEUTILS_FORCE for
file all file types (not just regular files and dirs).  Unlink
destination files when needed.
 -Erik

22 years agoWatch applet by Michael Habermann
Glenn L McGrath [Mon, 16 Sep 2002 09:10:04 +0000 (09:10 -0000)]
Watch applet by Michael Habermann

22 years agoPatch from Matthias Lang <matthias@corelatus.se> to fix gunzip
Eric Andersen [Mon, 16 Sep 2002 07:25:41 +0000 (07:25 -0000)]
Patch from Matthias Lang <matthias@corelatus.se> to fix gunzip
error handling and prevent gunzip from hanging.

22 years agoLet people run SHUTDOWN actions prior to killing everything
Eric Andersen [Mon, 16 Sep 2002 06:49:06 +0000 (06:49 -0000)]
Let people run SHUTDOWN actions prior to killing everything
 -Erik

22 years agoFix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>
Eric Andersen [Mon, 16 Sep 2002 06:32:16 +0000 (06:32 -0000)]
Fix stupid typo noticed by John Mullin <john.mullin@homenetcomm.com>

22 years agoApply vodz' last_patch52
Eric Andersen [Mon, 16 Sep 2002 06:22:25 +0000 (06:22 -0000)]
Apply vodz' last_patch52

22 years agoSupport module tainting
Eric Andersen [Mon, 16 Sep 2002 05:30:24 +0000 (05:30 -0000)]
Support module tainting
 -Erik

22 years agomesg applet by Manuel Novoa III
Glenn L McGrath [Mon, 16 Sep 2002 04:21:46 +0000 (04:21 -0000)]
mesg applet by Manuel Novoa III

22 years agoPut in GPL v2 or later copyright notice
Glenn L McGrath [Mon, 16 Sep 2002 03:47:48 +0000 (03:47 -0000)]
Put in GPL v2 or later copyright notice

22 years agoopenvt applet by Quy Tonthat
Glenn L McGrath [Mon, 16 Sep 2002 03:16:06 +0000 (03:16 -0000)]
openvt applet by Quy Tonthat

22 years agoUse busybox's show_usage function for help
Glenn L McGrath [Sun, 15 Sep 2002 17:20:45 +0000 (17:20 -0000)]
Use busybox's show_usage function for help

22 years agoAwk applet written from scratch by Dmitry Zakharov
Glenn L McGrath [Sun, 15 Sep 2002 17:03:48 +0000 (17:03 -0000)]
Awk applet written from scratch by Dmitry Zakharov

22 years agoSupport for GNU style long filename and linknames
Glenn L McGrath [Sun, 15 Sep 2002 16:54:49 +0000 (16:54 -0000)]
Support for GNU style long filename and linknames

22 years agoPatch from Thomas Gleixner <tglx@linutronix.de> to do
Eric Andersen [Thu, 12 Sep 2002 15:44:53 +0000 (15:44 -0000)]
Patch from Thomas Gleixner <tglx@linutronix.de> to do
automatic child reaping to avoid zombies

22 years agoApply vodz's last_patch53.gz (bb_asprintf.c) and last_patch54.gz
Manuel Novoa III [Thu, 12 Sep 2002 14:52:26 +0000 (14:52 -0000)]
Apply vodz's last_patch53.gz (bb_asprintf.c) and last_patch54.gz
(arith.c).

22 years agoFix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>
Eric Andersen [Tue, 10 Sep 2002 06:03:31 +0000 (06:03 -0000)]
Fix for handling of "tftp -l -" from Jean Wolter <jw5@os.inf.tu-dresden.de>

22 years agoYipe. uid and gid were reversed.
Eric Andersen [Tue, 10 Sep 2002 05:23:29 +0000 (05:23 -0000)]
Yipe.  uid and gid were reversed.
 -Erik

22 years agoSome CML1 grammar fixes
Eric Andersen [Sun, 1 Sep 2002 06:45:55 +0000 (06:45 -0000)]
Some CML1 grammar fixes
 -Erik

22 years agoEliminate use of obsolete sys_errlist[]
Eric Andersen [Mon, 26 Aug 2002 21:36:32 +0000 (21:36 -0000)]
Eliminate use of obsolete sys_errlist[]
 -Erik

22 years agochmod on the NEW file
Glenn L McGrath [Mon, 26 Aug 2002 17:17:27 +0000 (17:17 -0000)]
chmod on the NEW file

22 years agoDont return an error if the directory already existed
Glenn L McGrath [Sat, 24 Aug 2002 20:11:38 +0000 (20:11 -0000)]
Dont return an error if the directory already existed

22 years agoFix warning
Glenn L McGrath [Sat, 24 Aug 2002 20:00:52 +0000 (20:00 -0000)]
Fix warning

22 years agoReorganise, make it just one function, remove -v option it didnt work properly anyway...
Glenn L McGrath [Sat, 24 Aug 2002 14:32:17 +0000 (14:32 -0000)]
Reorganise, make it just one function, remove -v option it didnt work properly anyway, dont setvbuf it doesnt make any difference in performance.

22 years agoRun through indent, use braces
Glenn L McGrath [Sat, 24 Aug 2002 10:30:36 +0000 (10:30 -0000)]
Run through indent, use braces

22 years agoRemove extrangeous backslashes that were probably introduced by
Aaron Lehmann [Fri, 23 Aug 2002 22:09:50 +0000 (22:09 -0000)]
Remove extrangeous backslashes that were probably introduced by
someone joining lines and forgetting to remove the backslash escaping
the newline.

22 years agoRewrite, its smaller
Glenn L McGrath [Fri, 23 Aug 2002 17:19:26 +0000 (17:19 -0000)]
Rewrite, its smaller

22 years agoRemove empty loops
Glenn L McGrath [Fri, 23 Aug 2002 14:36:59 +0000 (14:36 -0000)]
Remove empty loops

22 years agoUse static instead of extern, braces around if's, run through indent
Glenn L McGrath [Fri, 23 Aug 2002 14:31:28 +0000 (14:31 -0000)]
Use static instead of extern, braces around if's, run through indent

22 years agoApply vodz last_path_51-2
Glenn L McGrath [Fri, 23 Aug 2002 13:14:48 +0000 (13:14 -0000)]
Apply vodz last_path_51-2

22 years agoApply vodz last_patch51_2 and run through indent
Glenn L McGrath [Fri, 23 Aug 2002 12:04:23 +0000 (12:04 -0000)]
Apply vodz last_patch51_2 and run through indent

22 years agoDon't #ifdef __linux__. this is linux.
Aaron Lehmann [Fri, 23 Aug 2002 07:56:21 +0000 (07:56 -0000)]
Don't #ifdef __linux__. this is linux.

22 years agoansify
Aaron Lehmann [Fri, 23 Aug 2002 07:52:58 +0000 (07:52 -0000)]
ansify

22 years agoremove duplicate definition of G
Aaron Lehmann [Fri, 23 Aug 2002 07:51:01 +0000 (07:51 -0000)]
remove duplicate definition of G
caught by tinycc

22 years agofor some baffling reason tinycc insists that i change this 0 to NULL
Aaron Lehmann [Fri, 23 Aug 2002 07:45:26 +0000 (07:45 -0000)]
for some baffling reason tinycc insists that i change this 0 to NULL

22 years agomove some globals to bss
Aaron Lehmann [Fri, 23 Aug 2002 07:28:45 +0000 (07:28 -0000)]
move some globals to bss

22 years agoRun through indent, style
Glenn L McGrath [Fri, 23 Aug 2002 06:17:46 +0000 (06:17 -0000)]
Run through indent, style

22 years agoRun through indent, fix comments
Glenn L McGrath [Fri, 23 Aug 2002 06:05:11 +0000 (06:05 -0000)]
Run through indent, fix comments

22 years agoRun through indent, fix comments
Glenn L McGrath [Fri, 23 Aug 2002 05:58:38 +0000 (05:58 -0000)]
Run through indent, fix comments

22 years agoRun through indent, specify cast
Glenn L McGrath [Fri, 23 Aug 2002 03:37:07 +0000 (03:37 -0000)]
Run through indent, specify cast

22 years agoRun through indent
Glenn L McGrath [Fri, 23 Aug 2002 03:25:22 +0000 (03:25 -0000)]
Run through indent

22 years agoRemove duplicate definitions, run through indent
Glenn L McGrath [Thu, 22 Aug 2002 19:35:36 +0000 (19:35 -0000)]
Remove duplicate definitions, run through indent

22 years agoreplace some global const ints with defines
Glenn L McGrath [Thu, 22 Aug 2002 19:31:35 +0000 (19:31 -0000)]
replace some global const ints with defines

22 years agoSpecify cast
Glenn L McGrath [Thu, 22 Aug 2002 19:22:32 +0000 (19:22 -0000)]
Specify cast

22 years agoRemove duplicate variable definition
Glenn L McGrath [Thu, 22 Aug 2002 19:15:26 +0000 (19:15 -0000)]
Remove duplicate variable definition

22 years agoRun through indent, fix comments
Glenn L McGrath [Thu, 22 Aug 2002 18:41:20 +0000 (18:41 -0000)]
Run through indent, fix comments

22 years agoRun through indent, fix comment
Glenn L McGrath [Thu, 22 Aug 2002 18:24:43 +0000 (18:24 -0000)]
Run through indent, fix comment

22 years agoRun through indent, fix comments
Glenn L McGrath [Thu, 22 Aug 2002 18:22:10 +0000 (18:22 -0000)]
Run through indent, fix comments

22 years agoRun through indent, fix BB_ define
Glenn L McGrath [Thu, 22 Aug 2002 18:13:54 +0000 (18:13 -0000)]
Run through indent, fix BB_ define

22 years agoRun through ident, fix comments
Glenn L McGrath [Thu, 22 Aug 2002 17:47:09 +0000 (17:47 -0000)]
Run through ident, fix comments

22 years agodefine inline if needed for ANSI C compatability
Glenn L McGrath [Thu, 22 Aug 2002 15:59:18 +0000 (15:59 -0000)]
define inline if needed for ANSI C compatability

22 years agoRemove unwanted comments, run through indent
Glenn L McGrath [Thu, 22 Aug 2002 15:54:22 +0000 (15:54 -0000)]
Remove unwanted comments, run through indent

22 years agoRun through indent, use /* */ style comments, change extern to static
Glenn L McGrath [Thu, 22 Aug 2002 13:44:08 +0000 (13:44 -0000)]
Run through indent, use /* */ style comments, change extern to static

22 years agoRun through indent, use /* */ style comments
Glenn L McGrath [Thu, 22 Aug 2002 13:25:12 +0000 (13:25 -0000)]
Run through indent, use /* */ style comments

22 years agoRun through indent
Glenn L McGrath [Thu, 22 Aug 2002 13:21:26 +0000 (13:21 -0000)]
Run through indent

22 years agoRun through indent, use /* */ style comments instead of //
Glenn L McGrath [Thu, 22 Aug 2002 13:12:40 +0000 (13:12 -0000)]
Run through indent, use /* */ style comments instead of //

22 years agoRemove definition of is_octal and is_decimal, they arent used
Glenn L McGrath [Thu, 22 Aug 2002 12:55:26 +0000 (12:55 -0000)]
Remove definition of is_octal and is_decimal, they arent used

22 years agoHonour the USTAR prefix field, this enables a 155 byte path length plus the normal...
Glenn L McGrath [Thu, 22 Aug 2002 11:50:31 +0000 (11:50 -0000)]
Honour the USTAR prefix field, this enables a 155 byte path length plus the normal 100 byte filename.
The catch is gnu tar cannot create archives that use the prefix field, you need to use s-tar.

22 years agoudhcpc sample scripts
Glenn L McGrath [Wed, 21 Aug 2002 14:24:38 +0000 (14:24 -0000)]
udhcpc sample scripts

22 years agoInline functions with only one reference in mkfs_minix. I don't know
Aaron Lehmann [Wed, 21 Aug 2002 13:21:20 +0000 (13:21 -0000)]
Inline functions with only one reference in mkfs_minix. I don't know
why these efforts aren't making the binary smaller.

22 years agoTar inlining, #if 0 out unused function
Aaron Lehmann [Wed, 21 Aug 2002 13:11:34 +0000 (13:11 -0000)]
Tar inlining, #if 0 out unused function

22 years agovi inlining
Aaron Lehmann [Wed, 21 Aug 2002 13:02:24 +0000 (13:02 -0000)]
vi inlining

22 years agoCleanups. These SHOULD make the binary a lot smaller. But they don't.
Aaron Lehmann [Wed, 21 Aug 2002 12:44:54 +0000 (12:44 -0000)]
Cleanups. These SHOULD make the binary a lot smaller. But they don't.
CURSE GCC

22 years agoDisable debugging
Glenn L McGrath [Wed, 21 Aug 2002 11:44:31 +0000 (11:44 -0000)]
Disable debugging

22 years agoClean up udhcpd a bit. Constify. Staticize. Remove these functions and
Aaron Lehmann [Wed, 21 Aug 2002 11:21:19 +0000 (11:21 -0000)]
Clean up udhcpd a bit. Constify. Staticize. Remove these functions and
inline their contents: print_usage, pidfile_delete, and background.