Bernhard Reutner-Fischer
e63a0dee9e
- revert r16191; re-add resize() applet.
...
text data bss dec hex filename
288 0 0 288 120 console-tools/_resize.o.gcc-2.95
258 0 0 258 102 console-tools/_resize.o.gcc-3.3
252 0 0 252 fc console-tools/_resize.o.gcc-3.4
2006-10-25 15:07:56 +00:00
Denis Vlasenko
e1a0d486e4
message string changes, mostly for consistency, also -32 bytes in .rodata
2006-10-20 13:28:22 +00:00
Eric Andersen
534d88e34e
console-tools/resize.c is apparently leftover from a reverted patch.
...
Since it is a 0 length file, it gets nuked by 'make distclean' so
I suppose might as well kill it off properly.
2006-10-19 22:02:29 +00:00
Denis Vlasenko
1385899416
attempt to regularize atoi mess.
2006-10-08 12:49:22 +00:00
Denis Vlasenko
7d219aab70
build system overhaul
2006-10-05 10:17:08 +00:00
Denis Vlasenko
67b23e6043
getopt_ulflags -> getopt32.
...
It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit.
2006-10-03 21:00:06 +00:00
Rob Landley
0372197385
"I'll think about it" != "apply it now". It means I need to think about it.
2006-09-22 18:47:45 +00:00
Bernhard Reutner-Fischer
ae843e9cc8
- 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
2006-09-22 08:18:41 +00:00
Denis Vlasenko
9213a9e0f2
whitespace cleanup
2006-09-17 16:28:10 +00:00
Denis Vlasenko
8fafacd7ec
setkeycodes: something horrible happened here
...
to indentation... fixed now
2006-09-09 13:23:04 +00:00
Denis Vlasenko
d25a2645f5
xfunc: fix: && -> &. Also nuked two double semicolons...
2006-09-05 09:36:19 +00:00
Rob Landley
d921b2ecc0
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
...
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
2006-08-03 15:41:12 +00:00
Rob Landley
534374755d
Cleaup read() and write() variants, plus a couple of new functions like
...
xlseek and fdlength() for the new mkswap.
2006-07-16 08:14:35 +00:00
"Robert P. J. Day"
801ab14013
Add one-line GPL boilerplate to numerous (but not all yet) source files.
2006-07-12 07:56:04 +00:00
"Robert P. J. Day"
63fc1a9e08
Standardize on the vi editing directives being on the first line.
2006-07-02 19:47:05 +00:00
"Robert P. J. Day"
edd9ca5743
More removal of "#if 0" content.
2006-07-01 14:52:12 +00:00
Bernhard Reutner-Fischer
95a040fac8
- use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit:
...
add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32)
function old new delta
static.add_interface 271 274 +3
static.glob3 36 38 +2
static.renice_main 409 408 -1
static.readcmd 1083 1081 -2
static.changepath 176 174 -2
static.parse_opts 56 51 -5
static.rx_main 1095 1088 -7
static.xargs_main 759 739 -20
----------------------------------------------------------------
Result :-) -32
2006-05-27 09:36:43 +00:00
Bernhard Reutner-Fischer
01d23ade57
- add central knob to turn off getopt_long everywhere. EXPERIMENTAL!
...
Adds "Enable getopt long" under "General options", default y.
Send patches to fix getopt_ulflags and run_parts.c if you turn this off..
See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
2006-05-26 20:19:22 +00:00
Bernhard Reutner-Fischer
b1629b1b2a
- remove emacs layout block as suggested by Robert P.J. Day
...
- use shorter boilerplate while at it
2006-05-19 19:29:19 +00:00
Mike Frysinger
39440e520c
pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the mailing list
2006-05-13 02:33:09 +00:00
Mike Frysinger
b66c931fad
kill pointless memory.h includes
2006-04-16 21:15:42 +00:00
Rob Landley
87848d91c7
setlogcons, from Jan Kaszka.
2006-03-27 23:23:43 +00:00
Bernhard Reutner-Fischer
df10094870
- revert back to r14406
2006-03-13 19:04:00 +00:00
Rob Landley
ead19306f5
Cleanup patches from tito.
2006-03-10 23:16:25 +00:00
Rob Landley
bc68cd14cc
Patch from Denis Vlasenko turning static const int (which gets emitted into
...
the busybox binary) into enums (which don't).
2006-03-10 19:22:06 +00:00
Bernhard Reutner-Fischer
07a79e75f5
- backout using features which are not available with the previous stable
...
version of make (3.71.1).
2006-03-09 09:03:37 +00:00
Rob Landley
dfba741457
Robert P. Day removed 8 gazillion occurrences of "extern" on function
...
definitions. (That should only be on prototypes.)
2006-03-06 20:47:33 +00:00
Bernhard Reutner-Fischer
022eb311d5
- use absolute path for top_builddir and top_srcdir.
...
Fixes make trying to include the very same file in an endless loop.
2006-03-02 17:33:25 +00:00
Bernhard Reutner-Fischer
5d26126b9e
- fixes parallel builds (make -j)
...
- use less resources for the buildsystem itself
2006-03-01 22:54:48 +00:00
Rob Landley
d6e14d8bee
Don't build directory libraries unless we're building an applet that needs it.
...
Cherry-picked from Devin Bayer's big MacOS X patch.
2006-02-21 19:11:35 +00:00
Mike Frysinger
b38673fb9f
make the build system puuuuuuuuuuurty
2006-02-02 01:41:53 +00:00
Eric Andersen
5e678873f9
clean up yet more annoying signed/unsigned mismatches and fixup
...
yet more incorrect types
2006-01-30 19:48:23 +00:00
Tim Riker
c1ef7bdd8d
just whitespace
2006-01-25 00:08:53 +00:00
Bernhard Reutner-Fischer
7ca61b6f33
- shared libbusybox.
...
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
2006-01-15 14:04:57 +00:00
"Vladimir N. Oleynik"
87210b5f4b
trivial generate exit code
2005-10-12 08:43:00 +00:00
"Vladimir N. Oleynik"
ffe17b51b4
correct strange *3 isatty(0) code
2005-10-12 08:38:28 +00:00
Mike Frysinger
a630cb15b1
re-order a little for alphabetical
2005-09-24 23:15:53 +00:00
Mike Frysinger
62f18e1f20
use the shorter license header
2005-09-24 07:16:29 +00:00
Mike Frysinger
0d4ee68be5
use brief license line
2005-09-24 06:01:57 +00:00
Rob Landley
b7128c6236
Cleanup patch by Bernhard Fischer, removing unnecessary includes of
...
getopt.h, whitespace changes, typos, etc.
2005-09-11 01:05:30 +00:00
Rob Landley
9f0e00fc61
Tito sent more size tweaks.
2005-09-08 03:27:06 +00:00
Paul Fox
fc2256a6ca
applying patch for bug 72:
...
0000072: Add applet to redirect console output via ioctl(..., TIOCCONS)
applet name changed to setconsole, since suse has a very similar
utility. better to treat differences as bugs than invent a new command.
2005-08-01 18:12:30 +00:00
Mike Frysinger
7e64db23d0
use defines instead of const integers
2005-07-31 22:09:33 +00:00
Mike Frysinger
e11ff718ac
shrink the flag setting by reversing the operation
2005-07-31 22:06:38 +00:00
Mike Frysinger
08c20362f5
replace for loops with one function call
2005-07-31 20:51:58 +00:00
Mike Frysinger
198ea3c86a
cleanup the error message so we dont use glibcism of %m and cast a pointer to an int (bad on 64bit arches)
2005-07-30 09:29:10 +00:00
Mike Frysinger
f28c7ec7e5
cleanup syntax
2005-07-30 09:24:49 +00:00
Mike Frysinger
4d00896d05
use toplevel ARFLAGS and update default ARFLAGS to be quiet
2005-07-27 01:09:24 +00:00
Eric Andersen
7daa076d3e
egor duda writes:
...
Hi!
I've created a patch to busybox' build system to allow building it in
separate tree in a manner similar to kbuild from kernel version 2.6.
That is, one runs command like
'make O=/build/some/where/for/specific/target/and/options'
and everything is built in this exact directory, provided that it exists.
I understand that applyingc such invasive changes during 'release
candidates' stage of development is at best unwise. So, i'm currently
asking for comments about this patch, starting from whether such thing
is needed at all to whether it coded properly.
'make check' should work now, and one make creates Makefile in build
directory, so one can run 'make' in build directory after that.
One possible caveat is that if we build in some directory other than
source one, the source directory should be 'distclean'ed first.
egor
2004-10-08 07:46:08 +00:00
Eric Andersen
c7bda1ce65
Remove trailing whitespace. Update copyright to include 2004.
2004-03-15 08:29:22 +00:00
Glenn L McGrath
17b4a20a9c
Patch by Tito, reduce size of deallocvt, also make the usage message
...
clearer (from N to [N]) and indirectly (through bb_xgetlarg) adds support
for -h ;-)
2004-01-15 11:50:19 +00:00
Glenn L McGrath
6a78631164
Patch by Tito, use bb_xgetlarg, reduce size
2004-01-14 07:34:37 +00:00
Glenn L McGrath
dfb6211df3
Patch by Tito, remove some unneeded variables to save some space.
2004-01-13 10:12:16 +00:00
Eric Andersen
08573e0ac4
Kill off the loadacm applet. It is unused, unmaintained
...
garbage leftover from before I started maintaining BusyBox.
As the Klingon's like to say, Today is a good day to die.
-Erik
2003-12-20 07:07:22 +00:00
Glenn L McGrath
02e0355504
Use bb_xopen
2003-12-20 06:00:08 +00:00
Glenn L McGrath
acbdc47aac
Make use of libbb functions bb_xopen, bb_full_read, used #define's
...
instead of static consts, avoid xmalloc.
2003-11-21 09:27:02 +00:00
Eric Andersen
7f6295f516
Patch from Arthur Othieno for style-guide.txt conformance
2003-10-22 10:34:15 +00:00
Eric Andersen
28672dd3b9
Patch from Arthur Othieno for docs/style-guide.txt conformance.
2003-10-22 10:30:53 +00:00
Eric Andersen
cb81e6484d
Update a bunch of docs. Run a script to update my email addr.
2003-07-14 21:21:08 +00:00
Eric Andersen
e5642119ee
Patch from Thomas Cameron:
...
Hello all,
This patch adds more "Help" text to the config system. Almost
all applets now have a help entry. Also, I cleaned up the spacing of
the existing text so that things are consistent. This patch is against
this morning's CVS.
Thomas Cameron
CEI Systems, Inc.
2003-07-14 19:37:08 +00:00
Eric Andersen
e5920a2dc0
Patch from Kent Robotti adding a bunch of menuconfig help
2003-07-03 10:00:15 +00:00
Glenn L McGrath
0a3b0106ab
Re-use existing variables, patch from Tito
2003-05-13 16:31:15 +00:00
Eric Andersen
a860bec167
A couple of patches from Tito <farmatito@tiscali.it>
2003-04-27 10:42:31 +00:00
Manuel Novoa III
cad5364599
Major coreutils update.
2003-03-19 09:13:01 +00:00
Glenn L McGrath
a6bbf7929c
Fix compile warning
2002-12-08 12:08:37 +00:00
Eric Andersen
c9f20d9fb9
Yet another major rework of the BusyBox config system, using the considerably
...
modified Kbuild system I put into uClibc. With this, there should be no more
need to modify Rules.mak since I've moved all the interesting options into the
config system. I think I've got everything updated, but you never know, I may
have made some mistakes, so watch closely.
-Erik
2002-12-05 08:41:41 +00:00
Eric Andersen
71ae64bdc6
last_patch61 from vodz:
...
New complex patch for decrease size devel version. Requires previous patch.
Also removed small problems from dutmp and tar applets.
Also includes vodz' last_patch61_2:
Last patch correcting comment for #endif and more integrated
with libbb (very reduce size if used "cat" applet also).
Requires last_patch61 for modutils/config.in.
2002-10-10 04:20:21 +00:00
Eric Andersen
793c3b4a7d
Clear screen too.
2002-09-17 21:21:27 +00:00
Eric Andersen
dc180d1442
re-enable the cursor, in case it got disabled
...
-Erik
2002-09-17 21:17:35 +00:00
Eric Andersen
c38678d14b
Apply vodz' last_patch52
2002-09-16 06:22:25 +00:00
Glenn L McGrath
ebdc8b48a5
Put in GPL v2 or later copyright notice
2002-09-16 03:47:48 +00:00
Glenn L McGrath
ec0c48cb29
openvt applet by Quy Tonthat
2002-09-16 03:16:06 +00:00
Eric Andersen
85208e2ab9
Completely rework the config system so that it no longer annoys me to work on
...
the busybox development tree. This eliminates the use of recursive make, and
once again allows us to run 'make' in a subdirectory with the expected result.
And things are now much faster too. Greatly improved IMHO...
-Erik
2002-04-12 12:05:57 +00:00
Eric Andersen
bdfd0d78bc
Major rework of the directory structure and the entire build system.
...
-Erik
2001-10-24 05:00:29 +00:00
Matt Kraai
439e3df653
Add support for devfs device names.
2001-07-23 14:52:08 +00:00
Eric Andersen
c54f9530ee
-Wshadow loadacm fix from Jeff Garzik
2001-03-23 17:03:28 +00:00
Eric Andersen
92d23245c9
Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>
2001-03-19 23:49:41 +00:00
Mark Whitley
827e45c518
Added some more '/* getopt not needed */' lines.
2001-03-09 23:59:51 +00:00
Eric Andersen
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
2001-02-20 06:14:08 +00:00
Eric Andersen
67991cf824
This patch, put together by Manuel Novoa III, is a merge of work
...
done by Evin Robertson (bug#1105) and work from Manuel to make
usage messages occupy less space and simplify how usage messages
are displayed.
2001-02-14 21:23:06 +00:00
Matt Kraai
dd19c69904
Removed trailing \n from error_msg{,_and_die} messages.
2001-01-31 19:00:21 +00:00
Eric Andersen
8ec10a9483
Fix up copyright msgs. Bump version to 0.49 in preparation for
...
a release. Update the website with release details.
-Erik
2001-01-27 09:33:39 +00:00
Eric Andersen
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
busybox.h which slowed compiles. I left only what was needed and then fixed up
all the apps to include their own header files. I also fixed naming for pwd.h
and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc.
-Erik
2001-01-27 08:24:39 +00:00
Mark Whitley
59ab025363
#define -> static const int. Also got rid of some big static buffers.
2001-01-23 22:30:04 +00:00
Matt Kraai
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +00:00
Matt Kraai
1fa1adea2a
Change calls to error_msg.* and strerror to use perror_msg.*.
2000-12-18 03:57:16 +00:00
Matt Kraai
aefe5629ab
Simplify error handling.
2000-12-14 05:44:36 +00:00
Mark Whitley
6f6aa9b428
Added some necessary brackets, removed debug noise.
2000-12-13 23:23:30 +00:00
Mark Whitley
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
Matt Kraai
3e856ce428
Stop using TRUE and FALSE for exit status.
2000-12-01 02:55:13 +00:00
Matt Kraai
ef5529b278
Added a new perrorMsg function, cleanup up error handling, fixed TRUE/FALSE
...
uses, and other minor fixes.
2000-10-25 17:00:36 +00:00
Matt Kraai
9133c98a9d
Cleaned up error handling, TRUE/FALSE usage, and other minor issues.
2000-10-25 16:48:15 +00:00
Matt Kraai
bbaef66b3f
Consolidate handling of some fopen failures.
2000-09-27 02:43:35 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Eric Andersen
32e95f988d
Fix the bandaid.
2000-09-23 19:55:59 +00:00
Eric Andersen
a1b35c4512
Apply a bandaid suggested by Jon McClintock <jonm@bluemug.com>, since deallocvt
...
has code for handling no arguments, but the usage checking code aborted if
there are any other than two arguments.
-Erik
2000-09-22 00:40:39 +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
Eric Andersen
dc746169cf
Oops. Forgot to add in reset.c. Doh!
...
-Erik
2000-08-21 21:26:33 +00:00
Eric Andersen
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +00:00
Matt Kraai
27a804246a
Centralize handling of --help.
2000-07-19 19:24:01 +00:00