4cc8f31ffe
Changed KILOBYTE, MEGABYTE, and GIGABYTE from #define to enum.
Mark Whitley
2001-03-07 18:00:44 +00:00
ae5612ca6e
Some minor cleanups to df.c. Also, with Erik's blessing, changed name of 'format' function to 'make_human_readable_str'.
Mark Whitley
2001-03-07 17:42:07 +00:00
ae20128e9f
Applied patch from Christophe Boyaniqu to remove double-slashes printed in recursive_action.
Mark Whitley
2001-03-07 17:27:04 +00:00
26d53eb197
This patch by Vladimir and Larry saves a few bytes.
Eric Andersen
2001-03-07 06:33:01 +00:00
ec9fad9a49
Static-ify a variable. make du work with all the human-readable variants since my last pass only fixed 'du -h' but left the others broken.
Eric Andersen
2001-03-07 06:04:08 +00:00
a7db19bb81
Fix up du so it behaves itself also. -Erik
Eric Andersen
2001-03-07 03:53:40 +00:00
11ae573320
remove an unused variable
Eric Andersen
2001-03-07 03:51:27 +00:00
7850f1e2ac
Rewrite of format so it behaves itself -Erik
Eric Andersen
2001-03-07 03:50:57 +00:00
5986f8d1c6
Fix up df so it works properly -Erik
Eric Andersen
2001-03-07 03:50:03 +00:00
651f8c04ef
Fix up ls.c to ensure human readable works properly in all cases
Eric Andersen
2001-03-07 03:48:02 +00:00
6c563bc1a1
Thought of another janitorial item for the list.
Mark Whitley
2001-03-06 23:16:13 +00:00
8b728a25a3
I made these little simplifications a while back, bug forgot to check this stuff in. -Erik
Eric Andersen
2001-03-06 23:14:43 +00:00
702ec5926f
Fix the memory leak. No really this time. -Erik
Eric Andersen
2001-03-06 22:17:29 +00:00
8bb7df49c2
Applied patch from Vladimir Oleynik via Magnus Damm that removes newlines from error_msg() calls and uses 'return EXIT_SUCCESS' instead of return 0.
Mark Whitley
2001-03-06 20:58:48 +00:00
0f430e34af
Fix up some silly macros and use xmalloc and friends exclusively.
Eric Andersen
2001-03-06 20:54:43 +00:00
36278b9576
Fix func prototype
Eric Andersen
2001-03-06 20:47:31 +00:00
54851d3c65
Fixed a memory leak in lash. It seems that close_all was calling close() directly instead of calling mark_closed(), which allowed the memory allocated by mark_open() to never be freed. -Erik
Eric Andersen
2001-03-06 20:44:39 +00:00
07f2f3917a
Close open files before calling builtin_exec(). I've tested this and it fixes bug #1121. -Erik
Eric Andersen
2001-03-06 20:28:22 +00:00
1a046d5f9d
Bug 1110 reported that the LOOP_GET_STATUS ioctl apparently returnes non-zero error messages, contrary to the documentation. Whatever. This patch from zhaoway <zw@debian.org> looks safe enough. -Erik
Eric Andersen
2001-03-06 19:35:58 +00:00
138ece09b5
minor cleanup
John Beppu
2001-03-06 19:25:25 +00:00
e6c4de03c6
First pass at trying to retrofit a changelog for 0.50. Please everyone look over this and if I forgot something, misattributed your work, or spelled something badly, please let me know. -Erik
Eric Andersen
2001-03-06 18:46:10 +00:00
f15d4dad66
Add in a first pass at ifconfig status reporting. It took a long while hacking on the mess in net-tools-1.59, but it currently adds 12k and supports ethernet, loop, ppp, and treats everything else as a generic interface. Works ok for me. -Erik
Eric Andersen
2001-03-06 00:48:59 +00:00
5efa2291aa
Fix up the freshmeat appindex record.
Eric Andersen
2001-03-05 18:26:50 +00:00
c27b9544b6
Make sure libpwd.a is linked _last_ so it overrides the system pwd/grp implementation. It wasn't doing that as expected...
Eric Andersen
2001-03-05 17:57:34 +00:00
47cdcdd359
Try to do a little better at documenting how to use alternate C libraries, thanks to David Douthitt.
Eric Andersen
2001-03-05 17:08:52 +00:00
21b7459add
add wget, tr, telnet, ping, md5sum and loadkmap to .deb
David Kimdon
2001-03-05 08:43:26 +00:00
afbff22e6e
Enable INSTALLER for the deb
Eric Andersen
2001-03-05 04:00:06 +00:00
452fd33ffa
Patch from Vladimir to make sure PATH is set correctly.
Eric Andersen
2001-03-04 06:47:33 +00:00
076cdc24fc
If umount2 is not available, stub it out.
Eric Andersen
2001-03-04 06:07:34 +00:00
9ead68975c
Added some words on use of getopt in applets.
Mark Whitley
2001-03-03 00:44:55 +00:00
323434be42
Dont try to automount some specific filesystem types
Glenn L McGrath
2001-03-02 22:21:34 +00:00
446dd27843
Applied patch from Vladimir N. Oleynik that fixes incorrect behaviour in recovery_mode and changed option processing.
Mark Whitley
2001-03-02 20:00:54 +00:00
42ab250709
Removed section on testing that is now in contributing.txt.
Mark Whitley
2001-03-02 19:15:01 +00:00
3b565cdf91
Added 'How to contribute to Busybox' doc.
Mark Whitley
2001-03-02 19:14:25 +00:00
85adecb668
Whoops! BB_TFTP should prolly be off by default.
Mark Whitley
2001-03-02 19:11:26 +00:00
450736cd3c
Added Magnus Damm's tftp applet to Busybox.
Mark Whitley
2001-03-02 19:08:50 +00:00
016771834a
Changed exit code from -1 to 0 when busybox is invoked with no args. (Closes bug #1114.)
Mark Whitley
2001-03-02 17:47:17 +00:00
39842defda
Applied patch from David Douthitt to fix build error in df.c when BB_FEATURE_HUMAN_READABLE was disabled.
Mark Whitley
2001-03-01 18:51:33 +00:00
de4406747b
Bah. I missed a header file.
Eric Andersen
2001-03-01 07:55:49 +00:00
7b91f02021
Reduce the size of mount (and bypass /proc/filesystems) by using the sysfs system call, based on work done by Glenn McGrath in December. -Erik
Eric Andersen
2001-03-01 07:50:04 +00:00
93ba60f01d
Keep trying if an NFS mount fails, and eliminate a call to exit(3).
Matt Kraai
2001-02-28 15:33:12 +00:00
1b6cff3df4
libpwd was getting added twice.
Eric Andersen
2001-02-27 22:24:45 +00:00
4f76bb6f3e
Little patchlet to make linking against libc5 work a little better
Mark Whitley
2001-02-27 19:53:48 +00:00
4142d4dc66
Patch from Vladimir N. Oleynik to save 128 bytes by moving error checking for some my_* functions to utility.c
Eric Andersen
2001-02-27 18:22:03 +00:00
e677dfedd1
Applied patch from Magnus Damm <damm@opensource.se> to fix a 'inner scope var masking outer scope var with same name' bug that was preventing the loopback device from being unmounted if mount() fails.
Mark Whitley
2001-02-26 17:45:58 +00:00
d11578f916
- changed the way POD is generated such that the dashed line appears at the bottom instead of the top. The indentation semantics of POD make the first item in the (=over,=back) block look weird the other way. - implemented a way to encode example usage into usage.h One would define a macro called "${applet}_example_usage" which would expand to the example text. - The example usage is considered optional, but trivial and full usage are not.
John Beppu
2001-02-26 02:50:11 +00:00
2bf658d5cd
This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support to busybox insmod. Thanks Quinn!!! -Erik
Eric Andersen
2001-02-24 20:01:53 +00:00
afeb96547f
Make output match the real lsmod -- print (autoclean) type stuff first not last. -Erik
Eric Andersen
2001-02-24 19:51:54 +00:00
d160a27ec1
Stub out the syscall, not the whole application. The stubbed out syscall sets errno properly and whines about missing kernel support. -Erik
Eric Andersen
2001-02-24 19:17:07 +00:00
dc12190ba2
The usage message for syslogd had stuff longer then 80 chars and wrapped.
Eric Andersen
2001-02-24 18:52:36 +00:00
37977622c4
...
John Beppu
2001-02-24 14:44:25 +00:00
7d597c4833
refinement
John Beppu
2001-02-24 14:37:48 +00:00
dbfff6cbde
formatting ...
John Beppu
2001-02-23 17:55:03 +00:00
e6967b20cb
Added some documentation and made --sgml use sgml_from_usage(). pod_from_usage() is the default generator.
John Beppu
2001-02-23 17:51:08 +00:00
3757f98d86
Another usage cleanup from kent robotti
Eric Andersen
2001-02-23 17:47:51 +00:00
8373e70c55
During POD generation, it inserts a blank line before lines that were intended to be indented.
John Beppu
2001-02-23 17:41:41 +00:00
7a9cc2dcdd
More cleanups
Eric Andersen
2001-02-23 16:58:44 +00:00
15f9b92127
forgot to remove some debugging noise
John Beppu
2001-02-23 16:16:08 +00:00
df1e9daf30
This one should be able to deal with the USAGE macros a little more robustly. I also blow away any USAGE_NOT_\w+ macros.
John Beppu
2001-02-23 16:15:34 +00:00
ed0d958c3e
Make HUMAN_READABLE be single argument like the others.
Eric Andersen
2001-02-23 13:23:03 +00:00
2498b155fd
forgot a comma.
John Beppu
2001-02-23 13:04:39 +00:00
a0cfe94c4e
More usage cleanups from kent robotti. I know some of these were applied previously but apparently lost with some of the latest changes.
Eric Andersen
2001-02-23 10:07:09 +00:00
b83ffafc15
Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com>
Eric Andersen
2001-02-23 06:36:53 +00:00
56082dc2ae
space after \ make preprocessor sad
David Kimdon
2001-02-23 06:03:22 +00:00
68c1d8400c
utility.c must include stdarg.h
David Kimdon
2001-02-23 03:55:24 +00:00
b249fbb1dc
I can't leave it alone.
John Beppu
2001-02-23 03:12:45 +00:00
8c16bc5012
minor cleanup... all that's left to do is * make headers and footers for both the POD and SGML content * make an SGML generator * finish the command-line handling
John Beppu
2001-02-23 02:54:31 +00:00
4a25d8c9c3
This is the remixed autodocufier.pl.
John Beppu
2001-02-23 02:33:28 +00:00
0ed9923887
Stub out pivot_root so it won't fail to compile. -Erik
Eric Andersen
2001-02-23 02:31:03 +00:00
3574b70efc
Somewhere along the line, MAKE_LINKS got broken, thereby breaking 'make install'. Fix that.
Eric Andersen
2001-02-23 02:16:29 +00:00
8079b155c2
Argh. I should know to compile first.
Eric Andersen
2001-02-23 02:04:33 +00:00
bbc8e4789f
Only default to BB_FEATURE_NEW_MODULE_INTERFACE when BB_FEATURE_OLD_MODULE_INTERFACE is not defined. -Erik
Eric Andersen
2001-02-23 02:00:35 +00:00
2f3105725f
Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE is enabled. -Erik
Eric Andersen
2001-02-23 01:58:18 +00:00
5723934f7c
Yet another fix. I think I got it this time. -Erik
Eric Andersen
2001-02-23 01:39:26 +00:00
41492d6c23
I should be more careful...
Eric Andersen
2001-02-23 00:05:56 +00:00
c163e5107f
Turn off the printf attribute for the ?error_msg* functions, since it is ok to pass them a NULL, unlike printf. This silences a pointless warning message. -Erik
Eric Andersen
2001-02-22 23:38:48 +00:00
544891dd26
Add in kent robotti's updated dos2unix.c
Eric Andersen
2001-02-22 23:37:30 +00:00
adea7a6101
Fix up Makefile -- uClibc nfs works these days
Eric Andersen
2001-02-22 23:36:30 +00:00
4b2e69a1cf
Commit a few updates to the usage messages.
Eric Andersen
2001-02-22 23:32:59 +00:00
e13bc0bc68
First pass at making up an automagical usage message extractor, which will be used (when it works) to autogenerate documentation. Based on code written by Mark Whitley.
Eric Andersen
2001-02-22 22:47:06 +00:00
ffc40bf3de
Account for remainder, and reset page_height for each and every page.
Eric Andersen
2001-02-22 21:49:32 +00:00
b2007bffc5
Make busybox and busybox-static conflict/replace each other
Eric Andersen
2001-02-22 05:21:35 +00:00
5d9cad0253
Fix malformed build-depends. Update list of bugs to close -Erik
Eric Andersen
2001-02-22 05:08:16 +00:00
7aa1f5c42a
Make md5sum not display filename when reading stdin -Erik
Eric Andersen
2001-02-22 04:59:16 +00:00
dbcd8ce464
Make init compile when DEBUG_INIT is enabled -Erik
Eric Andersen
2001-02-22 04:55:33 +00:00
7e9276b50a
Another update to the way usage messages are done by Evin Robertson <nitfol@my-deja.com>, which makes things just a little bit smaller, but makes usage.h more readable/maintainable IMHO. -Erik
Eric Andersen
2001-02-22 01:15:47 +00:00
8fc300976f
Revert my change to do extra termType checking. That is done elsewhere. Silly me. -Erik
Eric Andersen
2001-02-22 00:50:20 +00:00
be30a6b8b0
Adjust the terminal height for any overlap, so that no lines get lost off the top -Erik
Eric Andersen
2001-02-22 00:22:46 +00:00
54006bce25
Oops! I left in my debug noise.
Eric Andersen
2001-02-21 00:27:22 +00:00
7c3e7ac940
df was totally broken. So I fixed it. -Erik
Eric Andersen
2001-02-21 00:24:51 +00:00
8d7bdc9deb
Small patch from Kent Robotti to show megabytes in human-readable output.
Mark Whitley
2001-02-20 21:57:55 +00:00
9e37007edb
Minor cleanup.
Eric Andersen
2001-02-20 21:52:49 +00:00
90fe7fea10
Apply a patch from Magnus Damm <damm@opensource.se> to support powerpc with busybox insmod -Erik
Eric Andersen
2001-02-20 20:47:08 +00:00
477aedd77f
Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow environment variables set from the kernel command line to be inherited bu application programs. Slightly changed to special case handling of TERM, so that it has sane defaults when on a serial console. -Erik
Eric Andersen
2001-02-20 18:01:50 +00:00
5165fbed63
Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it after busybox.h is included.
Eric Andersen
2001-02-20 06:42:29 +00:00
caeeb36784
This fixes lash so it handles environment variable expansion, regardless of where the environment variables are located in an argument. This allows things like 'echo foo$1$SHELL' to expand the same way bash would expand it. Of course, to make this work I introduced a memory leak, and I am too tired to find a way to fix it. -Erik
Eric Andersen
2001-02-20 06:38:44 +00:00
a183f05825
Cleanup the use of 'find' to prevent error msgs. -Erik
Eric Andersen
2001-02-20 06:22:54 +00:00
f1142c5b11
Oops. Put time.h after busybox.h, so we can check for BB_FEATURE_LS_TIMESTAMPS -Erik
Eric Andersen
2001-02-20 06:16:29 +00:00
cbe31dace5
It turns out that DODMALLOC was broken when I reorganized busybox.h header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
Eric Andersen
2001-02-20 06:14:08 +00:00
94456f5984
Put back Vladimir's testing defines, which I mistakenly removed.
Eric Andersen
2001-02-18 20:26:48 +00:00