Matt Kraai
bbaef66b3f
Consolidate handling of some fopen failures.
2000-09-27 02:43:35 +00:00
Matt Kraai
e0bcce09ba
Rewrote uniq to be less than a third of the size, and fixed some other
...
minor problems.
2000-09-27 02:29:39 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Matt Kraai
90f580ad5b
Start the great EXIT_{SUCCESS,FAILURE} migration.
2000-09-22 03:45:34 +00:00
Matt Kraai
a2f2a8f8c0
Add support for the -L option to ls.
2000-09-22 03:11:47 +00:00
Eric Andersen
d1de4a16ad
Handle 'cat -'
2000-09-21 02:39:50 +00:00
Eric Andersen
8a2e56c5df
Large file >2Gib support.
2000-09-21 02:23:30 +00:00
Matt Kraai
7c22b77162
Only remove directories when removing recursively.
2000-09-20 23:10:21 +00:00
Eric Andersen
cff3fe3ae9
Added dos2unix, unix2dos, and unrpm.c thanks to robotti@metconnect.com.
...
-Erik
2000-09-20 19:22:26 +00:00
Glenn L McGrath
56a328810b
Fix looping bug, use fullRead
2000-09-13 23:08:07 +00:00
Matt Kraai
322ae93a5e
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
...
segfaulting or handling errors the same way themselves.
2000-09-13 02:46:14 +00:00
Glenn L McGrath
f0b073f55a
dd now truncates files at the end its write, this can be turned of by
...
specifying conv=notrunc in the command line
This conforms to GNU dd behaviour
2000-09-11 00:32:13 +00:00
Glenn L McGrath
729216cb11
Remove some debugging code
2000-09-10 04:42:20 +00:00
Glenn L McGrath
18310f1ce3
Using seek=? used to cause part of the original file to be zero'ed, i
...
think this was caused by opening the file in truncate mode.
2000-09-10 04:39:37 +00:00
Glenn L McGrath
0ae8e5a645
My previous attempt to make dd use fullRead, fullWrite was very broken,
...
this should actually work.
2000-09-10 01:54:27 +00:00
Eric Andersen
11c655295c
New ls sorting patch, as written by Sterling Huxley, and then updated
...
by kent robotti. I then updated it to use my_getpwuid and my_getgrgid
(per busybox policy).
-Erik
2000-09-07 17:24:47 +00:00
Eric Andersen
1b355ebba6
Added expr, from Edward Betts <edward@debian.org>, with some fixups
...
and docs added by me.
-Erik
2000-09-05 17:37:48 +00:00
Matt Kraai
1638488d26
Rewritten by mistake.
2000-08-28 03:53:27 +00:00
Glenn L McGrath
06aeb6c417
ar.c now uses a linked list to process headers, uses getopt, new internal function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions.
...
moved copySubFile from ar.c to utilities.c
modified dd.c to use fullWrite
modified copyFile in utilities.c to use copySubFile
2000-08-25 03:50:10 +00:00
Pavel Roskin
3a0f4baf2f
Fixed a warning about a label not being used
2000-08-22 15:47:57 +00:00
Pavel Roskin
8237add8d0
Fixed misuse of type "char"
2000-08-22 15:38:16 +00:00
Eric Andersen
79565b6c91
Add optional ls file sorting, thanks to a patch from
...
Sterling Huxley <sterling@europa.com>
-Erik
2000-08-11 18:10:21 +00:00
Eric Andersen
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +00:00
Eric Andersen
46ade97983
Cleaner way to handle -NUM and +NUM, reduces the mem usage as well.
...
-Erik
2000-08-02 19:57:18 +00:00
Mark Whitley
5ae166813f
Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().
2000-08-02 18:34:41 +00:00
Mark Whitley
807f0fd637
Brand, new version of cut. This fixes the bugs in the old cut, is smaller, and
...
is a sight easier to understand than the Minix cut.
2000-08-02 18:30:11 +00:00
Eric Andersen
d5fa3e3e9a
Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
...
-Erik
2000-08-02 16:42:58 +00:00
Eric Andersen
98bbd688a8
Commit the rewrite of tail by Allen Soard
...
<esp-software@mail.hypermart.net>. Thanks Allen for
you work at getting this into shape,
-Erik
2000-07-31 17:05:58 +00:00
Pavel Roskin
616d13bcd1
Fixed to pass -Wundef
2000-07-28 19:38:27 +00:00
Eric Andersen
9cf306d55e
Fix for a potential uninitialized variable, thx to
...
Ken Chalmers <chalmers@norscan.com>
-Erik
2000-07-28 19:05:20 +00:00
Eric Andersen
6150df320a
Some cleanups, based on a patch from Ken Chalmers
...
-Erik
2000-07-28 16:22:51 +00:00
Mark Whitley
7ce41ad692
Fixed a syntax error & superfluous param decl that was causing the build to
...
fail.
2000-07-26 18:09:22 +00:00
Eric Andersen
cc10a5b42b
Fix some bitrot.
...
-Erik
2000-07-26 00:52:04 +00:00
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Pavel Roskin
e99f7500e0
chroot can now call the builtin shell
2000-07-24 20:15:30 +00:00
Mark Whitley
3950596e1e
Converted option parsing to using getopt(). Also managed to remove an
...
extraneous logic loop that existed only for the purpose of the special case of
only one file. I replaced it with a variable to keep track of the number of
files read.
2000-07-20 00:08:10 +00:00
Mark Whitley
99e370f0c6
Whoops. Forgot to #include <getopt.h>.
2000-07-20 00:03:38 +00:00
Mark Whitley
aa4f108338
Converted option parsing to getopt() and made some minor formatting changes.
2000-07-19 19:38:13 +00:00
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +00:00
Matt Kraai
2f46b664b7
Add usage messages for applets without them.
2000-07-19 18:01:00 +00:00
Eric Andersen
a16c66335e
Use FatalError()
...
-Erik
2000-07-19 17:36:27 +00:00
Pavel Roskin
cc8a66b113
Moved functions used by "lsmod" from cat.c to utility.c
...
Adjusted to make lsmod and sh compilable as standalone apps.
Comment fixes
2000-07-17 20:18:42 +00:00
Pavel Roskin
47d4926244
The result of getopt() is "int" and should be treated as such
2000-07-17 16:17:19 +00:00
Matt Kraai
bf181b9338
Extract usage information into a separate file.
2000-07-16 20:57:15 +00:00
Matt Kraai
3bd8bd89ee
Don't use strings directly in calls to usage(). This is in preparation
...
for their extraction to a separate file.
2000-07-14 23:28:47 +00:00
Eric Andersen
add09fd558
Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:39:08 +00:00
Eric Andersen
17ad45aace
Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>
...
-Erik
2000-07-14 18:38:26 +00:00
Eric Andersen
fad04fdd12
More cleanups.
...
-Erik
2000-07-14 06:49:52 +00:00
Matt Kraai
b870af09ae
Fix argument parsing.
2000-07-14 06:47:33 +00:00
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +00:00