Rob Landley
|
8fdcfdb447
Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
|
10 years ago |
Rob Landley
|
d04dc1feb9
Add scripts/single.sh to build individual non-multiplexed standalone commands.
|
11 years ago |
Rob Landley
|
5f80533836
Fix --help option to multiplexer.
|
11 years ago |
Rob Landley
|
bb504f382d
Start of TOYBOX_SINGLE support, for building standalone commands with no multiplexer.
|
11 years ago |
Rob Landley
|
953722e382
Add config option for --help support in all commands.
|
11 years ago |
Rob Landley
|
09ee264817
Add --help option to toybox command when TOYBOX_HELP is enabled.
|
11 years ago |
Rob Landley
|
933919cd80
Fix some comments from way back when toybox first started (in 2006), when I was still cleaning busybox-isms out of my head...
|
11 years ago |
Rob Landley
|
41ed979349
Use basename() where appropriate.
|
11 years ago |
Rob Landley
|
bf1e70f355
TOYBOX_DEBUG warns about lack of suid bit when running a STAYROOT command, but it shouldn't warn just because the multiplexer command "toybox" is stayroot.
|
11 years ago |
Rob Landley
|
a48e5792bb
Elie De Brauwer pointed out that xputs() isn't reliably reporting errors because there's no flush. Rather than change the output granularity, flush before exit and check errors there. (We still need xputc() doing it so "yes" doesn't continue forever.)
|
11 years ago |
Rob Landley
|
6cf0a11545
Cleanup i18n support (#ifdefectomy, move global init to process launch). Teach make.sh to emit "#define FLAG_x 0" for options inside disabled USE macros so we can unconditionally refer to them.
|
11 years ago |
Felix Janda
|
250e0055fe
Make internalization support optional
|
11 years ago |
Rob Landley
|
6c62448f72
Init global context to toybox multiplexer early so error_exit() doesn't segfault trying to print current command name, and change TOYBOX_DEBUG+TOYBOX_SUID complaint about not having the suid bit set to warning rather than exit..
|
11 years ago |
Rob Landley
|
4521f416ba
Set optc when optstring NULL.
|
11 years ago |
Rob Landley
|
caf39c2682
Add rebound support to intercept error_exit() and longjmp instead.
|
11 years ago |
Rob Landley
|
7aa651a6a4
Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
|
11 years ago |
Rob Landley
|
9c1c5ecd68
Replace TOY_LIST_LEN with more generic ARRAY_LEN()
|
12 years ago |
Rob Landley
|
07d79af718
Workaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked.
|
12 years ago |
Rob Landley
|
2b54b1ab1a
Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
|
12 years ago |
Rob Landley
|
7f28e68546
Switch from deprecated function to gratuitously renamed identical non-depricated function. *shrug*
|
12 years ago |
Rob Landley
|
8f8c504e58
Expand comments.
|
12 years ago |
Rob Landley
|
db037ef6e0
Make toy_init() reentrant, or else xexec() has funky errors.
|
14 years ago |
Rob Landley
|
e0377fb294
Add TOYBOX_SUID.
|
14 years ago |
Rob Landley
|
0f8c4c5998
Add TOYFLAG_UMASK.
|
16 years ago |
Rob Landley
|
841223d688
Fix crash when running unknown command via symlink.
|
16 years ago |
Rob Landley
|
b1aaba1fc8
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
|
16 years ago |
Rob Landley
|
55928b1e0a
Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
|
16 years ago |
Rob Landley
|
aaffc07346
Changeset 186 assumed that toys.exitval defaults to 0. Actually change the
|
16 years ago |
Rob Landley
|
efda21ca93
Change command main() functions to return void, and exit(toys.exitval) from
|
16 years ago |
Rob Landley
|
860f263417
Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.
|
16 years ago |